aws-sdk-sesv2 1.43.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: a378e461b02994bf8b261e332b23b7a685560e1b42aa48d4f78a86bd41d52cb2
4
- data.tar.gz: 81bc295da5d57c96e4b749178311d2750875f20c9450fcd9fbfa298d07ccf978
3
+ metadata.gz: 4942007074e385997db719b5c511a07074745f2d197014b32ae14e0662e6dafd
4
+ data.tar.gz: 8389d520c6ce122893e1e75e296730a2d57aeba3ade48b890f1d49da059117da
5
5
  SHA512:
6
- metadata.gz: 9255f06c5525544944db8ad5eced77370b4e797b246a9d7ee5eaa596f854d8110ede980f49925c7149fbd7f4e19688f38376cb80394c515543566d37333ed8a6
7
- data.tar.gz: 5b5ef1c34ccf98b43c55bc23fa6cedd9095108e268672fed17fa133ce1cd72d19d966f7ae7465fd312f1af4fc7f3b289b92182b8dc8562858b60556e48524223
6
+ metadata.gz: 265617041e4d183f6856380e8652fa800daad9116068fd6eb9d2ef84d6584de5c341287fee1f96c60418bcb01f225f2ed58d5c03683f9c96ac21907969d084ad
7
+ data.tar.gz: bbef0db4a8b16d6ab3c11541d1579ac58d09d1ad2bd1b6081a40e295fd029c4aba4e13737adf07429f3b66902a66d8fdc949778e0a44242bbce5dee06aee7164
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.44.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.43.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.43.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.43.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"))
@@ -14,6 +14,7 @@ module Aws::SESV2
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::SESV2::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -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.43.0'
55
+ GEM_VERSION = '1.45.0'
56
56
 
57
57
  end