aws-sdk-pinpoint 1.0.0.rc10 → 1.0.0.rc11

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,9 @@ module Aws::Pinpoint
20
20
  ActivitiesResponse = Shapes::StructureShape.new(name: 'ActivitiesResponse')
21
21
  ActivityResponse = Shapes::StructureShape.new(name: 'ActivityResponse')
22
22
  AddressConfiguration = Shapes::StructureShape.new(name: 'AddressConfiguration')
23
+ ApplicationResponse = Shapes::StructureShape.new(name: 'ApplicationResponse')
23
24
  ApplicationSettingsResource = Shapes::StructureShape.new(name: 'ApplicationSettingsResource')
25
+ ApplicationsResponse = Shapes::StructureShape.new(name: 'ApplicationsResponse')
24
26
  AttributeDimension = Shapes::StructureShape.new(name: 'AttributeDimension')
25
27
  AttributeType = Shapes::StringShape.new(name: 'AttributeType')
26
28
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
@@ -32,6 +34,9 @@ module Aws::Pinpoint
32
34
  CampaignStatus = Shapes::StringShape.new(name: 'CampaignStatus')
33
35
  CampaignsResponse = Shapes::StructureShape.new(name: 'CampaignsResponse')
34
36
  ChannelType = Shapes::StringShape.new(name: 'ChannelType')
37
+ CreateAppRequest = Shapes::StructureShape.new(name: 'CreateAppRequest')
38
+ CreateAppResponse = Shapes::StructureShape.new(name: 'CreateAppResponse')
39
+ CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
35
40
  CreateCampaignRequest = Shapes::StructureShape.new(name: 'CreateCampaignRequest')
36
41
  CreateCampaignResponse = Shapes::StructureShape.new(name: 'CreateCampaignResponse')
37
42
  CreateImportJobRequest = Shapes::StructureShape.new(name: 'CreateImportJobRequest')
@@ -44,6 +49,8 @@ module Aws::Pinpoint
44
49
  DeleteApnsChannelResponse = Shapes::StructureShape.new(name: 'DeleteApnsChannelResponse')
45
50
  DeleteApnsSandboxChannelRequest = Shapes::StructureShape.new(name: 'DeleteApnsSandboxChannelRequest')
46
51
  DeleteApnsSandboxChannelResponse = Shapes::StructureShape.new(name: 'DeleteApnsSandboxChannelResponse')
52
+ DeleteAppRequest = Shapes::StructureShape.new(name: 'DeleteAppRequest')
53
+ DeleteAppResponse = Shapes::StructureShape.new(name: 'DeleteAppResponse')
47
54
  DeleteCampaignRequest = Shapes::StructureShape.new(name: 'DeleteCampaignRequest')
48
55
  DeleteCampaignResponse = Shapes::StructureShape.new(name: 'DeleteCampaignResponse')
49
56
  DeleteEmailChannelRequest = Shapes::StructureShape.new(name: 'DeleteEmailChannelRequest')
@@ -80,8 +87,12 @@ module Aws::Pinpoint
80
87
  GetApnsChannelResponse = Shapes::StructureShape.new(name: 'GetApnsChannelResponse')
81
88
  GetApnsSandboxChannelRequest = Shapes::StructureShape.new(name: 'GetApnsSandboxChannelRequest')
82
89
  GetApnsSandboxChannelResponse = Shapes::StructureShape.new(name: 'GetApnsSandboxChannelResponse')
90
+ GetAppRequest = Shapes::StructureShape.new(name: 'GetAppRequest')
91
+ GetAppResponse = Shapes::StructureShape.new(name: 'GetAppResponse')
83
92
  GetApplicationSettingsRequest = Shapes::StructureShape.new(name: 'GetApplicationSettingsRequest')
84
93
  GetApplicationSettingsResponse = Shapes::StructureShape.new(name: 'GetApplicationSettingsResponse')
94
+ GetAppsRequest = Shapes::StructureShape.new(name: 'GetAppsRequest')
95
+ GetAppsResponse = Shapes::StructureShape.new(name: 'GetAppsResponse')
85
96
  GetCampaignActivitiesRequest = Shapes::StructureShape.new(name: 'GetCampaignActivitiesRequest')
86
97
  GetCampaignActivitiesResponse = Shapes::StructureShape.new(name: 'GetCampaignActivitiesResponse')
87
98
  GetCampaignRequest = Shapes::StructureShape.new(name: 'GetCampaignRequest')
@@ -123,6 +134,7 @@ module Aws::Pinpoint
123
134
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
124
135
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
125
136
  ListOfActivityResponse = Shapes::ListShape.new(name: 'ListOfActivityResponse')
137
+ ListOfApplicationResponse = Shapes::ListShape.new(name: 'ListOfApplicationResponse')
126
138
  ListOfCampaignResponse = Shapes::ListShape.new(name: 'ListOfCampaignResponse')
127
139
  ListOfEndpointBatchItem = Shapes::ListShape.new(name: 'ListOfEndpointBatchItem')
128
140
  ListOfImportJobResponse = Shapes::ListShape.new(name: 'ListOfImportJobResponse')
@@ -272,17 +284,26 @@ module Aws::Pinpoint
272
284
  AddressConfiguration.add_member(:title_override, Shapes::ShapeRef.new(shape: __string, location_name: "TitleOverride"))
273
285
  AddressConfiguration.struct_class = Types::AddressConfiguration
274
286
 
287
+ ApplicationResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
288
+ ApplicationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
289
+ ApplicationResponse.struct_class = Types::ApplicationResponse
290
+
275
291
  ApplicationSettingsResource.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApplicationId"))
276
292
  ApplicationSettingsResource.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, location_name: "LastModifiedDate"))
277
293
  ApplicationSettingsResource.add_member(:limits, Shapes::ShapeRef.new(shape: CampaignLimits, location_name: "Limits"))
278
294
  ApplicationSettingsResource.add_member(:quiet_time, Shapes::ShapeRef.new(shape: QuietTime, location_name: "QuietTime"))
279
295
  ApplicationSettingsResource.struct_class = Types::ApplicationSettingsResource
280
296
 
297
+ ApplicationsResponse.add_member(:item, Shapes::ShapeRef.new(shape: ListOfApplicationResponse, location_name: "Item"))
298
+ ApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
299
+ ApplicationsResponse.struct_class = Types::ApplicationsResponse
300
+
281
301
  AttributeDimension.add_member(:attribute_type, Shapes::ShapeRef.new(shape: AttributeType, location_name: "AttributeType"))
282
302
  AttributeDimension.add_member(:values, Shapes::ShapeRef.new(shape: ListOf__string, location_name: "Values"))
283
303
  AttributeDimension.struct_class = Types::AttributeDimension
284
304
 
285
305
  CampaignEmailMessage.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
306
+ CampaignEmailMessage.add_member(:from_address, Shapes::ShapeRef.new(shape: __string, location_name: "FromAddress"))
286
307
  CampaignEmailMessage.add_member(:html_body, Shapes::ShapeRef.new(shape: __string, location_name: "HtmlBody"))
287
308
  CampaignEmailMessage.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
288
309
  CampaignEmailMessage.struct_class = Types::CampaignEmailMessage
@@ -324,6 +345,19 @@ module Aws::Pinpoint
324
345
  CampaignsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
325
346
  CampaignsResponse.struct_class = Types::CampaignsResponse
326
347
 
348
+ CreateAppRequest.add_member(:create_application_request, Shapes::ShapeRef.new(shape: CreateApplicationRequest, required: true, location_name: "CreateApplicationRequest"))
349
+ CreateAppRequest.struct_class = Types::CreateAppRequest
350
+ CreateAppRequest[:payload] = :create_application_request
351
+ CreateAppRequest[:payload_member] = CreateAppRequest.member(:create_application_request)
352
+
353
+ CreateAppResponse.add_member(:application_response, Shapes::ShapeRef.new(shape: ApplicationResponse, required: true, location_name: "ApplicationResponse"))
354
+ CreateAppResponse.struct_class = Types::CreateAppResponse
355
+ CreateAppResponse[:payload] = :application_response
356
+ CreateAppResponse[:payload_member] = CreateAppResponse.member(:application_response)
357
+
358
+ CreateApplicationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
359
+ CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
360
+
327
361
  CreateCampaignRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
328
362
  CreateCampaignRequest.add_member(:write_campaign_request, Shapes::ShapeRef.new(shape: WriteCampaignRequest, required: true, location_name: "WriteCampaignRequest"))
329
363
  CreateCampaignRequest.struct_class = Types::CreateCampaignRequest
@@ -386,6 +420,14 @@ module Aws::Pinpoint
386
420
  DeleteApnsSandboxChannelResponse[:payload] = :apns_sandbox_channel_response
387
421
  DeleteApnsSandboxChannelResponse[:payload_member] = DeleteApnsSandboxChannelResponse.member(:apns_sandbox_channel_response)
388
422
 
423
+ DeleteAppRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
424
+ DeleteAppRequest.struct_class = Types::DeleteAppRequest
425
+
426
+ DeleteAppResponse.add_member(:application_response, Shapes::ShapeRef.new(shape: ApplicationResponse, required: true, location_name: "ApplicationResponse"))
427
+ DeleteAppResponse.struct_class = Types::DeleteAppResponse
428
+ DeleteAppResponse[:payload] = :application_response
429
+ DeleteAppResponse[:payload_member] = DeleteAppResponse.member(:application_response)
430
+
389
431
  DeleteCampaignRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
390
432
  DeleteCampaignRequest.add_member(:campaign_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "campaign-id"))
391
433
  DeleteCampaignRequest.struct_class = Types::DeleteCampaignRequest
@@ -590,6 +632,14 @@ module Aws::Pinpoint
590
632
  GetApnsSandboxChannelResponse[:payload] = :apns_sandbox_channel_response
591
633
  GetApnsSandboxChannelResponse[:payload_member] = GetApnsSandboxChannelResponse.member(:apns_sandbox_channel_response)
592
634
 
635
+ GetAppRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
636
+ GetAppRequest.struct_class = Types::GetAppRequest
637
+
638
+ GetAppResponse.add_member(:application_response, Shapes::ShapeRef.new(shape: ApplicationResponse, required: true, location_name: "ApplicationResponse"))
639
+ GetAppResponse.struct_class = Types::GetAppResponse
640
+ GetAppResponse[:payload] = :application_response
641
+ GetAppResponse[:payload_member] = GetAppResponse.member(:application_response)
642
+
593
643
  GetApplicationSettingsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
594
644
  GetApplicationSettingsRequest.struct_class = Types::GetApplicationSettingsRequest
595
645
 
@@ -598,6 +648,15 @@ module Aws::Pinpoint
598
648
  GetApplicationSettingsResponse[:payload] = :application_settings_resource
599
649
  GetApplicationSettingsResponse[:payload_member] = GetApplicationSettingsResponse.member(:application_settings_resource)
600
650
 
651
+ GetAppsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
652
+ GetAppsRequest.add_member(:token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "token"))
653
+ GetAppsRequest.struct_class = Types::GetAppsRequest
654
+
655
+ GetAppsResponse.add_member(:applications_response, Shapes::ShapeRef.new(shape: ApplicationsResponse, required: true, location_name: "ApplicationsResponse"))
656
+ GetAppsResponse.struct_class = Types::GetAppsResponse
657
+ GetAppsResponse[:payload] = :applications_response
658
+ GetAppsResponse[:payload_member] = GetAppsResponse.member(:applications_response)
659
+
601
660
  GetCampaignActivitiesRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
602
661
  GetCampaignActivitiesRequest.add_member(:campaign_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "campaign-id"))
603
662
  GetCampaignActivitiesRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
@@ -801,6 +860,8 @@ module Aws::Pinpoint
801
860
 
802
861
  ListOfActivityResponse.member = Shapes::ShapeRef.new(shape: ActivityResponse)
803
862
 
863
+ ListOfApplicationResponse.member = Shapes::ShapeRef.new(shape: ApplicationResponse)
864
+
804
865
  ListOfCampaignResponse.member = Shapes::ShapeRef.new(shape: CampaignResponse)
805
866
 
806
867
  ListOfEndpointBatchItem.member = Shapes::ShapeRef.new(shape: EndpointBatchItem)
@@ -843,6 +904,7 @@ module Aws::Pinpoint
843
904
  Message.add_member(:image_url, Shapes::ShapeRef.new(shape: __string, location_name: "ImageUrl"))
844
905
  Message.add_member(:json_body, Shapes::ShapeRef.new(shape: __string, location_name: "JsonBody"))
845
906
  Message.add_member(:media_url, Shapes::ShapeRef.new(shape: __string, location_name: "MediaUrl"))
907
+ Message.add_member(:raw_content, Shapes::ShapeRef.new(shape: __string, location_name: "RawContent"))
846
908
  Message.add_member(:silent_push, Shapes::ShapeRef.new(shape: __boolean, location_name: "SilentPush"))
847
909
  Message.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
848
910
  Message.add_member(:url, Shapes::ShapeRef.new(shape: __string, location_name: "Url"))
@@ -1154,6 +1216,20 @@ module Aws::Pinpoint
1154
1216
  "signingName" => "mobiletargeting",
1155
1217
  }
1156
1218
 
1219
+ api.add_operation(:create_app, Seahorse::Model::Operation.new.tap do |o|
1220
+ o.name = "CreateApp"
1221
+ o.http_method = "POST"
1222
+ o.http_request_uri = "/v1/apps"
1223
+ o.input = Shapes::ShapeRef.new(shape: CreateAppRequest)
1224
+ o.output = Shapes::ShapeRef.new(shape: CreateAppResponse)
1225
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1226
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1227
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1228
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1229
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
1230
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1231
+ end)
1232
+
1157
1233
  api.add_operation(:create_campaign, Seahorse::Model::Operation.new.tap do |o|
1158
1234
  o.name = "CreateCampaign"
1159
1235
  o.http_method = "POST"
@@ -1224,6 +1300,20 @@ module Aws::Pinpoint
1224
1300
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1225
1301
  end)
1226
1302
 
1303
+ api.add_operation(:delete_app, Seahorse::Model::Operation.new.tap do |o|
1304
+ o.name = "DeleteApp"
1305
+ o.http_method = "DELETE"
1306
+ o.http_request_uri = "/v1/apps/{application-id}"
1307
+ o.input = Shapes::ShapeRef.new(shape: DeleteAppRequest)
1308
+ o.output = Shapes::ShapeRef.new(shape: DeleteAppResponse)
1309
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1310
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1311
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1312
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1313
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
1314
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1315
+ end)
1316
+
1227
1317
  api.add_operation(:delete_campaign, Seahorse::Model::Operation.new.tap do |o|
1228
1318
  o.name = "DeleteCampaign"
1229
1319
  o.http_method = "DELETE"
@@ -1336,6 +1426,20 @@ module Aws::Pinpoint
1336
1426
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1337
1427
  end)
1338
1428
 
1429
+ api.add_operation(:get_app, Seahorse::Model::Operation.new.tap do |o|
1430
+ o.name = "GetApp"
1431
+ o.http_method = "GET"
1432
+ o.http_request_uri = "/v1/apps/{application-id}"
1433
+ o.input = Shapes::ShapeRef.new(shape: GetAppRequest)
1434
+ o.output = Shapes::ShapeRef.new(shape: GetAppResponse)
1435
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1436
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1437
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1438
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1439
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
1440
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1441
+ end)
1442
+
1339
1443
  api.add_operation(:get_application_settings, Seahorse::Model::Operation.new.tap do |o|
1340
1444
  o.name = "GetApplicationSettings"
1341
1445
  o.http_method = "GET"
@@ -1350,6 +1454,20 @@ module Aws::Pinpoint
1350
1454
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1351
1455
  end)
1352
1456
 
1457
+ api.add_operation(:get_apps, Seahorse::Model::Operation.new.tap do |o|
1458
+ o.name = "GetApps"
1459
+ o.http_method = "GET"
1460
+ o.http_request_uri = "/v1/apps"
1461
+ o.input = Shapes::ShapeRef.new(shape: GetAppsRequest)
1462
+ o.output = Shapes::ShapeRef.new(shape: GetAppsResponse)
1463
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1464
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1465
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1466
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1467
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
1468
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1469
+ end)
1470
+
1353
1471
  api.add_operation(:get_campaign, Seahorse::Model::Operation.new.tap do |o|
1354
1472
  o.name = "GetCampaign"
1355
1473
  o.http_method = "GET"
@@ -53,7 +53,7 @@ module Aws::Pinpoint
53
53
  # @return [Boolean]
54
54
  #
55
55
  # @!attribute [rw] id
56
- # Channel ID. Not used, only for backwards compatibility.
56
+ # Channel ID. Not used. Present only for backwards compatibility.
57
57
  # @return [String]
58
58
  #
59
59
  # @!attribute [rw] is_archived
@@ -267,7 +267,7 @@ module Aws::Pinpoint
267
267
  # @return [String]
268
268
  #
269
269
  # @!attribute [rw] platform
270
- # The platform type. Will be APNS.
270
+ # The platform type. Will be APNS\_SANDBOX.
271
271
  # @return [String]
272
272
  #
273
273
  # @!attribute [rw] version
@@ -397,7 +397,7 @@ module Aws::Pinpoint
397
397
  # @return [String]
398
398
  #
399
399
  # @!attribute [rw] channel_type
400
- # Type of channel of this address
400
+ # The channel type. Valid values: GCM \| APNS \| SMS \| EMAIL
401
401
  # @return [String]
402
402
  #
403
403
  # @!attribute [rw] context
@@ -426,6 +426,22 @@ module Aws::Pinpoint
426
426
  include Aws::Structure
427
427
  end
428
428
 
429
+ # Application Response.
430
+ #
431
+ # @!attribute [rw] id
432
+ # The unique application ID.
433
+ # @return [String]
434
+ #
435
+ # @!attribute [rw] name
436
+ # The display name of the application.
437
+ # @return [String]
438
+ #
439
+ class ApplicationResponse < Struct.new(
440
+ :id,
441
+ :name)
442
+ include Aws::Structure
443
+ end
444
+
429
445
  # Application settings.
430
446
  #
431
447
  # @!attribute [rw] application_id
@@ -456,6 +472,23 @@ module Aws::Pinpoint
456
472
  include Aws::Structure
457
473
  end
458
474
 
475
+ # Get Applications Result.
476
+ #
477
+ # @!attribute [rw] item
478
+ # List of applications returned in this page.
479
+ # @return [Array<Types::ApplicationResponse>]
480
+ #
481
+ # @!attribute [rw] next_token
482
+ # The string that you use in a subsequent request to get the next page
483
+ # of results in a paginated response.
484
+ # @return [String]
485
+ #
486
+ class ApplicationsResponse < Struct.new(
487
+ :item,
488
+ :next_token)
489
+ include Aws::Structure
490
+ end
491
+
459
492
  # Custom attibute dimension
460
493
  #
461
494
  # @note When making an API call, you may pass AttributeDimension
@@ -488,6 +521,7 @@ module Aws::Pinpoint
488
521
  #
489
522
  # {
490
523
  # body: "__string",
524
+ # from_address: "__string",
491
525
  # html_body: "__string",
492
526
  # title: "__string",
493
527
  # }
@@ -496,6 +530,11 @@ module Aws::Pinpoint
496
530
  # The email text body.
497
531
  # @return [String]
498
532
  #
533
+ # @!attribute [rw] from_address
534
+ # The email address used to send the email from. Defaults to use
535
+ # FromAddress specified in the Email Channel.
536
+ # @return [String]
537
+ #
499
538
  # @!attribute [rw] html_body
500
539
  # The email html body.
501
540
  # @return [String]
@@ -506,6 +545,7 @@ module Aws::Pinpoint
506
545
  #
507
546
  class CampaignEmailMessage < Struct.new(
508
547
  :body,
548
+ :from_address,
509
549
  :html_body,
510
550
  :title)
511
551
  include Aws::Structure
@@ -702,6 +742,52 @@ module Aws::Pinpoint
702
742
  include Aws::Structure
703
743
  end
704
744
 
745
+ # @note When making an API call, you may pass CreateAppRequest
746
+ # data as a hash:
747
+ #
748
+ # {
749
+ # create_application_request: { # required
750
+ # name: "__string",
751
+ # },
752
+ # }
753
+ #
754
+ # @!attribute [rw] create_application_request
755
+ # Application Request.
756
+ # @return [Types::CreateApplicationRequest]
757
+ #
758
+ class CreateAppRequest < Struct.new(
759
+ :create_application_request)
760
+ include Aws::Structure
761
+ end
762
+
763
+ # @!attribute [rw] application_response
764
+ # Application Response.
765
+ # @return [Types::ApplicationResponse]
766
+ #
767
+ class CreateAppResponse < Struct.new(
768
+ :application_response)
769
+ include Aws::Structure
770
+ end
771
+
772
+ # Application Request.
773
+ #
774
+ # @note When making an API call, you may pass CreateApplicationRequest
775
+ # data as a hash:
776
+ #
777
+ # {
778
+ # name: "__string",
779
+ # }
780
+ #
781
+ # @!attribute [rw] name
782
+ # The display name of the application. Used in the Amazon Pinpoint
783
+ # console.
784
+ # @return [String]
785
+ #
786
+ class CreateApplicationRequest < Struct.new(
787
+ :name)
788
+ include Aws::Structure
789
+ end
790
+
705
791
  # @note When making an API call, you may pass CreateCampaignRequest
706
792
  # data as a hash:
707
793
  #
@@ -719,6 +805,7 @@ module Aws::Pinpoint
719
805
  # image_url: "__string",
720
806
  # json_body: "__string",
721
807
  # media_url: "__string",
808
+ # raw_content: "__string",
722
809
  # silent_push: false,
723
810
  # title: "__string",
724
811
  # url: "__string",
@@ -731,12 +818,14 @@ module Aws::Pinpoint
731
818
  # image_url: "__string",
732
819
  # json_body: "__string",
733
820
  # media_url: "__string",
821
+ # raw_content: "__string",
734
822
  # silent_push: false,
735
823
  # title: "__string",
736
824
  # url: "__string",
737
825
  # },
738
826
  # email_message: {
739
827
  # body: "__string",
828
+ # from_address: "__string",
740
829
  # html_body: "__string",
741
830
  # title: "__string",
742
831
  # },
@@ -748,6 +837,7 @@ module Aws::Pinpoint
748
837
  # image_url: "__string",
749
838
  # json_body: "__string",
750
839
  # media_url: "__string",
840
+ # raw_content: "__string",
751
841
  # silent_push: false,
752
842
  # title: "__string",
753
843
  # url: "__string",
@@ -790,6 +880,7 @@ module Aws::Pinpoint
790
880
  # image_url: "__string",
791
881
  # json_body: "__string",
792
882
  # media_url: "__string",
883
+ # raw_content: "__string",
793
884
  # silent_push: false,
794
885
  # title: "__string",
795
886
  # url: "__string",
@@ -802,12 +893,14 @@ module Aws::Pinpoint
802
893
  # image_url: "__string",
803
894
  # json_body: "__string",
804
895
  # media_url: "__string",
896
+ # raw_content: "__string",
805
897
  # silent_push: false,
806
898
  # title: "__string",
807
899
  # url: "__string",
808
900
  # },
809
901
  # email_message: {
810
902
  # body: "__string",
903
+ # from_address: "__string",
811
904
  # html_body: "__string",
812
905
  # title: "__string",
813
906
  # },
@@ -819,6 +912,7 @@ module Aws::Pinpoint
819
912
  # image_url: "__string",
820
913
  # json_body: "__string",
821
914
  # media_url: "__string",
915
+ # raw_content: "__string",
822
916
  # silent_push: false,
823
917
  # title: "__string",
824
918
  # url: "__string",
@@ -1133,6 +1227,30 @@ module Aws::Pinpoint
1133
1227
  include Aws::Structure
1134
1228
  end
1135
1229
 
1230
+ # @note When making an API call, you may pass DeleteAppRequest
1231
+ # data as a hash:
1232
+ #
1233
+ # {
1234
+ # application_id: "__string", # required
1235
+ # }
1236
+ #
1237
+ # @!attribute [rw] application_id
1238
+ # @return [String]
1239
+ #
1240
+ class DeleteAppRequest < Struct.new(
1241
+ :application_id)
1242
+ include Aws::Structure
1243
+ end
1244
+
1245
+ # @!attribute [rw] application_response
1246
+ # Application Response.
1247
+ # @return [Types::ApplicationResponse]
1248
+ #
1249
+ class DeleteAppResponse < Struct.new(
1250
+ :application_response)
1251
+ include Aws::Structure
1252
+ end
1253
+
1136
1254
  # @note When making an API call, you may pass DeleteCampaignRequest
1137
1255
  # data as a hash:
1138
1256
  #
@@ -1434,7 +1552,7 @@ module Aws::Pinpoint
1434
1552
  # Email Channel Response.
1435
1553
  #
1436
1554
  # @!attribute [rw] application_id
1437
- # Application id
1555
+ # The unique ID of the application to which the email channel belongs.
1438
1556
  # @return [String]
1439
1557
  #
1440
1558
  # @!attribute [rw] creation_date
@@ -1552,7 +1670,7 @@ module Aws::Pinpoint
1552
1670
  # @return [Hash<String,Array<String>>]
1553
1671
  #
1554
1672
  # @!attribute [rw] channel_type
1555
- # The channel type. Valid values: APNS, GCM
1673
+ # The channel type. Valid values: GCM \| APNS \| SMS \| EMAIL
1556
1674
  # @return [String]
1557
1675
  #
1558
1676
  # @!attribute [rw] demographic
@@ -1582,8 +1700,8 @@ module Aws::Pinpoint
1582
1700
  #
1583
1701
  # @!attribute [rw] opt_out
1584
1702
  # Indicates whether a user has opted out of receiving messages with
1585
- # one of the following values: ALL User receives all messages. NONE
1586
- # User receives no messages.
1703
+ # one of the following values: ALL - User has opted out of all
1704
+ # messages. NONE - Users has not opted out and receives all messages.
1587
1705
  # @return [String]
1588
1706
  #
1589
1707
  # @!attribute [rw] request_id
@@ -1836,7 +1954,7 @@ module Aws::Pinpoint
1836
1954
  # @return [Hash<String,Array<String>>]
1837
1955
  #
1838
1956
  # @!attribute [rw] channel_type
1839
- # The channel type. Valid values: APNS, GCM
1957
+ # The channel type. Valid values: GCM \| APNS \| SMS \| EMAIL
1840
1958
  # @return [String]
1841
1959
  #
1842
1960
  # @!attribute [rw] demographic
@@ -1862,8 +1980,8 @@ module Aws::Pinpoint
1862
1980
  #
1863
1981
  # @!attribute [rw] opt_out
1864
1982
  # Indicates whether a user has opted out of receiving messages with
1865
- # one of the following values: ALL User receives all messages. NONE
1866
- # User receives no messages.
1983
+ # one of the following values: ALL - User has opted out of all
1984
+ # messages. NONE - Users has not opted out and receives all messages.
1867
1985
  # @return [String]
1868
1986
  #
1869
1987
  # @!attribute [rw] request_id
@@ -1905,7 +2023,7 @@ module Aws::Pinpoint
1905
2023
  # @return [Hash<String,Array<String>>]
1906
2024
  #
1907
2025
  # @!attribute [rw] channel_type
1908
- # The channel type. Valid values: APNS, GCM
2026
+ # The channel type. Valid values: GCM \| APNS \| SMS \| EMAIL
1909
2027
  # @return [String]
1910
2028
  #
1911
2029
  # @!attribute [rw] cohort_id
@@ -1949,8 +2067,8 @@ module Aws::Pinpoint
1949
2067
  #
1950
2068
  # @!attribute [rw] opt_out
1951
2069
  # Indicates whether a user has opted out of receiving messages with
1952
- # one of the following values: ALL User receives all messages. NONE
1953
- # User receives no messages.
2070
+ # one of the following values: ALL - User has opted out of all
2071
+ # messages. NONE - Users has not opted out and receives all messages.
1954
2072
  # @return [String]
1955
2073
  #
1956
2074
  # @!attribute [rw] request_id
@@ -2095,7 +2213,7 @@ module Aws::Pinpoint
2095
2213
  # @return [Boolean]
2096
2214
  #
2097
2215
  # @!attribute [rw] id
2098
- # Channel ID. Not used, only for backwards compatibility.
2216
+ # Channel ID. Not used. Present only for backwards compatibility.
2099
2217
  # @return [String]
2100
2218
  #
2101
2219
  # @!attribute [rw] is_archived
@@ -2307,6 +2425,30 @@ module Aws::Pinpoint
2307
2425
  include Aws::Structure
2308
2426
  end
2309
2427
 
2428
+ # @note When making an API call, you may pass GetAppRequest
2429
+ # data as a hash:
2430
+ #
2431
+ # {
2432
+ # application_id: "__string", # required
2433
+ # }
2434
+ #
2435
+ # @!attribute [rw] application_id
2436
+ # @return [String]
2437
+ #
2438
+ class GetAppRequest < Struct.new(
2439
+ :application_id)
2440
+ include Aws::Structure
2441
+ end
2442
+
2443
+ # @!attribute [rw] application_response
2444
+ # Application Response.
2445
+ # @return [Types::ApplicationResponse]
2446
+ #
2447
+ class GetAppResponse < Struct.new(
2448
+ :application_response)
2449
+ include Aws::Structure
2450
+ end
2451
+
2310
2452
  # @note When making an API call, you may pass GetApplicationSettingsRequest
2311
2453
  # data as a hash:
2312
2454
  #
@@ -2331,6 +2473,35 @@ module Aws::Pinpoint
2331
2473
  include Aws::Structure
2332
2474
  end
2333
2475
 
2476
+ # @note When making an API call, you may pass GetAppsRequest
2477
+ # data as a hash:
2478
+ #
2479
+ # {
2480
+ # page_size: "__string",
2481
+ # token: "__string",
2482
+ # }
2483
+ #
2484
+ # @!attribute [rw] page_size
2485
+ # @return [String]
2486
+ #
2487
+ # @!attribute [rw] token
2488
+ # @return [String]
2489
+ #
2490
+ class GetAppsRequest < Struct.new(
2491
+ :page_size,
2492
+ :token)
2493
+ include Aws::Structure
2494
+ end
2495
+
2496
+ # @!attribute [rw] applications_response
2497
+ # Get Applications Result.
2498
+ # @return [Types::ApplicationsResponse]
2499
+ #
2500
+ class GetAppsResponse < Struct.new(
2501
+ :applications_response)
2502
+ include Aws::Structure
2503
+ end
2504
+
2334
2505
  # @note When making an API call, you may pass GetCampaignActivitiesRequest
2335
2506
  # data as a hash:
2336
2507
  #
@@ -3096,6 +3267,7 @@ module Aws::Pinpoint
3096
3267
  # image_url: "__string",
3097
3268
  # json_body: "__string",
3098
3269
  # media_url: "__string",
3270
+ # raw_content: "__string",
3099
3271
  # silent_push: false,
3100
3272
  # title: "__string",
3101
3273
  # url: "__string",
@@ -3138,6 +3310,11 @@ module Aws::Pinpoint
3138
3310
  # .gif file.
3139
3311
  # @return [String]
3140
3312
  #
3313
+ # @!attribute [rw] raw_content
3314
+ # The Raw JSON formatted string to be used as the payload. This value
3315
+ # overrides the message.
3316
+ # @return [String]
3317
+ #
3141
3318
  # @!attribute [rw] silent_push
3142
3319
  # Indicates if the message should display on the users device. Silent
3143
3320
  # pushes can be used for Remote Configuration and Phone Home use
@@ -3162,6 +3339,7 @@ module Aws::Pinpoint
3162
3339
  :image_url,
3163
3340
  :json_body,
3164
3341
  :media_url,
3342
+ :raw_content,
3165
3343
  :silent_push,
3166
3344
  :title,
3167
3345
  :url)
@@ -3198,6 +3376,7 @@ module Aws::Pinpoint
3198
3376
  # image_url: "__string",
3199
3377
  # json_body: "__string",
3200
3378
  # media_url: "__string",
3379
+ # raw_content: "__string",
3201
3380
  # silent_push: false,
3202
3381
  # title: "__string",
3203
3382
  # url: "__string",
@@ -3210,12 +3389,14 @@ module Aws::Pinpoint
3210
3389
  # image_url: "__string",
3211
3390
  # json_body: "__string",
3212
3391
  # media_url: "__string",
3392
+ # raw_content: "__string",
3213
3393
  # silent_push: false,
3214
3394
  # title: "__string",
3215
3395
  # url: "__string",
3216
3396
  # },
3217
3397
  # email_message: {
3218
3398
  # body: "__string",
3399
+ # from_address: "__string",
3219
3400
  # html_body: "__string",
3220
3401
  # title: "__string",
3221
3402
  # },
@@ -3227,6 +3408,7 @@ module Aws::Pinpoint
3227
3408
  # image_url: "__string",
3228
3409
  # json_body: "__string",
3229
3410
  # media_url: "__string",
3411
+ # raw_content: "__string",
3230
3412
  # silent_push: false,
3231
3413
  # title: "__string",
3232
3414
  # url: "__string",
@@ -3545,7 +3727,7 @@ module Aws::Pinpoint
3545
3727
  # SMS Channel Response.
3546
3728
  #
3547
3729
  # @!attribute [rw] application_id
3548
- # Application id
3730
+ # The unique ID of the application to which the SMS channel belongs.
3549
3731
  # @return [String]
3550
3732
  #
3551
3733
  # @!attribute [rw] creation_date
@@ -4316,6 +4498,7 @@ module Aws::Pinpoint
4316
4498
  # image_url: "__string",
4317
4499
  # json_body: "__string",
4318
4500
  # media_url: "__string",
4501
+ # raw_content: "__string",
4319
4502
  # silent_push: false,
4320
4503
  # title: "__string",
4321
4504
  # url: "__string",
@@ -4328,12 +4511,14 @@ module Aws::Pinpoint
4328
4511
  # image_url: "__string",
4329
4512
  # json_body: "__string",
4330
4513
  # media_url: "__string",
4514
+ # raw_content: "__string",
4331
4515
  # silent_push: false,
4332
4516
  # title: "__string",
4333
4517
  # url: "__string",
4334
4518
  # },
4335
4519
  # email_message: {
4336
4520
  # body: "__string",
4521
+ # from_address: "__string",
4337
4522
  # html_body: "__string",
4338
4523
  # title: "__string",
4339
4524
  # },
@@ -4345,6 +4530,7 @@ module Aws::Pinpoint
4345
4530
  # image_url: "__string",
4346
4531
  # json_body: "__string",
4347
4532
  # media_url: "__string",
4533
+ # raw_content: "__string",
4348
4534
  # silent_push: false,
4349
4535
  # title: "__string",
4350
4536
  # url: "__string",
@@ -4387,6 +4573,7 @@ module Aws::Pinpoint
4387
4573
  # image_url: "__string",
4388
4574
  # json_body: "__string",
4389
4575
  # media_url: "__string",
4576
+ # raw_content: "__string",
4390
4577
  # silent_push: false,
4391
4578
  # title: "__string",
4392
4579
  # url: "__string",
@@ -4399,12 +4586,14 @@ module Aws::Pinpoint
4399
4586
  # image_url: "__string",
4400
4587
  # json_body: "__string",
4401
4588
  # media_url: "__string",
4589
+ # raw_content: "__string",
4402
4590
  # silent_push: false,
4403
4591
  # title: "__string",
4404
4592
  # url: "__string",
4405
4593
  # },
4406
4594
  # email_message: {
4407
4595
  # body: "__string",
4596
+ # from_address: "__string",
4408
4597
  # html_body: "__string",
4409
4598
  # title: "__string",
4410
4599
  # },
@@ -4416,6 +4605,7 @@ module Aws::Pinpoint
4416
4605
  # image_url: "__string",
4417
4606
  # json_body: "__string",
4418
4607
  # media_url: "__string",
4608
+ # raw_content: "__string",
4419
4609
  # silent_push: false,
4420
4610
  # title: "__string",
4421
4611
  # url: "__string",
@@ -4856,6 +5046,7 @@ module Aws::Pinpoint
4856
5046
  # image_url: "__string",
4857
5047
  # json_body: "__string",
4858
5048
  # media_url: "__string",
5049
+ # raw_content: "__string",
4859
5050
  # silent_push: false,
4860
5051
  # title: "__string",
4861
5052
  # url: "__string",
@@ -4868,12 +5059,14 @@ module Aws::Pinpoint
4868
5059
  # image_url: "__string",
4869
5060
  # json_body: "__string",
4870
5061
  # media_url: "__string",
5062
+ # raw_content: "__string",
4871
5063
  # silent_push: false,
4872
5064
  # title: "__string",
4873
5065
  # url: "__string",
4874
5066
  # },
4875
5067
  # email_message: {
4876
5068
  # body: "__string",
5069
+ # from_address: "__string",
4877
5070
  # html_body: "__string",
4878
5071
  # title: "__string",
4879
5072
  # },
@@ -4885,6 +5078,7 @@ module Aws::Pinpoint
4885
5078
  # image_url: "__string",
4886
5079
  # json_body: "__string",
4887
5080
  # media_url: "__string",
5081
+ # raw_content: "__string",
4888
5082
  # silent_push: false,
4889
5083
  # title: "__string",
4890
5084
  # url: "__string",
@@ -4927,6 +5121,7 @@ module Aws::Pinpoint
4927
5121
  # image_url: "__string",
4928
5122
  # json_body: "__string",
4929
5123
  # media_url: "__string",
5124
+ # raw_content: "__string",
4930
5125
  # silent_push: false,
4931
5126
  # title: "__string",
4932
5127
  # url: "__string",
@@ -4939,12 +5134,14 @@ module Aws::Pinpoint
4939
5134
  # image_url: "__string",
4940
5135
  # json_body: "__string",
4941
5136
  # media_url: "__string",
5137
+ # raw_content: "__string",
4942
5138
  # silent_push: false,
4943
5139
  # title: "__string",
4944
5140
  # url: "__string",
4945
5141
  # },
4946
5142
  # email_message: {
4947
5143
  # body: "__string",
5144
+ # from_address: "__string",
4948
5145
  # html_body: "__string",
4949
5146
  # title: "__string",
4950
5147
  # },
@@ -4956,6 +5153,7 @@ module Aws::Pinpoint
4956
5153
  # image_url: "__string",
4957
5154
  # json_body: "__string",
4958
5155
  # media_url: "__string",
5156
+ # raw_content: "__string",
4959
5157
  # silent_push: false,
4960
5158
  # title: "__string",
4961
5159
  # url: "__string",
@@ -5169,6 +5367,7 @@ module Aws::Pinpoint
5169
5367
  # image_url: "__string",
5170
5368
  # json_body: "__string",
5171
5369
  # media_url: "__string",
5370
+ # raw_content: "__string",
5172
5371
  # silent_push: false,
5173
5372
  # title: "__string",
5174
5373
  # url: "__string",
@@ -5181,12 +5380,14 @@ module Aws::Pinpoint
5181
5380
  # image_url: "__string",
5182
5381
  # json_body: "__string",
5183
5382
  # media_url: "__string",
5383
+ # raw_content: "__string",
5184
5384
  # silent_push: false,
5185
5385
  # title: "__string",
5186
5386
  # url: "__string",
5187
5387
  # },
5188
5388
  # email_message: {
5189
5389
  # body: "__string",
5390
+ # from_address: "__string",
5190
5391
  # html_body: "__string",
5191
5392
  # title: "__string",
5192
5393
  # },
@@ -5198,6 +5399,7 @@ module Aws::Pinpoint
5198
5399
  # image_url: "__string",
5199
5400
  # json_body: "__string",
5200
5401
  # media_url: "__string",
5402
+ # raw_content: "__string",
5201
5403
  # silent_push: false,
5202
5404
  # title: "__string",
5203
5405
  # url: "__string",