aws-sdk-pinpointemail 1.16.0 → 1.21.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 +5 -5
- data/lib/aws-sdk-pinpointemail.rb +9 -4
- data/lib/aws-sdk-pinpointemail/client.rb +84 -14
- data/lib/aws-sdk-pinpointemail/client_api.rb +22 -0
- data/lib/aws-sdk-pinpointemail/errors.rb +134 -0
- data/lib/aws-sdk-pinpointemail/resource.rb +3 -0
- data/lib/aws-sdk-pinpointemail/types.rb +160 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f20b45adf7408cb8bfeafb278b14bd8af3cfa81ebcc67bad8092b536f83d59b
|
4
|
+
data.tar.gz: fb89d7159ef1738c2e09ae6e44a626f124879ad2b29692badfafbadf2ec68d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cd41c134cbaf64271c14632f4b0f7dd2fd77270b46664ef2d1f000920f9d3a1baf7e2f1b518162c22f820dd0c7735dd542d8c184a2df186d5b5f0ebc13f224f
|
7
|
+
data.tar.gz: f4286a44f6af9a9373ed7785d7337346aa01ea60a27124d51c4b20065108c167f7b9205189765587995efeaf7c56b78bb6897192a4375a278b33b89f9da8bd88
|
@@ -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-pinpointemail/customizations'
|
|
24
26
|
# methods each accept a hash of request parameters and return a response
|
25
27
|
# structure.
|
26
28
|
#
|
29
|
+
# pinpoint_email = Aws::PinpointEmail::Client.new
|
30
|
+
# resp = pinpoint_email.create_configuration_set(params)
|
31
|
+
#
|
27
32
|
# See {Client} for more information.
|
28
33
|
#
|
29
34
|
# # Errors
|
30
35
|
#
|
31
|
-
# Errors returned from Amazon Pinpoint Email Service
|
32
|
-
# extend {Errors::ServiceError}.
|
36
|
+
# Errors returned from Amazon Pinpoint 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::PinpointEmail::Errors::ServiceError
|
37
|
-
# # rescues all
|
42
|
+
# # rescues all Amazon Pinpoint Email Service API errors
|
38
43
|
# end
|
39
44
|
#
|
40
45
|
# See {Errors} for more information.
|
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-pinpointemail/customizations'
|
|
42
47
|
# @service
|
43
48
|
module Aws::PinpointEmail
|
44
49
|
|
45
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.21.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(:pinpointemail)
|
31
34
|
|
32
35
|
module Aws::PinpointEmail
|
36
|
+
# An API client for PinpointEmail. To construct a client, you need to configure a `:region` and `:credentials`.
|
37
|
+
#
|
38
|
+
# client = Aws::PinpointEmail::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::PinpointEmail
|
|
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::PinpointEmail
|
|
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
|
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::PinpointEmail
|
|
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::PinpointEmail
|
|
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::PinpointEmail
|
|
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
|
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::PinpointEmail
|
|
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.
|
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::PinpointEmail
|
|
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.
|
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::PinpointEmail
|
|
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
|
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)
|
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::PinpointEmail
|
|
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
|
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
|
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::PinpointEmail
|
|
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
|
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`.
|
@@ -896,6 +954,8 @@ module Aws::PinpointEmail
|
|
896
954
|
# * {Types::GetDedicatedIpsResponse#dedicated_ips #dedicated_ips} => Array<Types::DedicatedIp>
|
897
955
|
# * {Types::GetDedicatedIpsResponse#next_token #next_token} => String
|
898
956
|
#
|
957
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
958
|
+
#
|
899
959
|
# @example Request syntax with placeholder values
|
900
960
|
#
|
901
961
|
# resp = client.get_dedicated_ips({
|
@@ -1212,6 +1272,8 @@ module Aws::PinpointEmail
|
|
1212
1272
|
# * {Types::ListConfigurationSetsResponse#configuration_sets #configuration_sets} => Array<String>
|
1213
1273
|
# * {Types::ListConfigurationSetsResponse#next_token #next_token} => String
|
1214
1274
|
#
|
1275
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1276
|
+
#
|
1215
1277
|
# @example Request syntax with placeholder values
|
1216
1278
|
#
|
1217
1279
|
# resp = client.list_configuration_sets({
|
@@ -1252,6 +1314,8 @@ module Aws::PinpointEmail
|
|
1252
1314
|
# * {Types::ListDedicatedIpPoolsResponse#dedicated_ip_pools #dedicated_ip_pools} => Array<String>
|
1253
1315
|
# * {Types::ListDedicatedIpPoolsResponse#next_token #next_token} => String
|
1254
1316
|
#
|
1317
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1318
|
+
#
|
1255
1319
|
# @example Request syntax with placeholder values
|
1256
1320
|
#
|
1257
1321
|
# resp = client.list_dedicated_ip_pools({
|
@@ -1299,6 +1363,8 @@ module Aws::PinpointEmail
|
|
1299
1363
|
# * {Types::ListDeliverabilityTestReportsResponse#deliverability_test_reports #deliverability_test_reports} => Array<Types::DeliverabilityTestReport>
|
1300
1364
|
# * {Types::ListDeliverabilityTestReportsResponse#next_token #next_token} => String
|
1301
1365
|
#
|
1366
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1367
|
+
#
|
1302
1368
|
# @example Request syntax with placeholder values
|
1303
1369
|
#
|
1304
1370
|
# resp = client.list_deliverability_test_reports({
|
@@ -1361,6 +1427,8 @@ module Aws::PinpointEmail
|
|
1361
1427
|
# * {Types::ListDomainDeliverabilityCampaignsResponse#domain_deliverability_campaigns #domain_deliverability_campaigns} => Array<Types::DomainDeliverabilityCampaign>
|
1362
1428
|
# * {Types::ListDomainDeliverabilityCampaignsResponse#next_token #next_token} => String
|
1363
1429
|
#
|
1430
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1431
|
+
#
|
1364
1432
|
# @example Request syntax with placeholder values
|
1365
1433
|
#
|
1366
1434
|
# resp = client.list_domain_deliverability_campaigns({
|
@@ -1424,6 +1492,8 @@ module Aws::PinpointEmail
|
|
1424
1492
|
# * {Types::ListEmailIdentitiesResponse#email_identities #email_identities} => Array<Types::IdentityInfo>
|
1425
1493
|
# * {Types::ListEmailIdentitiesResponse#next_token #next_token} => String
|
1426
1494
|
#
|
1495
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1496
|
+
#
|
1427
1497
|
# @example Request syntax with placeholder values
|
1428
1498
|
#
|
1429
1499
|
# resp = client.list_email_identities({
|
@@ -2170,7 +2240,7 @@ module Aws::PinpointEmail
|
|
2170
2240
|
params: params,
|
2171
2241
|
config: config)
|
2172
2242
|
context[:gem_name] = 'aws-sdk-pinpointemail'
|
2173
|
-
context[:gem_version] = '1.
|
2243
|
+
context[:gem_version] = '1.21.0'
|
2174
2244
|
Seahorse::Client::Request.new(handlers, context)
|
2175
2245
|
end
|
2176
2246
|
|
@@ -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:
|
@@ -224,6 +226,12 @@ module Aws::PinpointEmail
|
|
224
226
|
VolumeStatistics = Shapes::StructureShape.new(name: 'VolumeStatistics')
|
225
227
|
WarmupStatus = Shapes::StringShape.new(name: 'WarmupStatus')
|
226
228
|
|
229
|
+
AccountSuspendedException.struct_class = Types::AccountSuspendedException
|
230
|
+
|
231
|
+
AlreadyExistsException.struct_class = Types::AlreadyExistsException
|
232
|
+
|
233
|
+
BadRequestException.struct_class = Types::BadRequestException
|
234
|
+
|
227
235
|
BlacklistEntries.member = Shapes::ShapeRef.new(shape: BlacklistEntry)
|
228
236
|
|
229
237
|
BlacklistEntry.add_member(:rbl_name, Shapes::ShapeRef.new(shape: RblName, location_name: "RblName"))
|
@@ -250,6 +258,8 @@ module Aws::PinpointEmail
|
|
250
258
|
|
251
259
|
CloudWatchDimensionConfigurations.member = Shapes::ShapeRef.new(shape: CloudWatchDimensionConfiguration)
|
252
260
|
|
261
|
+
ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
|
262
|
+
|
253
263
|
ConfigurationSetNameList.member = Shapes::ShapeRef.new(shape: ConfigurationSetName)
|
254
264
|
|
255
265
|
Content.add_member(:data, Shapes::ShapeRef.new(shape: MessageData, required: true, location_name: "Data"))
|
@@ -541,6 +551,8 @@ module Aws::PinpointEmail
|
|
541
551
|
KinesisFirehoseDestination.add_member(:delivery_stream_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "DeliveryStreamArn"))
|
542
552
|
KinesisFirehoseDestination.struct_class = Types::KinesisFirehoseDestination
|
543
553
|
|
554
|
+
LimitExceededException.struct_class = Types::LimitExceededException
|
555
|
+
|
544
556
|
ListConfigurationSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
545
557
|
ListConfigurationSetsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: MaxItems, location: "querystring", location_name: "PageSize"))
|
546
558
|
ListConfigurationSetsRequest.struct_class = Types::ListConfigurationSetsRequest
|
@@ -597,16 +609,22 @@ module Aws::PinpointEmail
|
|
597
609
|
MailFromAttributes.add_member(:behavior_on_mx_failure, Shapes::ShapeRef.new(shape: BehaviorOnMxFailure, required: true, location_name: "BehaviorOnMxFailure"))
|
598
610
|
MailFromAttributes.struct_class = Types::MailFromAttributes
|
599
611
|
|
612
|
+
MailFromDomainNotVerifiedException.struct_class = Types::MailFromDomainNotVerifiedException
|
613
|
+
|
600
614
|
Message.add_member(:subject, Shapes::ShapeRef.new(shape: Content, required: true, location_name: "Subject"))
|
601
615
|
Message.add_member(:body, Shapes::ShapeRef.new(shape: Body, required: true, location_name: "Body"))
|
602
616
|
Message.struct_class = Types::Message
|
603
617
|
|
618
|
+
MessageRejected.struct_class = Types::MessageRejected
|
619
|
+
|
604
620
|
MessageTag.add_member(:name, Shapes::ShapeRef.new(shape: MessageTagName, required: true, location_name: "Name"))
|
605
621
|
MessageTag.add_member(:value, Shapes::ShapeRef.new(shape: MessageTagValue, required: true, location_name: "Value"))
|
606
622
|
MessageTag.struct_class = Types::MessageTag
|
607
623
|
|
608
624
|
MessageTagList.member = Shapes::ShapeRef.new(shape: MessageTag)
|
609
625
|
|
626
|
+
NotFoundException.struct_class = Types::NotFoundException
|
627
|
+
|
610
628
|
OverallVolume.add_member(:volume_statistics, Shapes::ShapeRef.new(shape: VolumeStatistics, location_name: "VolumeStatistics"))
|
611
629
|
OverallVolume.add_member(:read_rate_percent, Shapes::ShapeRef.new(shape: Percentage, location_name: "ReadRatePercent"))
|
612
630
|
OverallVolume.add_member(:domain_isp_placements, Shapes::ShapeRef.new(shape: DomainIspPlacements, location_name: "DomainIspPlacements"))
|
@@ -721,6 +739,8 @@ module Aws::PinpointEmail
|
|
721
739
|
SendingOptions.add_member(:sending_enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "SendingEnabled"))
|
722
740
|
SendingOptions.struct_class = Types::SendingOptions
|
723
741
|
|
742
|
+
SendingPausedException.struct_class = Types::SendingPausedException
|
743
|
+
|
724
744
|
SnsDestination.add_member(:topic_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "TopicArn"))
|
725
745
|
SnsDestination.struct_class = Types::SnsDestination
|
726
746
|
|
@@ -742,6 +762,8 @@ module Aws::PinpointEmail
|
|
742
762
|
Template.add_member(:template_data, Shapes::ShapeRef.new(shape: TemplateData, location_name: "TemplateData"))
|
743
763
|
Template.struct_class = Types::Template
|
744
764
|
|
765
|
+
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
766
|
+
|
745
767
|
TrackingOptions.add_member(:custom_redirect_domain, Shapes::ShapeRef.new(shape: CustomRedirectDomain, required: true, location_name: "CustomRedirectDomain"))
|
746
768
|
TrackingOptions.struct_class = Types::TrackingOptions
|
747
769
|
|
@@ -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,141 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::PinpointEmail
|
11
|
+
|
12
|
+
# When PinpointEmail returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::PinpointEmail::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all PinpointEmail errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::PinpointEmail::Errors::ServiceError
|
20
|
+
# # rescues all PinpointEmail 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
|
+
# * {LimitExceededException}
|
35
|
+
# * {MailFromDomainNotVerifiedException}
|
36
|
+
# * {MessageRejected}
|
37
|
+
# * {NotFoundException}
|
38
|
+
# * {SendingPausedException}
|
39
|
+
# * {TooManyRequestsException}
|
40
|
+
#
|
41
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
42
|
+
# if they are not defined above.
|
9
43
|
module Errors
|
10
44
|
|
11
45
|
extend Aws::Errors::DynamicErrors
|
12
46
|
|
47
|
+
class AccountSuspendedException < ServiceError
|
48
|
+
|
49
|
+
# @param [Seahorse::Client::RequestContext] context
|
50
|
+
# @param [String] message
|
51
|
+
# @param [Aws::PinpointEmail::Types::AccountSuspendedException] data
|
52
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
53
|
+
super(context, message, data)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class AlreadyExistsException < ServiceError
|
58
|
+
|
59
|
+
# @param [Seahorse::Client::RequestContext] context
|
60
|
+
# @param [String] message
|
61
|
+
# @param [Aws::PinpointEmail::Types::AlreadyExistsException] data
|
62
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
63
|
+
super(context, message, data)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class BadRequestException < ServiceError
|
68
|
+
|
69
|
+
# @param [Seahorse::Client::RequestContext] context
|
70
|
+
# @param [String] message
|
71
|
+
# @param [Aws::PinpointEmail::Types::BadRequestException] data
|
72
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
73
|
+
super(context, message, data)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
class ConcurrentModificationException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::PinpointEmail::Types::ConcurrentModificationException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
class LimitExceededException < ServiceError
|
88
|
+
|
89
|
+
# @param [Seahorse::Client::RequestContext] context
|
90
|
+
# @param [String] message
|
91
|
+
# @param [Aws::PinpointEmail::Types::LimitExceededException] data
|
92
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
93
|
+
super(context, message, data)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class MailFromDomainNotVerifiedException < ServiceError
|
98
|
+
|
99
|
+
# @param [Seahorse::Client::RequestContext] context
|
100
|
+
# @param [String] message
|
101
|
+
# @param [Aws::PinpointEmail::Types::MailFromDomainNotVerifiedException] data
|
102
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
103
|
+
super(context, message, data)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class MessageRejected < ServiceError
|
108
|
+
|
109
|
+
# @param [Seahorse::Client::RequestContext] context
|
110
|
+
# @param [String] message
|
111
|
+
# @param [Aws::PinpointEmail::Types::MessageRejected] data
|
112
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
113
|
+
super(context, message, data)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class NotFoundException < ServiceError
|
118
|
+
|
119
|
+
# @param [Seahorse::Client::RequestContext] context
|
120
|
+
# @param [String] message
|
121
|
+
# @param [Aws::PinpointEmail::Types::NotFoundException] data
|
122
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
123
|
+
super(context, message, data)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class SendingPausedException < ServiceError
|
128
|
+
|
129
|
+
# @param [Seahorse::Client::RequestContext] context
|
130
|
+
# @param [String] message
|
131
|
+
# @param [Aws::PinpointEmail::Types::SendingPausedException] data
|
132
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
133
|
+
super(context, message, data)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
class TooManyRequestsException < ServiceError
|
138
|
+
|
139
|
+
# @param [Seahorse::Client::RequestContext] context
|
140
|
+
# @param [String] message
|
141
|
+
# @param [Aws::PinpointEmail::Types::TooManyRequestsException] data
|
142
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
143
|
+
super(context, message, data)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
13
147
|
end
|
14
148
|
end
|