aws-sdk-pinpoint 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,7 @@ module Aws::Pinpoint
38
38
  BaiduChannelResponse = Shapes::StructureShape.new(name: 'BaiduChannelResponse')
39
39
  BaiduMessage = Shapes::StructureShape.new(name: 'BaiduMessage')
40
40
  CampaignEmailMessage = Shapes::StructureShape.new(name: 'CampaignEmailMessage')
41
+ CampaignEventFilter = Shapes::StructureShape.new(name: 'CampaignEventFilter')
41
42
  CampaignHook = Shapes::StructureShape.new(name: 'CampaignHook')
42
43
  CampaignLimits = Shapes::StructureShape.new(name: 'CampaignLimits')
43
44
  CampaignResponse = Shapes::StructureShape.new(name: 'CampaignResponse')
@@ -91,6 +92,8 @@ module Aws::Pinpoint
91
92
  DeleteSmsChannelResponse = Shapes::StructureShape.new(name: 'DeleteSmsChannelResponse')
92
93
  DeleteUserEndpointsRequest = Shapes::StructureShape.new(name: 'DeleteUserEndpointsRequest')
93
94
  DeleteUserEndpointsResponse = Shapes::StructureShape.new(name: 'DeleteUserEndpointsResponse')
95
+ DeleteVoiceChannelRequest = Shapes::StructureShape.new(name: 'DeleteVoiceChannelRequest')
96
+ DeleteVoiceChannelResponse = Shapes::StructureShape.new(name: 'DeleteVoiceChannelResponse')
94
97
  DeliveryStatus = Shapes::StringShape.new(name: 'DeliveryStatus')
95
98
  DimensionType = Shapes::StringShape.new(name: 'DimensionType')
96
99
  DirectMessageConfiguration = Shapes::StructureShape.new(name: 'DirectMessageConfiguration')
@@ -110,6 +113,7 @@ module Aws::Pinpoint
110
113
  EndpointUser = Shapes::StructureShape.new(name: 'EndpointUser')
111
114
  EndpointsResponse = Shapes::StructureShape.new(name: 'EndpointsResponse')
112
115
  Event = Shapes::StructureShape.new(name: 'Event')
116
+ EventDimensions = Shapes::StructureShape.new(name: 'EventDimensions')
113
117
  EventItemResponse = Shapes::StructureShape.new(name: 'EventItemResponse')
114
118
  EventStream = Shapes::StructureShape.new(name: 'EventStream')
115
119
  EventsBatch = Shapes::StructureShape.new(name: 'EventsBatch')
@@ -119,6 +123,7 @@ module Aws::Pinpoint
119
123
  ExportJobResource = Shapes::StructureShape.new(name: 'ExportJobResource')
120
124
  ExportJobResponse = Shapes::StructureShape.new(name: 'ExportJobResponse')
121
125
  ExportJobsResponse = Shapes::StructureShape.new(name: 'ExportJobsResponse')
126
+ FilterType = Shapes::StringShape.new(name: 'FilterType')
122
127
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
123
128
  Format = Shapes::StringShape.new(name: 'Format')
124
129
  Frequency = Shapes::StringShape.new(name: 'Frequency')
@@ -189,6 +194,8 @@ module Aws::Pinpoint
189
194
  GetSmsChannelResponse = Shapes::StructureShape.new(name: 'GetSmsChannelResponse')
190
195
  GetUserEndpointsRequest = Shapes::StructureShape.new(name: 'GetUserEndpointsRequest')
191
196
  GetUserEndpointsResponse = Shapes::StructureShape.new(name: 'GetUserEndpointsResponse')
197
+ GetVoiceChannelRequest = Shapes::StructureShape.new(name: 'GetVoiceChannelRequest')
198
+ GetVoiceChannelResponse = Shapes::StructureShape.new(name: 'GetVoiceChannelResponse')
192
199
  ImportJobRequest = Shapes::StructureShape.new(name: 'ImportJobRequest')
193
200
  ImportJobResource = Shapes::StructureShape.new(name: 'ImportJobResource')
194
201
  ImportJobResponse = Shapes::StructureShape.new(name: 'ImportJobResponse')
@@ -311,6 +318,11 @@ module Aws::Pinpoint
311
318
  UpdateSegmentResponse = Shapes::StructureShape.new(name: 'UpdateSegmentResponse')
312
319
  UpdateSmsChannelRequest = Shapes::StructureShape.new(name: 'UpdateSmsChannelRequest')
313
320
  UpdateSmsChannelResponse = Shapes::StructureShape.new(name: 'UpdateSmsChannelResponse')
321
+ UpdateVoiceChannelRequest = Shapes::StructureShape.new(name: 'UpdateVoiceChannelRequest')
322
+ UpdateVoiceChannelResponse = Shapes::StructureShape.new(name: 'UpdateVoiceChannelResponse')
323
+ VoiceChannelRequest = Shapes::StructureShape.new(name: 'VoiceChannelRequest')
324
+ VoiceChannelResponse = Shapes::StructureShape.new(name: 'VoiceChannelResponse')
325
+ VoiceMessage = Shapes::StructureShape.new(name: 'VoiceMessage')
314
326
  WriteApplicationSettingsRequest = Shapes::StructureShape.new(name: 'WriteApplicationSettingsRequest')
315
327
  WriteCampaignRequest = Shapes::StructureShape.new(name: 'WriteCampaignRequest')
316
328
  WriteEventStream = Shapes::StructureShape.new(name: 'WriteEventStream')
@@ -566,6 +578,10 @@ module Aws::Pinpoint
566
578
  CampaignEmailMessage.add_member(:title, Shapes::ShapeRef.new(shape: __string, location_name: "Title"))
567
579
  CampaignEmailMessage.struct_class = Types::CampaignEmailMessage
568
580
 
581
+ CampaignEventFilter.add_member(:dimensions, Shapes::ShapeRef.new(shape: EventDimensions, location_name: "Dimensions"))
582
+ CampaignEventFilter.add_member(:filter_type, Shapes::ShapeRef.new(shape: FilterType, location_name: "FilterType"))
583
+ CampaignEventFilter.struct_class = Types::CampaignEventFilter
584
+
569
585
  CampaignHook.add_member(:lambda_function_name, Shapes::ShapeRef.new(shape: __string, location_name: "LambdaFunctionName"))
570
586
  CampaignHook.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, location_name: "Mode"))
571
587
  CampaignHook.add_member(:web_url, Shapes::ShapeRef.new(shape: __string, location_name: "WebUrl"))
@@ -819,6 +835,14 @@ module Aws::Pinpoint
819
835
  DeleteUserEndpointsResponse[:payload] = :endpoints_response
820
836
  DeleteUserEndpointsResponse[:payload_member] = DeleteUserEndpointsResponse.member(:endpoints_response)
821
837
 
838
+ DeleteVoiceChannelRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
839
+ DeleteVoiceChannelRequest.struct_class = Types::DeleteVoiceChannelRequest
840
+
841
+ DeleteVoiceChannelResponse.add_member(:voice_channel_response, Shapes::ShapeRef.new(shape: VoiceChannelResponse, required: true, location_name: "VoiceChannelResponse"))
842
+ DeleteVoiceChannelResponse.struct_class = Types::DeleteVoiceChannelResponse
843
+ DeleteVoiceChannelResponse[:payload] = :voice_channel_response
844
+ DeleteVoiceChannelResponse[:payload_member] = DeleteVoiceChannelResponse.member(:voice_channel_response)
845
+
822
846
  DirectMessageConfiguration.add_member(:adm_message, Shapes::ShapeRef.new(shape: ADMMessage, location_name: "ADMMessage"))
823
847
  DirectMessageConfiguration.add_member(:apns_message, Shapes::ShapeRef.new(shape: APNSMessage, location_name: "APNSMessage"))
824
848
  DirectMessageConfiguration.add_member(:baidu_message, Shapes::ShapeRef.new(shape: BaiduMessage, location_name: "BaiduMessage"))
@@ -827,6 +851,7 @@ module Aws::Pinpoint
827
851
  DirectMessageConfiguration.add_member(:email_message, Shapes::ShapeRef.new(shape: EmailMessage, location_name: "EmailMessage"))
828
852
  DirectMessageConfiguration.add_member(:gcm_message, Shapes::ShapeRef.new(shape: GCMMessage, location_name: "GCMMessage"))
829
853
  DirectMessageConfiguration.add_member(:sms_message, Shapes::ShapeRef.new(shape: SMSMessage, location_name: "SMSMessage"))
854
+ DirectMessageConfiguration.add_member(:voice_message, Shapes::ShapeRef.new(shape: VoiceMessage, location_name: "VoiceMessage"))
830
855
  DirectMessageConfiguration.struct_class = Types::DirectMessageConfiguration
831
856
 
832
857
  EmailChannelRequest.add_member(:configuration_set, Shapes::ShapeRef.new(shape: __string, location_name: "ConfigurationSet"))
@@ -961,6 +986,11 @@ module Aws::Pinpoint
961
986
  Event.add_member(:timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "Timestamp"))
962
987
  Event.struct_class = Types::Event
963
988
 
989
+ EventDimensions.add_member(:attributes, Shapes::ShapeRef.new(shape: MapOfAttributeDimension, location_name: "Attributes"))
990
+ EventDimensions.add_member(:event_type, Shapes::ShapeRef.new(shape: SetDimension, location_name: "EventType"))
991
+ EventDimensions.add_member(:metrics, Shapes::ShapeRef.new(shape: MapOfMetricDimension, location_name: "Metrics"))
992
+ EventDimensions.struct_class = Types::EventDimensions
993
+
964
994
  EventItemResponse.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "Message"))
965
995
  EventItemResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: __integer, location_name: "StatusCode"))
966
996
  EventItemResponse.struct_class = Types::EventItemResponse
@@ -1340,6 +1370,14 @@ module Aws::Pinpoint
1340
1370
  GetUserEndpointsResponse[:payload] = :endpoints_response
1341
1371
  GetUserEndpointsResponse[:payload_member] = GetUserEndpointsResponse.member(:endpoints_response)
1342
1372
 
1373
+ GetVoiceChannelRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1374
+ GetVoiceChannelRequest.struct_class = Types::GetVoiceChannelRequest
1375
+
1376
+ GetVoiceChannelResponse.add_member(:voice_channel_response, Shapes::ShapeRef.new(shape: VoiceChannelResponse, required: true, location_name: "VoiceChannelResponse"))
1377
+ GetVoiceChannelResponse.struct_class = Types::GetVoiceChannelResponse
1378
+ GetVoiceChannelResponse[:payload] = :voice_channel_response
1379
+ GetVoiceChannelResponse[:payload_member] = GetVoiceChannelResponse.member(:voice_channel_response)
1380
+
1343
1381
  ImportJobRequest.add_member(:define_segment, Shapes::ShapeRef.new(shape: __boolean, location_name: "DefineSegment"))
1344
1382
  ImportJobRequest.add_member(:external_id, Shapes::ShapeRef.new(shape: __string, location_name: "ExternalId"))
1345
1383
  ImportJobRequest.add_member(:format, Shapes::ShapeRef.new(shape: Format, location_name: "Format"))
@@ -1628,6 +1666,7 @@ module Aws::Pinpoint
1628
1666
  SMSMessage.struct_class = Types::SMSMessage
1629
1667
 
1630
1668
  Schedule.add_member(:end_time, Shapes::ShapeRef.new(shape: __string, location_name: "EndTime"))
1669
+ Schedule.add_member(:event_filter, Shapes::ShapeRef.new(shape: CampaignEventFilter, location_name: "EventFilter"))
1631
1670
  Schedule.add_member(:frequency, Shapes::ShapeRef.new(shape: Frequency, location_name: "Frequency"))
1632
1671
  Schedule.add_member(:is_local_time, Shapes::ShapeRef.new(shape: __boolean, location_name: "IsLocalTime"))
1633
1672
  Schedule.add_member(:quiet_time, Shapes::ShapeRef.new(shape: QuietTime, location_name: "QuietTime"))
@@ -1917,6 +1956,39 @@ module Aws::Pinpoint
1917
1956
  UpdateSmsChannelResponse[:payload] = :sms_channel_response
1918
1957
  UpdateSmsChannelResponse[:payload_member] = UpdateSmsChannelResponse.member(:sms_channel_response)
1919
1958
 
1959
+ UpdateVoiceChannelRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
1960
+ UpdateVoiceChannelRequest.add_member(:voice_channel_request, Shapes::ShapeRef.new(shape: VoiceChannelRequest, required: true, location_name: "VoiceChannelRequest"))
1961
+ UpdateVoiceChannelRequest.struct_class = Types::UpdateVoiceChannelRequest
1962
+ UpdateVoiceChannelRequest[:payload] = :voice_channel_request
1963
+ UpdateVoiceChannelRequest[:payload_member] = UpdateVoiceChannelRequest.member(:voice_channel_request)
1964
+
1965
+ UpdateVoiceChannelResponse.add_member(:voice_channel_response, Shapes::ShapeRef.new(shape: VoiceChannelResponse, required: true, location_name: "VoiceChannelResponse"))
1966
+ UpdateVoiceChannelResponse.struct_class = Types::UpdateVoiceChannelResponse
1967
+ UpdateVoiceChannelResponse[:payload] = :voice_channel_response
1968
+ UpdateVoiceChannelResponse[:payload_member] = UpdateVoiceChannelResponse.member(:voice_channel_response)
1969
+
1970
+ VoiceChannelRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "Enabled"))
1971
+ VoiceChannelRequest.struct_class = Types::VoiceChannelRequest
1972
+
1973
+ VoiceChannelResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApplicationId"))
1974
+ VoiceChannelResponse.add_member(:creation_date, Shapes::ShapeRef.new(shape: __string, location_name: "CreationDate"))
1975
+ VoiceChannelResponse.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "Enabled"))
1976
+ VoiceChannelResponse.add_member(:has_credential, Shapes::ShapeRef.new(shape: __boolean, location_name: "HasCredential"))
1977
+ VoiceChannelResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
1978
+ VoiceChannelResponse.add_member(:is_archived, Shapes::ShapeRef.new(shape: __boolean, location_name: "IsArchived"))
1979
+ VoiceChannelResponse.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: __string, location_name: "LastModifiedBy"))
1980
+ VoiceChannelResponse.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: __string, location_name: "LastModifiedDate"))
1981
+ VoiceChannelResponse.add_member(:platform, Shapes::ShapeRef.new(shape: __string, location_name: "Platform"))
1982
+ VoiceChannelResponse.add_member(:version, Shapes::ShapeRef.new(shape: __integer, location_name: "Version"))
1983
+ VoiceChannelResponse.struct_class = Types::VoiceChannelResponse
1984
+
1985
+ VoiceMessage.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
1986
+ VoiceMessage.add_member(:language_code, Shapes::ShapeRef.new(shape: __string, location_name: "LanguageCode"))
1987
+ VoiceMessage.add_member(:origination_number, Shapes::ShapeRef.new(shape: __string, location_name: "OriginationNumber"))
1988
+ VoiceMessage.add_member(:substitutions, Shapes::ShapeRef.new(shape: MapOfListOf__string, location_name: "Substitutions"))
1989
+ VoiceMessage.add_member(:voice_id, Shapes::ShapeRef.new(shape: __string, location_name: "VoiceId"))
1990
+ VoiceMessage.struct_class = Types::VoiceMessage
1991
+
1920
1992
  WriteApplicationSettingsRequest.add_member(:campaign_hook, Shapes::ShapeRef.new(shape: CampaignHook, location_name: "CampaignHook"))
1921
1993
  WriteApplicationSettingsRequest.add_member(:cloud_watch_metrics_enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "CloudWatchMetricsEnabled"))
1922
1994
  WriteApplicationSettingsRequest.add_member(:limits, Shapes::ShapeRef.new(shape: CampaignLimits, location_name: "Limits"))
@@ -2252,6 +2324,20 @@ module Aws::Pinpoint
2252
2324
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2253
2325
  end)
2254
2326
 
2327
+ api.add_operation(:delete_voice_channel, Seahorse::Model::Operation.new.tap do |o|
2328
+ o.name = "DeleteVoiceChannel"
2329
+ o.http_method = "DELETE"
2330
+ o.http_request_uri = "/v1/apps/{application-id}/channels/voice"
2331
+ o.input = Shapes::ShapeRef.new(shape: DeleteVoiceChannelRequest)
2332
+ o.output = Shapes::ShapeRef.new(shape: DeleteVoiceChannelResponse)
2333
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2334
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2335
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2336
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2337
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2338
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2339
+ end)
2340
+
2255
2341
  api.add_operation(:get_adm_channel, Seahorse::Model::Operation.new.tap do |o|
2256
2342
  o.name = "GetAdmChannel"
2257
2343
  o.http_method = "GET"
@@ -2686,6 +2772,20 @@ module Aws::Pinpoint
2686
2772
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2687
2773
  end)
2688
2774
 
2775
+ api.add_operation(:get_voice_channel, Seahorse::Model::Operation.new.tap do |o|
2776
+ o.name = "GetVoiceChannel"
2777
+ o.http_method = "GET"
2778
+ o.http_request_uri = "/v1/apps/{application-id}/channels/voice"
2779
+ o.input = Shapes::ShapeRef.new(shape: GetVoiceChannelRequest)
2780
+ o.output = Shapes::ShapeRef.new(shape: GetVoiceChannelResponse)
2781
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2782
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2783
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2784
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2785
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2786
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2787
+ end)
2788
+
2689
2789
  api.add_operation(:phone_number_validate, Seahorse::Model::Operation.new.tap do |o|
2690
2790
  o.name = "PhoneNumberValidate"
2691
2791
  o.http_method = "POST"
@@ -2965,6 +3065,20 @@ module Aws::Pinpoint
2965
3065
  o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
2966
3066
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2967
3067
  end)
3068
+
3069
+ api.add_operation(:update_voice_channel, Seahorse::Model::Operation.new.tap do |o|
3070
+ o.name = "UpdateVoiceChannel"
3071
+ o.http_method = "PUT"
3072
+ o.http_request_uri = "/v1/apps/{application-id}/channels/voice"
3073
+ o.input = Shapes::ShapeRef.new(shape: UpdateVoiceChannelRequest)
3074
+ o.output = Shapes::ShapeRef.new(shape: UpdateVoiceChannelResponse)
3075
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
3076
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
3077
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
3078
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
3079
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
3080
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3081
+ end)
2968
3082
  end
2969
3083
 
2970
3084
  end
@@ -444,7 +444,8 @@ module Aws::Pinpoint
444
444
  # @return [Hash<String,String>]
445
445
  #
446
446
  # @!attribute [rw] media_url
447
- # The URL that points to a video used in the push notification.
447
+ # A URL that refers to the location of an image or video that you want
448
+ # to display in the push notification.
448
449
  # @return [String]
449
450
  #
450
451
  # @!attribute [rw] preferred_authentication_method
@@ -1034,7 +1035,7 @@ module Aws::Pinpoint
1034
1035
  #
1035
1036
  # {
1036
1037
  # body_override: "__string",
1037
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
1038
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
1038
1039
  # context: {
1039
1040
  # "__string" => "__string",
1040
1041
  # },
@@ -1128,9 +1129,22 @@ module Aws::Pinpoint
1128
1129
  # @return [Types::CampaignLimits]
1129
1130
  #
1130
1131
  # @!attribute [rw] quiet_time
1131
- # The default quiet time for the app. Each campaign for this app sends
1132
- # no messages during this time unless the campaign overrides the
1133
- # default with a quiet time of its own.
1132
+ # The default quiet time for the app. Campaigns in the app don't send
1133
+ # messages to endpoints during the quiet time. Note: Make sure that
1134
+ # your endpoints include the Demographics.Timezone attribute if you
1135
+ # plan to enable a quiet time for your app. If your endpoints don't
1136
+ # include this attribute, they'll receive the messages that you send
1137
+ # them, even if quiet time is enabled. When you set up an app to use
1138
+ # quiet time, campaigns in that app don't send messages during the
1139
+ # time range you specified, as long as all of the following are true:
1140
+ # - The endpoint includes a valid Demographic.Timezone attribute. -
1141
+ # The current time in the endpoint's time zone is later than or equal
1142
+ # to the time specified in the QuietTime.Start attribute for the app
1143
+ # (or campaign, if applicable). - The current time in the endpoint's
1144
+ # time zone is earlier than or equal to the time specified in the
1145
+ # QuietTime.End attribute for the app (or campaign, if applicable).
1146
+ # Individual campaigns within the app can have their own quiet time
1147
+ # settings, which override the quiet time settings at the app level.
1134
1148
  # @return [Types::QuietTime]
1135
1149
  #
1136
1150
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ApplicationSettingsResource AWS API Documentation
@@ -1474,6 +1488,53 @@ module Aws::Pinpoint
1474
1488
  include Aws::Structure
1475
1489
  end
1476
1490
 
1491
+ # An object that defines the events that cause the campaign to be sent.
1492
+ #
1493
+ # @note When making an API call, you may pass CampaignEventFilter
1494
+ # data as a hash:
1495
+ #
1496
+ # {
1497
+ # dimensions: {
1498
+ # attributes: {
1499
+ # "__string" => {
1500
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
1501
+ # values: ["__string"],
1502
+ # },
1503
+ # },
1504
+ # event_type: {
1505
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
1506
+ # values: ["__string"],
1507
+ # },
1508
+ # metrics: {
1509
+ # "__string" => {
1510
+ # comparison_operator: "__string",
1511
+ # value: 1.0,
1512
+ # },
1513
+ # },
1514
+ # },
1515
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
1516
+ # }
1517
+ #
1518
+ # @!attribute [rw] dimensions
1519
+ # An object that defines the dimensions for the event filter.
1520
+ # @return [Types::EventDimensions]
1521
+ #
1522
+ # @!attribute [rw] filter_type
1523
+ # The type of event that causes the campaign to be sent. Possible
1524
+ # values: SYSTEM - Send the campaign when a system event occurs. See
1525
+ # the System resource for more information. ENDPOINT - Send the
1526
+ # campaign when an endpoint event occurs. See the Event resource for
1527
+ # more information.
1528
+ # @return [String]
1529
+ #
1530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignEventFilter AWS API Documentation
1531
+ #
1532
+ class CampaignEventFilter < Struct.new(
1533
+ :dimensions,
1534
+ :filter_type)
1535
+ include Aws::Structure
1536
+ end
1537
+
1477
1538
  # Campaign hook information.
1478
1539
  #
1479
1540
  # @note When making an API call, you may pass CampaignHook
@@ -1942,7 +2003,28 @@ module Aws::Pinpoint
1942
2003
  # },
1943
2004
  # schedule: {
1944
2005
  # end_time: "__string",
1945
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
2006
+ # event_filter: {
2007
+ # dimensions: {
2008
+ # attributes: {
2009
+ # "__string" => {
2010
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
2011
+ # values: ["__string"],
2012
+ # },
2013
+ # },
2014
+ # event_type: {
2015
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
2016
+ # values: ["__string"],
2017
+ # },
2018
+ # metrics: {
2019
+ # "__string" => {
2020
+ # comparison_operator: "__string",
2021
+ # value: 1.0,
2022
+ # },
2023
+ # },
2024
+ # },
2025
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
2026
+ # },
2027
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
1946
2028
  # is_local_time: false,
1947
2029
  # quiet_time: {
1948
2030
  # end: "__string",
@@ -2056,7 +2138,28 @@ module Aws::Pinpoint
2056
2138
  # name: "__string",
2057
2139
  # schedule: {
2058
2140
  # end_time: "__string",
2059
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
2141
+ # event_filter: {
2142
+ # dimensions: {
2143
+ # attributes: {
2144
+ # "__string" => {
2145
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
2146
+ # values: ["__string"],
2147
+ # },
2148
+ # },
2149
+ # event_type: {
2150
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
2151
+ # values: ["__string"],
2152
+ # },
2153
+ # metrics: {
2154
+ # "__string" => {
2155
+ # comparison_operator: "__string",
2156
+ # value: 1.0,
2157
+ # },
2158
+ # },
2159
+ # },
2160
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
2161
+ # },
2162
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
2060
2163
  # is_local_time: false,
2061
2164
  # quiet_time: {
2062
2165
  # end: "__string",
@@ -2906,6 +3009,34 @@ module Aws::Pinpoint
2906
3009
  include Aws::Structure
2907
3010
  end
2908
3011
 
3012
+ # @note When making an API call, you may pass DeleteVoiceChannelRequest
3013
+ # data as a hash:
3014
+ #
3015
+ # {
3016
+ # application_id: "__string", # required
3017
+ # }
3018
+ #
3019
+ # @!attribute [rw] application_id
3020
+ # @return [String]
3021
+ #
3022
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannelRequest AWS API Documentation
3023
+ #
3024
+ class DeleteVoiceChannelRequest < Struct.new(
3025
+ :application_id)
3026
+ include Aws::Structure
3027
+ end
3028
+
3029
+ # @!attribute [rw] voice_channel_response
3030
+ # Voice Channel Response.
3031
+ # @return [Types::VoiceChannelResponse]
3032
+ #
3033
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannelResponse AWS API Documentation
3034
+ #
3035
+ class DeleteVoiceChannelResponse < Struct.new(
3036
+ :voice_channel_response)
3037
+ include Aws::Structure
3038
+ end
3039
+
2909
3040
  # Message definitions for the default message and any messages that are
2910
3041
  # tailored for specific channels.
2911
3042
  #
@@ -3056,6 +3187,15 @@ module Aws::Pinpoint
3056
3187
  # "__string" => ["__string"],
3057
3188
  # },
3058
3189
  # },
3190
+ # voice_message: {
3191
+ # body: "__string",
3192
+ # language_code: "__string",
3193
+ # origination_number: "__string",
3194
+ # substitutions: {
3195
+ # "__string" => ["__string"],
3196
+ # },
3197
+ # voice_id: "__string",
3198
+ # },
3059
3199
  # }
3060
3200
  #
3061
3201
  # @!attribute [rw] adm_message
@@ -3094,6 +3234,10 @@ module Aws::Pinpoint
3094
3234
  # The message to SMS channels. Overrides the default message.
3095
3235
  # @return [Types::SMSMessage]
3096
3236
  #
3237
+ # @!attribute [rw] voice_message
3238
+ # The message to Voice channels. Overrides the default message.
3239
+ # @return [Types::VoiceMessage]
3240
+ #
3097
3241
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DirectMessageConfiguration AWS API Documentation
3098
3242
  #
3099
3243
  class DirectMessageConfiguration < Struct.new(
@@ -3104,7 +3248,8 @@ module Aws::Pinpoint
3104
3248
  :default_push_notification_message,
3105
3249
  :email_message,
3106
3250
  :gcm_message,
3107
- :sms_message)
3251
+ :sms_message,
3252
+ :voice_message)
3108
3253
  include Aws::Structure
3109
3254
  end
3110
3255
 
@@ -3326,7 +3471,7 @@ module Aws::Pinpoint
3326
3471
  # attributes: {
3327
3472
  # "__string" => ["__string"],
3328
3473
  # },
3329
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
3474
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
3330
3475
  # demographic: {
3331
3476
  # app_version: "__string",
3332
3477
  # locale: "__string",
@@ -3456,7 +3601,7 @@ module Aws::Pinpoint
3456
3601
  # attributes: {
3457
3602
  # "__string" => ["__string"],
3458
3603
  # },
3459
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
3604
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
3460
3605
  # demographic: {
3461
3606
  # app_version: "__string",
3462
3607
  # locale: "__string",
@@ -3658,11 +3803,11 @@ module Aws::Pinpoint
3658
3803
  # - An error occurred when delivering the message to the endpoint.
3659
3804
  # Amazon Pinpoint won't attempt to send the message again. TIMEOUT -
3660
3805
  # The message couldn't be sent within the timeout period. QUIET\_TIME
3661
- # - The local time for the endpoint was within the Quiet Hours for the
3662
- # campaign. DAILY\_CAP - The endpoint has received the maximum number
3663
- # of messages it can receive within a 24-hour period. HOLDOUT - The
3664
- # endpoint was in a hold out treatment for the campaign. THROTTLED -
3665
- # Amazon Pinpoint throttled sending to this endpoint. EXPIRED - The
3806
+ # - The local time for the endpoint was within the QuietTime for the
3807
+ # campaign or app. DAILY\_CAP - The endpoint has received the maximum
3808
+ # number of messages it can receive within a 24-hour period. HOLDOUT -
3809
+ # The endpoint was in a hold out treatment for the campaign. THROTTLED
3810
+ # - Amazon Pinpoint throttled sending to this endpoint. EXPIRED - The
3666
3811
  # endpoint address is expired. CAMPAIGN\_CAP - The endpoint received
3667
3812
  # the maximum number of messages allowed by the campaign.
3668
3813
  # SERVICE\_FAILURE - A service-level failure prevented Amazon Pinpoint
@@ -3707,7 +3852,7 @@ module Aws::Pinpoint
3707
3852
  # attributes: {
3708
3853
  # "__string" => ["__string"],
3709
3854
  # },
3710
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
3855
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
3711
3856
  # demographic: {
3712
3857
  # app_version: "__string",
3713
3858
  # locale: "__string",
@@ -4088,6 +4233,57 @@ module Aws::Pinpoint
4088
4233
  include Aws::Structure
4089
4234
  end
4090
4235
 
4236
+ # Event dimensions.
4237
+ #
4238
+ # @note When making an API call, you may pass EventDimensions
4239
+ # data as a hash:
4240
+ #
4241
+ # {
4242
+ # attributes: {
4243
+ # "__string" => {
4244
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
4245
+ # values: ["__string"],
4246
+ # },
4247
+ # },
4248
+ # event_type: {
4249
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
4250
+ # values: ["__string"],
4251
+ # },
4252
+ # metrics: {
4253
+ # "__string" => {
4254
+ # comparison_operator: "__string",
4255
+ # value: 1.0,
4256
+ # },
4257
+ # },
4258
+ # }
4259
+ #
4260
+ # @!attribute [rw] attributes
4261
+ # Custom attributes that your app reports to Amazon Pinpoint. You can
4262
+ # use these attributes as selection criteria when you create an event
4263
+ # filter.
4264
+ # @return [Hash<String,Types::AttributeDimension>]
4265
+ #
4266
+ # @!attribute [rw] event_type
4267
+ # The name of the event that causes the campaign to be sent. This can
4268
+ # be a standard event type that Amazon Pinpoint generates, such as
4269
+ # \_session.start, or a custom event that's specific to your app.
4270
+ # @return [Types::SetDimension]
4271
+ #
4272
+ # @!attribute [rw] metrics
4273
+ # Custom metrics that your app reports to Amazon Pinpoint. You can use
4274
+ # these attributes as selection criteria when you create an event
4275
+ # filter.
4276
+ # @return [Hash<String,Types::MetricDimension>]
4277
+ #
4278
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EventDimensions AWS API Documentation
4279
+ #
4280
+ class EventDimensions < Struct.new(
4281
+ :attributes,
4282
+ :event_type,
4283
+ :metrics)
4284
+ include Aws::Structure
4285
+ end
4286
+
4091
4287
  # A complex object that holds the status code and message as a result of
4092
4288
  # processing an event.
4093
4289
  #
@@ -4166,7 +4362,7 @@ module Aws::Pinpoint
4166
4362
  # attributes: {
4167
4363
  # "__string" => ["__string"],
4168
4364
  # },
4169
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
4365
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
4170
4366
  # demographic: {
4171
4367
  # app_version: "__string",
4172
4368
  # locale: "__string",
@@ -4250,7 +4446,7 @@ module Aws::Pinpoint
4250
4446
  # attributes: {
4251
4447
  # "__string" => ["__string"],
4252
4448
  # },
4253
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
4449
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
4254
4450
  # demographic: {
4255
4451
  # app_version: "__string",
4256
4452
  # locale: "__string",
@@ -5854,6 +6050,34 @@ module Aws::Pinpoint
5854
6050
  include Aws::Structure
5855
6051
  end
5856
6052
 
6053
+ # @note When making an API call, you may pass GetVoiceChannelRequest
6054
+ # data as a hash:
6055
+ #
6056
+ # {
6057
+ # application_id: "__string", # required
6058
+ # }
6059
+ #
6060
+ # @!attribute [rw] application_id
6061
+ # @return [String]
6062
+ #
6063
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceChannelRequest AWS API Documentation
6064
+ #
6065
+ class GetVoiceChannelRequest < Struct.new(
6066
+ :application_id)
6067
+ include Aws::Structure
6068
+ end
6069
+
6070
+ # @!attribute [rw] voice_channel_response
6071
+ # Voice Channel Response.
6072
+ # @return [Types::VoiceChannelResponse]
6073
+ #
6074
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceChannelResponse AWS API Documentation
6075
+ #
6076
+ class GetVoiceChannelResponse < Struct.new(
6077
+ :voice_channel_response)
6078
+ include Aws::Structure
6079
+ end
6080
+
5857
6081
  # Import job request.
5858
6082
  #
5859
6083
  # @note When making an API call, you may pass ImportJobRequest
@@ -6163,8 +6387,8 @@ module Aws::Pinpoint
6163
6387
  # @return [String]
6164
6388
  #
6165
6389
  # @!attribute [rw] media_url
6166
- # The URL that points to the media resource, for example a .mp4 or
6167
- # .gif file.
6390
+ # A URL that refers to the location of an image or video that you want
6391
+ # to display in the push notification.
6168
6392
  # @return [String]
6169
6393
  #
6170
6394
  # @!attribute [rw] raw_content
@@ -6376,7 +6600,7 @@ module Aws::Pinpoint
6376
6600
  # addresses: {
6377
6601
  # "__string" => {
6378
6602
  # body_override: "__string",
6379
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
6603
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
6380
6604
  # context: {
6381
6605
  # "__string" => "__string",
6382
6606
  # },
@@ -6547,6 +6771,15 @@ module Aws::Pinpoint
6547
6771
  # "__string" => ["__string"],
6548
6772
  # },
6549
6773
  # },
6774
+ # voice_message: {
6775
+ # body: "__string",
6776
+ # language_code: "__string",
6777
+ # origination_number: "__string",
6778
+ # substitutions: {
6779
+ # "__string" => ["__string"],
6780
+ # },
6781
+ # voice_id: "__string",
6782
+ # },
6550
6783
  # },
6551
6784
  # trace_id: "__string",
6552
6785
  # }
@@ -6632,11 +6865,11 @@ module Aws::Pinpoint
6632
6865
  # - An error occurred when delivering the message to the endpoint.
6633
6866
  # Amazon Pinpoint won't attempt to send the message again. TIMEOUT -
6634
6867
  # The message couldn't be sent within the timeout period. QUIET\_TIME
6635
- # - The local time for the endpoint was within the Quiet Hours for the
6636
- # campaign. DAILY\_CAP - The endpoint has received the maximum number
6637
- # of messages it can receive within a 24-hour period. HOLDOUT - The
6638
- # endpoint was in a hold out treatment for the campaign. THROTTLED -
6639
- # Amazon Pinpoint throttled sending to this endpoint. EXPIRED - The
6868
+ # - The local time for the endpoint was within the QuietTime for the
6869
+ # campaign or app. DAILY\_CAP - The endpoint has received the maximum
6870
+ # number of messages it can receive within a 24-hour period. HOLDOUT -
6871
+ # The endpoint was in a hold out treatment for the campaign. THROTTLED
6872
+ # - Amazon Pinpoint throttled sending to this endpoint. EXPIRED - The
6640
6873
  # endpoint address is expired. CAMPAIGN\_CAP - The endpoint received
6641
6874
  # the maximum number of messages allowed by the campaign.
6642
6875
  # SERVICE\_FAILURE - A service-level failure prevented Amazon Pinpoint
@@ -6687,7 +6920,7 @@ module Aws::Pinpoint
6687
6920
  # @return [String]
6688
6921
  #
6689
6922
  # @!attribute [rw] value
6690
- # Value to be compared.
6923
+ # The value to be compared.
6691
6924
  # @return [Float]
6692
6925
  #
6693
6926
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MetricDimension AWS API Documentation
@@ -6858,7 +7091,7 @@ module Aws::Pinpoint
6858
7091
  # attributes: {
6859
7092
  # "__string" => ["__string"],
6860
7093
  # },
6861
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
7094
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
6862
7095
  # demographic: {
6863
7096
  # app_version: "__string",
6864
7097
  # locale: "__string",
@@ -7013,7 +7246,7 @@ module Aws::Pinpoint
7013
7246
  # attributes: {
7014
7247
  # "__string" => ["__string"],
7015
7248
  # },
7016
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
7249
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
7017
7250
  # demographic: {
7018
7251
  # app_version: "__string",
7019
7252
  # locale: "__string",
@@ -7140,6 +7373,8 @@ module Aws::Pinpoint
7140
7373
  # }
7141
7374
  #
7142
7375
  # @!attribute [rw] data
7376
+ # The raw email message itself. Then entire message must be
7377
+ # base64-encoded.
7143
7378
  # @return [String]
7144
7379
  #
7145
7380
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/RawEmail AWS API Documentation
@@ -7396,7 +7631,28 @@ module Aws::Pinpoint
7396
7631
  #
7397
7632
  # {
7398
7633
  # end_time: "__string",
7399
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
7634
+ # event_filter: {
7635
+ # dimensions: {
7636
+ # attributes: {
7637
+ # "__string" => {
7638
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
7639
+ # values: ["__string"],
7640
+ # },
7641
+ # },
7642
+ # event_type: {
7643
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
7644
+ # values: ["__string"],
7645
+ # },
7646
+ # metrics: {
7647
+ # "__string" => {
7648
+ # comparison_operator: "__string",
7649
+ # value: 1.0,
7650
+ # },
7651
+ # },
7652
+ # },
7653
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
7654
+ # },
7655
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
7400
7656
  # is_local_time: false,
7401
7657
  # quiet_time: {
7402
7658
  # end: "__string",
@@ -7410,9 +7666,14 @@ module Aws::Pinpoint
7410
7666
  # The scheduled time that the campaign ends in ISO 8601 format.
7411
7667
  # @return [String]
7412
7668
  #
7669
+ # @!attribute [rw] event_filter
7670
+ # Defines the type of events that can trigger the campaign. Used when
7671
+ # the Frequency is set to EVENT.
7672
+ # @return [Types::CampaignEventFilter]
7673
+ #
7413
7674
  # @!attribute [rw] frequency
7414
- # How often the campaign delivers messages. Valid values: ONCE,
7415
- # HOURLY, DAILY, WEEKLY, MONTHLY
7675
+ # How often the campaign delivers messages. Valid values: ONCE HOURLY
7676
+ # DAILY WEEKLY MONTHLY EVENT
7416
7677
  # @return [String]
7417
7678
  #
7418
7679
  # @!attribute [rw] is_local_time
@@ -7421,7 +7682,20 @@ module Aws::Pinpoint
7421
7682
  # @return [Boolean]
7422
7683
  #
7423
7684
  # @!attribute [rw] quiet_time
7424
- # The time during which the campaign sends no messages.
7685
+ # The default quiet time for the campaign. The campaign doesn't send
7686
+ # messages to endpoints during the quiet time. Note: Make sure that
7687
+ # your endpoints include the Demographics.Timezone attribute if you
7688
+ # plan to enable a quiet time for your campaign. If your endpoints
7689
+ # don't include this attribute, they'll receive the messages that
7690
+ # you send them, even if quiet time is enabled. When you set up a
7691
+ # campaign to use quiet time, the campaign doesn't send messages
7692
+ # during the time range you specified, as long as all of the following
7693
+ # are true: - The endpoint includes a valid Demographic.Timezone
7694
+ # attribute. - The current time in the endpoint's time zone is later
7695
+ # than or equal to the time specified in the QuietTime.Start attribute
7696
+ # for the campaign. - The current time in the endpoint's time zone is
7697
+ # earlier than or equal to the time specified in the QuietTime.End
7698
+ # attribute for the campaign.
7425
7699
  # @return [Types::QuietTime]
7426
7700
  #
7427
7701
  # @!attribute [rw] start_time
@@ -7440,6 +7714,7 @@ module Aws::Pinpoint
7440
7714
  #
7441
7715
  class Schedule < Struct.new(
7442
7716
  :end_time,
7717
+ :event_filter,
7443
7718
  :frequency,
7444
7719
  :is_local_time,
7445
7720
  :quiet_time,
@@ -8074,7 +8349,7 @@ module Aws::Pinpoint
8074
8349
  # addresses: {
8075
8350
  # "__string" => {
8076
8351
  # body_override: "__string",
8077
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
8352
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
8078
8353
  # context: {
8079
8354
  # "__string" => "__string",
8080
8355
  # },
@@ -8245,6 +8520,15 @@ module Aws::Pinpoint
8245
8520
  # "__string" => ["__string"],
8246
8521
  # },
8247
8522
  # },
8523
+ # voice_message: {
8524
+ # body: "__string",
8525
+ # language_code: "__string",
8526
+ # origination_number: "__string",
8527
+ # substitutions: {
8528
+ # "__string" => ["__string"],
8529
+ # },
8530
+ # voice_id: "__string",
8531
+ # },
8248
8532
  # },
8249
8533
  # trace_id: "__string",
8250
8534
  # },
@@ -8429,6 +8713,15 @@ module Aws::Pinpoint
8429
8713
  # "__string" => ["__string"],
8430
8714
  # },
8431
8715
  # },
8716
+ # voice_message: {
8717
+ # body: "__string",
8718
+ # language_code: "__string",
8719
+ # origination_number: "__string",
8720
+ # substitutions: {
8721
+ # "__string" => ["__string"],
8722
+ # },
8723
+ # voice_id: "__string",
8724
+ # },
8432
8725
  # },
8433
8726
  # trace_id: "__string",
8434
8727
  # users: {
@@ -8660,6 +8953,15 @@ module Aws::Pinpoint
8660
8953
  # "__string" => ["__string"],
8661
8954
  # },
8662
8955
  # },
8956
+ # voice_message: {
8957
+ # body: "__string",
8958
+ # language_code: "__string",
8959
+ # origination_number: "__string",
8960
+ # substitutions: {
8961
+ # "__string" => ["__string"],
8962
+ # },
8963
+ # voice_id: "__string",
8964
+ # },
8663
8965
  # },
8664
8966
  # trace_id: "__string",
8665
8967
  # users: {
@@ -9300,7 +9602,28 @@ module Aws::Pinpoint
9300
9602
  # },
9301
9603
  # schedule: {
9302
9604
  # end_time: "__string",
9303
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
9605
+ # event_filter: {
9606
+ # dimensions: {
9607
+ # attributes: {
9608
+ # "__string" => {
9609
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
9610
+ # values: ["__string"],
9611
+ # },
9612
+ # },
9613
+ # event_type: {
9614
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
9615
+ # values: ["__string"],
9616
+ # },
9617
+ # metrics: {
9618
+ # "__string" => {
9619
+ # comparison_operator: "__string",
9620
+ # value: 1.0,
9621
+ # },
9622
+ # },
9623
+ # },
9624
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
9625
+ # },
9626
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
9304
9627
  # is_local_time: false,
9305
9628
  # quiet_time: {
9306
9629
  # end: "__string",
@@ -9414,7 +9737,28 @@ module Aws::Pinpoint
9414
9737
  # name: "__string",
9415
9738
  # schedule: {
9416
9739
  # end_time: "__string",
9417
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
9740
+ # event_filter: {
9741
+ # dimensions: {
9742
+ # attributes: {
9743
+ # "__string" => {
9744
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
9745
+ # values: ["__string"],
9746
+ # },
9747
+ # },
9748
+ # event_type: {
9749
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
9750
+ # values: ["__string"],
9751
+ # },
9752
+ # metrics: {
9753
+ # "__string" => {
9754
+ # comparison_operator: "__string",
9755
+ # value: 1.0,
9756
+ # },
9757
+ # },
9758
+ # },
9759
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
9760
+ # },
9761
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
9418
9762
  # is_local_time: false,
9419
9763
  # quiet_time: {
9420
9764
  # end: "__string",
@@ -9511,7 +9855,7 @@ module Aws::Pinpoint
9511
9855
  # attributes: {
9512
9856
  # "__string" => ["__string"],
9513
9857
  # },
9514
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
9858
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
9515
9859
  # demographic: {
9516
9860
  # app_version: "__string",
9517
9861
  # locale: "__string",
@@ -9588,7 +9932,7 @@ module Aws::Pinpoint
9588
9932
  # attributes: {
9589
9933
  # "__string" => ["__string"],
9590
9934
  # },
9591
- # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, EMAIL, BAIDU, CUSTOM
9935
+ # channel_type: "GCM", # accepts GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
9592
9936
  # demographic: {
9593
9937
  # app_version: "__string",
9594
9938
  # locale: "__string",
@@ -9915,6 +10259,167 @@ module Aws::Pinpoint
9915
10259
  include Aws::Structure
9916
10260
  end
9917
10261
 
10262
+ # @note When making an API call, you may pass UpdateVoiceChannelRequest
10263
+ # data as a hash:
10264
+ #
10265
+ # {
10266
+ # application_id: "__string", # required
10267
+ # voice_channel_request: { # required
10268
+ # enabled: false,
10269
+ # },
10270
+ # }
10271
+ #
10272
+ # @!attribute [rw] application_id
10273
+ # @return [String]
10274
+ #
10275
+ # @!attribute [rw] voice_channel_request
10276
+ # Voice Channel Request
10277
+ # @return [Types::VoiceChannelRequest]
10278
+ #
10279
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceChannelRequest AWS API Documentation
10280
+ #
10281
+ class UpdateVoiceChannelRequest < Struct.new(
10282
+ :application_id,
10283
+ :voice_channel_request)
10284
+ include Aws::Structure
10285
+ end
10286
+
10287
+ # @!attribute [rw] voice_channel_response
10288
+ # Voice Channel Response.
10289
+ # @return [Types::VoiceChannelResponse]
10290
+ #
10291
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceChannelResponse AWS API Documentation
10292
+ #
10293
+ class UpdateVoiceChannelResponse < Struct.new(
10294
+ :voice_channel_response)
10295
+ include Aws::Structure
10296
+ end
10297
+
10298
+ # Voice Channel Request
10299
+ #
10300
+ # @note When making an API call, you may pass VoiceChannelRequest
10301
+ # data as a hash:
10302
+ #
10303
+ # {
10304
+ # enabled: false,
10305
+ # }
10306
+ #
10307
+ # @!attribute [rw] enabled
10308
+ # If the channel is enabled for sending messages.
10309
+ # @return [Boolean]
10310
+ #
10311
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/VoiceChannelRequest AWS API Documentation
10312
+ #
10313
+ class VoiceChannelRequest < Struct.new(
10314
+ :enabled)
10315
+ include Aws::Structure
10316
+ end
10317
+
10318
+ # Voice Channel Response.
10319
+ #
10320
+ # @!attribute [rw] application_id
10321
+ # Application id
10322
+ # @return [String]
10323
+ #
10324
+ # @!attribute [rw] creation_date
10325
+ # The date that the settings were last updated in ISO 8601 format.
10326
+ # @return [String]
10327
+ #
10328
+ # @!attribute [rw] enabled
10329
+ # If the channel is enabled for sending messages.
10330
+ # @return [Boolean]
10331
+ #
10332
+ # @!attribute [rw] has_credential
10333
+ # @return [Boolean]
10334
+ #
10335
+ # @!attribute [rw] id
10336
+ # Channel ID. Not used, only for backwards compatibility.
10337
+ # @return [String]
10338
+ #
10339
+ # @!attribute [rw] is_archived
10340
+ # Is this channel archived
10341
+ # @return [Boolean]
10342
+ #
10343
+ # @!attribute [rw] last_modified_by
10344
+ # Who made the last change
10345
+ # @return [String]
10346
+ #
10347
+ # @!attribute [rw] last_modified_date
10348
+ # Last date this was updated
10349
+ # @return [String]
10350
+ #
10351
+ # @!attribute [rw] platform
10352
+ # Platform type. Will be "Voice"
10353
+ # @return [String]
10354
+ #
10355
+ # @!attribute [rw] version
10356
+ # Version of channel
10357
+ # @return [Integer]
10358
+ #
10359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/VoiceChannelResponse AWS API Documentation
10360
+ #
10361
+ class VoiceChannelResponse < Struct.new(
10362
+ :application_id,
10363
+ :creation_date,
10364
+ :enabled,
10365
+ :has_credential,
10366
+ :id,
10367
+ :is_archived,
10368
+ :last_modified_by,
10369
+ :last_modified_date,
10370
+ :platform,
10371
+ :version)
10372
+ include Aws::Structure
10373
+ end
10374
+
10375
+ # Voice Message.
10376
+ #
10377
+ # @note When making an API call, you may pass VoiceMessage
10378
+ # data as a hash:
10379
+ #
10380
+ # {
10381
+ # body: "__string",
10382
+ # language_code: "__string",
10383
+ # origination_number: "__string",
10384
+ # substitutions: {
10385
+ # "__string" => ["__string"],
10386
+ # },
10387
+ # voice_id: "__string",
10388
+ # }
10389
+ #
10390
+ # @!attribute [rw] body
10391
+ # The message body of the notification, the email body or the text
10392
+ # message.
10393
+ # @return [String]
10394
+ #
10395
+ # @!attribute [rw] language_code
10396
+ # Language of sent message
10397
+ # @return [String]
10398
+ #
10399
+ # @!attribute [rw] origination_number
10400
+ # Is the number from the pool or messaging service to send from.
10401
+ # @return [String]
10402
+ #
10403
+ # @!attribute [rw] substitutions
10404
+ # Default message substitutions. Can be overridden by individual
10405
+ # address substitutions.
10406
+ # @return [Hash<String,Array<String>>]
10407
+ #
10408
+ # @!attribute [rw] voice_id
10409
+ # Voice ID of sent message.
10410
+ # @return [String]
10411
+ #
10412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/VoiceMessage AWS API Documentation
10413
+ #
10414
+ class VoiceMessage < Struct.new(
10415
+ :body,
10416
+ :language_code,
10417
+ :origination_number,
10418
+ :substitutions,
10419
+ :voice_id)
10420
+ include Aws::Structure
10421
+ end
10422
+
9918
10423
  # Creating application setting request
9919
10424
  #
9920
10425
  # @note When making an API call, you may pass WriteApplicationSettingsRequest
@@ -9954,9 +10459,22 @@ module Aws::Pinpoint
9954
10459
  # @return [Types::CampaignLimits]
9955
10460
  #
9956
10461
  # @!attribute [rw] quiet_time
9957
- # The default quiet time for the app. Each campaign for this app sends
9958
- # no messages during this time unless the campaign overrides the
9959
- # default with a quiet time of its own.
10462
+ # The default quiet time for the app. Campaigns in the app don't send
10463
+ # messages to endpoints during the quiet time. Note: Make sure that
10464
+ # your endpoints include the Demographics.Timezone attribute if you
10465
+ # plan to enable a quiet time for your app. If your endpoints don't
10466
+ # include this attribute, they'll receive the messages that you send
10467
+ # them, even if quiet time is enabled. When you set up an app to use
10468
+ # quiet time, campaigns in that app don't send messages during the
10469
+ # time range you specified, as long as all of the following are true:
10470
+ # - The endpoint includes a valid Demographic.Timezone attribute. -
10471
+ # The current time in the endpoint's time zone is later than or equal
10472
+ # to the time specified in the QuietTime.Start attribute for the app
10473
+ # (or campaign, if applicable). - The current time in the endpoint's
10474
+ # time zone is earlier than or equal to the time specified in the
10475
+ # QuietTime.End attribute for the app (or campaign, if applicable).
10476
+ # Individual campaigns within the app can have their own quiet time
10477
+ # settings, which override the quiet time settings at the app level.
9960
10478
  # @return [Types::QuietTime]
9961
10479
  #
9962
10480
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteApplicationSettingsRequest AWS API Documentation
@@ -10062,7 +10580,28 @@ module Aws::Pinpoint
10062
10580
  # },
10063
10581
  # schedule: {
10064
10582
  # end_time: "__string",
10065
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
10583
+ # event_filter: {
10584
+ # dimensions: {
10585
+ # attributes: {
10586
+ # "__string" => {
10587
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
10588
+ # values: ["__string"],
10589
+ # },
10590
+ # },
10591
+ # event_type: {
10592
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
10593
+ # values: ["__string"],
10594
+ # },
10595
+ # metrics: {
10596
+ # "__string" => {
10597
+ # comparison_operator: "__string",
10598
+ # value: 1.0,
10599
+ # },
10600
+ # },
10601
+ # },
10602
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
10603
+ # },
10604
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
10066
10605
  # is_local_time: false,
10067
10606
  # quiet_time: {
10068
10607
  # end: "__string",
@@ -10176,7 +10715,28 @@ module Aws::Pinpoint
10176
10715
  # name: "__string",
10177
10716
  # schedule: {
10178
10717
  # end_time: "__string",
10179
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
10718
+ # event_filter: {
10719
+ # dimensions: {
10720
+ # attributes: {
10721
+ # "__string" => {
10722
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
10723
+ # values: ["__string"],
10724
+ # },
10725
+ # },
10726
+ # event_type: {
10727
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
10728
+ # values: ["__string"],
10729
+ # },
10730
+ # metrics: {
10731
+ # "__string" => {
10732
+ # comparison_operator: "__string",
10733
+ # value: 1.0,
10734
+ # },
10735
+ # },
10736
+ # },
10737
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
10738
+ # },
10739
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
10180
10740
  # is_local_time: false,
10181
10741
  # quiet_time: {
10182
10742
  # end: "__string",
@@ -10566,7 +11126,28 @@ module Aws::Pinpoint
10566
11126
  # },
10567
11127
  # schedule: {
10568
11128
  # end_time: "__string",
10569
- # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY
11129
+ # event_filter: {
11130
+ # dimensions: {
11131
+ # attributes: {
11132
+ # "__string" => {
11133
+ # attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
11134
+ # values: ["__string"],
11135
+ # },
11136
+ # },
11137
+ # event_type: {
11138
+ # dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
11139
+ # values: ["__string"],
11140
+ # },
11141
+ # metrics: {
11142
+ # "__string" => {
11143
+ # comparison_operator: "__string",
11144
+ # value: 1.0,
11145
+ # },
11146
+ # },
11147
+ # },
11148
+ # filter_type: "SYSTEM", # accepts SYSTEM, ENDPOINT
11149
+ # },
11150
+ # frequency: "ONCE", # accepts ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
10570
11151
  # is_local_time: false,
10571
11152
  # quiet_time: {
10572
11153
  # end: "__string",