aws-sdk-sesv2 1.28.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sesv2/client.rb +221 -3
- data/lib/aws-sdk-sesv2/client_api.rb +190 -0
- data/lib/aws-sdk-sesv2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-sesv2/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-sesv2/endpoints.rb +1219 -0
- data/lib/aws-sdk-sesv2/errors.rb +11 -0
- data/lib/aws-sdk-sesv2/plugins/endpoints.rb +240 -0
- data/lib/aws-sdk-sesv2/types.rb +627 -3
- data/lib/aws-sdk-sesv2.rb +6 -2
- metadata +8 -4
data/lib/aws-sdk-sesv2/errors.rb
CHANGED
@@ -32,6 +32,7 @@ module Aws::SESV2
|
|
32
32
|
# * {BadRequestException}
|
33
33
|
# * {ConcurrentModificationException}
|
34
34
|
# * {ConflictException}
|
35
|
+
# * {InternalServiceErrorException}
|
35
36
|
# * {InvalidNextTokenException}
|
36
37
|
# * {LimitExceededException}
|
37
38
|
# * {MailFromDomainNotVerifiedException}
|
@@ -96,6 +97,16 @@ module Aws::SESV2
|
|
96
97
|
end
|
97
98
|
end
|
98
99
|
|
100
|
+
class InternalServiceErrorException < ServiceError
|
101
|
+
|
102
|
+
# @param [Seahorse::Client::RequestContext] context
|
103
|
+
# @param [String] message
|
104
|
+
# @param [Aws::SESV2::Types::InternalServiceErrorException] data
|
105
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
106
|
+
super(context, message, data)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
99
110
|
class InvalidNextTokenException < ServiceError
|
100
111
|
|
101
112
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -0,0 +1,240 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SESV2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SESV2::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::SESV2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SESV2::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :batch_get_metric_data
|
60
|
+
Aws::SESV2::Endpoints::BatchGetMetricData.build(context)
|
61
|
+
when :create_configuration_set
|
62
|
+
Aws::SESV2::Endpoints::CreateConfigurationSet.build(context)
|
63
|
+
when :create_configuration_set_event_destination
|
64
|
+
Aws::SESV2::Endpoints::CreateConfigurationSetEventDestination.build(context)
|
65
|
+
when :create_contact
|
66
|
+
Aws::SESV2::Endpoints::CreateContact.build(context)
|
67
|
+
when :create_contact_list
|
68
|
+
Aws::SESV2::Endpoints::CreateContactList.build(context)
|
69
|
+
when :create_custom_verification_email_template
|
70
|
+
Aws::SESV2::Endpoints::CreateCustomVerificationEmailTemplate.build(context)
|
71
|
+
when :create_dedicated_ip_pool
|
72
|
+
Aws::SESV2::Endpoints::CreateDedicatedIpPool.build(context)
|
73
|
+
when :create_deliverability_test_report
|
74
|
+
Aws::SESV2::Endpoints::CreateDeliverabilityTestReport.build(context)
|
75
|
+
when :create_email_identity
|
76
|
+
Aws::SESV2::Endpoints::CreateEmailIdentity.build(context)
|
77
|
+
when :create_email_identity_policy
|
78
|
+
Aws::SESV2::Endpoints::CreateEmailIdentityPolicy.build(context)
|
79
|
+
when :create_email_template
|
80
|
+
Aws::SESV2::Endpoints::CreateEmailTemplate.build(context)
|
81
|
+
when :create_import_job
|
82
|
+
Aws::SESV2::Endpoints::CreateImportJob.build(context)
|
83
|
+
when :delete_configuration_set
|
84
|
+
Aws::SESV2::Endpoints::DeleteConfigurationSet.build(context)
|
85
|
+
when :delete_configuration_set_event_destination
|
86
|
+
Aws::SESV2::Endpoints::DeleteConfigurationSetEventDestination.build(context)
|
87
|
+
when :delete_contact
|
88
|
+
Aws::SESV2::Endpoints::DeleteContact.build(context)
|
89
|
+
when :delete_contact_list
|
90
|
+
Aws::SESV2::Endpoints::DeleteContactList.build(context)
|
91
|
+
when :delete_custom_verification_email_template
|
92
|
+
Aws::SESV2::Endpoints::DeleteCustomVerificationEmailTemplate.build(context)
|
93
|
+
when :delete_dedicated_ip_pool
|
94
|
+
Aws::SESV2::Endpoints::DeleteDedicatedIpPool.build(context)
|
95
|
+
when :delete_email_identity
|
96
|
+
Aws::SESV2::Endpoints::DeleteEmailIdentity.build(context)
|
97
|
+
when :delete_email_identity_policy
|
98
|
+
Aws::SESV2::Endpoints::DeleteEmailIdentityPolicy.build(context)
|
99
|
+
when :delete_email_template
|
100
|
+
Aws::SESV2::Endpoints::DeleteEmailTemplate.build(context)
|
101
|
+
when :delete_suppressed_destination
|
102
|
+
Aws::SESV2::Endpoints::DeleteSuppressedDestination.build(context)
|
103
|
+
when :get_account
|
104
|
+
Aws::SESV2::Endpoints::GetAccount.build(context)
|
105
|
+
when :get_blacklist_reports
|
106
|
+
Aws::SESV2::Endpoints::GetBlacklistReports.build(context)
|
107
|
+
when :get_configuration_set
|
108
|
+
Aws::SESV2::Endpoints::GetConfigurationSet.build(context)
|
109
|
+
when :get_configuration_set_event_destinations
|
110
|
+
Aws::SESV2::Endpoints::GetConfigurationSetEventDestinations.build(context)
|
111
|
+
when :get_contact
|
112
|
+
Aws::SESV2::Endpoints::GetContact.build(context)
|
113
|
+
when :get_contact_list
|
114
|
+
Aws::SESV2::Endpoints::GetContactList.build(context)
|
115
|
+
when :get_custom_verification_email_template
|
116
|
+
Aws::SESV2::Endpoints::GetCustomVerificationEmailTemplate.build(context)
|
117
|
+
when :get_dedicated_ip
|
118
|
+
Aws::SESV2::Endpoints::GetDedicatedIp.build(context)
|
119
|
+
when :get_dedicated_ip_pool
|
120
|
+
Aws::SESV2::Endpoints::GetDedicatedIpPool.build(context)
|
121
|
+
when :get_dedicated_ips
|
122
|
+
Aws::SESV2::Endpoints::GetDedicatedIps.build(context)
|
123
|
+
when :get_deliverability_dashboard_options
|
124
|
+
Aws::SESV2::Endpoints::GetDeliverabilityDashboardOptions.build(context)
|
125
|
+
when :get_deliverability_test_report
|
126
|
+
Aws::SESV2::Endpoints::GetDeliverabilityTestReport.build(context)
|
127
|
+
when :get_domain_deliverability_campaign
|
128
|
+
Aws::SESV2::Endpoints::GetDomainDeliverabilityCampaign.build(context)
|
129
|
+
when :get_domain_statistics_report
|
130
|
+
Aws::SESV2::Endpoints::GetDomainStatisticsReport.build(context)
|
131
|
+
when :get_email_identity
|
132
|
+
Aws::SESV2::Endpoints::GetEmailIdentity.build(context)
|
133
|
+
when :get_email_identity_policies
|
134
|
+
Aws::SESV2::Endpoints::GetEmailIdentityPolicies.build(context)
|
135
|
+
when :get_email_template
|
136
|
+
Aws::SESV2::Endpoints::GetEmailTemplate.build(context)
|
137
|
+
when :get_import_job
|
138
|
+
Aws::SESV2::Endpoints::GetImportJob.build(context)
|
139
|
+
when :get_suppressed_destination
|
140
|
+
Aws::SESV2::Endpoints::GetSuppressedDestination.build(context)
|
141
|
+
when :list_configuration_sets
|
142
|
+
Aws::SESV2::Endpoints::ListConfigurationSets.build(context)
|
143
|
+
when :list_contact_lists
|
144
|
+
Aws::SESV2::Endpoints::ListContactLists.build(context)
|
145
|
+
when :list_contacts
|
146
|
+
Aws::SESV2::Endpoints::ListContacts.build(context)
|
147
|
+
when :list_custom_verification_email_templates
|
148
|
+
Aws::SESV2::Endpoints::ListCustomVerificationEmailTemplates.build(context)
|
149
|
+
when :list_dedicated_ip_pools
|
150
|
+
Aws::SESV2::Endpoints::ListDedicatedIpPools.build(context)
|
151
|
+
when :list_deliverability_test_reports
|
152
|
+
Aws::SESV2::Endpoints::ListDeliverabilityTestReports.build(context)
|
153
|
+
when :list_domain_deliverability_campaigns
|
154
|
+
Aws::SESV2::Endpoints::ListDomainDeliverabilityCampaigns.build(context)
|
155
|
+
when :list_email_identities
|
156
|
+
Aws::SESV2::Endpoints::ListEmailIdentities.build(context)
|
157
|
+
when :list_email_templates
|
158
|
+
Aws::SESV2::Endpoints::ListEmailTemplates.build(context)
|
159
|
+
when :list_import_jobs
|
160
|
+
Aws::SESV2::Endpoints::ListImportJobs.build(context)
|
161
|
+
when :list_recommendations
|
162
|
+
Aws::SESV2::Endpoints::ListRecommendations.build(context)
|
163
|
+
when :list_suppressed_destinations
|
164
|
+
Aws::SESV2::Endpoints::ListSuppressedDestinations.build(context)
|
165
|
+
when :list_tags_for_resource
|
166
|
+
Aws::SESV2::Endpoints::ListTagsForResource.build(context)
|
167
|
+
when :put_account_dedicated_ip_warmup_attributes
|
168
|
+
Aws::SESV2::Endpoints::PutAccountDedicatedIpWarmupAttributes.build(context)
|
169
|
+
when :put_account_details
|
170
|
+
Aws::SESV2::Endpoints::PutAccountDetails.build(context)
|
171
|
+
when :put_account_sending_attributes
|
172
|
+
Aws::SESV2::Endpoints::PutAccountSendingAttributes.build(context)
|
173
|
+
when :put_account_suppression_attributes
|
174
|
+
Aws::SESV2::Endpoints::PutAccountSuppressionAttributes.build(context)
|
175
|
+
when :put_account_vdm_attributes
|
176
|
+
Aws::SESV2::Endpoints::PutAccountVdmAttributes.build(context)
|
177
|
+
when :put_configuration_set_delivery_options
|
178
|
+
Aws::SESV2::Endpoints::PutConfigurationSetDeliveryOptions.build(context)
|
179
|
+
when :put_configuration_set_reputation_options
|
180
|
+
Aws::SESV2::Endpoints::PutConfigurationSetReputationOptions.build(context)
|
181
|
+
when :put_configuration_set_sending_options
|
182
|
+
Aws::SESV2::Endpoints::PutConfigurationSetSendingOptions.build(context)
|
183
|
+
when :put_configuration_set_suppression_options
|
184
|
+
Aws::SESV2::Endpoints::PutConfigurationSetSuppressionOptions.build(context)
|
185
|
+
when :put_configuration_set_tracking_options
|
186
|
+
Aws::SESV2::Endpoints::PutConfigurationSetTrackingOptions.build(context)
|
187
|
+
when :put_configuration_set_vdm_options
|
188
|
+
Aws::SESV2::Endpoints::PutConfigurationSetVdmOptions.build(context)
|
189
|
+
when :put_dedicated_ip_in_pool
|
190
|
+
Aws::SESV2::Endpoints::PutDedicatedIpInPool.build(context)
|
191
|
+
when :put_dedicated_ip_warmup_attributes
|
192
|
+
Aws::SESV2::Endpoints::PutDedicatedIpWarmupAttributes.build(context)
|
193
|
+
when :put_deliverability_dashboard_option
|
194
|
+
Aws::SESV2::Endpoints::PutDeliverabilityDashboardOption.build(context)
|
195
|
+
when :put_email_identity_configuration_set_attributes
|
196
|
+
Aws::SESV2::Endpoints::PutEmailIdentityConfigurationSetAttributes.build(context)
|
197
|
+
when :put_email_identity_dkim_attributes
|
198
|
+
Aws::SESV2::Endpoints::PutEmailIdentityDkimAttributes.build(context)
|
199
|
+
when :put_email_identity_dkim_signing_attributes
|
200
|
+
Aws::SESV2::Endpoints::PutEmailIdentityDkimSigningAttributes.build(context)
|
201
|
+
when :put_email_identity_feedback_attributes
|
202
|
+
Aws::SESV2::Endpoints::PutEmailIdentityFeedbackAttributes.build(context)
|
203
|
+
when :put_email_identity_mail_from_attributes
|
204
|
+
Aws::SESV2::Endpoints::PutEmailIdentityMailFromAttributes.build(context)
|
205
|
+
when :put_suppressed_destination
|
206
|
+
Aws::SESV2::Endpoints::PutSuppressedDestination.build(context)
|
207
|
+
when :send_bulk_email
|
208
|
+
Aws::SESV2::Endpoints::SendBulkEmail.build(context)
|
209
|
+
when :send_custom_verification_email
|
210
|
+
Aws::SESV2::Endpoints::SendCustomVerificationEmail.build(context)
|
211
|
+
when :send_email
|
212
|
+
Aws::SESV2::Endpoints::SendEmail.build(context)
|
213
|
+
when :tag_resource
|
214
|
+
Aws::SESV2::Endpoints::TagResource.build(context)
|
215
|
+
when :test_render_email_template
|
216
|
+
Aws::SESV2::Endpoints::TestRenderEmailTemplate.build(context)
|
217
|
+
when :untag_resource
|
218
|
+
Aws::SESV2::Endpoints::UntagResource.build(context)
|
219
|
+
when :update_configuration_set_event_destination
|
220
|
+
Aws::SESV2::Endpoints::UpdateConfigurationSetEventDestination.build(context)
|
221
|
+
when :update_contact
|
222
|
+
Aws::SESV2::Endpoints::UpdateContact.build(context)
|
223
|
+
when :update_contact_list
|
224
|
+
Aws::SESV2::Endpoints::UpdateContactList.build(context)
|
225
|
+
when :update_custom_verification_email_template
|
226
|
+
Aws::SESV2::Endpoints::UpdateCustomVerificationEmailTemplate.build(context)
|
227
|
+
when :update_email_identity_policy
|
228
|
+
Aws::SESV2::Endpoints::UpdateEmailIdentityPolicy.build(context)
|
229
|
+
when :update_email_template
|
230
|
+
Aws::SESV2::Endpoints::UpdateEmailTemplate.build(context)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
def add_handlers(handlers, _config)
|
236
|
+
handlers.add(Handler, step: :build, priority: 75)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
end
|