aws-sdk-sesv2 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sesv2.rb +7 -4
- data/lib/aws-sdk-sesv2/client.rb +61 -10
- data/lib/aws-sdk-sesv2/client_api.rb +22 -0
- data/lib/aws-sdk-sesv2/errors.rb +143 -0
- data/lib/aws-sdk-sesv2/resource.rb +7 -0
- data/lib/aws-sdk-sesv2/types.rb +68 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc414ff6ccb5f0e87f285924731ceef46f95752f
|
4
|
+
data.tar.gz: 8fd3f0c6c8ffa44358631afcb04db3534df08f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f6224c41932ca382911163fa84af5858b9d7b5718c31977415bf0273b3cfcedc87d1f9d14ac8e6d80996f1f9416ac6af63173ed457da6b6ea645e58c837d3f
|
7
|
+
data.tar.gz: 3cd746d627fa651965d2847cecf8f3300b0de3ce530d7935adfd6de73e4ff831abbc65fd8ffbf95c3476047494d931d53e451bbe6f56026a7ac808c16d548231
|
data/lib/aws-sdk-sesv2.rb
CHANGED
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-sesv2/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# sesv2 = Aws::SESV2::Client.new
|
28
|
+
# resp = sesv2.create_configuration_set(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from Amazon Simple Email Service
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from Amazon Simple Email Service are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::SESV2::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all Amazon Simple Email Service API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-sesv2/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::SESV2
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.3.0'
|
46
49
|
|
47
50
|
end
|
data/lib/aws-sdk-sesv2/client.rb
CHANGED
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:sesv2)
|
31
31
|
|
32
32
|
module Aws::SESV2
|
33
|
+
# An API client for SESV2. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::SESV2::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -108,6 +120,12 @@ module Aws::SESV2
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::SESV2
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -166,15 +188,29 @@ module Aws::SESV2
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,26 @@ module Aws::SESV2
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
233
|
+
# no retry mode is provided.
|
234
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
235
|
+
# This includes support for retry quotas, which limit the number of
|
236
|
+
# unsuccessful retries a client can make.
|
237
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
238
|
+
# functionality of `standard` mode along with automatic client side
|
239
|
+
# throttling. This is a provisional mode that may change behavior
|
240
|
+
# in the future.
|
190
241
|
#
|
191
242
|
# @option options [String] :secret_access_key
|
192
243
|
#
|
@@ -209,16 +260,16 @@ module Aws::SESV2
|
|
209
260
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
261
|
#
|
211
262
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
263
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
264
|
# `Timeout::Error`.
|
214
265
|
#
|
215
266
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
267
|
# number of seconds to wait for response data. This value can
|
217
268
|
# safely be set
|
218
|
-
# per-request on the session
|
269
|
+
# per-request on the session yielded by {#session_for}.
|
219
270
|
#
|
220
271
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
272
|
+
# seconds a connection is allowed to sit idle before it is
|
222
273
|
# considered stale. Stale connections are closed and removed
|
223
274
|
# from the pool before making a request.
|
224
275
|
#
|
@@ -227,7 +278,7 @@ module Aws::SESV2
|
|
227
278
|
# request body. This option has no effect unless the request has
|
228
279
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
280
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
281
|
+
# request on the session yielded by {#session_for}.
|
231
282
|
#
|
232
283
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
284
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -2478,7 +2529,7 @@ module Aws::SESV2
|
|
2478
2529
|
params: params,
|
2479
2530
|
config: config)
|
2480
2531
|
context[:gem_name] = 'aws-sdk-sesv2'
|
2481
|
-
context[:gem_version] = '1.
|
2532
|
+
context[:gem_version] = '1.3.0'
|
2482
2533
|
Seahorse::Client::Request.new(handlers, context)
|
2483
2534
|
end
|
2484
2535
|
|
@@ -252,6 +252,12 @@ module Aws::SESV2
|
|
252
252
|
VolumeStatistics = Shapes::StructureShape.new(name: 'VolumeStatistics')
|
253
253
|
WarmupStatus = Shapes::StringShape.new(name: 'WarmupStatus')
|
254
254
|
|
255
|
+
AccountSuspendedException.struct_class = Types::AccountSuspendedException
|
256
|
+
|
257
|
+
AlreadyExistsException.struct_class = Types::AlreadyExistsException
|
258
|
+
|
259
|
+
BadRequestException.struct_class = Types::BadRequestException
|
260
|
+
|
255
261
|
BlacklistEntries.member = Shapes::ShapeRef.new(shape: BlacklistEntry)
|
256
262
|
|
257
263
|
BlacklistEntry.add_member(:rbl_name, Shapes::ShapeRef.new(shape: RblName, location_name: "RblName"))
|
@@ -278,6 +284,8 @@ module Aws::SESV2
|
|
278
284
|
|
279
285
|
CloudWatchDimensionConfigurations.member = Shapes::ShapeRef.new(shape: CloudWatchDimensionConfiguration)
|
280
286
|
|
287
|
+
ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
|
288
|
+
|
281
289
|
ConfigurationSetNameList.member = Shapes::ShapeRef.new(shape: ConfigurationSetName)
|
282
290
|
|
283
291
|
Content.add_member(:data, Shapes::ShapeRef.new(shape: MessageData, required: true, location_name: "Data"))
|
@@ -575,6 +583,8 @@ module Aws::SESV2
|
|
575
583
|
InboxPlacementTrackingOption.add_member(:tracked_isps, Shapes::ShapeRef.new(shape: IspNameList, location_name: "TrackedIsps"))
|
576
584
|
InboxPlacementTrackingOption.struct_class = Types::InboxPlacementTrackingOption
|
577
585
|
|
586
|
+
InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
|
587
|
+
|
578
588
|
IpList.member = Shapes::ShapeRef.new(shape: Ip)
|
579
589
|
|
580
590
|
IspNameList.member = Shapes::ShapeRef.new(shape: IspName)
|
@@ -589,6 +599,8 @@ module Aws::SESV2
|
|
589
599
|
KinesisFirehoseDestination.add_member(:delivery_stream_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "DeliveryStreamArn"))
|
590
600
|
KinesisFirehoseDestination.struct_class = Types::KinesisFirehoseDestination
|
591
601
|
|
602
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
603
|
+
|
592
604
|
ListConfigurationSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
593
605
|
ListConfigurationSetsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: MaxItems, location: "querystring", location_name: "PageSize"))
|
594
606
|
ListConfigurationSetsRequest.struct_class = Types::ListConfigurationSetsRequest
|
@@ -656,16 +668,22 @@ module Aws::SESV2
|
|
656
668
|
MailFromAttributes.add_member(:behavior_on_mx_failure, Shapes::ShapeRef.new(shape: BehaviorOnMxFailure, required: true, location_name: "BehaviorOnMxFailure"))
|
657
669
|
MailFromAttributes.struct_class = Types::MailFromAttributes
|
658
670
|
|
671
|
+
MailFromDomainNotVerifiedException.struct_class = Types::MailFromDomainNotVerifiedException
|
672
|
+
|
659
673
|
Message.add_member(:subject, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "Subject"))
|
660
674
|
Message.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "Body"))
|
661
675
|
Message.struct_class = Types::Message
|
662
676
|
|
677
|
+
MessageRejected.struct_class = Types::MessageRejected
|
678
|
+
|
663
679
|
MessageTag.add_member(:name, Shapes::ShapeRef.new(shape: MessageTagName, required: true, location_name: "Name"))
|
664
680
|
MessageTag.add_member(:value, Shapes::ShapeRef.new(shape: MessageTagValue, required: true, location_name: "Value"))
|
665
681
|
MessageTag.struct_class = Types::MessageTag
|
666
682
|
|
667
683
|
MessageTagList.member = Shapes::ShapeRef.new(shape: MessageTag)
|
668
684
|
|
685
|
+
NotFoundException.struct_class = Types::NotFoundException
|
686
|
+
|
669
687
|
OverallVolume.add_member(:volume_statistics, Shapes::ShapeRef.new(shape: VolumeStatistics, location_name: "VolumeStatistics"))
|
670
688
|
OverallVolume.add_member(:read_rate_percent, Shapes::ShapeRef.new(shape: Percentage, location_name: "ReadRatePercent"))
|
671
689
|
OverallVolume.add_member(:domain_isp_placements, Shapes::ShapeRef.new(shape: DomainIspPlacements, location_name: "DomainIspPlacements"))
|
@@ -806,6 +824,8 @@ module Aws::SESV2
|
|
806
824
|
SendingOptions.add_member(:sending_enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "SendingEnabled"))
|
807
825
|
SendingOptions.struct_class = Types::SendingOptions
|
808
826
|
|
827
|
+
SendingPausedException.struct_class = Types::SendingPausedException
|
828
|
+
|
809
829
|
SnsDestination.add_member(:topic_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "TopicArn"))
|
810
830
|
SnsDestination.struct_class = Types::SnsDestination
|
811
831
|
|
@@ -852,6 +872,8 @@ module Aws::SESV2
|
|
852
872
|
Template.add_member(:template_data, Shapes::ShapeRef.new(shape: TemplateData, location_name: "TemplateData"))
|
853
873
|
Template.struct_class = Types::Template
|
854
874
|
|
875
|
+
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
876
|
+
|
855
877
|
TrackingOptions.add_member(:custom_redirect_domain, Shapes::ShapeRef.new(shape: CustomRedirectDomain, required: true, location_name: "CustomRedirectDomain"))
|
856
878
|
TrackingOptions.struct_class = Types::TrackingOptions
|
857
879
|
|
data/lib/aws-sdk-sesv2/errors.rb
CHANGED
@@ -6,9 +6,152 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::SESV2
|
9
|
+
|
10
|
+
# When SESV2 returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::SESV2::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all SESV2 errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::SESV2::Errors::ServiceError
|
18
|
+
# # rescues all SESV2 API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AccountSuspendedException}
|
29
|
+
# * {AlreadyExistsException}
|
30
|
+
# * {BadRequestException}
|
31
|
+
# * {ConcurrentModificationException}
|
32
|
+
# * {InvalidNextTokenException}
|
33
|
+
# * {LimitExceededException}
|
34
|
+
# * {MailFromDomainNotVerifiedException}
|
35
|
+
# * {MessageRejected}
|
36
|
+
# * {NotFoundException}
|
37
|
+
# * {SendingPausedException}
|
38
|
+
# * {TooManyRequestsException}
|
39
|
+
#
|
40
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
41
|
+
# if they are not defined above.
|
9
42
|
module Errors
|
10
43
|
|
11
44
|
extend Aws::Errors::DynamicErrors
|
12
45
|
|
46
|
+
class AccountSuspendedException < ServiceError
|
47
|
+
|
48
|
+
# @param [Seahorse::Client::RequestContext] context
|
49
|
+
# @param [String] message
|
50
|
+
# @param [Aws::SESV2::Types::AccountSuspendedException] data
|
51
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
52
|
+
super(context, message, data)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class AlreadyExistsException < ServiceError
|
57
|
+
|
58
|
+
# @param [Seahorse::Client::RequestContext] context
|
59
|
+
# @param [String] message
|
60
|
+
# @param [Aws::SESV2::Types::AlreadyExistsException] data
|
61
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
62
|
+
super(context, message, data)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class BadRequestException < ServiceError
|
67
|
+
|
68
|
+
# @param [Seahorse::Client::RequestContext] context
|
69
|
+
# @param [String] message
|
70
|
+
# @param [Aws::SESV2::Types::BadRequestException] data
|
71
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
72
|
+
super(context, message, data)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class ConcurrentModificationException < ServiceError
|
77
|
+
|
78
|
+
# @param [Seahorse::Client::RequestContext] context
|
79
|
+
# @param [String] message
|
80
|
+
# @param [Aws::SESV2::Types::ConcurrentModificationException] data
|
81
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
82
|
+
super(context, message, data)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
class InvalidNextTokenException < ServiceError
|
87
|
+
|
88
|
+
# @param [Seahorse::Client::RequestContext] context
|
89
|
+
# @param [String] message
|
90
|
+
# @param [Aws::SESV2::Types::InvalidNextTokenException] data
|
91
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
92
|
+
super(context, message, data)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
class LimitExceededException < ServiceError
|
97
|
+
|
98
|
+
# @param [Seahorse::Client::RequestContext] context
|
99
|
+
# @param [String] message
|
100
|
+
# @param [Aws::SESV2::Types::LimitExceededException] data
|
101
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
102
|
+
super(context, message, data)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
class MailFromDomainNotVerifiedException < ServiceError
|
107
|
+
|
108
|
+
# @param [Seahorse::Client::RequestContext] context
|
109
|
+
# @param [String] message
|
110
|
+
# @param [Aws::SESV2::Types::MailFromDomainNotVerifiedException] data
|
111
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
112
|
+
super(context, message, data)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
class MessageRejected < ServiceError
|
117
|
+
|
118
|
+
# @param [Seahorse::Client::RequestContext] context
|
119
|
+
# @param [String] message
|
120
|
+
# @param [Aws::SESV2::Types::MessageRejected] data
|
121
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
122
|
+
super(context, message, data)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class NotFoundException < ServiceError
|
127
|
+
|
128
|
+
# @param [Seahorse::Client::RequestContext] context
|
129
|
+
# @param [String] message
|
130
|
+
# @param [Aws::SESV2::Types::NotFoundException] data
|
131
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
132
|
+
super(context, message, data)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class SendingPausedException < ServiceError
|
137
|
+
|
138
|
+
# @param [Seahorse::Client::RequestContext] context
|
139
|
+
# @param [String] message
|
140
|
+
# @param [Aws::SESV2::Types::SendingPausedException] data
|
141
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
142
|
+
super(context, message, data)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
class TooManyRequestsException < ServiceError
|
147
|
+
|
148
|
+
# @param [Seahorse::Client::RequestContext] context
|
149
|
+
# @param [String] message
|
150
|
+
# @param [Aws::SESV2::Types::TooManyRequestsException] data
|
151
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
152
|
+
super(context, message, data)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
13
156
|
end
|
14
157
|
end
|
@@ -6,6 +6,13 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::SESV2
|
9
|
+
# This class provides a resource oriented interface for SESV2.
|
10
|
+
# To create a resource object:
|
11
|
+
# resource = Aws::SESV2::Resource.new(region: 'us-west-2')
|
12
|
+
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
+
# If you do not pass +:client+, a default client will be constructed.
|
14
|
+
# client = Aws::SESV2::Client.new(region: 'us-west-2')
|
15
|
+
# resource = Aws::SESV2::Resource.new(client: client)
|
9
16
|
class Resource
|
10
17
|
|
11
18
|
# @param options ({})
|
data/lib/aws-sdk-sesv2/types.rb
CHANGED
@@ -8,6 +8,25 @@
|
|
8
8
|
module Aws::SESV2
|
9
9
|
module Types
|
10
10
|
|
11
|
+
# The message can't be sent because the account's ability to send
|
12
|
+
# email has been permanently restricted.
|
13
|
+
#
|
14
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/AccountSuspendedException AWS API Documentation
|
15
|
+
#
|
16
|
+
class AccountSuspendedException < Aws::EmptyStructure; end
|
17
|
+
|
18
|
+
# The resource specified in your request already exists.
|
19
|
+
#
|
20
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/AlreadyExistsException AWS API Documentation
|
21
|
+
#
|
22
|
+
class AlreadyExistsException < Aws::EmptyStructure; end
|
23
|
+
|
24
|
+
# The input you provided is invalid.
|
25
|
+
#
|
26
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/BadRequestException AWS API Documentation
|
27
|
+
#
|
28
|
+
class BadRequestException < Aws::EmptyStructure; end
|
29
|
+
|
11
30
|
# An object that contains information about a blacklisting event that
|
12
31
|
# impacts one of the dedicated IP addresses that is associated with your
|
13
32
|
# account.
|
@@ -151,6 +170,12 @@ module Aws::SESV2
|
|
151
170
|
include Aws::Structure
|
152
171
|
end
|
153
172
|
|
173
|
+
# The resource is being modified by another operation or thread.
|
174
|
+
#
|
175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ConcurrentModificationException AWS API Documentation
|
176
|
+
#
|
177
|
+
class ConcurrentModificationException < Aws::EmptyStructure; end
|
178
|
+
|
154
179
|
# An object that represents the content of the email, and optionally a
|
155
180
|
# character set specification.
|
156
181
|
#
|
@@ -2172,6 +2197,12 @@ module Aws::SESV2
|
|
2172
2197
|
include Aws::Structure
|
2173
2198
|
end
|
2174
2199
|
|
2200
|
+
# The specified request includes an invalid or expired token.
|
2201
|
+
#
|
2202
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/InvalidNextTokenException AWS API Documentation
|
2203
|
+
#
|
2204
|
+
class InvalidNextTokenException < Aws::EmptyStructure; end
|
2205
|
+
|
2175
2206
|
# An object that describes how email sent during the predictive inbox
|
2176
2207
|
# placement test was handled by a certain email provider.
|
2177
2208
|
#
|
@@ -2224,6 +2255,12 @@ module Aws::SESV2
|
|
2224
2255
|
include Aws::Structure
|
2225
2256
|
end
|
2226
2257
|
|
2258
|
+
# There are too many instances of the specified resource type.
|
2259
|
+
#
|
2260
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/LimitExceededException AWS API Documentation
|
2261
|
+
#
|
2262
|
+
class LimitExceededException < Aws::EmptyStructure; end
|
2263
|
+
|
2227
2264
|
# A request to obtain a list of configuration sets for your Amazon SES
|
2228
2265
|
# account in the current AWS Region.
|
2229
2266
|
#
|
@@ -2687,6 +2724,12 @@ module Aws::SESV2
|
|
2687
2724
|
include Aws::Structure
|
2688
2725
|
end
|
2689
2726
|
|
2727
|
+
# The message can't be sent because the sending domain isn't verified.
|
2728
|
+
#
|
2729
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/MailFromDomainNotVerifiedException AWS API Documentation
|
2730
|
+
#
|
2731
|
+
class MailFromDomainNotVerifiedException < Aws::EmptyStructure; end
|
2732
|
+
|
2690
2733
|
# Represents the email message that you're sending. The `Message`
|
2691
2734
|
# object consists of a subject line and a message body.
|
2692
2735
|
#
|
@@ -2734,6 +2777,12 @@ module Aws::SESV2
|
|
2734
2777
|
include Aws::Structure
|
2735
2778
|
end
|
2736
2779
|
|
2780
|
+
# The message can't be sent because it contains invalid content.
|
2781
|
+
#
|
2782
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/MessageRejected AWS API Documentation
|
2783
|
+
#
|
2784
|
+
class MessageRejected < Aws::EmptyStructure; end
|
2785
|
+
|
2737
2786
|
# Contains the name and value of a tag that you apply to an email. You
|
2738
2787
|
# can use message tags when you publish email sending events.
|
2739
2788
|
#
|
@@ -2773,6 +2822,12 @@ module Aws::SESV2
|
|
2773
2822
|
include Aws::Structure
|
2774
2823
|
end
|
2775
2824
|
|
2825
|
+
# The resource you attempted to access doesn't exist.
|
2826
|
+
#
|
2827
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/NotFoundException AWS API Documentation
|
2828
|
+
#
|
2829
|
+
class NotFoundException < Aws::EmptyStructure; end
|
2830
|
+
|
2776
2831
|
# An object that contains information about email that was sent from the
|
2777
2832
|
# selected domain.
|
2778
2833
|
#
|
@@ -3842,6 +3897,13 @@ module Aws::SESV2
|
|
3842
3897
|
include Aws::Structure
|
3843
3898
|
end
|
3844
3899
|
|
3900
|
+
# The message can't be sent because the account's ability to send
|
3901
|
+
# email is currently paused.
|
3902
|
+
#
|
3903
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/SendingPausedException AWS API Documentation
|
3904
|
+
#
|
3905
|
+
class SendingPausedException < Aws::EmptyStructure; end
|
3906
|
+
|
3845
3907
|
# An object that defines an Amazon SNS destination for email events. You
|
3846
3908
|
# can use Amazon SNS to send notification when certain email events
|
3847
3909
|
# occur.
|
@@ -4134,6 +4196,12 @@ module Aws::SESV2
|
|
4134
4196
|
include Aws::Structure
|
4135
4197
|
end
|
4136
4198
|
|
4199
|
+
# Too many requests have been made to the operation.
|
4200
|
+
#
|
4201
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/TooManyRequestsException AWS API Documentation
|
4202
|
+
#
|
4203
|
+
class TooManyRequestsException < Aws::EmptyStructure; end
|
4204
|
+
|
4137
4205
|
# An object that defines the tracking options for a configuration set.
|
4138
4206
|
# When you use the Amazon SES API v2 to send an email, it contains an
|
4139
4207
|
# invisible image that's used to track when recipients open your email.
|
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.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|