aws-sdk-pinpoint 1.27.0 → 1.28.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.
@@ -17,6 +17,7 @@ module Aws::Pinpoint
17
17
  APNSChannelRequest = Shapes::StructureShape.new(name: 'APNSChannelRequest')
18
18
  APNSChannelResponse = Shapes::StructureShape.new(name: 'APNSChannelResponse')
19
19
  APNSMessage = Shapes::StructureShape.new(name: 'APNSMessage')
20
+ APNSPushNotificationTemplate = Shapes::StructureShape.new(name: 'APNSPushNotificationTemplate')
20
21
  APNSSandboxChannelRequest = Shapes::StructureShape.new(name: 'APNSSandboxChannelRequest')
21
22
  APNSSandboxChannelResponse = Shapes::StructureShape.new(name: 'APNSSandboxChannelResponse')
22
23
  APNSVoipChannelRequest = Shapes::StructureShape.new(name: 'APNSVoipChannelRequest')
@@ -27,6 +28,7 @@ module Aws::Pinpoint
27
28
  ActivitiesResponse = Shapes::StructureShape.new(name: 'ActivitiesResponse')
28
29
  ActivityResponse = Shapes::StructureShape.new(name: 'ActivityResponse')
29
30
  AddressConfiguration = Shapes::StructureShape.new(name: 'AddressConfiguration')
31
+ AndroidPushNotificationTemplate = Shapes::StructureShape.new(name: 'AndroidPushNotificationTemplate')
30
32
  ApplicationDateRangeKpiResponse = Shapes::StructureShape.new(name: 'ApplicationDateRangeKpiResponse')
31
33
  ApplicationResponse = Shapes::StructureShape.new(name: 'ApplicationResponse')
32
34
  ApplicationSettingsResource = Shapes::StructureShape.new(name: 'ApplicationSettingsResource')
@@ -57,14 +59,22 @@ module Aws::Pinpoint
57
59
  CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
58
60
  CreateCampaignRequest = Shapes::StructureShape.new(name: 'CreateCampaignRequest')
59
61
  CreateCampaignResponse = Shapes::StructureShape.new(name: 'CreateCampaignResponse')
62
+ CreateEmailTemplateRequest = Shapes::StructureShape.new(name: 'CreateEmailTemplateRequest')
63
+ CreateEmailTemplateResponse = Shapes::StructureShape.new(name: 'CreateEmailTemplateResponse')
60
64
  CreateExportJobRequest = Shapes::StructureShape.new(name: 'CreateExportJobRequest')
61
65
  CreateExportJobResponse = Shapes::StructureShape.new(name: 'CreateExportJobResponse')
62
66
  CreateImportJobRequest = Shapes::StructureShape.new(name: 'CreateImportJobRequest')
63
67
  CreateImportJobResponse = Shapes::StructureShape.new(name: 'CreateImportJobResponse')
68
+ CreatePushTemplateRequest = Shapes::StructureShape.new(name: 'CreatePushTemplateRequest')
69
+ CreatePushTemplateResponse = Shapes::StructureShape.new(name: 'CreatePushTemplateResponse')
64
70
  CreateSegmentRequest = Shapes::StructureShape.new(name: 'CreateSegmentRequest')
65
71
  CreateSegmentResponse = Shapes::StructureShape.new(name: 'CreateSegmentResponse')
72
+ CreateSmsTemplateRequest = Shapes::StructureShape.new(name: 'CreateSmsTemplateRequest')
73
+ CreateSmsTemplateResponse = Shapes::StructureShape.new(name: 'CreateSmsTemplateResponse')
74
+ CreateTemplateMessageBody = Shapes::StructureShape.new(name: 'CreateTemplateMessageBody')
66
75
  DefaultMessage = Shapes::StructureShape.new(name: 'DefaultMessage')
67
76
  DefaultPushNotificationMessage = Shapes::StructureShape.new(name: 'DefaultPushNotificationMessage')
77
+ DefaultPushNotificationTemplate = Shapes::StructureShape.new(name: 'DefaultPushNotificationTemplate')
68
78
  DeleteAdmChannelRequest = Shapes::StructureShape.new(name: 'DeleteAdmChannelRequest')
69
79
  DeleteAdmChannelResponse = Shapes::StructureShape.new(name: 'DeleteAdmChannelResponse')
70
80
  DeleteApnsChannelRequest = Shapes::StructureShape.new(name: 'DeleteApnsChannelRequest')
@@ -83,16 +93,22 @@ module Aws::Pinpoint
83
93
  DeleteCampaignResponse = Shapes::StructureShape.new(name: 'DeleteCampaignResponse')
84
94
  DeleteEmailChannelRequest = Shapes::StructureShape.new(name: 'DeleteEmailChannelRequest')
85
95
  DeleteEmailChannelResponse = Shapes::StructureShape.new(name: 'DeleteEmailChannelResponse')
96
+ DeleteEmailTemplateRequest = Shapes::StructureShape.new(name: 'DeleteEmailTemplateRequest')
97
+ DeleteEmailTemplateResponse = Shapes::StructureShape.new(name: 'DeleteEmailTemplateResponse')
86
98
  DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
87
99
  DeleteEndpointResponse = Shapes::StructureShape.new(name: 'DeleteEndpointResponse')
88
100
  DeleteEventStreamRequest = Shapes::StructureShape.new(name: 'DeleteEventStreamRequest')
89
101
  DeleteEventStreamResponse = Shapes::StructureShape.new(name: 'DeleteEventStreamResponse')
90
102
  DeleteGcmChannelRequest = Shapes::StructureShape.new(name: 'DeleteGcmChannelRequest')
91
103
  DeleteGcmChannelResponse = Shapes::StructureShape.new(name: 'DeleteGcmChannelResponse')
104
+ DeletePushTemplateRequest = Shapes::StructureShape.new(name: 'DeletePushTemplateRequest')
105
+ DeletePushTemplateResponse = Shapes::StructureShape.new(name: 'DeletePushTemplateResponse')
92
106
  DeleteSegmentRequest = Shapes::StructureShape.new(name: 'DeleteSegmentRequest')
93
107
  DeleteSegmentResponse = Shapes::StructureShape.new(name: 'DeleteSegmentResponse')
94
108
  DeleteSmsChannelRequest = Shapes::StructureShape.new(name: 'DeleteSmsChannelRequest')
95
109
  DeleteSmsChannelResponse = Shapes::StructureShape.new(name: 'DeleteSmsChannelResponse')
110
+ DeleteSmsTemplateRequest = Shapes::StructureShape.new(name: 'DeleteSmsTemplateRequest')
111
+ DeleteSmsTemplateResponse = Shapes::StructureShape.new(name: 'DeleteSmsTemplateResponse')
96
112
  DeleteUserEndpointsRequest = Shapes::StructureShape.new(name: 'DeleteUserEndpointsRequest')
97
113
  DeleteUserEndpointsResponse = Shapes::StructureShape.new(name: 'DeleteUserEndpointsResponse')
98
114
  DeleteVoiceChannelRequest = Shapes::StructureShape.new(name: 'DeleteVoiceChannelRequest')
@@ -104,6 +120,8 @@ module Aws::Pinpoint
104
120
  EmailChannelRequest = Shapes::StructureShape.new(name: 'EmailChannelRequest')
105
121
  EmailChannelResponse = Shapes::StructureShape.new(name: 'EmailChannelResponse')
106
122
  EmailMessage = Shapes::StructureShape.new(name: 'EmailMessage')
123
+ EmailTemplateRequest = Shapes::StructureShape.new(name: 'EmailTemplateRequest')
124
+ EmailTemplateResponse = Shapes::StructureShape.new(name: 'EmailTemplateResponse')
107
125
  EndpointBatchItem = Shapes::StructureShape.new(name: 'EndpointBatchItem')
108
126
  EndpointBatchRequest = Shapes::StructureShape.new(name: 'EndpointBatchRequest')
109
127
  EndpointDemographic = Shapes::StructureShape.new(name: 'EndpointDemographic')
@@ -171,6 +189,8 @@ module Aws::Pinpoint
171
189
  GetChannelsResponse = Shapes::StructureShape.new(name: 'GetChannelsResponse')
172
190
  GetEmailChannelRequest = Shapes::StructureShape.new(name: 'GetEmailChannelRequest')
173
191
  GetEmailChannelResponse = Shapes::StructureShape.new(name: 'GetEmailChannelResponse')
192
+ GetEmailTemplateRequest = Shapes::StructureShape.new(name: 'GetEmailTemplateRequest')
193
+ GetEmailTemplateResponse = Shapes::StructureShape.new(name: 'GetEmailTemplateResponse')
174
194
  GetEndpointRequest = Shapes::StructureShape.new(name: 'GetEndpointRequest')
175
195
  GetEndpointResponse = Shapes::StructureShape.new(name: 'GetEndpointResponse')
176
196
  GetEventStreamRequest = Shapes::StructureShape.new(name: 'GetEventStreamRequest')
@@ -185,6 +205,8 @@ module Aws::Pinpoint
185
205
  GetImportJobResponse = Shapes::StructureShape.new(name: 'GetImportJobResponse')
186
206
  GetImportJobsRequest = Shapes::StructureShape.new(name: 'GetImportJobsRequest')
187
207
  GetImportJobsResponse = Shapes::StructureShape.new(name: 'GetImportJobsResponse')
208
+ GetPushTemplateRequest = Shapes::StructureShape.new(name: 'GetPushTemplateRequest')
209
+ GetPushTemplateResponse = Shapes::StructureShape.new(name: 'GetPushTemplateResponse')
188
210
  GetSegmentExportJobsRequest = Shapes::StructureShape.new(name: 'GetSegmentExportJobsRequest')
189
211
  GetSegmentExportJobsResponse = Shapes::StructureShape.new(name: 'GetSegmentExportJobsResponse')
190
212
  GetSegmentImportJobsRequest = Shapes::StructureShape.new(name: 'GetSegmentImportJobsRequest')
@@ -199,6 +221,8 @@ module Aws::Pinpoint
199
221
  GetSegmentsResponse = Shapes::StructureShape.new(name: 'GetSegmentsResponse')
200
222
  GetSmsChannelRequest = Shapes::StructureShape.new(name: 'GetSmsChannelRequest')
201
223
  GetSmsChannelResponse = Shapes::StructureShape.new(name: 'GetSmsChannelResponse')
224
+ GetSmsTemplateRequest = Shapes::StructureShape.new(name: 'GetSmsTemplateRequest')
225
+ GetSmsTemplateResponse = Shapes::StructureShape.new(name: 'GetSmsTemplateResponse')
202
226
  GetUserEndpointsRequest = Shapes::StructureShape.new(name: 'GetUserEndpointsRequest')
203
227
  GetUserEndpointsResponse = Shapes::StructureShape.new(name: 'GetUserEndpointsResponse')
204
228
  GetVoiceChannelRequest = Shapes::StructureShape.new(name: 'GetVoiceChannelRequest')
@@ -224,11 +248,14 @@ module Aws::Pinpoint
224
248
  ListOfSegmentGroup = Shapes::ListShape.new(name: 'ListOfSegmentGroup')
225
249
  ListOfSegmentReference = Shapes::ListShape.new(name: 'ListOfSegmentReference')
226
250
  ListOfSegmentResponse = Shapes::ListShape.new(name: 'ListOfSegmentResponse')
251
+ ListOfTemplateResponse = Shapes::ListShape.new(name: 'ListOfTemplateResponse')
227
252
  ListOfTreatmentResource = Shapes::ListShape.new(name: 'ListOfTreatmentResource')
228
253
  ListOfWriteTreatmentResource = Shapes::ListShape.new(name: 'ListOfWriteTreatmentResource')
229
254
  ListOf__string = Shapes::ListShape.new(name: 'ListOf__string')
230
255
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
231
256
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
257
+ ListTemplatesRequest = Shapes::StructureShape.new(name: 'ListTemplatesRequest')
258
+ ListTemplatesResponse = Shapes::StructureShape.new(name: 'ListTemplatesResponse')
232
259
  MapOfAddressConfiguration = Shapes::MapShape.new(name: 'MapOfAddressConfiguration')
233
260
  MapOfAttributeDimension = Shapes::MapShape.new(name: 'MapOfAttributeDimension')
234
261
  MapOfChannelResponse = Shapes::MapShape.new(name: 'MapOfChannelResponse')
@@ -261,6 +288,8 @@ module Aws::Pinpoint
261
288
  PhoneNumberValidateRequest = Shapes::StructureShape.new(name: 'PhoneNumberValidateRequest')
262
289
  PhoneNumberValidateResponse = Shapes::StructureShape.new(name: 'PhoneNumberValidateResponse')
263
290
  PublicEndpoint = Shapes::StructureShape.new(name: 'PublicEndpoint')
291
+ PushNotificationTemplateRequest = Shapes::StructureShape.new(name: 'PushNotificationTemplateRequest')
292
+ PushNotificationTemplateResponse = Shapes::StructureShape.new(name: 'PushNotificationTemplateResponse')
264
293
  PutEventStreamRequest = Shapes::StructureShape.new(name: 'PutEventStreamRequest')
265
294
  PutEventStreamResponse = Shapes::StructureShape.new(name: 'PutEventStreamResponse')
266
295
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
@@ -276,6 +305,8 @@ module Aws::Pinpoint
276
305
  SMSChannelRequest = Shapes::StructureShape.new(name: 'SMSChannelRequest')
277
306
  SMSChannelResponse = Shapes::StructureShape.new(name: 'SMSChannelResponse')
278
307
  SMSMessage = Shapes::StructureShape.new(name: 'SMSMessage')
308
+ SMSTemplateRequest = Shapes::StructureShape.new(name: 'SMSTemplateRequest')
309
+ SMSTemplateResponse = Shapes::StructureShape.new(name: 'SMSTemplateResponse')
279
310
  Schedule = Shapes::StructureShape.new(name: 'Schedule')
280
311
  SegmentBehaviors = Shapes::StructureShape.new(name: 'SegmentBehaviors')
281
312
  SegmentDemographics = Shapes::StructureShape.new(name: 'SegmentDemographics')
@@ -301,6 +332,11 @@ module Aws::Pinpoint
301
332
  SourceType = Shapes::StringShape.new(name: 'SourceType')
302
333
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
303
334
  TagsModel = Shapes::StructureShape.new(name: 'TagsModel')
335
+ Template = Shapes::StructureShape.new(name: 'Template')
336
+ TemplateConfiguration = Shapes::StructureShape.new(name: 'TemplateConfiguration')
337
+ TemplateResponse = Shapes::StructureShape.new(name: 'TemplateResponse')
338
+ TemplateType = Shapes::StringShape.new(name: 'TemplateType')
339
+ TemplatesResponse = Shapes::StructureShape.new(name: 'TemplatesResponse')
304
340
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
305
341
  TreatmentResource = Shapes::StructureShape.new(name: 'TreatmentResource')
306
342
  Type = Shapes::StringShape.new(name: 'Type')
@@ -324,16 +360,22 @@ module Aws::Pinpoint
324
360
  UpdateCampaignResponse = Shapes::StructureShape.new(name: 'UpdateCampaignResponse')
325
361
  UpdateEmailChannelRequest = Shapes::StructureShape.new(name: 'UpdateEmailChannelRequest')
326
362
  UpdateEmailChannelResponse = Shapes::StructureShape.new(name: 'UpdateEmailChannelResponse')
363
+ UpdateEmailTemplateRequest = Shapes::StructureShape.new(name: 'UpdateEmailTemplateRequest')
364
+ UpdateEmailTemplateResponse = Shapes::StructureShape.new(name: 'UpdateEmailTemplateResponse')
327
365
  UpdateEndpointRequest = Shapes::StructureShape.new(name: 'UpdateEndpointRequest')
328
366
  UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
329
367
  UpdateEndpointsBatchRequest = Shapes::StructureShape.new(name: 'UpdateEndpointsBatchRequest')
330
368
  UpdateEndpointsBatchResponse = Shapes::StructureShape.new(name: 'UpdateEndpointsBatchResponse')
331
369
  UpdateGcmChannelRequest = Shapes::StructureShape.new(name: 'UpdateGcmChannelRequest')
332
370
  UpdateGcmChannelResponse = Shapes::StructureShape.new(name: 'UpdateGcmChannelResponse')
371
+ UpdatePushTemplateRequest = Shapes::StructureShape.new(name: 'UpdatePushTemplateRequest')
372
+ UpdatePushTemplateResponse = Shapes::StructureShape.new(name: 'UpdatePushTemplateResponse')
333
373
  UpdateSegmentRequest = Shapes::StructureShape.new(name: 'UpdateSegmentRequest')
334
374
  UpdateSegmentResponse = Shapes::StructureShape.new(name: 'UpdateSegmentResponse')
335
375
  UpdateSmsChannelRequest = Shapes::StructureShape.new(name: 'UpdateSmsChannelRequest')
336
376
  UpdateSmsChannelResponse = Shapes::StructureShape.new(name: 'UpdateSmsChannelResponse')
377
+ UpdateSmsTemplateRequest = Shapes::StructureShape.new(name: 'UpdateSmsTemplateRequest')
378
+ UpdateSmsTemplateResponse = Shapes::StructureShape.new(name: 'UpdateSmsTemplateResponse')
337
379
  UpdateVoiceChannelRequest = Shapes::StructureShape.new(name: 'UpdateVoiceChannelRequest')
338
380
  UpdateVoiceChannelResponse = Shapes::StructureShape.new(name: 'UpdateVoiceChannelResponse')
339
381
  VoiceChannelRequest = Shapes::StructureShape.new(name: 'VoiceChannelRequest')
@@ -431,6 +473,14 @@ module Aws::Pinpoint
431
473
  APNSMessage.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
432
474
  APNSMessage.struct_class = Types::APNSMessage
433
475
 
476
+ APNSPushNotificationTemplate.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
477
+ APNSPushNotificationTemplate.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
478
+ APNSPushNotificationTemplate.add_member(:media_url, Shapes::ShapeRef.new(shape: __string, location_name: "MediaUrl"))
479
+ APNSPushNotificationTemplate.add_member(:sound, Shapes::ShapeRef.new(shape: __string, location_name: "Sound"))
480
+ APNSPushNotificationTemplate.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
481
+ APNSPushNotificationTemplate.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
482
+ APNSPushNotificationTemplate.struct_class = Types::APNSPushNotificationTemplate
483
+
434
484
  APNSSandboxChannelRequest.add_member(:bundle_id, Shapes::ShapeRef.new(shape: __string, location_name: "BundleId"))
435
485
  APNSSandboxChannelRequest.add_member(:certificate, Shapes::ShapeRef.new(shape: __string, location_name: "Certificate"))
436
486
  APNSSandboxChannelRequest.add_member(:default_authentication_method, Shapes::ShapeRef.new(shape: __string, location_name: "DefaultAuthenticationMethod"))
@@ -530,6 +580,16 @@ module Aws::Pinpoint
530
580
  AddressConfiguration.add_member(:title_override, Shapes::ShapeRef.new(shape: __string, location_name: "TitleOverride"))
531
581
  AddressConfiguration.struct_class = Types::AddressConfiguration
532
582
 
583
+ AndroidPushNotificationTemplate.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
584
+ AndroidPushNotificationTemplate.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
585
+ AndroidPushNotificationTemplate.add_member(:image_icon_url, Shapes::ShapeRef.new(shape: __string, location_name: "ImageIconUrl"))
586
+ AndroidPushNotificationTemplate.add_member(:image_url, Shapes::ShapeRef.new(shape: __string, location_name: "ImageUrl"))
587
+ AndroidPushNotificationTemplate.add_member(:small_image_icon_url, Shapes::ShapeRef.new(shape: __string, location_name: "SmallImageIconUrl"))
588
+ AndroidPushNotificationTemplate.add_member(:sound, Shapes::ShapeRef.new(shape: __string, location_name: "Sound"))
589
+ AndroidPushNotificationTemplate.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
590
+ AndroidPushNotificationTemplate.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
591
+ AndroidPushNotificationTemplate.struct_class = Types::AndroidPushNotificationTemplate
592
+
533
593
  ApplicationDateRangeKpiResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApplicationId"))
534
594
  ApplicationDateRangeKpiResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: __timestampIso8601, required: true, location_name: "EndTime"))
535
595
  ApplicationDateRangeKpiResponse.add_member(:kpi_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "KpiName"))
@@ -654,6 +714,7 @@ module Aws::Pinpoint
654
714
  CampaignResponse.add_member(:segment_version, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "SegmentVersion"))
655
715
  CampaignResponse.add_member(:state, Shapes::ShapeRef.new(shape: CampaignState, location_name: "State"))
656
716
  CampaignResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
717
+ CampaignResponse.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
657
718
  CampaignResponse.add_member(:treatment_description, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentDescription"))
658
719
  CampaignResponse.add_member(:treatment_name, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentName"))
659
720
  CampaignResponse.add_member(:version, Shapes::ShapeRef.new(shape: __integer, location_name: "Version"))
@@ -710,6 +771,17 @@ module Aws::Pinpoint
710
771
  CreateCampaignResponse[:payload] = :campaign_response
711
772
  CreateCampaignResponse[:payload_member] = CreateCampaignResponse.member(:campaign_response)
712
773
 
774
+ CreateEmailTemplateRequest.add_member(:email_template_request, Shapes::ShapeRef.new(shape: EmailTemplateRequest, required: true, location_name: "EmailTemplateRequest"))
775
+ CreateEmailTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
776
+ CreateEmailTemplateRequest.struct_class = Types::CreateEmailTemplateRequest
777
+ CreateEmailTemplateRequest[:payload] = :email_template_request
778
+ CreateEmailTemplateRequest[:payload_member] = CreateEmailTemplateRequest.member(:email_template_request)
779
+
780
+ CreateEmailTemplateResponse.add_member(:create_template_message_body, Shapes::ShapeRef.new(shape: CreateTemplateMessageBody, required: true, location_name: "CreateTemplateMessageBody"))
781
+ CreateEmailTemplateResponse.struct_class = Types::CreateEmailTemplateResponse
782
+ CreateEmailTemplateResponse[:payload] = :create_template_message_body
783
+ CreateEmailTemplateResponse[:payload_member] = CreateEmailTemplateResponse.member(:create_template_message_body)
784
+
713
785
  CreateExportJobRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
714
786
  CreateExportJobRequest.add_member(:export_job_request, Shapes::ShapeRef.new(shape: ExportJobRequest, required: true, location_name: "ExportJobRequest"))
715
787
  CreateExportJobRequest.struct_class = Types::CreateExportJobRequest
@@ -732,6 +804,17 @@ module Aws::Pinpoint
732
804
  CreateImportJobResponse[:payload] = :import_job_response
733
805
  CreateImportJobResponse[:payload_member] = CreateImportJobResponse.member(:import_job_response)
734
806
 
807
+ CreatePushTemplateRequest.add_member(:push_notification_template_request, Shapes::ShapeRef.new(shape: PushNotificationTemplateRequest, required: true, location_name: "PushNotificationTemplateRequest"))
808
+ CreatePushTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
809
+ CreatePushTemplateRequest.struct_class = Types::CreatePushTemplateRequest
810
+ CreatePushTemplateRequest[:payload] = :push_notification_template_request
811
+ CreatePushTemplateRequest[:payload_member] = CreatePushTemplateRequest.member(:push_notification_template_request)
812
+
813
+ CreatePushTemplateResponse.add_member(:create_template_message_body, Shapes::ShapeRef.new(shape: CreateTemplateMessageBody, required: true, location_name: "CreateTemplateMessageBody"))
814
+ CreatePushTemplateResponse.struct_class = Types::CreatePushTemplateResponse
815
+ CreatePushTemplateResponse[:payload] = :create_template_message_body
816
+ CreatePushTemplateResponse[:payload_member] = CreatePushTemplateResponse.member(:create_template_message_body)
817
+
735
818
  CreateSegmentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
736
819
  CreateSegmentRequest.add_member(:write_segment_request, Shapes::ShapeRef.new(shape: WriteSegmentRequest, required: true, location_name: "WriteSegmentRequest"))
737
820
  CreateSegmentRequest.struct_class = Types::CreateSegmentRequest
@@ -743,6 +826,22 @@ module Aws::Pinpoint
743
826
  CreateSegmentResponse[:payload] = :segment_response
744
827
  CreateSegmentResponse[:payload_member] = CreateSegmentResponse.member(:segment_response)
745
828
 
829
+ CreateSmsTemplateRequest.add_member(:sms_template_request, Shapes::ShapeRef.new(shape: SMSTemplateRequest, required: true, location_name: "SMSTemplateRequest"))
830
+ CreateSmsTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
831
+ CreateSmsTemplateRequest.struct_class = Types::CreateSmsTemplateRequest
832
+ CreateSmsTemplateRequest[:payload] = :sms_template_request
833
+ CreateSmsTemplateRequest[:payload_member] = CreateSmsTemplateRequest.member(:sms_template_request)
834
+
835
+ CreateSmsTemplateResponse.add_member(:create_template_message_body, Shapes::ShapeRef.new(shape: CreateTemplateMessageBody, required: true, location_name: "CreateTemplateMessageBody"))
836
+ CreateSmsTemplateResponse.struct_class = Types::CreateSmsTemplateResponse
837
+ CreateSmsTemplateResponse[:payload] = :create_template_message_body
838
+ CreateSmsTemplateResponse[:payload_member] = CreateSmsTemplateResponse.member(:create_template_message_body)
839
+
840
+ CreateTemplateMessageBody.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
841
+ CreateTemplateMessageBody.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "Message"))
842
+ CreateTemplateMessageBody.add_member(:request_id, Shapes::ShapeRef.new(shape: __string, location_name: "RequestID"))
843
+ CreateTemplateMessageBody.struct_class = Types::CreateTemplateMessageBody
844
+
746
845
  DefaultMessage.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
747
846
  DefaultMessage.add_member(:substitutions, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Substitutions"))
748
847
  DefaultMessage.struct_class = Types::DefaultMessage
@@ -756,6 +855,13 @@ module Aws::Pinpoint
756
855
  DefaultPushNotificationMessage.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
757
856
  DefaultPushNotificationMessage.struct_class = Types::DefaultPushNotificationMessage
758
857
 
858
+ DefaultPushNotificationTemplate.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
859
+ DefaultPushNotificationTemplate.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
860
+ DefaultPushNotificationTemplate.add_member(:sound, Shapes::ShapeRef.new(shape: __string, location_name: "Sound"))
861
+ DefaultPushNotificationTemplate.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
862
+ DefaultPushNotificationTemplate.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
863
+ DefaultPushNotificationTemplate.struct_class = Types::DefaultPushNotificationTemplate
864
+
759
865
  DeleteAdmChannelRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
760
866
  DeleteAdmChannelRequest.struct_class = Types::DeleteAdmChannelRequest
761
867
 
@@ -829,6 +935,14 @@ module Aws::Pinpoint
829
935
  DeleteEmailChannelResponse[:payload] = :email_channel_response
830
936
  DeleteEmailChannelResponse[:payload_member] = DeleteEmailChannelResponse.member(:email_channel_response)
831
937
 
938
+ DeleteEmailTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
939
+ DeleteEmailTemplateRequest.struct_class = Types::DeleteEmailTemplateRequest
940
+
941
+ DeleteEmailTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
942
+ DeleteEmailTemplateResponse.struct_class = Types::DeleteEmailTemplateResponse
943
+ DeleteEmailTemplateResponse[:payload] = :message_body
944
+ DeleteEmailTemplateResponse[:payload_member] = DeleteEmailTemplateResponse.member(:message_body)
945
+
832
946
  DeleteEndpointRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
833
947
  DeleteEndpointRequest.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "endpoint-id"))
834
948
  DeleteEndpointRequest.struct_class = Types::DeleteEndpointRequest
@@ -854,6 +968,14 @@ module Aws::Pinpoint
854
968
  DeleteGcmChannelResponse[:payload] = :gcm_channel_response
855
969
  DeleteGcmChannelResponse[:payload_member] = DeleteGcmChannelResponse.member(:gcm_channel_response)
856
970
 
971
+ DeletePushTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
972
+ DeletePushTemplateRequest.struct_class = Types::DeletePushTemplateRequest
973
+
974
+ DeletePushTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
975
+ DeletePushTemplateResponse.struct_class = Types::DeletePushTemplateResponse
976
+ DeletePushTemplateResponse[:payload] = :message_body
977
+ DeletePushTemplateResponse[:payload_member] = DeletePushTemplateResponse.member(:message_body)
978
+
857
979
  DeleteSegmentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
858
980
  DeleteSegmentRequest.add_member(:segment_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "segment-id"))
859
981
  DeleteSegmentRequest.struct_class = Types::DeleteSegmentRequest
@@ -871,6 +993,14 @@ module Aws::Pinpoint
871
993
  DeleteSmsChannelResponse[:payload] = :sms_channel_response
872
994
  DeleteSmsChannelResponse[:payload_member] = DeleteSmsChannelResponse.member(:sms_channel_response)
873
995
 
996
+ DeleteSmsTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
997
+ DeleteSmsTemplateRequest.struct_class = Types::DeleteSmsTemplateRequest
998
+
999
+ DeleteSmsTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
1000
+ DeleteSmsTemplateResponse.struct_class = Types::DeleteSmsTemplateResponse
1001
+ DeleteSmsTemplateResponse[:payload] = :message_body
1002
+ DeleteSmsTemplateResponse[:payload_member] = DeleteSmsTemplateResponse.member(:message_body)
1003
+
874
1004
  DeleteUserEndpointsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
875
1005
  DeleteUserEndpointsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "user-id"))
876
1006
  DeleteUserEndpointsRequest.struct_class = Types::DeleteUserEndpointsRequest
@@ -932,6 +1062,23 @@ module Aws::Pinpoint
932
1062
  EmailMessage.add_member(:substitutions, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Substitutions"))
933
1063
  EmailMessage.struct_class = Types::EmailMessage
934
1064
 
1065
+ EmailTemplateRequest.add_member(:html_part, Shapes::ShapeRef.new(shape: __string, location_name: "HtmlPart"))
1066
+ EmailTemplateRequest.add_member(:subject, Shapes::ShapeRef.new(shape: __string, location_name: "Subject"))
1067
+ EmailTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1068
+ EmailTemplateRequest.add_member(:text_part, Shapes::ShapeRef.new(shape: __string, location_name: "TextPart"))
1069
+ EmailTemplateRequest.struct_class = Types::EmailTemplateRequest
1070
+
1071
+ EmailTemplateResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
1072
+ EmailTemplateResponse.add_member(:creation_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "CreationDate"))
1073
+ EmailTemplateResponse.add_member(:html_part, Shapes::ShapeRef.new(shape: __string, location_name: "HtmlPart"))
1074
+ EmailTemplateResponse.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastModifiedDate"))
1075
+ EmailTemplateResponse.add_member(:subject, Shapes::ShapeRef.new(shape: __string, location_name: "Subject"))
1076
+ EmailTemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1077
+ EmailTemplateResponse.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "TemplateName"))
1078
+ EmailTemplateResponse.add_member(:template_type, Shapes::ShapeRef.new(shape: TemplateType, required: true, location_name: "TemplateType"))
1079
+ EmailTemplateResponse.add_member(:text_part, Shapes::ShapeRef.new(shape: __string, location_name: "TextPart"))
1080
+ EmailTemplateResponse.struct_class = Types::EmailTemplateResponse
1081
+
935
1082
  EndpointBatchItem.add_member(:address, Shapes::ShapeRef.new(shape: __string, location_name: "Address"))
936
1083
  EndpointBatchItem.add_member(:attributes, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Attributes"))
937
1084
  EndpointBatchItem.add_member(:channel_type, Shapes::ShapeRef.new(shape: ChannelType, location_name: "ChannelType"))
@@ -1308,6 +1455,14 @@ module Aws::Pinpoint
1308
1455
  GetEmailChannelResponse[:payload] = :email_channel_response
1309
1456
  GetEmailChannelResponse[:payload_member] = GetEmailChannelResponse.member(:email_channel_response)
1310
1457
 
1458
+ GetEmailTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
1459
+ GetEmailTemplateRequest.struct_class = Types::GetEmailTemplateRequest
1460
+
1461
+ GetEmailTemplateResponse.add_member(:email_template_response, Shapes::ShapeRef.new(shape: EmailTemplateResponse, required: true, location_name: "EmailTemplateResponse"))
1462
+ GetEmailTemplateResponse.struct_class = Types::GetEmailTemplateResponse
1463
+ GetEmailTemplateResponse[:payload] = :email_template_response
1464
+ GetEmailTemplateResponse[:payload_member] = GetEmailTemplateResponse.member(:email_template_response)
1465
+
1311
1466
  GetEndpointRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1312
1467
  GetEndpointRequest.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "endpoint-id"))
1313
1468
  GetEndpointRequest.struct_class = Types::GetEndpointRequest
@@ -1371,6 +1526,14 @@ module Aws::Pinpoint
1371
1526
  GetImportJobsResponse[:payload] = :import_jobs_response
1372
1527
  GetImportJobsResponse[:payload_member] = GetImportJobsResponse.member(:import_jobs_response)
1373
1528
 
1529
+ GetPushTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
1530
+ GetPushTemplateRequest.struct_class = Types::GetPushTemplateRequest
1531
+
1532
+ GetPushTemplateResponse.add_member(:push_notification_template_response, Shapes::ShapeRef.new(shape: PushNotificationTemplateResponse, required: true, location_name: "PushNotificationTemplateResponse"))
1533
+ GetPushTemplateResponse.struct_class = Types::GetPushTemplateResponse
1534
+ GetPushTemplateResponse[:payload] = :push_notification_template_response
1535
+ GetPushTemplateResponse[:payload_member] = GetPushTemplateResponse.member(:push_notification_template_response)
1536
+
1374
1537
  GetSegmentExportJobsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1375
1538
  GetSegmentExportJobsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
1376
1539
  GetSegmentExportJobsRequest.add_member(:segment_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "segment-id"))
@@ -1441,6 +1604,14 @@ module Aws::Pinpoint
1441
1604
  GetSmsChannelResponse[:payload] = :sms_channel_response
1442
1605
  GetSmsChannelResponse[:payload_member] = GetSmsChannelResponse.member(:sms_channel_response)
1443
1606
 
1607
+ GetSmsTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
1608
+ GetSmsTemplateRequest.struct_class = Types::GetSmsTemplateRequest
1609
+
1610
+ GetSmsTemplateResponse.add_member(:sms_template_response, Shapes::ShapeRef.new(shape: SMSTemplateResponse, required: true, location_name: "SMSTemplateResponse"))
1611
+ GetSmsTemplateResponse.struct_class = Types::GetSmsTemplateResponse
1612
+ GetSmsTemplateResponse[:payload] = :sms_template_response
1613
+ GetSmsTemplateResponse[:payload_member] = GetSmsTemplateResponse.member(:sms_template_response)
1614
+
1444
1615
  GetUserEndpointsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1445
1616
  GetUserEndpointsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "user-id"))
1446
1617
  GetUserEndpointsRequest.struct_class = Types::GetUserEndpointsRequest
@@ -1531,6 +1702,8 @@ module Aws::Pinpoint
1531
1702
 
1532
1703
  ListOfSegmentResponse.member = Shapes::ShapeRef.new(shape: SegmentResponse)
1533
1704
 
1705
+ ListOfTemplateResponse.member = Shapes::ShapeRef.new(shape: TemplateResponse)
1706
+
1534
1707
  ListOfTreatmentResource.member = Shapes::ShapeRef.new(shape: TreatmentResource)
1535
1708
 
1536
1709
  ListOfWriteTreatmentResource.member = Shapes::ShapeRef.new(shape: WriteTreatmentResource)
@@ -1545,6 +1718,17 @@ module Aws::Pinpoint
1545
1718
  ListTagsForResourceResponse[:payload] = :tags_model
1546
1719
  ListTagsForResourceResponse[:payload_member] = ListTagsForResourceResponse.member(:tags_model)
1547
1720
 
1721
+ ListTemplatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "next-token"))
1722
+ ListTemplatesRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
1723
+ ListTemplatesRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "prefix"))
1724
+ ListTemplatesRequest.add_member(:template_type, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "template-type"))
1725
+ ListTemplatesRequest.struct_class = Types::ListTemplatesRequest
1726
+
1727
+ ListTemplatesResponse.add_member(:templates_response, Shapes::ShapeRef.new(shape: TemplatesResponse, required: true, location_name: "TemplatesResponse"))
1728
+ ListTemplatesResponse.struct_class = Types::ListTemplatesResponse
1729
+ ListTemplatesResponse[:payload] = :templates_response
1730
+ ListTemplatesResponse[:payload_member] = ListTemplatesResponse.member(:templates_response)
1731
+
1548
1732
  MapOfAddressConfiguration.key = Shapes::ShapeRef.new(shape: __string)
1549
1733
  MapOfAddressConfiguration.value = Shapes::ShapeRef.new(shape: AddressConfiguration)
1550
1734
 
@@ -1624,6 +1808,7 @@ module Aws::Pinpoint
1624
1808
  MessageRequest.add_member(:context, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Context"))
1625
1809
  MessageRequest.add_member(:endpoints, Shapes::ShapeRef.new(shape: MapOfEndpointSendConfiguration, location_name: "Endpoints"))
1626
1810
  MessageRequest.add_member(:message_configuration, Shapes::ShapeRef.new(shape: DirectMessageConfiguration, required: true, location_name: "MessageConfiguration"))
1811
+ MessageRequest.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
1627
1812
  MessageRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: __string, location_name: "TraceId"))
1628
1813
  MessageRequest.struct_class = Types::MessageRequest
1629
1814
 
@@ -1695,6 +1880,27 @@ module Aws::Pinpoint
1695
1880
  PublicEndpoint.add_member(:user, Shapes::ShapeRef.new(shape: EndpointUser, location_name: "User"))
1696
1881
  PublicEndpoint.struct_class = Types::PublicEndpoint
1697
1882
 
1883
+ PushNotificationTemplateRequest.add_member(:adm, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "ADM"))
1884
+ PushNotificationTemplateRequest.add_member(:apns, Shapes::ShapeRef.new(shape: APNSPushNotificationTemplate, location_name: "APNS"))
1885
+ PushNotificationTemplateRequest.add_member(:baidu, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "Baidu"))
1886
+ PushNotificationTemplateRequest.add_member(:default, Shapes::ShapeRef.new(shape: DefaultPushNotificationTemplate, location_name: "Default"))
1887
+ PushNotificationTemplateRequest.add_member(:gcm, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "GCM"))
1888
+ PushNotificationTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1889
+ PushNotificationTemplateRequest.struct_class = Types::PushNotificationTemplateRequest
1890
+
1891
+ PushNotificationTemplateResponse.add_member(:adm, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "ADM"))
1892
+ PushNotificationTemplateResponse.add_member(:apns, Shapes::ShapeRef.new(shape: APNSPushNotificationTemplate, location_name: "APNS"))
1893
+ PushNotificationTemplateResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
1894
+ PushNotificationTemplateResponse.add_member(:baidu, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "Baidu"))
1895
+ PushNotificationTemplateResponse.add_member(:creation_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "CreationDate"))
1896
+ PushNotificationTemplateResponse.add_member(:default, Shapes::ShapeRef.new(shape: DefaultPushNotificationTemplate, location_name: "Default"))
1897
+ PushNotificationTemplateResponse.add_member(:gcm, Shapes::ShapeRef.new(shape: AndroidPushNotificationTemplate, location_name: "GCM"))
1898
+ PushNotificationTemplateResponse.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastModifiedDate"))
1899
+ PushNotificationTemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1900
+ PushNotificationTemplateResponse.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "TemplateName"))
1901
+ PushNotificationTemplateResponse.add_member(:template_type, Shapes::ShapeRef.new(shape: TemplateType, required: true, location_name: "TemplateType"))
1902
+ PushNotificationTemplateResponse.struct_class = Types::PushNotificationTemplateResponse
1903
+
1698
1904
  PutEventStreamRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1699
1905
  PutEventStreamRequest.add_member(:write_event_stream, Shapes::ShapeRef.new(shape: WriteEventStream, required: true, location_name: "WriteEventStream"))
1700
1906
  PutEventStreamRequest.struct_class = Types::PutEventStreamRequest
@@ -1778,6 +1984,19 @@ module Aws::Pinpoint
1778
1984
  SMSMessage.add_member(:substitutions, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Substitutions"))
1779
1985
  SMSMessage.struct_class = Types::SMSMessage
1780
1986
 
1987
+ SMSTemplateRequest.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
1988
+ SMSTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1989
+ SMSTemplateRequest.struct_class = Types::SMSTemplateRequest
1990
+
1991
+ SMSTemplateResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
1992
+ SMSTemplateResponse.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
1993
+ SMSTemplateResponse.add_member(:creation_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "CreationDate"))
1994
+ SMSTemplateResponse.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastModifiedDate"))
1995
+ SMSTemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
1996
+ SMSTemplateResponse.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "TemplateName"))
1997
+ SMSTemplateResponse.add_member(:template_type, Shapes::ShapeRef.new(shape: TemplateType, required: true, location_name: "TemplateType"))
1998
+ SMSTemplateResponse.struct_class = Types::SMSTemplateResponse
1999
+
1781
2000
  Schedule.add_member(:end_time, Shapes::ShapeRef.new(shape: __string, location_name: "EndTime"))
1782
2001
  Schedule.add_member(:event_filter, Shapes::ShapeRef.new(shape: CampaignEventFilter, location_name: "EventFilter"))
1783
2002
  Schedule.add_member(:frequency, Shapes::ShapeRef.new(shape: Frequency, location_name: "Frequency"))
@@ -1863,6 +2082,7 @@ module Aws::Pinpoint
1863
2082
 
1864
2083
  SendUsersMessageRequest.add_member(:context, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Context"))
1865
2084
  SendUsersMessageRequest.add_member(:message_configuration, Shapes::ShapeRef.new(shape: DirectMessageConfiguration, required: true, location_name: "MessageConfiguration"))
2085
+ SendUsersMessageRequest.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
1866
2086
  SendUsersMessageRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: __string, location_name: "TraceId"))
1867
2087
  SendUsersMessageRequest.add_member(:users, Shapes::ShapeRef.new(shape: MapOfEndpointSendConfiguration, required: true, location_name: "Users"))
1868
2088
  SendUsersMessageRequest.struct_class = Types::SendUsersMessageRequest
@@ -1911,6 +2131,26 @@ module Aws::Pinpoint
1911
2131
  TagsModel.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, required: true, location_name: "tags"))
1912
2132
  TagsModel.struct_class = Types::TagsModel
1913
2133
 
2134
+ Template.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
2135
+ Template.struct_class = Types::Template
2136
+
2137
+ TemplateConfiguration.add_member(:email_template, Shapes::ShapeRef.new(shape: Template, location_name: "EmailTemplate"))
2138
+ TemplateConfiguration.add_member(:push_template, Shapes::ShapeRef.new(shape: Template, location_name: "PushTemplate"))
2139
+ TemplateConfiguration.add_member(:sms_template, Shapes::ShapeRef.new(shape: Template, location_name: "SMSTemplate"))
2140
+ TemplateConfiguration.struct_class = Types::TemplateConfiguration
2141
+
2142
+ TemplateResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
2143
+ TemplateResponse.add_member(:creation_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "CreationDate"))
2144
+ TemplateResponse.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastModifiedDate"))
2145
+ TemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
2146
+ TemplateResponse.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "TemplateName"))
2147
+ TemplateResponse.add_member(:template_type, Shapes::ShapeRef.new(shape: TemplateType, required: true, location_name: "TemplateType"))
2148
+ TemplateResponse.struct_class = Types::TemplateResponse
2149
+
2150
+ TemplatesResponse.add_member(:item, Shapes::ShapeRef.new(shape: ListOfTemplateResponse, required: true, location_name: "Item"))
2151
+ TemplatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
2152
+ TemplatesResponse.struct_class = Types::TemplatesResponse
2153
+
1914
2154
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "Message"))
1915
2155
  TooManyRequestsException.add_member(:request_id, Shapes::ShapeRef.new(shape: __string, location_name: "RequestID"))
1916
2156
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
@@ -1920,6 +2160,7 @@ module Aws::Pinpoint
1920
2160
  TreatmentResource.add_member(:schedule, Shapes::ShapeRef.new(shape: Schedule, location_name: "Schedule"))
1921
2161
  TreatmentResource.add_member(:size_percent, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "SizePercent"))
1922
2162
  TreatmentResource.add_member(:state, Shapes::ShapeRef.new(shape: CampaignState, location_name: "State"))
2163
+ TreatmentResource.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
1923
2164
  TreatmentResource.add_member(:treatment_description, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentDescription"))
1924
2165
  TreatmentResource.add_member(:treatment_name, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentName"))
1925
2166
  TreatmentResource.struct_class = Types::TreatmentResource
@@ -2031,6 +2272,17 @@ module Aws::Pinpoint
2031
2272
  UpdateEmailChannelResponse[:payload] = :email_channel_response
2032
2273
  UpdateEmailChannelResponse[:payload_member] = UpdateEmailChannelResponse.member(:email_channel_response)
2033
2274
 
2275
+ UpdateEmailTemplateRequest.add_member(:email_template_request, Shapes::ShapeRef.new(shape: EmailTemplateRequest, required: true, location_name: "EmailTemplateRequest"))
2276
+ UpdateEmailTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
2277
+ UpdateEmailTemplateRequest.struct_class = Types::UpdateEmailTemplateRequest
2278
+ UpdateEmailTemplateRequest[:payload] = :email_template_request
2279
+ UpdateEmailTemplateRequest[:payload_member] = UpdateEmailTemplateRequest.member(:email_template_request)
2280
+
2281
+ UpdateEmailTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
2282
+ UpdateEmailTemplateResponse.struct_class = Types::UpdateEmailTemplateResponse
2283
+ UpdateEmailTemplateResponse[:payload] = :message_body
2284
+ UpdateEmailTemplateResponse[:payload_member] = UpdateEmailTemplateResponse.member(:message_body)
2285
+
2034
2286
  UpdateEndpointRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
2035
2287
  UpdateEndpointRequest.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "endpoint-id"))
2036
2288
  UpdateEndpointRequest.add_member(:endpoint_request, Shapes::ShapeRef.new(shape: EndpointRequest, required: true, location_name: "EndpointRequest"))
@@ -2065,6 +2317,17 @@ module Aws::Pinpoint
2065
2317
  UpdateGcmChannelResponse[:payload] = :gcm_channel_response
2066
2318
  UpdateGcmChannelResponse[:payload_member] = UpdateGcmChannelResponse.member(:gcm_channel_response)
2067
2319
 
2320
+ UpdatePushTemplateRequest.add_member(:push_notification_template_request, Shapes::ShapeRef.new(shape: PushNotificationTemplateRequest, required: true, location_name: "PushNotificationTemplateRequest"))
2321
+ UpdatePushTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
2322
+ UpdatePushTemplateRequest.struct_class = Types::UpdatePushTemplateRequest
2323
+ UpdatePushTemplateRequest[:payload] = :push_notification_template_request
2324
+ UpdatePushTemplateRequest[:payload_member] = UpdatePushTemplateRequest.member(:push_notification_template_request)
2325
+
2326
+ UpdatePushTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
2327
+ UpdatePushTemplateResponse.struct_class = Types::UpdatePushTemplateResponse
2328
+ UpdatePushTemplateResponse[:payload] = :message_body
2329
+ UpdatePushTemplateResponse[:payload_member] = UpdatePushTemplateResponse.member(:message_body)
2330
+
2068
2331
  UpdateSegmentRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
2069
2332
  UpdateSegmentRequest.add_member(:segment_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "segment-id"))
2070
2333
  UpdateSegmentRequest.add_member(:write_segment_request, Shapes::ShapeRef.new(shape: WriteSegmentRequest, required: true, location_name: "WriteSegmentRequest"))
@@ -2088,6 +2351,17 @@ module Aws::Pinpoint
2088
2351
  UpdateSmsChannelResponse[:payload] = :sms_channel_response
2089
2352
  UpdateSmsChannelResponse[:payload_member] = UpdateSmsChannelResponse.member(:sms_channel_response)
2090
2353
 
2354
+ UpdateSmsTemplateRequest.add_member(:sms_template_request, Shapes::ShapeRef.new(shape: SMSTemplateRequest, required: true, location_name: "SMSTemplateRequest"))
2355
+ UpdateSmsTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
2356
+ UpdateSmsTemplateRequest.struct_class = Types::UpdateSmsTemplateRequest
2357
+ UpdateSmsTemplateRequest[:payload] = :sms_template_request
2358
+ UpdateSmsTemplateRequest[:payload_member] = UpdateSmsTemplateRequest.member(:sms_template_request)
2359
+
2360
+ UpdateSmsTemplateResponse.add_member(:message_body, Shapes::ShapeRef.new(shape: MessageBody, required: true, location_name: "MessageBody"))
2361
+ UpdateSmsTemplateResponse.struct_class = Types::UpdateSmsTemplateResponse
2362
+ UpdateSmsTemplateResponse[:payload] = :message_body
2363
+ UpdateSmsTemplateResponse[:payload_member] = UpdateSmsTemplateResponse.member(:message_body)
2364
+
2091
2365
  UpdateVoiceChannelRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
2092
2366
  UpdateVoiceChannelRequest.add_member(:voice_channel_request, Shapes::ShapeRef.new(shape: VoiceChannelRequest, required: true, location_name: "VoiceChannelRequest"))
2093
2367
  UpdateVoiceChannelRequest.struct_class = Types::UpdateVoiceChannelRequest
@@ -2140,6 +2414,7 @@ module Aws::Pinpoint
2140
2414
  WriteCampaignRequest.add_member(:segment_id, Shapes::ShapeRef.new(shape: __string, location_name: "SegmentId"))
2141
2415
  WriteCampaignRequest.add_member(:segment_version, Shapes::ShapeRef.new(shape: __integer, location_name: "SegmentVersion"))
2142
2416
  WriteCampaignRequest.add_member(:tags, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "tags"))
2417
+ WriteCampaignRequest.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
2143
2418
  WriteCampaignRequest.add_member(:treatment_description, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentDescription"))
2144
2419
  WriteCampaignRequest.add_member(:treatment_name, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentName"))
2145
2420
  WriteCampaignRequest.struct_class = Types::WriteCampaignRequest
@@ -2157,6 +2432,7 @@ module Aws::Pinpoint
2157
2432
  WriteTreatmentResource.add_member(:message_configuration, Shapes::ShapeRef.new(shape: MessageConfiguration, location_name: "MessageConfiguration"))
2158
2433
  WriteTreatmentResource.add_member(:schedule, Shapes::ShapeRef.new(shape: Schedule, location_name: "Schedule"))
2159
2434
  WriteTreatmentResource.add_member(:size_percent, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "SizePercent"))
2435
+ WriteTreatmentResource.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
2160
2436
  WriteTreatmentResource.add_member(:treatment_description, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentDescription"))
2161
2437
  WriteTreatmentResource.add_member(:treatment_name, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentName"))
2162
2438
  WriteTreatmentResource.struct_class = Types::WriteTreatmentResource
@@ -2207,6 +2483,19 @@ module Aws::Pinpoint
2207
2483
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2208
2484
  end)
2209
2485
 
2486
+ api.add_operation(:create_email_template, Seahorse::Model::Operation.new.tap do |o|
2487
+ o.name = "CreateEmailTemplate"
2488
+ o.http_method = "POST"
2489
+ o.http_request_uri = "/v1/templates/{template-name}/email"
2490
+ o.input = Shapes::ShapeRef.new(shape: CreateEmailTemplateRequest)
2491
+ o.output = Shapes::ShapeRef.new(shape: CreateEmailTemplateResponse)
2492
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2493
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2494
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2495
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2496
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2497
+ end)
2498
+
2210
2499
  api.add_operation(:create_export_job, Seahorse::Model::Operation.new.tap do |o|
2211
2500
  o.name = "CreateExportJob"
2212
2501
  o.http_method = "POST"
@@ -2235,6 +2524,19 @@ module Aws::Pinpoint
2235
2524
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2236
2525
  end)
2237
2526
 
2527
+ api.add_operation(:create_push_template, Seahorse::Model::Operation.new.tap do |o|
2528
+ o.name = "CreatePushTemplate"
2529
+ o.http_method = "POST"
2530
+ o.http_request_uri = "/v1/templates/{template-name}/push"
2531
+ o.input = Shapes::ShapeRef.new(shape: CreatePushTemplateRequest)
2532
+ o.output = Shapes::ShapeRef.new(shape: CreatePushTemplateResponse)
2533
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2534
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2535
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2536
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2537
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2538
+ end)
2539
+
2238
2540
  api.add_operation(:create_segment, Seahorse::Model::Operation.new.tap do |o|
2239
2541
  o.name = "CreateSegment"
2240
2542
  o.http_method = "POST"
@@ -2249,6 +2551,19 @@ module Aws::Pinpoint
2249
2551
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2250
2552
  end)
2251
2553
 
2554
+ api.add_operation(:create_sms_template, Seahorse::Model::Operation.new.tap do |o|
2555
+ o.name = "CreateSmsTemplate"
2556
+ o.http_method = "POST"
2557
+ o.http_request_uri = "/v1/templates/{template-name}/sms"
2558
+ o.input = Shapes::ShapeRef.new(shape: CreateSmsTemplateRequest)
2559
+ o.output = Shapes::ShapeRef.new(shape: CreateSmsTemplateResponse)
2560
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2561
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2562
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2563
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2564
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2565
+ end)
2566
+
2252
2567
  api.add_operation(:delete_adm_channel, Seahorse::Model::Operation.new.tap do |o|
2253
2568
  o.name = "DeleteAdmChannel"
2254
2569
  o.http_method = "DELETE"
@@ -2375,6 +2690,20 @@ module Aws::Pinpoint
2375
2690
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2376
2691
  end)
2377
2692
 
2693
+ api.add_operation(:delete_email_template, Seahorse::Model::Operation.new.tap do |o|
2694
+ o.name = "DeleteEmailTemplate"
2695
+ o.http_method = "DELETE"
2696
+ o.http_request_uri = "/v1/templates/{template-name}/email"
2697
+ o.input = Shapes::ShapeRef.new(shape: DeleteEmailTemplateRequest)
2698
+ o.output = Shapes::ShapeRef.new(shape: DeleteEmailTemplateResponse)
2699
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2700
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2701
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2702
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2703
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2704
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2705
+ end)
2706
+
2378
2707
  api.add_operation(:delete_endpoint, Seahorse::Model::Operation.new.tap do |o|
2379
2708
  o.name = "DeleteEndpoint"
2380
2709
  o.http_method = "DELETE"
@@ -2417,6 +2746,20 @@ module Aws::Pinpoint
2417
2746
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2418
2747
  end)
2419
2748
 
2749
+ api.add_operation(:delete_push_template, Seahorse::Model::Operation.new.tap do |o|
2750
+ o.name = "DeletePushTemplate"
2751
+ o.http_method = "DELETE"
2752
+ o.http_request_uri = "/v1/templates/{template-name}/push"
2753
+ o.input = Shapes::ShapeRef.new(shape: DeletePushTemplateRequest)
2754
+ o.output = Shapes::ShapeRef.new(shape: DeletePushTemplateResponse)
2755
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2756
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2757
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2758
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2759
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2760
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2761
+ end)
2762
+
2420
2763
  api.add_operation(:delete_segment, Seahorse::Model::Operation.new.tap do |o|
2421
2764
  o.name = "DeleteSegment"
2422
2765
  o.http_method = "DELETE"
@@ -2445,6 +2788,20 @@ module Aws::Pinpoint
2445
2788
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2446
2789
  end)
2447
2790
 
2791
+ api.add_operation(:delete_sms_template, Seahorse::Model::Operation.new.tap do |o|
2792
+ o.name = "DeleteSmsTemplate"
2793
+ o.http_method = "DELETE"
2794
+ o.http_request_uri = "/v1/templates/{template-name}/sms"
2795
+ o.input = Shapes::ShapeRef.new(shape: DeleteSmsTemplateRequest)
2796
+ o.output = Shapes::ShapeRef.new(shape: DeleteSmsTemplateResponse)
2797
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2798
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2799
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2800
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2801
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2802
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2803
+ end)
2804
+
2448
2805
  api.add_operation(:delete_user_endpoints, Seahorse::Model::Operation.new.tap do |o|
2449
2806
  o.name = "DeleteUserEndpoints"
2450
2807
  o.http_method = "DELETE"
@@ -2725,6 +3082,20 @@ module Aws::Pinpoint
2725
3082
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2726
3083
  end)
2727
3084
 
3085
+ api.add_operation(:get_email_template, Seahorse::Model::Operation.new.tap do |o|
3086
+ o.name = "GetEmailTemplate"
3087
+ o.http_method = "GET"
3088
+ o.http_request_uri = "/v1/templates/{template-name}/email"
3089
+ o.input = Shapes::ShapeRef.new(shape: GetEmailTemplateRequest)
3090
+ o.output = Shapes::ShapeRef.new(shape: GetEmailTemplateResponse)
3091
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3092
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3093
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3094
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3095
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3096
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3097
+ end)
3098
+
2728
3099
  api.add_operation(:get_endpoint, Seahorse::Model::Operation.new.tap do |o|
2729
3100
  o.name = "GetEndpoint"
2730
3101
  o.http_method = "GET"
@@ -2823,6 +3194,20 @@ module Aws::Pinpoint
2823
3194
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2824
3195
  end)
2825
3196
 
3197
+ api.add_operation(:get_push_template, Seahorse::Model::Operation.new.tap do |o|
3198
+ o.name = "GetPushTemplate"
3199
+ o.http_method = "GET"
3200
+ o.http_request_uri = "/v1/templates/{template-name}/push"
3201
+ o.input = Shapes::ShapeRef.new(shape: GetPushTemplateRequest)
3202
+ o.output = Shapes::ShapeRef.new(shape: GetPushTemplateResponse)
3203
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3204
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3205
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3206
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3207
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3208
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3209
+ end)
3210
+
2826
3211
  api.add_operation(:get_segment, Seahorse::Model::Operation.new.tap do |o|
2827
3212
  o.name = "GetSegment"
2828
3213
  o.http_method = "GET"
@@ -2921,6 +3306,20 @@ module Aws::Pinpoint
2921
3306
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2922
3307
  end)
2923
3308
 
3309
+ api.add_operation(:get_sms_template, Seahorse::Model::Operation.new.tap do |o|
3310
+ o.name = "GetSmsTemplate"
3311
+ o.http_method = "GET"
3312
+ o.http_request_uri = "/v1/templates/{template-name}/sms"
3313
+ o.input = Shapes::ShapeRef.new(shape: GetSmsTemplateRequest)
3314
+ o.output = Shapes::ShapeRef.new(shape: GetSmsTemplateResponse)
3315
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3316
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3317
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3318
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3319
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3320
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3321
+ end)
3322
+
2924
3323
  api.add_operation(:get_user_endpoints, Seahorse::Model::Operation.new.tap do |o|
2925
3324
  o.name = "GetUserEndpoints"
2926
3325
  o.http_method = "GET"
@@ -2957,6 +3356,19 @@ module Aws::Pinpoint
2957
3356
  o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
2958
3357
  end)
2959
3358
 
3359
+ api.add_operation(:list_templates, Seahorse::Model::Operation.new.tap do |o|
3360
+ o.name = "ListTemplates"
3361
+ o.http_method = "GET"
3362
+ o.http_request_uri = "/v1/templates"
3363
+ o.input = Shapes::ShapeRef.new(shape: ListTemplatesRequest)
3364
+ o.output = Shapes::ShapeRef.new(shape: ListTemplatesResponse)
3365
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3366
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3367
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3368
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3369
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3370
+ end)
3371
+
2960
3372
  api.add_operation(:phone_number_validate, Seahorse::Model::Operation.new.tap do |o|
2961
3373
  o.name = "PhoneNumberValidate"
2962
3374
  o.http_method = "POST"
@@ -3183,6 +3595,20 @@ module Aws::Pinpoint
3183
3595
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3184
3596
  end)
3185
3597
 
3598
+ api.add_operation(:update_email_template, Seahorse::Model::Operation.new.tap do |o|
3599
+ o.name = "UpdateEmailTemplate"
3600
+ o.http_method = "PUT"
3601
+ o.http_request_uri = "/v1/templates/{template-name}/email"
3602
+ o.input = Shapes::ShapeRef.new(shape: UpdateEmailTemplateRequest)
3603
+ o.output = Shapes::ShapeRef.new(shape: UpdateEmailTemplateResponse)
3604
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3605
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3606
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3607
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3608
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3609
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3610
+ end)
3611
+
3186
3612
  api.add_operation(:update_endpoint, Seahorse::Model::Operation.new.tap do |o|
3187
3613
  o.name = "UpdateEndpoint"
3188
3614
  o.http_method = "PUT"
@@ -3225,6 +3651,20 @@ module Aws::Pinpoint
3225
3651
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3226
3652
  end)
3227
3653
 
3654
+ api.add_operation(:update_push_template, Seahorse::Model::Operation.new.tap do |o|
3655
+ o.name = "UpdatePushTemplate"
3656
+ o.http_method = "PUT"
3657
+ o.http_request_uri = "/v1/templates/{template-name}/push"
3658
+ o.input = Shapes::ShapeRef.new(shape: UpdatePushTemplateRequest)
3659
+ o.output = Shapes::ShapeRef.new(shape: UpdatePushTemplateResponse)
3660
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3661
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3662
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3663
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3664
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3665
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3666
+ end)
3667
+
3228
3668
  api.add_operation(:update_segment, Seahorse::Model::Operation.new.tap do |o|
3229
3669
  o.name = "UpdateSegment"
3230
3670
  o.http_method = "PUT"
@@ -3253,6 +3693,20 @@ module Aws::Pinpoint
3253
3693
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3254
3694
  end)
3255
3695
 
3696
+ api.add_operation(:update_sms_template, Seahorse::Model::Operation.new.tap do |o|
3697
+ o.name = "UpdateSmsTemplate"
3698
+ o.http_method = "PUT"
3699
+ o.http_request_uri = "/v1/templates/{template-name}/sms"
3700
+ o.input = Shapes::ShapeRef.new(shape: UpdateSmsTemplateRequest)
3701
+ o.output = Shapes::ShapeRef.new(shape: UpdateSmsTemplateResponse)
3702
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3703
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3704
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3705
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3706
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3707
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3708
+ end)
3709
+
3256
3710
  api.add_operation(:update_voice_channel, Seahorse::Model::Operation.new.tap do |o|
3257
3711
  o.name = "UpdateVoiceChannel"
3258
3712
  o.http_method = "PUT"