aws-sdk-sesv2 1.44.0 → 1.45.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cf76a1ca9ec361914298a76798156bf6252f5109554784ffee6d67e2735177f
4
- data.tar.gz: 9ba26dcfd0eb01d805b022b5a850ee1c3401dcedb13bc39b5a03803606fa2627
3
+ metadata.gz: 4942007074e385997db719b5c511a07074745f2d197014b32ae14e0662e6dafd
4
+ data.tar.gz: 8389d520c6ce122893e1e75e296730a2d57aeba3ade48b890f1d49da059117da
5
5
  SHA512:
6
- metadata.gz: 7805d7e80b2f2faa496b7b9b8dd1dd62873e8c40eb8cc75ede8e8ab0cb42335845bda5e305c6e2c0169786a042b6d423c98e3f694d31a89f3de3fe6caefe2e30
7
- data.tar.gz: 3835d473b1358c00eaa213346748d569e43770fe907866d12a28f19eac6ca975533b5677088b48d40eb23e1c8e7c37a565839ead8957671a99d5563da574b2ee
6
+ metadata.gz: 265617041e4d183f6856380e8652fa800daad9116068fd6eb9d2ef84d6584de5c341287fee1f96c60418bcb01f225f2ed58d5c03683f9c96ac21907969d084ad
7
+ data.tar.gz: bbef0db4a8b16d6ab3c11541d1579ac58d09d1ad2bd1b6081a40e295fd029c4aba4e13737adf07429f3b66902a66d8fdc949778e0a44242bbce5dee06aee7164
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2024-03-05)
5
+ ------------------
6
+
7
+ * Feature - Adds support for providing custom headers within SendEmail and SendBulkEmail for SESv2.
8
+
4
9
  1.44.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -868,6 +868,12 @@ module Aws::SESV2
868
868
  # charset: "Charset",
869
869
  # },
870
870
  # },
871
+ # headers: [
872
+ # {
873
+ # name: "MessageHeaderName", # required
874
+ # value: "MessageHeaderValue", # required
875
+ # },
876
+ # ],
871
877
  # },
872
878
  # raw: {
873
879
  # data: "data", # required
@@ -876,6 +882,12 @@ module Aws::SESV2
876
882
  # template_name: "EmailTemplateName",
877
883
  # template_arn: "AmazonResourceName",
878
884
  # template_data: "EmailTemplateData",
885
+ # headers: [
886
+ # {
887
+ # name: "MessageHeaderName", # required
888
+ # value: "MessageHeaderValue", # required
889
+ # },
890
+ # ],
879
891
  # },
880
892
  # },
881
893
  # tags: [
@@ -3538,9 +3550,7 @@ module Aws::SESV2
3538
3550
  #
3539
3551
  # If the value is `false`, then your account is in the *sandbox*. When
3540
3552
  # your account is in the sandbox, you can only send email to verified
3541
- # identities. Additionally, the maximum number of emails you can send in
3542
- # a 24-hour period (your sending quota) is 200, and the maximum number
3543
- # of emails you can send per second (your maximum sending rate) is 1.
3553
+ # identities.
3544
3554
  #
3545
3555
  # If the value is `true`, then your account has production access. When
3546
3556
  # your account has production access, you can send email to any address.
@@ -4372,6 +4382,12 @@ module Aws::SESV2
4372
4382
  # template_name: "EmailTemplateName",
4373
4383
  # template_arn: "AmazonResourceName",
4374
4384
  # template_data: "EmailTemplateData",
4385
+ # headers: [
4386
+ # {
4387
+ # name: "MessageHeaderName", # required
4388
+ # value: "MessageHeaderValue", # required
4389
+ # },
4390
+ # ],
4375
4391
  # },
4376
4392
  # },
4377
4393
  # bulk_email_entries: [ # required
@@ -4543,7 +4559,7 @@ module Aws::SESV2
4543
4559
  #
4544
4560
  # @option params [required, Types::EmailContent] :content
4545
4561
  # An object that contains the body of the message. You can send either a
4546
- # Simple message Raw message or a template Message.
4562
+ # Simple message, Raw message, or a Templated message.
4547
4563
  #
4548
4564
  # @option params [Array<Types::MessageTag>] :email_tags
4549
4565
  # A list of tags, in the form of name/value pairs, to apply to an email
@@ -4591,6 +4607,12 @@ module Aws::SESV2
4591
4607
  # charset: "Charset",
4592
4608
  # },
4593
4609
  # },
4610
+ # headers: [
4611
+ # {
4612
+ # name: "MessageHeaderName", # required
4613
+ # value: "MessageHeaderValue", # required
4614
+ # },
4615
+ # ],
4594
4616
  # },
4595
4617
  # raw: {
4596
4618
  # data: "data", # required
@@ -4599,6 +4621,12 @@ module Aws::SESV2
4599
4621
  # template_name: "EmailTemplateName",
4600
4622
  # template_arn: "AmazonResourceName",
4601
4623
  # template_data: "EmailTemplateData",
4624
+ # headers: [
4625
+ # {
4626
+ # name: "MessageHeaderName", # required
4627
+ # value: "MessageHeaderValue", # required
4628
+ # },
4629
+ # ],
4602
4630
  # },
4603
4631
  # },
4604
4632
  # email_tags: [
@@ -4803,9 +4831,13 @@ module Aws::SESV2
4803
4831
  req.send_request(options)
4804
4832
  end
4805
4833
 
4806
- # Updates a contact's preferences for a list. It is not necessary to
4807
- # specify all existing topic preferences in the TopicPreferences object,
4808
- # just the ones that need updating.
4834
+ # Updates a contact's preferences for a list.
4835
+ #
4836
+ # <note markdown="1"> You must specify all existing topic preferences in the
4837
+ # `TopicPreferences` object, not just the ones that need updating;
4838
+ # otherwise, all your existing preferences will be removed.
4839
+ #
4840
+ # </note>
4809
4841
  #
4810
4842
  # @option params [required, String] :contact_list_name
4811
4843
  # The name of the contact list.
@@ -5061,7 +5093,7 @@ module Aws::SESV2
5061
5093
  params: params,
5062
5094
  config: config)
5063
5095
  context[:gem_name] = 'aws-sdk-sesv2'
5064
- context[:gem_version] = '1.44.0'
5096
+ context[:gem_version] = '1.45.0'
5065
5097
  Seahorse::Client::Request.new(handlers, context)
5066
5098
  end
5067
5099
 
@@ -319,6 +319,10 @@ module Aws::SESV2
319
319
  Message = Shapes::StructureShape.new(name: 'Message')
320
320
  MessageContent = Shapes::StringShape.new(name: 'MessageContent')
321
321
  MessageData = Shapes::StringShape.new(name: 'MessageData')
322
+ MessageHeader = Shapes::StructureShape.new(name: 'MessageHeader')
323
+ MessageHeaderList = Shapes::ListShape.new(name: 'MessageHeaderList')
324
+ MessageHeaderName = Shapes::StringShape.new(name: 'MessageHeaderName')
325
+ MessageHeaderValue = Shapes::StringShape.new(name: 'MessageHeaderValue')
322
326
  MessageInsightsDataSource = Shapes::StructureShape.new(name: 'MessageInsightsDataSource')
323
327
  MessageInsightsExportMaxResults = Shapes::IntegerShape.new(name: 'MessageInsightsExportMaxResults')
324
328
  MessageInsightsFilters = Shapes::StructureShape.new(name: 'MessageInsightsFilters')
@@ -1378,8 +1382,15 @@ module Aws::SESV2
1378
1382
 
1379
1383
  Message.add_member(:subject, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "Subject"))
1380
1384
  Message.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "Body"))
1385
+ Message.add_member(:headers, Shapes::ShapeRef.new(shape: MessageHeaderList, location_name: "Headers"))
1381
1386
  Message.struct_class = Types::Message
1382
1387
 
1388
+ MessageHeader.add_member(:name, Shapes::ShapeRef.new(shape: MessageHeaderName, required: true, location_name: "Name"))
1389
+ MessageHeader.add_member(:value, Shapes::ShapeRef.new(shape: MessageHeaderValue, required: true, location_name: "Value"))
1390
+ MessageHeader.struct_class = Types::MessageHeader
1391
+
1392
+ MessageHeaderList.member = Shapes::ShapeRef.new(shape: MessageHeader)
1393
+
1383
1394
  MessageInsightsDataSource.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartDate"))
1384
1395
  MessageInsightsDataSource.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndDate"))
1385
1396
  MessageInsightsDataSource.add_member(:include, Shapes::ShapeRef.new(shape: MessageInsightsFilters, location_name: "Include"))
@@ -1705,6 +1716,7 @@ module Aws::SESV2
1705
1716
  Template.add_member(:template_name, Shapes::ShapeRef.new(shape: EmailTemplateName, location_name: "TemplateName"))
1706
1717
  Template.add_member(:template_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "TemplateArn"))
1707
1718
  Template.add_member(:template_data, Shapes::ShapeRef.new(shape: EmailTemplateData, location_name: "TemplateData"))
1719
+ Template.add_member(:headers, Shapes::ShapeRef.new(shape: MessageHeaderList, location_name: "Headers"))
1708
1720
  Template.struct_class = Types::Template
1709
1721
 
1710
1722
  TestRenderEmailTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: EmailTemplateName, required: true, location: "uri", location_name: "TemplateName"))
@@ -2605,10 +2605,7 @@ module Aws::SESV2
2605
2605
  #
2606
2606
  # If the value is `false`, then your account is in the *sandbox*. When
2607
2607
  # your account is in the sandbox, you can only send email to verified
2608
- # identities. Additionally, the maximum number of emails you can send
2609
- # in a 24-hour period (your sending quota) is 200, and the maximum
2610
- # number of emails you can send per second (your maximum sending rate)
2611
- # is 1.
2608
+ # identities.
2612
2609
  #
2613
2610
  # If the value is `true`, then your account has production access.
2614
2611
  # When your account has production access, you can send email to any
@@ -4867,11 +4864,47 @@ module Aws::SESV2
4867
4864
  # message, a text-only version of the message, or both.
4868
4865
  # @return [Types::Body]
4869
4866
  #
4867
+ # @!attribute [rw] headers
4868
+ # The list of message headers that will be added to the email message.
4869
+ # @return [Array<Types::MessageHeader>]
4870
+ #
4870
4871
  # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/Message AWS API Documentation
4871
4872
  #
4872
4873
  class Message < Struct.new(
4873
4874
  :subject,
4874
- :body)
4875
+ :body,
4876
+ :headers)
4877
+ SENSITIVE = []
4878
+ include Aws::Structure
4879
+ end
4880
+
4881
+ # Contains the name and value of a message header that you add to an
4882
+ # email.
4883
+ #
4884
+ # @!attribute [rw] name
4885
+ # The name of the message header. The message header name has to meet
4886
+ # the following criteria:
4887
+ #
4888
+ # * Can contain any printable ASCII character (33 - 126) except for
4889
+ # colon (:).
4890
+ #
4891
+ # * Can contain no more than 126 characters.
4892
+ # @return [String]
4893
+ #
4894
+ # @!attribute [rw] value
4895
+ # The value of the message header. The message header value has to
4896
+ # meet the following criteria:
4897
+ #
4898
+ # * Can contain any printable ASCII character.
4899
+ #
4900
+ # * Can contain no more than 870 characters.
4901
+ # @return [String]
4902
+ #
4903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/MessageHeader AWS API Documentation
4904
+ #
4905
+ class MessageHeader < Struct.new(
4906
+ :name,
4907
+ :value)
4875
4908
  SENSITIVE = []
4876
4909
  include Aws::Structure
4877
4910
  end
@@ -5256,10 +5289,7 @@ module Aws::SESV2
5256
5289
  #
5257
5290
  # If the value is `false`, then your account is in the *sandbox*. When
5258
5291
  # your account is in the sandbox, you can only send email to verified
5259
- # identities. Additionally, the maximum number of emails you can send
5260
- # in a 24-hour period (your sending quota) is 200, and the maximum
5261
- # number of emails you can send per second (your maximum sending rate)
5262
- # is 1.
5292
+ # identities.
5263
5293
  #
5264
5294
  # If the value is `true`, then your account has production access.
5265
5295
  # When your account has production access, you can send email to any
@@ -6408,7 +6438,7 @@ module Aws::SESV2
6408
6438
  #
6409
6439
  # @!attribute [rw] content
6410
6440
  # An object that contains the body of the message. You can send either
6411
- # a Simple message Raw message or a template Message.
6441
+ # a Simple message, Raw message, or a Templated message.
6412
6442
  # @return [Types::EmailContent]
6413
6443
  #
6414
6444
  # @!attribute [rw] email_tags
@@ -6452,9 +6482,10 @@ module Aws::SESV2
6452
6482
  # message is accepted.
6453
6483
  #
6454
6484
  # <note markdown="1"> It's possible for Amazon SES to accept a message without sending
6455
- # it. This can happen when the message that you're trying to send has
6456
- # an attachment contains a virus, or when you send a templated email
6457
- # that contains invalid personalization content, for example.
6485
+ # it. For example, this can happen when the message that you're
6486
+ # trying to send has an attachment that contains a virus, or when you
6487
+ # send a templated email that contains invalid personalization
6488
+ # content.
6458
6489
  #
6459
6490
  # </note>
6460
6491
  # @return [String]
@@ -6800,12 +6831,17 @@ module Aws::SESV2
6800
6831
  # defines the value to use for that variable.
6801
6832
  # @return [String]
6802
6833
  #
6834
+ # @!attribute [rw] headers
6835
+ # The list of message headers that will be added to the email message.
6836
+ # @return [Array<Types::MessageHeader>]
6837
+ #
6803
6838
  # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/Template AWS API Documentation
6804
6839
  #
6805
6840
  class Template < Struct.new(
6806
6841
  :template_name,
6807
6842
  :template_arn,
6808
- :template_data)
6843
+ :template_data,
6844
+ :headers)
6809
6845
  SENSITIVE = []
6810
6846
  include Aws::Structure
6811
6847
  end
data/lib/aws-sdk-sesv2.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sesv2/customizations'
52
52
  # @!group service
53
53
  module Aws::SESV2
54
54
 
55
- GEM_VERSION = '1.44.0'
55
+ GEM_VERSION = '1.45.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -270,7 +270,13 @@ module Aws
270
270
  data: ::String,
271
271
  charset: ::String?
272
272
  }?
273
- }
273
+ },
274
+ headers: Array[
275
+ {
276
+ name: ::String,
277
+ value: ::String
278
+ },
279
+ ]?
274
280
  }?,
275
281
  raw: {
276
282
  data: ::String
@@ -278,7 +284,13 @@ module Aws
278
284
  template: {
279
285
  template_name: ::String?,
280
286
  template_arn: ::String?,
281
- template_data: ::String?
287
+ template_data: ::String?,
288
+ headers: Array[
289
+ {
290
+ name: ::String,
291
+ value: ::String
292
+ },
293
+ ]?
282
294
  }?
283
295
  },
284
296
  ?tags: Array[
@@ -1234,7 +1246,13 @@ module Aws
1234
1246
  template: {
1235
1247
  template_name: ::String?,
1236
1248
  template_arn: ::String?,
1237
- template_data: ::String?
1249
+ template_data: ::String?,
1250
+ headers: Array[
1251
+ {
1252
+ name: ::String,
1253
+ value: ::String
1254
+ },
1255
+ ]?
1238
1256
  }?
1239
1257
  },
1240
1258
  bulk_email_entries: Array[
@@ -1304,7 +1322,13 @@ module Aws
1304
1322
  data: ::String,
1305
1323
  charset: ::String?
1306
1324
  }?
1307
- }
1325
+ },
1326
+ headers: Array[
1327
+ {
1328
+ name: ::String,
1329
+ value: ::String
1330
+ },
1331
+ ]?
1308
1332
  }?,
1309
1333
  raw: {
1310
1334
  data: ::String
@@ -1312,7 +1336,13 @@ module Aws
1312
1336
  template: {
1313
1337
  template_name: ::String?,
1314
1338
  template_arn: ::String?,
1315
- template_data: ::String?
1339
+ template_data: ::String?,
1340
+ headers: Array[
1341
+ {
1342
+ name: ::String,
1343
+ value: ::String
1344
+ },
1345
+ ]?
1316
1346
  }?
1317
1347
  },
1318
1348
  ?email_tags: Array[
data/sig/types.rbs CHANGED
@@ -1137,6 +1137,13 @@ module Aws::SESV2
1137
1137
  class Message
1138
1138
  attr_accessor subject: Types::Content
1139
1139
  attr_accessor body: Types::Body
1140
+ attr_accessor headers: ::Array[Types::MessageHeader]
1141
+ SENSITIVE: []
1142
+ end
1143
+
1144
+ class MessageHeader
1145
+ attr_accessor name: ::String
1146
+ attr_accessor value: ::String
1140
1147
  SENSITIVE: []
1141
1148
  end
1142
1149
 
@@ -1579,6 +1586,7 @@ module Aws::SESV2
1579
1586
  attr_accessor template_name: ::String
1580
1587
  attr_accessor template_arn: ::String
1581
1588
  attr_accessor template_data: ::String
1589
+ attr_accessor headers: ::Array[Types::MessageHeader]
1582
1590
  SENSITIVE: []
1583
1591
  end
1584
1592
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sesv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.45.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core