aws-sdk-ses 1.47.0 → 1.48.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,210 @@
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::SES
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::SES::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::SES::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::SES::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 :clone_receipt_rule_set
60
+ Aws::SES::Endpoints::CloneReceiptRuleSet.build(context)
61
+ when :create_configuration_set
62
+ Aws::SES::Endpoints::CreateConfigurationSet.build(context)
63
+ when :create_configuration_set_event_destination
64
+ Aws::SES::Endpoints::CreateConfigurationSetEventDestination.build(context)
65
+ when :create_configuration_set_tracking_options
66
+ Aws::SES::Endpoints::CreateConfigurationSetTrackingOptions.build(context)
67
+ when :create_custom_verification_email_template
68
+ Aws::SES::Endpoints::CreateCustomVerificationEmailTemplate.build(context)
69
+ when :create_receipt_filter
70
+ Aws::SES::Endpoints::CreateReceiptFilter.build(context)
71
+ when :create_receipt_rule
72
+ Aws::SES::Endpoints::CreateReceiptRule.build(context)
73
+ when :create_receipt_rule_set
74
+ Aws::SES::Endpoints::CreateReceiptRuleSet.build(context)
75
+ when :create_template
76
+ Aws::SES::Endpoints::CreateTemplate.build(context)
77
+ when :delete_configuration_set
78
+ Aws::SES::Endpoints::DeleteConfigurationSet.build(context)
79
+ when :delete_configuration_set_event_destination
80
+ Aws::SES::Endpoints::DeleteConfigurationSetEventDestination.build(context)
81
+ when :delete_configuration_set_tracking_options
82
+ Aws::SES::Endpoints::DeleteConfigurationSetTrackingOptions.build(context)
83
+ when :delete_custom_verification_email_template
84
+ Aws::SES::Endpoints::DeleteCustomVerificationEmailTemplate.build(context)
85
+ when :delete_identity
86
+ Aws::SES::Endpoints::DeleteIdentity.build(context)
87
+ when :delete_identity_policy
88
+ Aws::SES::Endpoints::DeleteIdentityPolicy.build(context)
89
+ when :delete_receipt_filter
90
+ Aws::SES::Endpoints::DeleteReceiptFilter.build(context)
91
+ when :delete_receipt_rule
92
+ Aws::SES::Endpoints::DeleteReceiptRule.build(context)
93
+ when :delete_receipt_rule_set
94
+ Aws::SES::Endpoints::DeleteReceiptRuleSet.build(context)
95
+ when :delete_template
96
+ Aws::SES::Endpoints::DeleteTemplate.build(context)
97
+ when :delete_verified_email_address
98
+ Aws::SES::Endpoints::DeleteVerifiedEmailAddress.build(context)
99
+ when :describe_active_receipt_rule_set
100
+ Aws::SES::Endpoints::DescribeActiveReceiptRuleSet.build(context)
101
+ when :describe_configuration_set
102
+ Aws::SES::Endpoints::DescribeConfigurationSet.build(context)
103
+ when :describe_receipt_rule
104
+ Aws::SES::Endpoints::DescribeReceiptRule.build(context)
105
+ when :describe_receipt_rule_set
106
+ Aws::SES::Endpoints::DescribeReceiptRuleSet.build(context)
107
+ when :get_account_sending_enabled
108
+ Aws::SES::Endpoints::GetAccountSendingEnabled.build(context)
109
+ when :get_custom_verification_email_template
110
+ Aws::SES::Endpoints::GetCustomVerificationEmailTemplate.build(context)
111
+ when :get_identity_dkim_attributes
112
+ Aws::SES::Endpoints::GetIdentityDkimAttributes.build(context)
113
+ when :get_identity_mail_from_domain_attributes
114
+ Aws::SES::Endpoints::GetIdentityMailFromDomainAttributes.build(context)
115
+ when :get_identity_notification_attributes
116
+ Aws::SES::Endpoints::GetIdentityNotificationAttributes.build(context)
117
+ when :get_identity_policies
118
+ Aws::SES::Endpoints::GetIdentityPolicies.build(context)
119
+ when :get_identity_verification_attributes
120
+ Aws::SES::Endpoints::GetIdentityVerificationAttributes.build(context)
121
+ when :get_send_quota
122
+ Aws::SES::Endpoints::GetSendQuota.build(context)
123
+ when :get_send_statistics
124
+ Aws::SES::Endpoints::GetSendStatistics.build(context)
125
+ when :get_template
126
+ Aws::SES::Endpoints::GetTemplate.build(context)
127
+ when :list_configuration_sets
128
+ Aws::SES::Endpoints::ListConfigurationSets.build(context)
129
+ when :list_custom_verification_email_templates
130
+ Aws::SES::Endpoints::ListCustomVerificationEmailTemplates.build(context)
131
+ when :list_identities
132
+ Aws::SES::Endpoints::ListIdentities.build(context)
133
+ when :list_identity_policies
134
+ Aws::SES::Endpoints::ListIdentityPolicies.build(context)
135
+ when :list_receipt_filters
136
+ Aws::SES::Endpoints::ListReceiptFilters.build(context)
137
+ when :list_receipt_rule_sets
138
+ Aws::SES::Endpoints::ListReceiptRuleSets.build(context)
139
+ when :list_templates
140
+ Aws::SES::Endpoints::ListTemplates.build(context)
141
+ when :list_verified_email_addresses
142
+ Aws::SES::Endpoints::ListVerifiedEmailAddresses.build(context)
143
+ when :put_configuration_set_delivery_options
144
+ Aws::SES::Endpoints::PutConfigurationSetDeliveryOptions.build(context)
145
+ when :put_identity_policy
146
+ Aws::SES::Endpoints::PutIdentityPolicy.build(context)
147
+ when :reorder_receipt_rule_set
148
+ Aws::SES::Endpoints::ReorderReceiptRuleSet.build(context)
149
+ when :send_bounce
150
+ Aws::SES::Endpoints::SendBounce.build(context)
151
+ when :send_bulk_templated_email
152
+ Aws::SES::Endpoints::SendBulkTemplatedEmail.build(context)
153
+ when :send_custom_verification_email
154
+ Aws::SES::Endpoints::SendCustomVerificationEmail.build(context)
155
+ when :send_email
156
+ Aws::SES::Endpoints::SendEmail.build(context)
157
+ when :send_raw_email
158
+ Aws::SES::Endpoints::SendRawEmail.build(context)
159
+ when :send_templated_email
160
+ Aws::SES::Endpoints::SendTemplatedEmail.build(context)
161
+ when :set_active_receipt_rule_set
162
+ Aws::SES::Endpoints::SetActiveReceiptRuleSet.build(context)
163
+ when :set_identity_dkim_enabled
164
+ Aws::SES::Endpoints::SetIdentityDkimEnabled.build(context)
165
+ when :set_identity_feedback_forwarding_enabled
166
+ Aws::SES::Endpoints::SetIdentityFeedbackForwardingEnabled.build(context)
167
+ when :set_identity_headers_in_notifications_enabled
168
+ Aws::SES::Endpoints::SetIdentityHeadersInNotificationsEnabled.build(context)
169
+ when :set_identity_mail_from_domain
170
+ Aws::SES::Endpoints::SetIdentityMailFromDomain.build(context)
171
+ when :set_identity_notification_topic
172
+ Aws::SES::Endpoints::SetIdentityNotificationTopic.build(context)
173
+ when :set_receipt_rule_position
174
+ Aws::SES::Endpoints::SetReceiptRulePosition.build(context)
175
+ when :test_render_template
176
+ Aws::SES::Endpoints::TestRenderTemplate.build(context)
177
+ when :update_account_sending_enabled
178
+ Aws::SES::Endpoints::UpdateAccountSendingEnabled.build(context)
179
+ when :update_configuration_set_event_destination
180
+ Aws::SES::Endpoints::UpdateConfigurationSetEventDestination.build(context)
181
+ when :update_configuration_set_reputation_metrics_enabled
182
+ Aws::SES::Endpoints::UpdateConfigurationSetReputationMetricsEnabled.build(context)
183
+ when :update_configuration_set_sending_enabled
184
+ Aws::SES::Endpoints::UpdateConfigurationSetSendingEnabled.build(context)
185
+ when :update_configuration_set_tracking_options
186
+ Aws::SES::Endpoints::UpdateConfigurationSetTrackingOptions.build(context)
187
+ when :update_custom_verification_email_template
188
+ Aws::SES::Endpoints::UpdateCustomVerificationEmailTemplate.build(context)
189
+ when :update_receipt_rule
190
+ Aws::SES::Endpoints::UpdateReceiptRule.build(context)
191
+ when :update_template
192
+ Aws::SES::Endpoints::UpdateTemplate.build(context)
193
+ when :verify_domain_dkim
194
+ Aws::SES::Endpoints::VerifyDomainDkim.build(context)
195
+ when :verify_domain_identity
196
+ Aws::SES::Endpoints::VerifyDomainIdentity.build(context)
197
+ when :verify_email_address
198
+ Aws::SES::Endpoints::VerifyEmailAddress.build(context)
199
+ when :verify_email_identity
200
+ Aws::SES::Endpoints::VerifyEmailIdentity.build(context)
201
+ end
202
+ end
203
+ end
204
+
205
+ def add_handlers(handlers, _config)
206
+ handlers.add(Handler, step: :build, priority: 75)
207
+ end
208
+ end
209
+ end
210
+ end
data/lib/aws-sdk-ses.rb CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-ses/types'
15
15
  require_relative 'aws-sdk-ses/client_api'
16
+ require_relative 'aws-sdk-ses/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-ses/client'
17
18
  require_relative 'aws-sdk-ses/errors'
18
19
  require_relative 'aws-sdk-ses/waiters'
19
20
  require_relative 'aws-sdk-ses/resource'
21
+ require_relative 'aws-sdk-ses/endpoint_parameters'
22
+ require_relative 'aws-sdk-ses/endpoint_provider'
23
+ require_relative 'aws-sdk-ses/endpoints'
20
24
  require_relative 'aws-sdk-ses/customizations'
21
25
 
22
26
  # This module provides support for Amazon Simple Email Service. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-ses/customizations'
49
53
  # @!group service
50
54
  module Aws::SES
51
55
 
52
- GEM_VERSION = '1.47.0'
56
+ GEM_VERSION = '1.48.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.47.0
4
+ version: 1.48.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-02-24 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-ses/client.rb
60
60
  - lib/aws-sdk-ses/client_api.rb
61
61
  - lib/aws-sdk-ses/customizations.rb
62
+ - lib/aws-sdk-ses/endpoint_parameters.rb
63
+ - lib/aws-sdk-ses/endpoint_provider.rb
64
+ - lib/aws-sdk-ses/endpoints.rb
62
65
  - lib/aws-sdk-ses/errors.rb
66
+ - lib/aws-sdk-ses/plugins/endpoints.rb
63
67
  - lib/aws-sdk-ses/resource.rb
64
68
  - lib/aws-sdk-ses/types.rb
65
69
  - lib/aws-sdk-ses/waiters.rb