aws-sdk-pinpoint 1.68.0 → 1.69.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pinpoint/client.rb +20 -3
- data/lib/aws-sdk-pinpoint/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-pinpoint/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-pinpoint/endpoints.rb +1681 -0
- data/lib/aws-sdk-pinpoint/plugins/endpoints.rb +306 -0
- data/lib/aws-sdk-pinpoint.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,306 @@
|
|
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::Pinpoint
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::Pinpoint::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::Pinpoint::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::Pinpoint::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_app
|
60
|
+
Aws::Pinpoint::Endpoints::CreateApp.build(context)
|
61
|
+
when :create_campaign
|
62
|
+
Aws::Pinpoint::Endpoints::CreateCampaign.build(context)
|
63
|
+
when :create_email_template
|
64
|
+
Aws::Pinpoint::Endpoints::CreateEmailTemplate.build(context)
|
65
|
+
when :create_export_job
|
66
|
+
Aws::Pinpoint::Endpoints::CreateExportJob.build(context)
|
67
|
+
when :create_import_job
|
68
|
+
Aws::Pinpoint::Endpoints::CreateImportJob.build(context)
|
69
|
+
when :create_in_app_template
|
70
|
+
Aws::Pinpoint::Endpoints::CreateInAppTemplate.build(context)
|
71
|
+
when :create_journey
|
72
|
+
Aws::Pinpoint::Endpoints::CreateJourney.build(context)
|
73
|
+
when :create_push_template
|
74
|
+
Aws::Pinpoint::Endpoints::CreatePushTemplate.build(context)
|
75
|
+
when :create_recommender_configuration
|
76
|
+
Aws::Pinpoint::Endpoints::CreateRecommenderConfiguration.build(context)
|
77
|
+
when :create_segment
|
78
|
+
Aws::Pinpoint::Endpoints::CreateSegment.build(context)
|
79
|
+
when :create_sms_template
|
80
|
+
Aws::Pinpoint::Endpoints::CreateSmsTemplate.build(context)
|
81
|
+
when :create_voice_template
|
82
|
+
Aws::Pinpoint::Endpoints::CreateVoiceTemplate.build(context)
|
83
|
+
when :delete_adm_channel
|
84
|
+
Aws::Pinpoint::Endpoints::DeleteAdmChannel.build(context)
|
85
|
+
when :delete_apns_channel
|
86
|
+
Aws::Pinpoint::Endpoints::DeleteApnsChannel.build(context)
|
87
|
+
when :delete_apns_sandbox_channel
|
88
|
+
Aws::Pinpoint::Endpoints::DeleteApnsSandboxChannel.build(context)
|
89
|
+
when :delete_apns_voip_channel
|
90
|
+
Aws::Pinpoint::Endpoints::DeleteApnsVoipChannel.build(context)
|
91
|
+
when :delete_apns_voip_sandbox_channel
|
92
|
+
Aws::Pinpoint::Endpoints::DeleteApnsVoipSandboxChannel.build(context)
|
93
|
+
when :delete_app
|
94
|
+
Aws::Pinpoint::Endpoints::DeleteApp.build(context)
|
95
|
+
when :delete_baidu_channel
|
96
|
+
Aws::Pinpoint::Endpoints::DeleteBaiduChannel.build(context)
|
97
|
+
when :delete_campaign
|
98
|
+
Aws::Pinpoint::Endpoints::DeleteCampaign.build(context)
|
99
|
+
when :delete_email_channel
|
100
|
+
Aws::Pinpoint::Endpoints::DeleteEmailChannel.build(context)
|
101
|
+
when :delete_email_template
|
102
|
+
Aws::Pinpoint::Endpoints::DeleteEmailTemplate.build(context)
|
103
|
+
when :delete_endpoint
|
104
|
+
Aws::Pinpoint::Endpoints::DeleteEndpoint.build(context)
|
105
|
+
when :delete_event_stream
|
106
|
+
Aws::Pinpoint::Endpoints::DeleteEventStream.build(context)
|
107
|
+
when :delete_gcm_channel
|
108
|
+
Aws::Pinpoint::Endpoints::DeleteGcmChannel.build(context)
|
109
|
+
when :delete_in_app_template
|
110
|
+
Aws::Pinpoint::Endpoints::DeleteInAppTemplate.build(context)
|
111
|
+
when :delete_journey
|
112
|
+
Aws::Pinpoint::Endpoints::DeleteJourney.build(context)
|
113
|
+
when :delete_push_template
|
114
|
+
Aws::Pinpoint::Endpoints::DeletePushTemplate.build(context)
|
115
|
+
when :delete_recommender_configuration
|
116
|
+
Aws::Pinpoint::Endpoints::DeleteRecommenderConfiguration.build(context)
|
117
|
+
when :delete_segment
|
118
|
+
Aws::Pinpoint::Endpoints::DeleteSegment.build(context)
|
119
|
+
when :delete_sms_channel
|
120
|
+
Aws::Pinpoint::Endpoints::DeleteSmsChannel.build(context)
|
121
|
+
when :delete_sms_template
|
122
|
+
Aws::Pinpoint::Endpoints::DeleteSmsTemplate.build(context)
|
123
|
+
when :delete_user_endpoints
|
124
|
+
Aws::Pinpoint::Endpoints::DeleteUserEndpoints.build(context)
|
125
|
+
when :delete_voice_channel
|
126
|
+
Aws::Pinpoint::Endpoints::DeleteVoiceChannel.build(context)
|
127
|
+
when :delete_voice_template
|
128
|
+
Aws::Pinpoint::Endpoints::DeleteVoiceTemplate.build(context)
|
129
|
+
when :get_adm_channel
|
130
|
+
Aws::Pinpoint::Endpoints::GetAdmChannel.build(context)
|
131
|
+
when :get_apns_channel
|
132
|
+
Aws::Pinpoint::Endpoints::GetApnsChannel.build(context)
|
133
|
+
when :get_apns_sandbox_channel
|
134
|
+
Aws::Pinpoint::Endpoints::GetApnsSandboxChannel.build(context)
|
135
|
+
when :get_apns_voip_channel
|
136
|
+
Aws::Pinpoint::Endpoints::GetApnsVoipChannel.build(context)
|
137
|
+
when :get_apns_voip_sandbox_channel
|
138
|
+
Aws::Pinpoint::Endpoints::GetApnsVoipSandboxChannel.build(context)
|
139
|
+
when :get_app
|
140
|
+
Aws::Pinpoint::Endpoints::GetApp.build(context)
|
141
|
+
when :get_application_date_range_kpi
|
142
|
+
Aws::Pinpoint::Endpoints::GetApplicationDateRangeKpi.build(context)
|
143
|
+
when :get_application_settings
|
144
|
+
Aws::Pinpoint::Endpoints::GetApplicationSettings.build(context)
|
145
|
+
when :get_apps
|
146
|
+
Aws::Pinpoint::Endpoints::GetApps.build(context)
|
147
|
+
when :get_baidu_channel
|
148
|
+
Aws::Pinpoint::Endpoints::GetBaiduChannel.build(context)
|
149
|
+
when :get_campaign
|
150
|
+
Aws::Pinpoint::Endpoints::GetCampaign.build(context)
|
151
|
+
when :get_campaign_activities
|
152
|
+
Aws::Pinpoint::Endpoints::GetCampaignActivities.build(context)
|
153
|
+
when :get_campaign_date_range_kpi
|
154
|
+
Aws::Pinpoint::Endpoints::GetCampaignDateRangeKpi.build(context)
|
155
|
+
when :get_campaign_version
|
156
|
+
Aws::Pinpoint::Endpoints::GetCampaignVersion.build(context)
|
157
|
+
when :get_campaign_versions
|
158
|
+
Aws::Pinpoint::Endpoints::GetCampaignVersions.build(context)
|
159
|
+
when :get_campaigns
|
160
|
+
Aws::Pinpoint::Endpoints::GetCampaigns.build(context)
|
161
|
+
when :get_channels
|
162
|
+
Aws::Pinpoint::Endpoints::GetChannels.build(context)
|
163
|
+
when :get_email_channel
|
164
|
+
Aws::Pinpoint::Endpoints::GetEmailChannel.build(context)
|
165
|
+
when :get_email_template
|
166
|
+
Aws::Pinpoint::Endpoints::GetEmailTemplate.build(context)
|
167
|
+
when :get_endpoint
|
168
|
+
Aws::Pinpoint::Endpoints::GetEndpoint.build(context)
|
169
|
+
when :get_event_stream
|
170
|
+
Aws::Pinpoint::Endpoints::GetEventStream.build(context)
|
171
|
+
when :get_export_job
|
172
|
+
Aws::Pinpoint::Endpoints::GetExportJob.build(context)
|
173
|
+
when :get_export_jobs
|
174
|
+
Aws::Pinpoint::Endpoints::GetExportJobs.build(context)
|
175
|
+
when :get_gcm_channel
|
176
|
+
Aws::Pinpoint::Endpoints::GetGcmChannel.build(context)
|
177
|
+
when :get_import_job
|
178
|
+
Aws::Pinpoint::Endpoints::GetImportJob.build(context)
|
179
|
+
when :get_import_jobs
|
180
|
+
Aws::Pinpoint::Endpoints::GetImportJobs.build(context)
|
181
|
+
when :get_in_app_messages
|
182
|
+
Aws::Pinpoint::Endpoints::GetInAppMessages.build(context)
|
183
|
+
when :get_in_app_template
|
184
|
+
Aws::Pinpoint::Endpoints::GetInAppTemplate.build(context)
|
185
|
+
when :get_journey
|
186
|
+
Aws::Pinpoint::Endpoints::GetJourney.build(context)
|
187
|
+
when :get_journey_date_range_kpi
|
188
|
+
Aws::Pinpoint::Endpoints::GetJourneyDateRangeKpi.build(context)
|
189
|
+
when :get_journey_execution_activity_metrics
|
190
|
+
Aws::Pinpoint::Endpoints::GetJourneyExecutionActivityMetrics.build(context)
|
191
|
+
when :get_journey_execution_metrics
|
192
|
+
Aws::Pinpoint::Endpoints::GetJourneyExecutionMetrics.build(context)
|
193
|
+
when :get_push_template
|
194
|
+
Aws::Pinpoint::Endpoints::GetPushTemplate.build(context)
|
195
|
+
when :get_recommender_configuration
|
196
|
+
Aws::Pinpoint::Endpoints::GetRecommenderConfiguration.build(context)
|
197
|
+
when :get_recommender_configurations
|
198
|
+
Aws::Pinpoint::Endpoints::GetRecommenderConfigurations.build(context)
|
199
|
+
when :get_segment
|
200
|
+
Aws::Pinpoint::Endpoints::GetSegment.build(context)
|
201
|
+
when :get_segment_export_jobs
|
202
|
+
Aws::Pinpoint::Endpoints::GetSegmentExportJobs.build(context)
|
203
|
+
when :get_segment_import_jobs
|
204
|
+
Aws::Pinpoint::Endpoints::GetSegmentImportJobs.build(context)
|
205
|
+
when :get_segment_version
|
206
|
+
Aws::Pinpoint::Endpoints::GetSegmentVersion.build(context)
|
207
|
+
when :get_segment_versions
|
208
|
+
Aws::Pinpoint::Endpoints::GetSegmentVersions.build(context)
|
209
|
+
when :get_segments
|
210
|
+
Aws::Pinpoint::Endpoints::GetSegments.build(context)
|
211
|
+
when :get_sms_channel
|
212
|
+
Aws::Pinpoint::Endpoints::GetSmsChannel.build(context)
|
213
|
+
when :get_sms_template
|
214
|
+
Aws::Pinpoint::Endpoints::GetSmsTemplate.build(context)
|
215
|
+
when :get_user_endpoints
|
216
|
+
Aws::Pinpoint::Endpoints::GetUserEndpoints.build(context)
|
217
|
+
when :get_voice_channel
|
218
|
+
Aws::Pinpoint::Endpoints::GetVoiceChannel.build(context)
|
219
|
+
when :get_voice_template
|
220
|
+
Aws::Pinpoint::Endpoints::GetVoiceTemplate.build(context)
|
221
|
+
when :list_journeys
|
222
|
+
Aws::Pinpoint::Endpoints::ListJourneys.build(context)
|
223
|
+
when :list_tags_for_resource
|
224
|
+
Aws::Pinpoint::Endpoints::ListTagsForResource.build(context)
|
225
|
+
when :list_template_versions
|
226
|
+
Aws::Pinpoint::Endpoints::ListTemplateVersions.build(context)
|
227
|
+
when :list_templates
|
228
|
+
Aws::Pinpoint::Endpoints::ListTemplates.build(context)
|
229
|
+
when :phone_number_validate
|
230
|
+
Aws::Pinpoint::Endpoints::PhoneNumberValidate.build(context)
|
231
|
+
when :put_event_stream
|
232
|
+
Aws::Pinpoint::Endpoints::PutEventStream.build(context)
|
233
|
+
when :put_events
|
234
|
+
Aws::Pinpoint::Endpoints::PutEvents.build(context)
|
235
|
+
when :remove_attributes
|
236
|
+
Aws::Pinpoint::Endpoints::RemoveAttributes.build(context)
|
237
|
+
when :send_messages
|
238
|
+
Aws::Pinpoint::Endpoints::SendMessages.build(context)
|
239
|
+
when :send_otp_message
|
240
|
+
Aws::Pinpoint::Endpoints::SendOTPMessage.build(context)
|
241
|
+
when :send_users_messages
|
242
|
+
Aws::Pinpoint::Endpoints::SendUsersMessages.build(context)
|
243
|
+
when :tag_resource
|
244
|
+
Aws::Pinpoint::Endpoints::TagResource.build(context)
|
245
|
+
when :untag_resource
|
246
|
+
Aws::Pinpoint::Endpoints::UntagResource.build(context)
|
247
|
+
when :update_adm_channel
|
248
|
+
Aws::Pinpoint::Endpoints::UpdateAdmChannel.build(context)
|
249
|
+
when :update_apns_channel
|
250
|
+
Aws::Pinpoint::Endpoints::UpdateApnsChannel.build(context)
|
251
|
+
when :update_apns_sandbox_channel
|
252
|
+
Aws::Pinpoint::Endpoints::UpdateApnsSandboxChannel.build(context)
|
253
|
+
when :update_apns_voip_channel
|
254
|
+
Aws::Pinpoint::Endpoints::UpdateApnsVoipChannel.build(context)
|
255
|
+
when :update_apns_voip_sandbox_channel
|
256
|
+
Aws::Pinpoint::Endpoints::UpdateApnsVoipSandboxChannel.build(context)
|
257
|
+
when :update_application_settings
|
258
|
+
Aws::Pinpoint::Endpoints::UpdateApplicationSettings.build(context)
|
259
|
+
when :update_baidu_channel
|
260
|
+
Aws::Pinpoint::Endpoints::UpdateBaiduChannel.build(context)
|
261
|
+
when :update_campaign
|
262
|
+
Aws::Pinpoint::Endpoints::UpdateCampaign.build(context)
|
263
|
+
when :update_email_channel
|
264
|
+
Aws::Pinpoint::Endpoints::UpdateEmailChannel.build(context)
|
265
|
+
when :update_email_template
|
266
|
+
Aws::Pinpoint::Endpoints::UpdateEmailTemplate.build(context)
|
267
|
+
when :update_endpoint
|
268
|
+
Aws::Pinpoint::Endpoints::UpdateEndpoint.build(context)
|
269
|
+
when :update_endpoints_batch
|
270
|
+
Aws::Pinpoint::Endpoints::UpdateEndpointsBatch.build(context)
|
271
|
+
when :update_gcm_channel
|
272
|
+
Aws::Pinpoint::Endpoints::UpdateGcmChannel.build(context)
|
273
|
+
when :update_in_app_template
|
274
|
+
Aws::Pinpoint::Endpoints::UpdateInAppTemplate.build(context)
|
275
|
+
when :update_journey
|
276
|
+
Aws::Pinpoint::Endpoints::UpdateJourney.build(context)
|
277
|
+
when :update_journey_state
|
278
|
+
Aws::Pinpoint::Endpoints::UpdateJourneyState.build(context)
|
279
|
+
when :update_push_template
|
280
|
+
Aws::Pinpoint::Endpoints::UpdatePushTemplate.build(context)
|
281
|
+
when :update_recommender_configuration
|
282
|
+
Aws::Pinpoint::Endpoints::UpdateRecommenderConfiguration.build(context)
|
283
|
+
when :update_segment
|
284
|
+
Aws::Pinpoint::Endpoints::UpdateSegment.build(context)
|
285
|
+
when :update_sms_channel
|
286
|
+
Aws::Pinpoint::Endpoints::UpdateSmsChannel.build(context)
|
287
|
+
when :update_sms_template
|
288
|
+
Aws::Pinpoint::Endpoints::UpdateSmsTemplate.build(context)
|
289
|
+
when :update_template_active_version
|
290
|
+
Aws::Pinpoint::Endpoints::UpdateTemplateActiveVersion.build(context)
|
291
|
+
when :update_voice_channel
|
292
|
+
Aws::Pinpoint::Endpoints::UpdateVoiceChannel.build(context)
|
293
|
+
when :update_voice_template
|
294
|
+
Aws::Pinpoint::Endpoints::UpdateVoiceTemplate.build(context)
|
295
|
+
when :verify_otp_message
|
296
|
+
Aws::Pinpoint::Endpoints::VerifyOTPMessage.build(context)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
def add_handlers(handlers, _config)
|
302
|
+
handlers.add(Handler, step: :build, priority: 75)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
data/lib/aws-sdk-pinpoint.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-pinpoint/types'
|
15
15
|
require_relative 'aws-sdk-pinpoint/client_api'
|
16
|
+
require_relative 'aws-sdk-pinpoint/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-pinpoint/client'
|
17
18
|
require_relative 'aws-sdk-pinpoint/errors'
|
18
19
|
require_relative 'aws-sdk-pinpoint/resource'
|
20
|
+
require_relative 'aws-sdk-pinpoint/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-pinpoint/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-pinpoint/endpoints'
|
19
23
|
require_relative 'aws-sdk-pinpoint/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Pinpoint. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-pinpoint/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::Pinpoint
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.69.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-pinpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.69.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-
|
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.
|
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.
|
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-pinpoint/client.rb
|
60
60
|
- lib/aws-sdk-pinpoint/client_api.rb
|
61
61
|
- lib/aws-sdk-pinpoint/customizations.rb
|
62
|
+
- lib/aws-sdk-pinpoint/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-pinpoint/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-pinpoint/endpoints.rb
|
62
65
|
- lib/aws-sdk-pinpoint/errors.rb
|
66
|
+
- lib/aws-sdk-pinpoint/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-pinpoint/resource.rb
|
64
68
|
- lib/aws-sdk-pinpoint/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|