aws-sdk-sesv2 1.28.0 → 1.29.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.
@@ -0,0 +1,232 @@
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 :create_configuration_set
60
+ Aws::SESV2::Endpoints::CreateConfigurationSet.build(context)
61
+ when :create_configuration_set_event_destination
62
+ Aws::SESV2::Endpoints::CreateConfigurationSetEventDestination.build(context)
63
+ when :create_contact
64
+ Aws::SESV2::Endpoints::CreateContact.build(context)
65
+ when :create_contact_list
66
+ Aws::SESV2::Endpoints::CreateContactList.build(context)
67
+ when :create_custom_verification_email_template
68
+ Aws::SESV2::Endpoints::CreateCustomVerificationEmailTemplate.build(context)
69
+ when :create_dedicated_ip_pool
70
+ Aws::SESV2::Endpoints::CreateDedicatedIpPool.build(context)
71
+ when :create_deliverability_test_report
72
+ Aws::SESV2::Endpoints::CreateDeliverabilityTestReport.build(context)
73
+ when :create_email_identity
74
+ Aws::SESV2::Endpoints::CreateEmailIdentity.build(context)
75
+ when :create_email_identity_policy
76
+ Aws::SESV2::Endpoints::CreateEmailIdentityPolicy.build(context)
77
+ when :create_email_template
78
+ Aws::SESV2::Endpoints::CreateEmailTemplate.build(context)
79
+ when :create_import_job
80
+ Aws::SESV2::Endpoints::CreateImportJob.build(context)
81
+ when :delete_configuration_set
82
+ Aws::SESV2::Endpoints::DeleteConfigurationSet.build(context)
83
+ when :delete_configuration_set_event_destination
84
+ Aws::SESV2::Endpoints::DeleteConfigurationSetEventDestination.build(context)
85
+ when :delete_contact
86
+ Aws::SESV2::Endpoints::DeleteContact.build(context)
87
+ when :delete_contact_list
88
+ Aws::SESV2::Endpoints::DeleteContactList.build(context)
89
+ when :delete_custom_verification_email_template
90
+ Aws::SESV2::Endpoints::DeleteCustomVerificationEmailTemplate.build(context)
91
+ when :delete_dedicated_ip_pool
92
+ Aws::SESV2::Endpoints::DeleteDedicatedIpPool.build(context)
93
+ when :delete_email_identity
94
+ Aws::SESV2::Endpoints::DeleteEmailIdentity.build(context)
95
+ when :delete_email_identity_policy
96
+ Aws::SESV2::Endpoints::DeleteEmailIdentityPolicy.build(context)
97
+ when :delete_email_template
98
+ Aws::SESV2::Endpoints::DeleteEmailTemplate.build(context)
99
+ when :delete_suppressed_destination
100
+ Aws::SESV2::Endpoints::DeleteSuppressedDestination.build(context)
101
+ when :get_account
102
+ Aws::SESV2::Endpoints::GetAccount.build(context)
103
+ when :get_blacklist_reports
104
+ Aws::SESV2::Endpoints::GetBlacklistReports.build(context)
105
+ when :get_configuration_set
106
+ Aws::SESV2::Endpoints::GetConfigurationSet.build(context)
107
+ when :get_configuration_set_event_destinations
108
+ Aws::SESV2::Endpoints::GetConfigurationSetEventDestinations.build(context)
109
+ when :get_contact
110
+ Aws::SESV2::Endpoints::GetContact.build(context)
111
+ when :get_contact_list
112
+ Aws::SESV2::Endpoints::GetContactList.build(context)
113
+ when :get_custom_verification_email_template
114
+ Aws::SESV2::Endpoints::GetCustomVerificationEmailTemplate.build(context)
115
+ when :get_dedicated_ip
116
+ Aws::SESV2::Endpoints::GetDedicatedIp.build(context)
117
+ when :get_dedicated_ip_pool
118
+ Aws::SESV2::Endpoints::GetDedicatedIpPool.build(context)
119
+ when :get_dedicated_ips
120
+ Aws::SESV2::Endpoints::GetDedicatedIps.build(context)
121
+ when :get_deliverability_dashboard_options
122
+ Aws::SESV2::Endpoints::GetDeliverabilityDashboardOptions.build(context)
123
+ when :get_deliverability_test_report
124
+ Aws::SESV2::Endpoints::GetDeliverabilityTestReport.build(context)
125
+ when :get_domain_deliverability_campaign
126
+ Aws::SESV2::Endpoints::GetDomainDeliverabilityCampaign.build(context)
127
+ when :get_domain_statistics_report
128
+ Aws::SESV2::Endpoints::GetDomainStatisticsReport.build(context)
129
+ when :get_email_identity
130
+ Aws::SESV2::Endpoints::GetEmailIdentity.build(context)
131
+ when :get_email_identity_policies
132
+ Aws::SESV2::Endpoints::GetEmailIdentityPolicies.build(context)
133
+ when :get_email_template
134
+ Aws::SESV2::Endpoints::GetEmailTemplate.build(context)
135
+ when :get_import_job
136
+ Aws::SESV2::Endpoints::GetImportJob.build(context)
137
+ when :get_suppressed_destination
138
+ Aws::SESV2::Endpoints::GetSuppressedDestination.build(context)
139
+ when :list_configuration_sets
140
+ Aws::SESV2::Endpoints::ListConfigurationSets.build(context)
141
+ when :list_contact_lists
142
+ Aws::SESV2::Endpoints::ListContactLists.build(context)
143
+ when :list_contacts
144
+ Aws::SESV2::Endpoints::ListContacts.build(context)
145
+ when :list_custom_verification_email_templates
146
+ Aws::SESV2::Endpoints::ListCustomVerificationEmailTemplates.build(context)
147
+ when :list_dedicated_ip_pools
148
+ Aws::SESV2::Endpoints::ListDedicatedIpPools.build(context)
149
+ when :list_deliverability_test_reports
150
+ Aws::SESV2::Endpoints::ListDeliverabilityTestReports.build(context)
151
+ when :list_domain_deliverability_campaigns
152
+ Aws::SESV2::Endpoints::ListDomainDeliverabilityCampaigns.build(context)
153
+ when :list_email_identities
154
+ Aws::SESV2::Endpoints::ListEmailIdentities.build(context)
155
+ when :list_email_templates
156
+ Aws::SESV2::Endpoints::ListEmailTemplates.build(context)
157
+ when :list_import_jobs
158
+ Aws::SESV2::Endpoints::ListImportJobs.build(context)
159
+ when :list_suppressed_destinations
160
+ Aws::SESV2::Endpoints::ListSuppressedDestinations.build(context)
161
+ when :list_tags_for_resource
162
+ Aws::SESV2::Endpoints::ListTagsForResource.build(context)
163
+ when :put_account_dedicated_ip_warmup_attributes
164
+ Aws::SESV2::Endpoints::PutAccountDedicatedIpWarmupAttributes.build(context)
165
+ when :put_account_details
166
+ Aws::SESV2::Endpoints::PutAccountDetails.build(context)
167
+ when :put_account_sending_attributes
168
+ Aws::SESV2::Endpoints::PutAccountSendingAttributes.build(context)
169
+ when :put_account_suppression_attributes
170
+ Aws::SESV2::Endpoints::PutAccountSuppressionAttributes.build(context)
171
+ when :put_configuration_set_delivery_options
172
+ Aws::SESV2::Endpoints::PutConfigurationSetDeliveryOptions.build(context)
173
+ when :put_configuration_set_reputation_options
174
+ Aws::SESV2::Endpoints::PutConfigurationSetReputationOptions.build(context)
175
+ when :put_configuration_set_sending_options
176
+ Aws::SESV2::Endpoints::PutConfigurationSetSendingOptions.build(context)
177
+ when :put_configuration_set_suppression_options
178
+ Aws::SESV2::Endpoints::PutConfigurationSetSuppressionOptions.build(context)
179
+ when :put_configuration_set_tracking_options
180
+ Aws::SESV2::Endpoints::PutConfigurationSetTrackingOptions.build(context)
181
+ when :put_dedicated_ip_in_pool
182
+ Aws::SESV2::Endpoints::PutDedicatedIpInPool.build(context)
183
+ when :put_dedicated_ip_warmup_attributes
184
+ Aws::SESV2::Endpoints::PutDedicatedIpWarmupAttributes.build(context)
185
+ when :put_deliverability_dashboard_option
186
+ Aws::SESV2::Endpoints::PutDeliverabilityDashboardOption.build(context)
187
+ when :put_email_identity_configuration_set_attributes
188
+ Aws::SESV2::Endpoints::PutEmailIdentityConfigurationSetAttributes.build(context)
189
+ when :put_email_identity_dkim_attributes
190
+ Aws::SESV2::Endpoints::PutEmailIdentityDkimAttributes.build(context)
191
+ when :put_email_identity_dkim_signing_attributes
192
+ Aws::SESV2::Endpoints::PutEmailIdentityDkimSigningAttributes.build(context)
193
+ when :put_email_identity_feedback_attributes
194
+ Aws::SESV2::Endpoints::PutEmailIdentityFeedbackAttributes.build(context)
195
+ when :put_email_identity_mail_from_attributes
196
+ Aws::SESV2::Endpoints::PutEmailIdentityMailFromAttributes.build(context)
197
+ when :put_suppressed_destination
198
+ Aws::SESV2::Endpoints::PutSuppressedDestination.build(context)
199
+ when :send_bulk_email
200
+ Aws::SESV2::Endpoints::SendBulkEmail.build(context)
201
+ when :send_custom_verification_email
202
+ Aws::SESV2::Endpoints::SendCustomVerificationEmail.build(context)
203
+ when :send_email
204
+ Aws::SESV2::Endpoints::SendEmail.build(context)
205
+ when :tag_resource
206
+ Aws::SESV2::Endpoints::TagResource.build(context)
207
+ when :test_render_email_template
208
+ Aws::SESV2::Endpoints::TestRenderEmailTemplate.build(context)
209
+ when :untag_resource
210
+ Aws::SESV2::Endpoints::UntagResource.build(context)
211
+ when :update_configuration_set_event_destination
212
+ Aws::SESV2::Endpoints::UpdateConfigurationSetEventDestination.build(context)
213
+ when :update_contact
214
+ Aws::SESV2::Endpoints::UpdateContact.build(context)
215
+ when :update_contact_list
216
+ Aws::SESV2::Endpoints::UpdateContactList.build(context)
217
+ when :update_custom_verification_email_template
218
+ Aws::SESV2::Endpoints::UpdateCustomVerificationEmailTemplate.build(context)
219
+ when :update_email_identity_policy
220
+ Aws::SESV2::Endpoints::UpdateEmailIdentityPolicy.build(context)
221
+ when :update_email_template
222
+ Aws::SESV2::Endpoints::UpdateEmailTemplate.build(context)
223
+ end
224
+ end
225
+ end
226
+
227
+ def add_handlers(handlers, _config)
228
+ handlers.add(Handler, step: :build, priority: 75)
229
+ end
230
+ end
231
+ end
232
+ end
data/lib/aws-sdk-sesv2.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-sesv2/types'
15
15
  require_relative 'aws-sdk-sesv2/client_api'
16
+ require_relative 'aws-sdk-sesv2/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-sesv2/client'
17
18
  require_relative 'aws-sdk-sesv2/errors'
18
19
  require_relative 'aws-sdk-sesv2/resource'
20
+ require_relative 'aws-sdk-sesv2/endpoint_parameters'
21
+ require_relative 'aws-sdk-sesv2/endpoint_provider'
22
+ require_relative 'aws-sdk-sesv2/endpoints'
19
23
  require_relative 'aws-sdk-sesv2/customizations'
20
24
 
21
25
  # This module provides support for Amazon Simple Email Service. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-sesv2/customizations'
48
52
  # @!group service
49
53
  module Aws::SESV2
50
54
 
51
- GEM_VERSION = '1.28.0'
55
+ GEM_VERSION = '1.29.0'
52
56
 
53
57
  end
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.28.0
4
+ version: 1.29.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: 2022-10-18 00:00:00.000000000 Z
11
+ date: 2022-10-25 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-sesv2/client.rb
60
60
  - lib/aws-sdk-sesv2/client_api.rb
61
61
  - lib/aws-sdk-sesv2/customizations.rb
62
+ - lib/aws-sdk-sesv2/endpoint_parameters.rb
63
+ - lib/aws-sdk-sesv2/endpoint_provider.rb
64
+ - lib/aws-sdk-sesv2/endpoints.rb
62
65
  - lib/aws-sdk-sesv2/errors.rb
66
+ - lib/aws-sdk-sesv2/plugins/endpoints.rb
63
67
  - lib/aws-sdk-sesv2/resource.rb
64
68
  - lib/aws-sdk-sesv2/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby