aws-sdk-sesv2 1.2.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 687465c13b7c7b2d474e8013715a81b434be92ec
4
- data.tar.gz: 65fdd800a880ab66d1ff973823c407582aa61a78
2
+ SHA256:
3
+ metadata.gz: 034031126af9674d220b44ae56aa3559a52677a88e5ab8eebe3b35d21703b728
4
+ data.tar.gz: 301072538aeff1444380a6e2d4b13d283c6950414360140ed9d118460bc47c92
5
5
  SHA512:
6
- metadata.gz: 219c70243e9ff96bbaa71363b69076baba28c3c79f145997cfb33441138aedc4013aa19623218391f7a10887cfe430352c118584cb0bf8046e210c828f63e9b9
7
- data.tar.gz: af3730d329afe2cc5352c753aba125bef6ad91d2dade895cf94d021fe341c672ae5d3a2b14766e3d640c55cc68b154ab414e1e9f604e55cf92a5c354dd43b29e
6
+ metadata.gz: 42d23408cc69066d2ed0d73df02bcfd456ef904b2aee04a3604637959acec246c2e37b7a904054c170ee59fb8a21e92c963957f52a4e6370c40d94892725542f
7
+ data.tar.gz: cac3c24646346c0dd80a1114c45887c60ba576a796f153fa343ddf78d12b9fe239f04a21e292d64418af742f427830fc32a781602f225dc1f061a6abe19afe1d
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-sesv2/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # sesv2 = Aws::SESV2::Client.new
30
+ # resp = sesv2.create_configuration_set(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from Amazon Simple Email Service all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from Amazon Simple Email Service are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
33
38
  #
34
39
  # begin
35
40
  # # do stuff
36
41
  # rescue Aws::SESV2::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all Amazon Simple Email Service API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-sesv2/customizations'
42
47
  # @service
43
48
  module Aws::SESV2
44
49
 
45
- GEM_VERSION = '1.2.0'
50
+ GEM_VERSION = '1.7.0'
46
51
 
47
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,12 +26,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:sesv2)
31
34
 
32
35
  module Aws::SESV2
36
+ # An API client for SESV2. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::SESV2::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
33
48
  class Client < Seahorse::Client::Base
34
49
 
35
50
  include Aws::ClientStubs
@@ -57,6 +72,7 @@ module Aws::SESV2
57
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
60
76
  add_plugin(Aws::Plugins::SignatureV4)
61
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
62
78
 
@@ -93,7 +109,7 @@ module Aws::SESV2
93
109
  # @option options [required, String] :region
94
110
  # The AWS region to connect to. The configured `:region` is
95
111
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
97
113
  #
98
114
  # * `Aws.config[:region]`
99
115
  # * `ENV['AWS_REGION']`
@@ -108,6 +124,12 @@ module Aws::SESV2
108
124
  # When set to `true`, a thread polling for endpoints will be running in
109
125
  # the background every 60 secs (default). Defaults to `false`.
110
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
111
133
  # @option options [Boolean] :client_side_monitoring (false)
112
134
  # When `true`, client-side metrics will be collected for all API requests from
113
135
  # this client.
@@ -132,6 +154,10 @@ module Aws::SESV2
132
154
  # When `true`, an attempt is made to coerce request parameters into
133
155
  # the required types.
134
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
135
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
162
  # Set to true to disable SDK automatically adding host prefix
137
163
  # to default service endpoint when available.
@@ -139,7 +165,7 @@ module Aws::SESV2
139
165
  # @option options [String] :endpoint
140
166
  # The client endpoint is normally constructed from the `:region`
141
167
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
169
  #
144
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +180,7 @@ module Aws::SESV2
154
180
  # requests fetching endpoints information. Defaults to 60 sec.
155
181
  #
156
182
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
184
  #
159
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
186
  # The log formatter.
@@ -166,15 +192,29 @@ module Aws::SESV2
166
192
  # The Logger instance to send log messages to. If this option
167
193
  # is not set, logging will be disabled.
168
194
  #
195
+ # @option options [Integer] :max_attempts (3)
196
+ # An integer representing the maximum number attempts that will be made for
197
+ # a single request, including the initial attempt. For example,
198
+ # setting this value to 5 will result in a request being retried up to
199
+ # 4 times. Used in `standard` and `adaptive` retry modes.
200
+ #
169
201
  # @option options [String] :profile ("default")
170
202
  # Used when loading credentials from the shared credentials file
171
203
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
204
  #
205
+ # @option options [Proc] :retry_backoff
206
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
207
+ # This option is only used in the `legacy` retry mode.
208
+ #
173
209
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
210
+ # The base delay in seconds used by the default backoff function. This option
211
+ # is only used in the `legacy` retry mode.
175
212
  #
176
213
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
214
+ # A delay randomiser function used by the default backoff function.
215
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
216
+ # otherwise a Proc that takes and returns a number. This option is only used
217
+ # in the `legacy` retry mode.
178
218
  #
179
219
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
220
  #
@@ -182,11 +222,30 @@ module Aws::SESV2
182
222
  # The maximum number of times to retry failed requests. Only
183
223
  # ~ 500 level server errors and certain ~ 400 level client errors
184
224
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
225
+ # checksum errors, networking errors, timeout errors, auth errors,
226
+ # endpoint discovery, and errors from expired credentials.
227
+ # This option is only used in the `legacy` retry mode.
187
228
  #
188
229
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
230
+ # The maximum number of seconds to delay between retries (0 for no limit)
231
+ # used by the default backoff function. This option is only used in the
232
+ # `legacy` retry mode.
233
+ #
234
+ # @option options [String] :retry_mode ("legacy")
235
+ # Specifies which retry algorithm to use. Values are:
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
190
249
  #
191
250
  # @option options [String] :secret_access_key
192
251
  #
@@ -209,16 +268,15 @@ module Aws::SESV2
209
268
  # requests through. Formatted like 'http://proxy.com:123'.
210
269
  #
211
270
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
271
+ # seconds to wait when opening a HTTP session before raising a
213
272
  # `Timeout::Error`.
214
273
  #
215
274
  # @option options [Integer] :http_read_timeout (60) The default
216
275
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
276
+ # safely be set per-request on the session.
219
277
  #
220
278
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
279
+ # seconds a connection is allowed to sit idle before it is
222
280
  # considered stale. Stale connections are closed and removed
223
281
  # from the pool before making a request.
224
282
  #
@@ -227,7 +285,7 @@ module Aws::SESV2
227
285
  # request body. This option has no effect unless the request has
228
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
287
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
288
+ # request on the session.
231
289
  #
232
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
291
  # HTTP debug output will be sent to the `:logger`.
@@ -359,7 +417,7 @@ module Aws::SESV2
359
417
  # event_destination_name: "EventDestinationName", # required
360
418
  # event_destination: { # required
361
419
  # enabled: false,
362
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE
420
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
363
421
  # kinesis_firehose_destination: {
364
422
  # iam_role_arn: "AmazonResourceName", # required
365
423
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -884,7 +942,7 @@ module Aws::SESV2
884
942
  # resp.event_destinations[0].name #=> String
885
943
  # resp.event_destinations[0].enabled #=> Boolean
886
944
  # resp.event_destinations[0].matching_event_types #=> Array
887
- # resp.event_destinations[0].matching_event_types[0] #=> String, one of "SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "OPEN", "CLICK", "RENDERING_FAILURE"
945
+ # resp.event_destinations[0].matching_event_types[0] #=> String, one of "SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "OPEN", "CLICK", "RENDERING_FAILURE", "DELIVERY_DELAY"
888
946
  # resp.event_destinations[0].kinesis_firehose_destination.iam_role_arn #=> String
889
947
  # resp.event_destinations[0].kinesis_firehose_destination.delivery_stream_arn #=> String
890
948
  # resp.event_destinations[0].cloud_watch_destination.dimension_configurations #=> Array
@@ -960,6 +1018,8 @@ module Aws::SESV2
960
1018
  # * {Types::GetDedicatedIpsResponse#dedicated_ips #dedicated_ips} => Array&lt;Types::DedicatedIp&gt;
961
1019
  # * {Types::GetDedicatedIpsResponse#next_token #next_token} => String
962
1020
  #
1021
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1022
+ #
963
1023
  # @example Request syntax with placeholder values
964
1024
  #
965
1025
  # resp = client.get_dedicated_ips({
@@ -1304,6 +1364,8 @@ module Aws::SESV2
1304
1364
  # * {Types::ListConfigurationSetsResponse#configuration_sets #configuration_sets} => Array&lt;String&gt;
1305
1365
  # * {Types::ListConfigurationSetsResponse#next_token #next_token} => String
1306
1366
  #
1367
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1368
+ #
1307
1369
  # @example Request syntax with placeholder values
1308
1370
  #
1309
1371
  # resp = client.list_configuration_sets({
@@ -1344,6 +1406,8 @@ module Aws::SESV2
1344
1406
  # * {Types::ListDedicatedIpPoolsResponse#dedicated_ip_pools #dedicated_ip_pools} => Array&lt;String&gt;
1345
1407
  # * {Types::ListDedicatedIpPoolsResponse#next_token #next_token} => String
1346
1408
  #
1409
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1410
+ #
1347
1411
  # @example Request syntax with placeholder values
1348
1412
  #
1349
1413
  # resp = client.list_dedicated_ip_pools({
@@ -1391,6 +1455,8 @@ module Aws::SESV2
1391
1455
  # * {Types::ListDeliverabilityTestReportsResponse#deliverability_test_reports #deliverability_test_reports} => Array&lt;Types::DeliverabilityTestReport&gt;
1392
1456
  # * {Types::ListDeliverabilityTestReportsResponse#next_token #next_token} => String
1393
1457
  #
1458
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1459
+ #
1394
1460
  # @example Request syntax with placeholder values
1395
1461
  #
1396
1462
  # resp = client.list_deliverability_test_reports({
@@ -1452,6 +1518,8 @@ module Aws::SESV2
1452
1518
  # * {Types::ListDomainDeliverabilityCampaignsResponse#domain_deliverability_campaigns #domain_deliverability_campaigns} => Array&lt;Types::DomainDeliverabilityCampaign&gt;
1453
1519
  # * {Types::ListDomainDeliverabilityCampaignsResponse#next_token #next_token} => String
1454
1520
  #
1521
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1522
+ #
1455
1523
  # @example Request syntax with placeholder values
1456
1524
  #
1457
1525
  # resp = client.list_domain_deliverability_campaigns({
@@ -1516,6 +1584,8 @@ module Aws::SESV2
1516
1584
  # * {Types::ListEmailIdentitiesResponse#email_identities #email_identities} => Array&lt;Types::IdentityInfo&gt;
1517
1585
  # * {Types::ListEmailIdentitiesResponse#next_token #next_token} => String
1518
1586
  #
1587
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1588
+ #
1519
1589
  # @example Request syntax with placeholder values
1520
1590
  #
1521
1591
  # resp = client.list_email_identities({
@@ -1571,6 +1641,8 @@ module Aws::SESV2
1571
1641
  # * {Types::ListSuppressedDestinationsResponse#suppressed_destination_summaries #suppressed_destination_summaries} => Array&lt;Types::SuppressedDestinationSummary&gt;
1572
1642
  # * {Types::ListSuppressedDestinationsResponse#next_token #next_token} => String
1573
1643
  #
1644
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1645
+ #
1574
1646
  # @example Request syntax with placeholder values
1575
1647
  #
1576
1648
  # resp = client.list_suppressed_destinations({
@@ -2433,7 +2505,7 @@ module Aws::SESV2
2433
2505
  # event_destination_name: "EventDestinationName", # required
2434
2506
  # event_destination: { # required
2435
2507
  # enabled: false,
2436
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE
2508
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
2437
2509
  # kinesis_firehose_destination: {
2438
2510
  # iam_role_arn: "AmazonResourceName", # required
2439
2511
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -2478,7 +2550,7 @@ module Aws::SESV2
2478
2550
  params: params,
2479
2551
  config: config)
2480
2552
  context[:gem_name] = 'aws-sdk-sesv2'
2481
- context[:gem_version] = '1.2.0'
2553
+ context[:gem_version] = '1.7.0'
2482
2554
  Seahorse::Client::Request.new(handlers, context)
2483
2555
  end
2484
2556
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -252,6 +254,12 @@ module Aws::SESV2
252
254
  VolumeStatistics = Shapes::StructureShape.new(name: 'VolumeStatistics')
253
255
  WarmupStatus = Shapes::StringShape.new(name: 'WarmupStatus')
254
256
 
257
+ AccountSuspendedException.struct_class = Types::AccountSuspendedException
258
+
259
+ AlreadyExistsException.struct_class = Types::AlreadyExistsException
260
+
261
+ BadRequestException.struct_class = Types::BadRequestException
262
+
255
263
  BlacklistEntries.member = Shapes::ShapeRef.new(shape: BlacklistEntry)
256
264
 
257
265
  BlacklistEntry.add_member(:rbl_name, Shapes::ShapeRef.new(shape: RblName, location_name: "RblName"))
@@ -278,6 +286,8 @@ module Aws::SESV2
278
286
 
279
287
  CloudWatchDimensionConfigurations.member = Shapes::ShapeRef.new(shape: CloudWatchDimensionConfiguration)
280
288
 
289
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
290
+
281
291
  ConfigurationSetNameList.member = Shapes::ShapeRef.new(shape: ConfigurationSetName)
282
292
 
283
293
  Content.add_member(:data, Shapes::ShapeRef.new(shape: MessageData, required: true, location_name: "Data"))
@@ -575,6 +585,8 @@ module Aws::SESV2
575
585
  InboxPlacementTrackingOption.add_member(:tracked_isps, Shapes::ShapeRef.new(shape: IspNameList, location_name: "TrackedIsps"))
576
586
  InboxPlacementTrackingOption.struct_class = Types::InboxPlacementTrackingOption
577
587
 
588
+ InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
589
+
578
590
  IpList.member = Shapes::ShapeRef.new(shape: Ip)
579
591
 
580
592
  IspNameList.member = Shapes::ShapeRef.new(shape: IspName)
@@ -589,6 +601,8 @@ module Aws::SESV2
589
601
  KinesisFirehoseDestination.add_member(:delivery_stream_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "DeliveryStreamArn"))
590
602
  KinesisFirehoseDestination.struct_class = Types::KinesisFirehoseDestination
591
603
 
604
+ LimitExceededException.struct_class = Types::LimitExceededException
605
+
592
606
  ListConfigurationSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
593
607
  ListConfigurationSetsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: MaxItems, location: "querystring", location_name: "PageSize"))
594
608
  ListConfigurationSetsRequest.struct_class = Types::ListConfigurationSetsRequest
@@ -656,16 +670,22 @@ module Aws::SESV2
656
670
  MailFromAttributes.add_member(:behavior_on_mx_failure, Shapes::ShapeRef.new(shape: BehaviorOnMxFailure, required: true, location_name: "BehaviorOnMxFailure"))
657
671
  MailFromAttributes.struct_class = Types::MailFromAttributes
658
672
 
673
+ MailFromDomainNotVerifiedException.struct_class = Types::MailFromDomainNotVerifiedException
674
+
659
675
  Message.add_member(:subject, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "Subject"))
660
676
  Message.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "Body"))
661
677
  Message.struct_class = Types::Message
662
678
 
679
+ MessageRejected.struct_class = Types::MessageRejected
680
+
663
681
  MessageTag.add_member(:name, Shapes::ShapeRef.new(shape: MessageTagName, required: true, location_name: "Name"))
664
682
  MessageTag.add_member(:value, Shapes::ShapeRef.new(shape: MessageTagValue, required: true, location_name: "Value"))
665
683
  MessageTag.struct_class = Types::MessageTag
666
684
 
667
685
  MessageTagList.member = Shapes::ShapeRef.new(shape: MessageTag)
668
686
 
687
+ NotFoundException.struct_class = Types::NotFoundException
688
+
669
689
  OverallVolume.add_member(:volume_statistics, Shapes::ShapeRef.new(shape: VolumeStatistics, location_name: "VolumeStatistics"))
670
690
  OverallVolume.add_member(:read_rate_percent, Shapes::ShapeRef.new(shape: Percentage, location_name: "ReadRatePercent"))
671
691
  OverallVolume.add_member(:domain_isp_placements, Shapes::ShapeRef.new(shape: DomainIspPlacements, location_name: "DomainIspPlacements"))
@@ -806,6 +826,8 @@ module Aws::SESV2
806
826
  SendingOptions.add_member(:sending_enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "SendingEnabled"))
807
827
  SendingOptions.struct_class = Types::SendingOptions
808
828
 
829
+ SendingPausedException.struct_class = Types::SendingPausedException
830
+
809
831
  SnsDestination.add_member(:topic_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "TopicArn"))
810
832
  SnsDestination.struct_class = Types::SnsDestination
811
833
 
@@ -852,6 +874,8 @@ module Aws::SESV2
852
874
  Template.add_member(:template_data, Shapes::ShapeRef.new(shape: TemplateData, location_name: "TemplateData"))
853
875
  Template.struct_class = Types::Template
854
876
 
877
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
878
+
855
879
  TrackingOptions.add_member(:custom_redirect_domain, Shapes::ShapeRef.new(shape: CustomRedirectDomain, required: true, location_name: "CustomRedirectDomain"))
856
880
  TrackingOptions.struct_class = Types::TrackingOptions
857
881
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,9 +8,152 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SESV2
11
+
12
+ # When SESV2 returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::SESV2::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all SESV2 errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::SESV2::Errors::ServiceError
20
+ # # rescues all SESV2 API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccountSuspendedException}
31
+ # * {AlreadyExistsException}
32
+ # * {BadRequestException}
33
+ # * {ConcurrentModificationException}
34
+ # * {InvalidNextTokenException}
35
+ # * {LimitExceededException}
36
+ # * {MailFromDomainNotVerifiedException}
37
+ # * {MessageRejected}
38
+ # * {NotFoundException}
39
+ # * {SendingPausedException}
40
+ # * {TooManyRequestsException}
41
+ #
42
+ # Additionally, error classes are dynamically generated for service errors based on the error code
43
+ # if they are not defined above.
9
44
  module Errors
10
45
 
11
46
  extend Aws::Errors::DynamicErrors
12
47
 
48
+ class AccountSuspendedException < ServiceError
49
+
50
+ # @param [Seahorse::Client::RequestContext] context
51
+ # @param [String] message
52
+ # @param [Aws::SESV2::Types::AccountSuspendedException] data
53
+ def initialize(context, message, data = Aws::EmptyStructure.new)
54
+ super(context, message, data)
55
+ end
56
+ end
57
+
58
+ class AlreadyExistsException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::SESV2::Types::AlreadyExistsException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+ end
67
+
68
+ class BadRequestException < ServiceError
69
+
70
+ # @param [Seahorse::Client::RequestContext] context
71
+ # @param [String] message
72
+ # @param [Aws::SESV2::Types::BadRequestException] data
73
+ def initialize(context, message, data = Aws::EmptyStructure.new)
74
+ super(context, message, data)
75
+ end
76
+ end
77
+
78
+ class ConcurrentModificationException < ServiceError
79
+
80
+ # @param [Seahorse::Client::RequestContext] context
81
+ # @param [String] message
82
+ # @param [Aws::SESV2::Types::ConcurrentModificationException] data
83
+ def initialize(context, message, data = Aws::EmptyStructure.new)
84
+ super(context, message, data)
85
+ end
86
+ end
87
+
88
+ class InvalidNextTokenException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::SESV2::Types::InvalidNextTokenException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+ end
97
+
98
+ class LimitExceededException < ServiceError
99
+
100
+ # @param [Seahorse::Client::RequestContext] context
101
+ # @param [String] message
102
+ # @param [Aws::SESV2::Types::LimitExceededException] data
103
+ def initialize(context, message, data = Aws::EmptyStructure.new)
104
+ super(context, message, data)
105
+ end
106
+ end
107
+
108
+ class MailFromDomainNotVerifiedException < ServiceError
109
+
110
+ # @param [Seahorse::Client::RequestContext] context
111
+ # @param [String] message
112
+ # @param [Aws::SESV2::Types::MailFromDomainNotVerifiedException] data
113
+ def initialize(context, message, data = Aws::EmptyStructure.new)
114
+ super(context, message, data)
115
+ end
116
+ end
117
+
118
+ class MessageRejected < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::SESV2::Types::MessageRejected] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+ end
127
+
128
+ class NotFoundException < ServiceError
129
+
130
+ # @param [Seahorse::Client::RequestContext] context
131
+ # @param [String] message
132
+ # @param [Aws::SESV2::Types::NotFoundException] data
133
+ def initialize(context, message, data = Aws::EmptyStructure.new)
134
+ super(context, message, data)
135
+ end
136
+ end
137
+
138
+ class SendingPausedException < ServiceError
139
+
140
+ # @param [Seahorse::Client::RequestContext] context
141
+ # @param [String] message
142
+ # @param [Aws::SESV2::Types::SendingPausedException] data
143
+ def initialize(context, message, data = Aws::EmptyStructure.new)
144
+ super(context, message, data)
145
+ end
146
+ end
147
+
148
+ class TooManyRequestsException < ServiceError
149
+
150
+ # @param [Seahorse::Client::RequestContext] context
151
+ # @param [String] message
152
+ # @param [Aws::SESV2::Types::TooManyRequestsException] data
153
+ def initialize(context, message, data = Aws::EmptyStructure.new)
154
+ super(context, message, data)
155
+ end
156
+ end
157
+
13
158
  end
14
159
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,6 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SESV2
11
+
9
12
  class Resource
10
13
 
11
14
  # @param options ({})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -8,6 +10,25 @@
8
10
  module Aws::SESV2
9
11
  module Types
10
12
 
13
+ # The message can't be sent because the account's ability to send
14
+ # email has been permanently restricted.
15
+ #
16
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/AccountSuspendedException AWS API Documentation
17
+ #
18
+ class AccountSuspendedException < Aws::EmptyStructure; end
19
+
20
+ # The resource specified in your request already exists.
21
+ #
22
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/AlreadyExistsException AWS API Documentation
23
+ #
24
+ class AlreadyExistsException < Aws::EmptyStructure; end
25
+
26
+ # The input you provided is invalid.
27
+ #
28
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/BadRequestException AWS API Documentation
29
+ #
30
+ class BadRequestException < Aws::EmptyStructure; end
31
+
11
32
  # An object that contains information about a blacklisting event that
12
33
  # impacts one of the dedicated IP addresses that is associated with your
13
34
  # account.
@@ -151,6 +172,12 @@ module Aws::SESV2
151
172
  include Aws::Structure
152
173
  end
153
174
 
175
+ # The resource is being modified by another operation or thread.
176
+ #
177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ConcurrentModificationException AWS API Documentation
178
+ #
179
+ class ConcurrentModificationException < Aws::EmptyStructure; end
180
+
154
181
  # An object that represents the content of the email, and optionally a
155
182
  # character set specification.
156
183
  #
@@ -192,7 +219,7 @@ module Aws::SESV2
192
219
  # event_destination_name: "EventDestinationName", # required
193
220
  # event_destination: { # required
194
221
  # enabled: false,
195
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE
222
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
196
223
  # kinesis_firehose_destination: {
197
224
  # iam_role_arn: "AmazonResourceName", # required
198
225
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -1287,12 +1314,12 @@ module Aws::SESV2
1287
1314
  end
1288
1315
 
1289
1316
  # In the Amazon SES API v2, *events* include message sends, deliveries,
1290
- # opens, clicks, bounces, and complaints. *Event destinations* are
1291
- # places that you can send information about these events to. For
1292
- # example, you can send event data to Amazon SNS to receive
1293
- # notifications when you receive bounces or complaints, or you can use
1294
- # Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term
1295
- # storage.
1317
+ # opens, clicks, bounces, complaints and delivery delays. *Event
1318
+ # destinations* are places that you can send information about these
1319
+ # events to. For example, you can send event data to Amazon SNS to
1320
+ # receive notifications when you receive bounces or complaints, or you
1321
+ # can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for
1322
+ # long-term storage.
1296
1323
  #
1297
1324
  # @!attribute [rw] name
1298
1325
  # A name that identifies the event destination.
@@ -1367,7 +1394,7 @@ module Aws::SESV2
1367
1394
  #
1368
1395
  # {
1369
1396
  # enabled: false,
1370
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE
1397
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
1371
1398
  # kinesis_firehose_destination: {
1372
1399
  # iam_role_arn: "AmazonResourceName", # required
1373
1400
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -2172,6 +2199,12 @@ module Aws::SESV2
2172
2199
  include Aws::Structure
2173
2200
  end
2174
2201
 
2202
+ # The specified request includes an invalid or expired token.
2203
+ #
2204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/InvalidNextTokenException AWS API Documentation
2205
+ #
2206
+ class InvalidNextTokenException < Aws::EmptyStructure; end
2207
+
2175
2208
  # An object that describes how email sent during the predictive inbox
2176
2209
  # placement test was handled by a certain email provider.
2177
2210
  #
@@ -2224,6 +2257,12 @@ module Aws::SESV2
2224
2257
  include Aws::Structure
2225
2258
  end
2226
2259
 
2260
+ # There are too many instances of the specified resource type.
2261
+ #
2262
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/LimitExceededException AWS API Documentation
2263
+ #
2264
+ class LimitExceededException < Aws::EmptyStructure; end
2265
+
2227
2266
  # A request to obtain a list of configuration sets for your Amazon SES
2228
2267
  # account in the current AWS Region.
2229
2268
  #
@@ -2687,6 +2726,12 @@ module Aws::SESV2
2687
2726
  include Aws::Structure
2688
2727
  end
2689
2728
 
2729
+ # The message can't be sent because the sending domain isn't verified.
2730
+ #
2731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/MailFromDomainNotVerifiedException AWS API Documentation
2732
+ #
2733
+ class MailFromDomainNotVerifiedException < Aws::EmptyStructure; end
2734
+
2690
2735
  # Represents the email message that you're sending. The `Message`
2691
2736
  # object consists of a subject line and a message body.
2692
2737
  #
@@ -2734,6 +2779,12 @@ module Aws::SESV2
2734
2779
  include Aws::Structure
2735
2780
  end
2736
2781
 
2782
+ # The message can't be sent because it contains invalid content.
2783
+ #
2784
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/MessageRejected AWS API Documentation
2785
+ #
2786
+ class MessageRejected < Aws::EmptyStructure; end
2787
+
2737
2788
  # Contains the name and value of a tag that you apply to an email. You
2738
2789
  # can use message tags when you publish email sending events.
2739
2790
  #
@@ -2773,6 +2824,12 @@ module Aws::SESV2
2773
2824
  include Aws::Structure
2774
2825
  end
2775
2826
 
2827
+ # The resource you attempted to access doesn't exist.
2828
+ #
2829
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/NotFoundException AWS API Documentation
2830
+ #
2831
+ class NotFoundException < Aws::EmptyStructure; end
2832
+
2776
2833
  # An object that contains information about email that was sent from the
2777
2834
  # selected domain.
2778
2835
  #
@@ -3842,6 +3899,13 @@ module Aws::SESV2
3842
3899
  include Aws::Structure
3843
3900
  end
3844
3901
 
3902
+ # The message can't be sent because the account's ability to send
3903
+ # email is currently paused.
3904
+ #
3905
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/SendingPausedException AWS API Documentation
3906
+ #
3907
+ class SendingPausedException < Aws::EmptyStructure; end
3908
+
3845
3909
  # An object that defines an Amazon SNS destination for email events. You
3846
3910
  # can use Amazon SNS to send notification when certain email events
3847
3911
  # occur.
@@ -4134,6 +4198,12 @@ module Aws::SESV2
4134
4198
  include Aws::Structure
4135
4199
  end
4136
4200
 
4201
+ # Too many requests have been made to the operation.
4202
+ #
4203
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/TooManyRequestsException AWS API Documentation
4204
+ #
4205
+ class TooManyRequestsException < Aws::EmptyStructure; end
4206
+
4137
4207
  # An object that defines the tracking options for a configuration set.
4138
4208
  # When you use the Amazon SES API v2 to send an email, it contains an
4139
4209
  # invisible image that's used to track when recipients open your email.
@@ -4209,7 +4279,7 @@ module Aws::SESV2
4209
4279
  # event_destination_name: "EventDestinationName", # required
4210
4280
  # event_destination: { # required
4211
4281
  # enabled: false,
4212
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE
4282
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
4213
4283
  # kinesis_firehose_destination: {
4214
4284
  # iam_role_arn: "AmazonResourceName", # required
4215
4285
  # delivery_stream_arn: "AmazonResourceName", # required
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.2.0
4
+ version: 1.7.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: 2019-12-13 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon SES V2