aws-sdk-pinpoint 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15afd99bca302c7968d6194167597749edf3f9e7
4
- data.tar.gz: fc2de55398b73934984347ed0a842f54a6f0a2b8
3
+ metadata.gz: 90f7cd5a83806a07e7487988b99dcda01cebc6aa
4
+ data.tar.gz: 6edbd43a52692a3cd2a70ecd0feef24474b32567
5
5
  SHA512:
6
- metadata.gz: 390d92a82b0bee8d2f998d35032c8b47d4ff30fb6393f5229b0f9846392c8f89be68c7f3ef142315b7be40e49c1cc6c764069a55aa7a9e87c471911ba76e065f
7
- data.tar.gz: 0f549485a25ca5a9c193bf46d34948e0f83ca1e8585c496367db2a1159db7e8e0bc7ab7458eb656fa6aeecbd3397f8d1606744c2b7b8e76ece04b61ce216e00a
6
+ metadata.gz: f46fc7a27ad063a7ac764d4fdc1e5e7380f766f96f72d9c4cf2fb5df2c8e4a8aa294690dabe307c72bc3a043ee2763b5b415c7cc8b7c54569c7f8669724a2615
7
+ data.tar.gz: db2b591f95ccf4cdfd8ecfc0a46ef342fdd092b041bf9034b77ef7c127ed6804b6178fe3bb3e4b7fa802a2d6b13f995aa2922fc9813023e02961f1246a48eea6
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-pinpoint/customizations'
42
42
  # @service
43
43
  module Aws::Pinpoint
44
44
 
45
- GEM_VERSION = '1.6.0'
45
+ GEM_VERSION = '1.7.0'
46
46
 
47
47
  end
@@ -878,7 +878,7 @@ module Aws::Pinpoint
878
878
  # version: 1,
879
879
  # },
880
880
  # ],
881
- # source_type: "ALL", # accepts ALL, ANY
881
+ # source_type: "ALL", # accepts ALL, ANY, NONE
882
882
  # type: "ALL", # accepts ALL, ANY, NONE
883
883
  # },
884
884
  # ],
@@ -980,7 +980,7 @@ module Aws::Pinpoint
980
980
  # resp.segment_response.segment_groups.groups[0].source_segments #=> Array
981
981
  # resp.segment_response.segment_groups.groups[0].source_segments[0].id #=> String
982
982
  # resp.segment_response.segment_groups.groups[0].source_segments[0].version #=> Integer
983
- # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
983
+ # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
984
984
  # resp.segment_response.segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
985
985
  # resp.segment_response.segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
986
986
  # resp.segment_response.segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -1734,7 +1734,7 @@ module Aws::Pinpoint
1734
1734
  # resp.segment_response.segment_groups.groups[0].source_segments #=> Array
1735
1735
  # resp.segment_response.segment_groups.groups[0].source_segments[0].id #=> String
1736
1736
  # resp.segment_response.segment_groups.groups[0].source_segments[0].version #=> Integer
1737
- # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
1737
+ # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
1738
1738
  # resp.segment_response.segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
1739
1739
  # resp.segment_response.segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
1740
1740
  # resp.segment_response.segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -1789,7 +1789,7 @@ module Aws::Pinpoint
1789
1789
  req.send_request(options)
1790
1790
  end
1791
1791
 
1792
- # Deletes endpoints associated with an user id.
1792
+ # Deletes endpoints that are associated with a User ID.
1793
1793
  #
1794
1794
  # @option params [required, String] :application_id
1795
1795
  #
@@ -2419,6 +2419,7 @@ module Aws::Pinpoint
2419
2419
  # resp.activities_response.item[0].timezones_total_count #=> Integer
2420
2420
  # resp.activities_response.item[0].total_endpoint_count #=> Integer
2421
2421
  # resp.activities_response.item[0].treatment_id #=> String
2422
+ # resp.activities_response.next_token #=> String
2422
2423
  #
2423
2424
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivities AWS API Documentation
2424
2425
  #
@@ -3579,7 +3580,7 @@ module Aws::Pinpoint
3579
3580
  # resp.segment_response.segment_groups.groups[0].source_segments #=> Array
3580
3581
  # resp.segment_response.segment_groups.groups[0].source_segments[0].id #=> String
3581
3582
  # resp.segment_response.segment_groups.groups[0].source_segments[0].version #=> Integer
3582
- # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
3583
+ # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
3583
3584
  # resp.segment_response.segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
3584
3585
  # resp.segment_response.segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
3585
3586
  # resp.segment_response.segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -3819,7 +3820,7 @@ module Aws::Pinpoint
3819
3820
  # resp.segment_response.segment_groups.groups[0].source_segments #=> Array
3820
3821
  # resp.segment_response.segment_groups.groups[0].source_segments[0].id #=> String
3821
3822
  # resp.segment_response.segment_groups.groups[0].source_segments[0].version #=> Integer
3822
- # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
3823
+ # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
3823
3824
  # resp.segment_response.segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
3824
3825
  # resp.segment_response.segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
3825
3826
  # resp.segment_response.segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -3951,7 +3952,7 @@ module Aws::Pinpoint
3951
3952
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments #=> Array
3952
3953
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments[0].id #=> String
3953
3954
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments[0].version #=> Integer
3954
- # resp.segments_response.item[0].segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
3955
+ # resp.segments_response.item[0].segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
3955
3956
  # resp.segments_response.item[0].segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
3956
3957
  # resp.segments_response.item[0].segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
3957
3958
  # resp.segments_response.item[0].segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -4081,7 +4082,7 @@ module Aws::Pinpoint
4081
4082
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments #=> Array
4082
4083
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments[0].id #=> String
4083
4084
  # resp.segments_response.item[0].segment_groups.groups[0].source_segments[0].version #=> Integer
4084
- # resp.segments_response.item[0].segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
4085
+ # resp.segments_response.item[0].segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
4085
4086
  # resp.segments_response.item[0].segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
4086
4087
  # resp.segments_response.item[0].segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
4087
4088
  # resp.segments_response.item[0].segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -4137,7 +4138,8 @@ module Aws::Pinpoint
4137
4138
  req.send_request(options)
4138
4139
  end
4139
4140
 
4140
- # Returns information about the endpoints associated with an user id.
4141
+ # Returns information about the endpoints that are associated with a
4142
+ # User ID.
4141
4143
  #
4142
4144
  # @option params [required, String] :application_id
4143
4145
  #
@@ -4283,6 +4285,106 @@ module Aws::Pinpoint
4283
4285
  req.send_request(options)
4284
4286
  end
4285
4287
 
4288
+ # Use to record events for endpoints. This method creates events and
4289
+ # creates or updates the endpoints that those events are associated
4290
+ # with.
4291
+ #
4292
+ # @option params [required, String] :application_id
4293
+ #
4294
+ # @option params [required, Types::EventsRequest] :events_request
4295
+ # Put Events request
4296
+ #
4297
+ # @return [Types::PutEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4298
+ #
4299
+ # * {Types::PutEventsResponse#events_response #events_response} => Types::EventsResponse
4300
+ #
4301
+ # @example Request syntax with placeholder values
4302
+ #
4303
+ # resp = client.put_events({
4304
+ # application_id: "__string", # required
4305
+ # events_request: { # required
4306
+ # batch_item: {
4307
+ # "__string" => {
4308
+ # endpoint: {
4309
+ # address: "__string",
4310
+ # attributes: {
4311
+ # "__string" => ["__string"],
4312
+ # },
4313
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
4314
+ # demographic: {
4315
+ # app_version: "__string",
4316
+ # locale: "__string",
4317
+ # make: "__string",
4318
+ # model: "__string",
4319
+ # model_version: "__string",
4320
+ # platform: "__string",
4321
+ # platform_version: "__string",
4322
+ # timezone: "__string",
4323
+ # },
4324
+ # effective_date: "__string",
4325
+ # endpoint_status: "__string",
4326
+ # location: {
4327
+ # city: "__string",
4328
+ # country: "__string",
4329
+ # latitude: 1.0,
4330
+ # longitude: 1.0,
4331
+ # postal_code: "__string",
4332
+ # region: "__string",
4333
+ # },
4334
+ # metrics: {
4335
+ # "__string" => 1.0,
4336
+ # },
4337
+ # opt_out: "__string",
4338
+ # request_id: "__string",
4339
+ # user: {
4340
+ # user_attributes: {
4341
+ # "__string" => ["__string"],
4342
+ # },
4343
+ # user_id: "__string",
4344
+ # },
4345
+ # },
4346
+ # events: {
4347
+ # "__string" => {
4348
+ # attributes: {
4349
+ # "__string" => "__string",
4350
+ # },
4351
+ # client_sdk_version: "__string",
4352
+ # event_type: "__string",
4353
+ # metrics: {
4354
+ # "__string" => 1.0,
4355
+ # },
4356
+ # session: {
4357
+ # duration: 1,
4358
+ # id: "__string",
4359
+ # start_timestamp: "__string",
4360
+ # stop_timestamp: "__string",
4361
+ # },
4362
+ # timestamp: "__string",
4363
+ # },
4364
+ # },
4365
+ # },
4366
+ # },
4367
+ # },
4368
+ # })
4369
+ #
4370
+ # @example Response structure
4371
+ #
4372
+ # resp.events_response.results #=> Hash
4373
+ # resp.events_response.results["__string"].endpoint_item_response.message #=> String
4374
+ # resp.events_response.results["__string"].endpoint_item_response.status_code #=> Integer
4375
+ # resp.events_response.results["__string"].events_item_response #=> Hash
4376
+ # resp.events_response.results["__string"].events_item_response["__string"].message #=> String
4377
+ # resp.events_response.results["__string"].events_item_response["__string"].status_code #=> Integer
4378
+ #
4379
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEvents AWS API Documentation
4380
+ #
4381
+ # @overload put_events(params = {})
4382
+ # @param [Hash] params ({})
4383
+ def put_events(params = {}, options = {})
4384
+ req = build_request(:put_events, params)
4385
+ req.send_request(options)
4386
+ end
4387
+
4286
4388
  # Used to remove the attributes for an app
4287
4389
  #
4288
4390
  # @option params [required, String] :application_id
@@ -4322,15 +4424,7 @@ module Aws::Pinpoint
4322
4424
  req.send_request(options)
4323
4425
  end
4324
4426
 
4325
- # Use this resource to send a direct message, which is a one time
4326
- # message that you send to a limited audience without creating a
4327
- # campaign. You can send the message to up to 100 recipients. You cannot
4328
- # use the message to engage a segment. When you send the message, Amazon
4329
- # Pinpoint delivers it immediately, and you cannot schedule the
4330
- # delivery. To engage a user segment, and to schedule the message
4331
- # delivery, create a campaign instead of sending a direct message. You
4332
- # can send a direct message as a push notification to your mobile app or
4333
- # as an SMS message to SMS-enabled devices.
4427
+ # Used to send a direct message.
4334
4428
  #
4335
4429
  # @option params [required, String] :application_id
4336
4430
  #
@@ -4495,6 +4589,7 @@ module Aws::Pinpoint
4495
4589
  # },
4496
4590
  # },
4497
4591
  # },
4592
+ # trace_id: "__string",
4498
4593
  # },
4499
4594
  # })
4500
4595
  #
@@ -4525,25 +4620,7 @@ module Aws::Pinpoint
4525
4620
  req.send_request(options)
4526
4621
  end
4527
4622
 
4528
- # Use this resource to message a list of users. Amazon Pinpoint sends
4529
- # the message to all of the endpoints that are associated with each
4530
- # user. A user represents an individual who is assigned a unique user
4531
- # ID, and this ID is assigned to one or more endpoints. For example, if
4532
- # an individual uses your app on multiple devices, your app could assign
4533
- # that person's user ID to the endpoint for each device. With the
4534
- # users-messages resource, you specify the message recipients as user
4535
- # IDs. For each user ID, Amazon Pinpoint delivers the message to all of
4536
- # the user's endpoints. Within the body of your request, you can
4537
- # specify a default message, and you can tailor your message for
4538
- # different channels, including those for mobile push and SMS. With this
4539
- # resource, you send a direct message, which is a one time message that
4540
- # you send to a limited audience without creating a campaign. You can
4541
- # send the message to up to 100 users per request. You cannot use the
4542
- # message to engage a segment. When you send the message, Amazon
4543
- # Pinpoint delivers it immediately, and you cannot schedule the
4544
- # delivery. To engage a user segment, and to schedule the message
4545
- # delivery, create a campaign instead of using the users-messages
4546
- # resource.
4623
+ # Used to send a message to a list of users.
4547
4624
  #
4548
4625
  # @option params [required, String] :application_id
4549
4626
  #
@@ -4681,6 +4758,7 @@ module Aws::Pinpoint
4681
4758
  # },
4682
4759
  # },
4683
4760
  # },
4761
+ # trace_id: "__string",
4684
4762
  # users: {
4685
4763
  # "__string" => {
4686
4764
  # body_override: "__string",
@@ -5733,7 +5811,7 @@ module Aws::Pinpoint
5733
5811
  req.send_request(options)
5734
5812
  end
5735
5813
 
5736
- # Use to update a segment.
5814
+ # Used to update a segment.
5737
5815
  #
5738
5816
  # @option params [required, String] :application_id
5739
5817
  #
@@ -5894,7 +5972,7 @@ module Aws::Pinpoint
5894
5972
  # version: 1,
5895
5973
  # },
5896
5974
  # ],
5897
- # source_type: "ALL", # accepts ALL, ANY
5975
+ # source_type: "ALL", # accepts ALL, ANY, NONE
5898
5976
  # type: "ALL", # accepts ALL, ANY, NONE
5899
5977
  # },
5900
5978
  # ],
@@ -5996,7 +6074,7 @@ module Aws::Pinpoint
5996
6074
  # resp.segment_response.segment_groups.groups[0].source_segments #=> Array
5997
6075
  # resp.segment_response.segment_groups.groups[0].source_segments[0].id #=> String
5998
6076
  # resp.segment_response.segment_groups.groups[0].source_segments[0].version #=> Integer
5999
- # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY"
6077
+ # resp.segment_response.segment_groups.groups[0].source_type #=> String, one of "ALL", "ANY", "NONE"
6000
6078
  # resp.segment_response.segment_groups.groups[0].type #=> String, one of "ALL", "ANY", "NONE"
6001
6079
  # resp.segment_response.segment_groups.include #=> String, one of "ALL", "ANY", "NONE"
6002
6080
  # resp.segment_response.segment_type #=> String, one of "DIMENSIONAL", "IMPORT"
@@ -6072,7 +6150,7 @@ module Aws::Pinpoint
6072
6150
  params: params,
6073
6151
  config: config)
6074
6152
  context[:gem_name] = 'aws-sdk-pinpoint'
6075
- context[:gem_version] = '1.6.0'
6153
+ context[:gem_version] = '1.7.0'
6076
6154
  Seahorse::Client::Request.new(handlers, context)
6077
6155
  end
6078
6156
 
@@ -100,6 +100,7 @@ module Aws::Pinpoint
100
100
  EndpointBatchItem = Shapes::StructureShape.new(name: 'EndpointBatchItem')
101
101
  EndpointBatchRequest = Shapes::StructureShape.new(name: 'EndpointBatchRequest')
102
102
  EndpointDemographic = Shapes::StructureShape.new(name: 'EndpointDemographic')
103
+ EndpointItemResponse = Shapes::StructureShape.new(name: 'EndpointItemResponse')
103
104
  EndpointLocation = Shapes::StructureShape.new(name: 'EndpointLocation')
104
105
  EndpointMessageResult = Shapes::StructureShape.new(name: 'EndpointMessageResult')
105
106
  EndpointRequest = Shapes::StructureShape.new(name: 'EndpointRequest')
@@ -107,7 +108,12 @@ module Aws::Pinpoint
107
108
  EndpointSendConfiguration = Shapes::StructureShape.new(name: 'EndpointSendConfiguration')
108
109
  EndpointUser = Shapes::StructureShape.new(name: 'EndpointUser')
109
110
  EndpointsResponse = Shapes::StructureShape.new(name: 'EndpointsResponse')
111
+ Event = Shapes::StructureShape.new(name: 'Event')
112
+ EventItemResponse = Shapes::StructureShape.new(name: 'EventItemResponse')
110
113
  EventStream = Shapes::StructureShape.new(name: 'EventStream')
114
+ EventsBatch = Shapes::StructureShape.new(name: 'EventsBatch')
115
+ EventsRequest = Shapes::StructureShape.new(name: 'EventsRequest')
116
+ EventsResponse = Shapes::StructureShape.new(name: 'EventsResponse')
111
117
  ExportJobRequest = Shapes::StructureShape.new(name: 'ExportJobRequest')
112
118
  ExportJobResource = Shapes::StructureShape.new(name: 'ExportJobResource')
113
119
  ExportJobResponse = Shapes::StructureShape.new(name: 'ExportJobResponse')
@@ -188,6 +194,7 @@ module Aws::Pinpoint
188
194
  ImportJobsResponse = Shapes::StructureShape.new(name: 'ImportJobsResponse')
189
195
  Include = Shapes::StringShape.new(name: 'Include')
190
196
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
197
+ ItemResponse = Shapes::StructureShape.new(name: 'ItemResponse')
191
198
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
192
199
  ListOfActivityResponse = Shapes::ListShape.new(name: 'ListOfActivityResponse')
193
200
  ListOfApplicationResponse = Shapes::ListShape.new(name: 'ListOfApplicationResponse')
@@ -208,6 +215,10 @@ module Aws::Pinpoint
208
215
  MapOfChannelResponse = Shapes::MapShape.new(name: 'MapOfChannelResponse')
209
216
  MapOfEndpointMessageResult = Shapes::MapShape.new(name: 'MapOfEndpointMessageResult')
210
217
  MapOfEndpointSendConfiguration = Shapes::MapShape.new(name: 'MapOfEndpointSendConfiguration')
218
+ MapOfEvent = Shapes::MapShape.new(name: 'MapOfEvent')
219
+ MapOfEventItemResponse = Shapes::MapShape.new(name: 'MapOfEventItemResponse')
220
+ MapOfEventsBatch = Shapes::MapShape.new(name: 'MapOfEventsBatch')
221
+ MapOfItemResponse = Shapes::MapShape.new(name: 'MapOfItemResponse')
211
222
  MapOfListOf__string = Shapes::MapShape.new(name: 'MapOfListOf__string')
212
223
  MapOfMapOfEndpointMessageResult = Shapes::MapShape.new(name: 'MapOfMapOfEndpointMessageResult')
213
224
  MapOfMessageResult = Shapes::MapShape.new(name: 'MapOfMessageResult')
@@ -230,8 +241,11 @@ module Aws::Pinpoint
230
241
  NumberValidateResponse = Shapes::StructureShape.new(name: 'NumberValidateResponse')
231
242
  PhoneNumberValidateRequest = Shapes::StructureShape.new(name: 'PhoneNumberValidateRequest')
232
243
  PhoneNumberValidateResponse = Shapes::StructureShape.new(name: 'PhoneNumberValidateResponse')
244
+ PublicEndpoint = Shapes::StructureShape.new(name: 'PublicEndpoint')
233
245
  PutEventStreamRequest = Shapes::StructureShape.new(name: 'PutEventStreamRequest')
234
246
  PutEventStreamResponse = Shapes::StructureShape.new(name: 'PutEventStreamResponse')
247
+ PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
248
+ PutEventsResponse = Shapes::StructureShape.new(name: 'PutEventsResponse')
235
249
  QuietTime = Shapes::StructureShape.new(name: 'QuietTime')
236
250
  RecencyDimension = Shapes::StructureShape.new(name: 'RecencyDimension')
237
251
  RecencyType = Shapes::StringShape.new(name: 'RecencyType')
@@ -258,6 +272,7 @@ module Aws::Pinpoint
258
272
  SendUsersMessageResponse = Shapes::StructureShape.new(name: 'SendUsersMessageResponse')
259
273
  SendUsersMessagesRequest = Shapes::StructureShape.new(name: 'SendUsersMessagesRequest')
260
274
  SendUsersMessagesResponse = Shapes::StructureShape.new(name: 'SendUsersMessagesResponse')
275
+ Session = Shapes::StructureShape.new(name: 'Session')
261
276
  SetDimension = Shapes::StructureShape.new(name: 'SetDimension')
262
277
  SourceType = Shapes::StringShape.new(name: 'SourceType')
263
278
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
@@ -456,6 +471,7 @@ module Aws::Pinpoint
456
471
  APNSVoipSandboxChannelResponse.struct_class = Types::APNSVoipSandboxChannelResponse
457
472
 
458
473
  ActivitiesResponse.add_member(:item, Shapes::ShapeRef.new(shape: ListOfActivityResponse, location_name: "Item"))
474
+ ActivitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
459
475
  ActivitiesResponse.struct_class = Types::ActivitiesResponse
460
476
 
461
477
  ActivityResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApplicationId"))
@@ -856,6 +872,10 @@ module Aws::Pinpoint
856
872
  EndpointDemographic.add_member(:timezone, Shapes::ShapeRef.new(shape: __string, location_name: "Timezone"))
857
873
  EndpointDemographic.struct_class = Types::EndpointDemographic
858
874
 
875
+ EndpointItemResponse.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "Message"))
876
+ EndpointItemResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: __integer, location_name: "StatusCode"))
877
+ EndpointItemResponse.struct_class = Types::EndpointItemResponse
878
+
859
879
  EndpointLocation.add_member(:city, Shapes::ShapeRef.new(shape: __string, location_name: "City"))
860
880
  EndpointLocation.add_member(:country, Shapes::ShapeRef.new(shape: __string, location_name: "Country"))
861
881
  EndpointLocation.add_member(:latitude, Shapes::ShapeRef.new(shape: __double, location_name: "Latitude"))
@@ -916,6 +936,18 @@ module Aws::Pinpoint
916
936
  EndpointsResponse.add_member(:item, Shapes::ShapeRef.new(shape: ListOfEndpointResponse, location_name: "Item"))
917
937
  EndpointsResponse.struct_class = Types::EndpointsResponse
918
938
 
939
+ Event.add_member(:attributes, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Attributes"))
940
+ Event.add_member(:client_sdk_version, Shapes::ShapeRef.new(shape: __string, location_name: "ClientSdkVersion"))
941
+ Event.add_member(:event_type, Shapes::ShapeRef.new(shape: __string, location_name: "EventType"))
942
+ Event.add_member(:metrics, Shapes::ShapeRef.new(shape: MapOf__double, location_name: "Metrics"))
943
+ Event.add_member(:session, Shapes::ShapeRef.new(shape: Session, location_name: "Session"))
944
+ Event.add_member(:timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "Timestamp"))
945
+ Event.struct_class = Types::Event
946
+
947
+ EventItemResponse.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "Message"))
948
+ EventItemResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: __integer, location_name: "StatusCode"))
949
+ EventItemResponse.struct_class = Types::EventItemResponse
950
+
919
951
  EventStream.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApplicationId"))
920
952
  EventStream.add_member(:destination_stream_arn, Shapes::ShapeRef.new(shape: __string, location_name: "DestinationStreamArn"))
921
953
  EventStream.add_member(:external_id, Shapes::ShapeRef.new(shape: __string, location_name: "ExternalId"))
@@ -924,6 +956,16 @@ module Aws::Pinpoint
924
956
  EventStream.add_member(:role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "RoleArn"))
925
957
  EventStream.struct_class = Types::EventStream
926
958
 
959
+ EventsBatch.add_member(:endpoint, Shapes::ShapeRef.new(shape: PublicEndpoint, location_name: "Endpoint"))
960
+ EventsBatch.add_member(:events, Shapes::ShapeRef.new(shape: MapOfEvent, location_name: "Events"))
961
+ EventsBatch.struct_class = Types::EventsBatch
962
+
963
+ EventsRequest.add_member(:batch_item, Shapes::ShapeRef.new(shape: MapOfEventsBatch, location_name: "BatchItem"))
964
+ EventsRequest.struct_class = Types::EventsRequest
965
+
966
+ EventsResponse.add_member(:results, Shapes::ShapeRef.new(shape: MapOfItemResponse, location_name: "Results"))
967
+ EventsResponse.struct_class = Types::EventsResponse
968
+
927
969
  ExportJobRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "RoleArn"))
928
970
  ExportJobRequest.add_member(:s3_url_prefix, Shapes::ShapeRef.new(shape: __string, location_name: "S3UrlPrefix"))
929
971
  ExportJobRequest.add_member(:segment_id, Shapes::ShapeRef.new(shape: __string, location_name: "SegmentId"))
@@ -1320,6 +1362,10 @@ module Aws::Pinpoint
1320
1362
  ImportJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
1321
1363
  ImportJobsResponse.struct_class = Types::ImportJobsResponse
1322
1364
 
1365
+ ItemResponse.add_member(:endpoint_item_response, Shapes::ShapeRef.new(shape: EndpointItemResponse, location_name: "EndpointItemResponse"))
1366
+ ItemResponse.add_member(:events_item_response, Shapes::ShapeRef.new(shape: MapOfEventItemResponse, location_name: "EventsItemResponse"))
1367
+ ItemResponse.struct_class = Types::ItemResponse
1368
+
1323
1369
  ListOfActivityResponse.member = Shapes::ShapeRef.new(shape: ActivityResponse)
1324
1370
 
1325
1371
  ListOfApplicationResponse.member = Shapes::ShapeRef.new(shape: ApplicationResponse)
@@ -1363,6 +1409,18 @@ module Aws::Pinpoint
1363
1409
  MapOfEndpointSendConfiguration.key = Shapes::ShapeRef.new(shape: __string)
1364
1410
  MapOfEndpointSendConfiguration.value = Shapes::ShapeRef.new(shape: EndpointSendConfiguration)
1365
1411
 
1412
+ MapOfEvent.key = Shapes::ShapeRef.new(shape: __string)
1413
+ MapOfEvent.value = Shapes::ShapeRef.new(shape: Event)
1414
+
1415
+ MapOfEventItemResponse.key = Shapes::ShapeRef.new(shape: __string)
1416
+ MapOfEventItemResponse.value = Shapes::ShapeRef.new(shape: EventItemResponse)
1417
+
1418
+ MapOfEventsBatch.key = Shapes::ShapeRef.new(shape: __string)
1419
+ MapOfEventsBatch.value = Shapes::ShapeRef.new(shape: EventsBatch)
1420
+
1421
+ MapOfItemResponse.key = Shapes::ShapeRef.new(shape: __string)
1422
+ MapOfItemResponse.value = Shapes::ShapeRef.new(shape: ItemResponse)
1423
+
1366
1424
  MapOfListOf__string.key = Shapes::ShapeRef.new(shape: __string)
1367
1425
  MapOfListOf__string.value = Shapes::ShapeRef.new(shape: ListOf__string)
1368
1426
 
@@ -1415,6 +1473,7 @@ module Aws::Pinpoint
1415
1473
  MessageRequest.add_member(:context, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Context"))
1416
1474
  MessageRequest.add_member(:endpoints, Shapes::ShapeRef.new(shape: MapOfEndpointSendConfiguration, location_name: "Endpoints"))
1417
1475
  MessageRequest.add_member(:message_configuration, Shapes::ShapeRef.new(shape: DirectMessageConfiguration, location_name: "MessageConfiguration"))
1476
+ MessageRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: __string, location_name: "TraceId"))
1418
1477
  MessageRequest.struct_class = Types::MessageRequest
1419
1478
 
1420
1479
  MessageResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApplicationId"))
@@ -1464,6 +1523,19 @@ module Aws::Pinpoint
1464
1523
  PhoneNumberValidateResponse[:payload] = :number_validate_response
1465
1524
  PhoneNumberValidateResponse[:payload_member] = PhoneNumberValidateResponse.member(:number_validate_response)
1466
1525
 
1526
+ PublicEndpoint.add_member(:address, Shapes::ShapeRef.new(shape: __string, location_name: "Address"))
1527
+ PublicEndpoint.add_member(:attributes, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Attributes"))
1528
+ PublicEndpoint.add_member(:channel_type, Shapes::ShapeRef.new(shape: ChannelType, location_name: "ChannelType"))
1529
+ PublicEndpoint.add_member(:demographic, Shapes::ShapeRef.new(shape: EndpointDemographic, location_name: "Demographic"))
1530
+ PublicEndpoint.add_member(:effective_date, Shapes::ShapeRef.new(shape: __string, location_name: "EffectiveDate"))
1531
+ PublicEndpoint.add_member(:endpoint_status, Shapes::ShapeRef.new(shape: __string, location_name: "EndpointStatus"))
1532
+ PublicEndpoint.add_member(:location, Shapes::ShapeRef.new(shape: EndpointLocation, location_name: "Location"))
1533
+ PublicEndpoint.add_member(:metrics, Shapes::ShapeRef.new(shape: MapOf__double, location_name: "Metrics"))
1534
+ PublicEndpoint.add_member(:opt_out, Shapes::ShapeRef.new(shape: __string, location_name: "OptOut"))
1535
+ PublicEndpoint.add_member(:request_id, Shapes::ShapeRef.new(shape: __string, location_name: "RequestId"))
1536
+ PublicEndpoint.add_member(:user, Shapes::ShapeRef.new(shape: EndpointUser, location_name: "User"))
1537
+ PublicEndpoint.struct_class = Types::PublicEndpoint
1538
+
1467
1539
  PutEventStreamRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1468
1540
  PutEventStreamRequest.add_member(:write_event_stream, Shapes::ShapeRef.new(shape: WriteEventStream, required: true, location_name: "WriteEventStream"))
1469
1541
  PutEventStreamRequest.struct_class = Types::PutEventStreamRequest
@@ -1475,6 +1547,17 @@ module Aws::Pinpoint
1475
1547
  PutEventStreamResponse[:payload] = :event_stream
1476
1548
  PutEventStreamResponse[:payload_member] = PutEventStreamResponse.member(:event_stream)
1477
1549
 
1550
+ PutEventsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1551
+ PutEventsRequest.add_member(:events_request, Shapes::ShapeRef.new(shape: EventsRequest, required: true, location_name: "EventsRequest"))
1552
+ PutEventsRequest.struct_class = Types::PutEventsRequest
1553
+ PutEventsRequest[:payload] = :events_request
1554
+ PutEventsRequest[:payload_member] = PutEventsRequest.member(:events_request)
1555
+
1556
+ PutEventsResponse.add_member(:events_response, Shapes::ShapeRef.new(shape: EventsResponse, required: true, location_name: "EventsResponse"))
1557
+ PutEventsResponse.struct_class = Types::PutEventsResponse
1558
+ PutEventsResponse[:payload] = :events_response
1559
+ PutEventsResponse[:payload_member] = PutEventsResponse.member(:events_response)
1560
+
1478
1561
  QuietTime.add_member(:end, Shapes::ShapeRef.new(shape: __string, location_name: "End"))
1479
1562
  QuietTime.add_member(:start, Shapes::ShapeRef.new(shape: __string, location_name: "Start"))
1480
1563
  QuietTime.struct_class = Types::QuietTime
@@ -1606,6 +1689,7 @@ module Aws::Pinpoint
1606
1689
 
1607
1690
  SendUsersMessageRequest.add_member(:context, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Context"))
1608
1691
  SendUsersMessageRequest.add_member(:message_configuration, Shapes::ShapeRef.new(shape: DirectMessageConfiguration, location_name: "MessageConfiguration"))
1692
+ SendUsersMessageRequest.add_member(:trace_id, Shapes::ShapeRef.new(shape: __string, location_name: "TraceId"))
1609
1693
  SendUsersMessageRequest.add_member(:users, Shapes::ShapeRef.new(shape: MapOfEndpointSendConfiguration, location_name: "Users"))
1610
1694
  SendUsersMessageRequest.struct_class = Types::SendUsersMessageRequest
1611
1695
 
@@ -1625,6 +1709,12 @@ module Aws::Pinpoint
1625
1709
  SendUsersMessagesResponse[:payload] = :send_users_message_response
1626
1710
  SendUsersMessagesResponse[:payload_member] = SendUsersMessagesResponse.member(:send_users_message_response)
1627
1711
 
1712
+ Session.add_member(:duration, Shapes::ShapeRef.new(shape: __integer, location_name: "Duration"))
1713
+ Session.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
1714
+ Session.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "StartTimestamp"))
1715
+ Session.add_member(:stop_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "StopTimestamp"))
1716
+ Session.struct_class = Types::Session
1717
+
1628
1718
  SetDimension.add_member(:dimension_type, Shapes::ShapeRef.new(shape: DimensionType, location_name: "DimensionType"))
1629
1719
  SetDimension.add_member(:values, Shapes::ShapeRef.new(shape: ListOf__string, location_name: "Values"))
1630
1720
  SetDimension.struct_class = Types::SetDimension
@@ -2592,6 +2682,20 @@ module Aws::Pinpoint
2592
2682
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2593
2683
  end)
2594
2684
 
2685
+ api.add_operation(:put_events, Seahorse::Model::Operation.new.tap do |o|
2686
+ o.name = "PutEvents"
2687
+ o.http_method = "POST"
2688
+ o.http_request_uri = "/v1/apps/{application-id}/events"
2689
+ o.input = Shapes::ShapeRef.new(shape: PutEventsRequest)
2690
+ o.output = Shapes::ShapeRef.new(shape: PutEventsResponse)
2691
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2692
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2693
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2694
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2695
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2696
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2697
+ end)
2698
+
2595
2699
  api.add_operation(:remove_attributes, Seahorse::Model::Operation.new.tap do |o|
2596
2700
  o.name = "RemoveAttributes"
2597
2701
  o.http_method = "PUT"