UNPKG

171 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Pinpoint extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Pinpoint.Types.ClientConfiguration)
13 config: Config & Pinpoint.Types.ClientConfiguration;
14 /**
15 * Creates or updates an app.
16 */
17 createApp(params: Pinpoint.Types.CreateAppRequest, callback?: (err: AWSError, data: Pinpoint.Types.CreateAppResponse) => void): Request<Pinpoint.Types.CreateAppResponse, AWSError>;
18 /**
19 * Creates or updates an app.
20 */
21 createApp(callback?: (err: AWSError, data: Pinpoint.Types.CreateAppResponse) => void): Request<Pinpoint.Types.CreateAppResponse, AWSError>;
22 /**
23 * Creates or updates a campaign.
24 */
25 createCampaign(params: Pinpoint.Types.CreateCampaignRequest, callback?: (err: AWSError, data: Pinpoint.Types.CreateCampaignResponse) => void): Request<Pinpoint.Types.CreateCampaignResponse, AWSError>;
26 /**
27 * Creates or updates a campaign.
28 */
29 createCampaign(callback?: (err: AWSError, data: Pinpoint.Types.CreateCampaignResponse) => void): Request<Pinpoint.Types.CreateCampaignResponse, AWSError>;
30 /**
31 * Creates an export job.
32 */
33 createExportJob(params: Pinpoint.Types.CreateExportJobRequest, callback?: (err: AWSError, data: Pinpoint.Types.CreateExportJobResponse) => void): Request<Pinpoint.Types.CreateExportJobResponse, AWSError>;
34 /**
35 * Creates an export job.
36 */
37 createExportJob(callback?: (err: AWSError, data: Pinpoint.Types.CreateExportJobResponse) => void): Request<Pinpoint.Types.CreateExportJobResponse, AWSError>;
38 /**
39 * Creates or updates an import job.
40 */
41 createImportJob(params: Pinpoint.Types.CreateImportJobRequest, callback?: (err: AWSError, data: Pinpoint.Types.CreateImportJobResponse) => void): Request<Pinpoint.Types.CreateImportJobResponse, AWSError>;
42 /**
43 * Creates or updates an import job.
44 */
45 createImportJob(callback?: (err: AWSError, data: Pinpoint.Types.CreateImportJobResponse) => void): Request<Pinpoint.Types.CreateImportJobResponse, AWSError>;
46 /**
47 * Used to create or update a segment.
48 */
49 createSegment(params: Pinpoint.Types.CreateSegmentRequest, callback?: (err: AWSError, data: Pinpoint.Types.CreateSegmentResponse) => void): Request<Pinpoint.Types.CreateSegmentResponse, AWSError>;
50 /**
51 * Used to create or update a segment.
52 */
53 createSegment(callback?: (err: AWSError, data: Pinpoint.Types.CreateSegmentResponse) => void): Request<Pinpoint.Types.CreateSegmentResponse, AWSError>;
54 /**
55 * Delete an ADM channel.
56 */
57 deleteAdmChannel(params: Pinpoint.Types.DeleteAdmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteAdmChannelResponse) => void): Request<Pinpoint.Types.DeleteAdmChannelResponse, AWSError>;
58 /**
59 * Delete an ADM channel.
60 */
61 deleteAdmChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteAdmChannelResponse) => void): Request<Pinpoint.Types.DeleteAdmChannelResponse, AWSError>;
62 /**
63 * Deletes the APNs channel for an app.
64 */
65 deleteApnsChannel(params: Pinpoint.Types.DeleteApnsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsChannelResponse, AWSError>;
66 /**
67 * Deletes the APNs channel for an app.
68 */
69 deleteApnsChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsChannelResponse, AWSError>;
70 /**
71 * Delete an APNS sandbox channel.
72 */
73 deleteApnsSandboxChannel(params: Pinpoint.Types.DeleteApnsSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsSandboxChannelResponse, AWSError>;
74 /**
75 * Delete an APNS sandbox channel.
76 */
77 deleteApnsSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsSandboxChannelResponse, AWSError>;
78 /**
79 * Delete an APNS VoIP channel
80 */
81 deleteApnsVoipChannel(params: Pinpoint.Types.DeleteApnsVoipChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsVoipChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsVoipChannelResponse, AWSError>;
82 /**
83 * Delete an APNS VoIP channel
84 */
85 deleteApnsVoipChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsVoipChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsVoipChannelResponse, AWSError>;
86 /**
87 * Delete an APNS VoIP sandbox channel
88 */
89 deleteApnsVoipSandboxChannel(params: Pinpoint.Types.DeleteApnsVoipSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsVoipSandboxChannelResponse, AWSError>;
90 /**
91 * Delete an APNS VoIP sandbox channel
92 */
93 deleteApnsVoipSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.DeleteApnsVoipSandboxChannelResponse, AWSError>;
94 /**
95 * Deletes an app.
96 */
97 deleteApp(params: Pinpoint.Types.DeleteAppRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteAppResponse) => void): Request<Pinpoint.Types.DeleteAppResponse, AWSError>;
98 /**
99 * Deletes an app.
100 */
101 deleteApp(callback?: (err: AWSError, data: Pinpoint.Types.DeleteAppResponse) => void): Request<Pinpoint.Types.DeleteAppResponse, AWSError>;
102 /**
103 * Delete a BAIDU GCM channel
104 */
105 deleteBaiduChannel(params: Pinpoint.Types.DeleteBaiduChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteBaiduChannelResponse) => void): Request<Pinpoint.Types.DeleteBaiduChannelResponse, AWSError>;
106 /**
107 * Delete a BAIDU GCM channel
108 */
109 deleteBaiduChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteBaiduChannelResponse) => void): Request<Pinpoint.Types.DeleteBaiduChannelResponse, AWSError>;
110 /**
111 * Deletes a campaign.
112 */
113 deleteCampaign(params: Pinpoint.Types.DeleteCampaignRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteCampaignResponse) => void): Request<Pinpoint.Types.DeleteCampaignResponse, AWSError>;
114 /**
115 * Deletes a campaign.
116 */
117 deleteCampaign(callback?: (err: AWSError, data: Pinpoint.Types.DeleteCampaignResponse) => void): Request<Pinpoint.Types.DeleteCampaignResponse, AWSError>;
118 /**
119 * Delete an email channel.
120 */
121 deleteEmailChannel(params: Pinpoint.Types.DeleteEmailChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteEmailChannelResponse) => void): Request<Pinpoint.Types.DeleteEmailChannelResponse, AWSError>;
122 /**
123 * Delete an email channel.
124 */
125 deleteEmailChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteEmailChannelResponse) => void): Request<Pinpoint.Types.DeleteEmailChannelResponse, AWSError>;
126 /**
127 * Deletes an endpoint.
128 */
129 deleteEndpoint(params: Pinpoint.Types.DeleteEndpointRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteEndpointResponse) => void): Request<Pinpoint.Types.DeleteEndpointResponse, AWSError>;
130 /**
131 * Deletes an endpoint.
132 */
133 deleteEndpoint(callback?: (err: AWSError, data: Pinpoint.Types.DeleteEndpointResponse) => void): Request<Pinpoint.Types.DeleteEndpointResponse, AWSError>;
134 /**
135 * Deletes the event stream for an app.
136 */
137 deleteEventStream(params: Pinpoint.Types.DeleteEventStreamRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteEventStreamResponse) => void): Request<Pinpoint.Types.DeleteEventStreamResponse, AWSError>;
138 /**
139 * Deletes the event stream for an app.
140 */
141 deleteEventStream(callback?: (err: AWSError, data: Pinpoint.Types.DeleteEventStreamResponse) => void): Request<Pinpoint.Types.DeleteEventStreamResponse, AWSError>;
142 /**
143 * Deletes the GCM channel for an app.
144 */
145 deleteGcmChannel(params: Pinpoint.Types.DeleteGcmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteGcmChannelResponse) => void): Request<Pinpoint.Types.DeleteGcmChannelResponse, AWSError>;
146 /**
147 * Deletes the GCM channel for an app.
148 */
149 deleteGcmChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteGcmChannelResponse) => void): Request<Pinpoint.Types.DeleteGcmChannelResponse, AWSError>;
150 /**
151 * Deletes a segment.
152 */
153 deleteSegment(params: Pinpoint.Types.DeleteSegmentRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteSegmentResponse) => void): Request<Pinpoint.Types.DeleteSegmentResponse, AWSError>;
154 /**
155 * Deletes a segment.
156 */
157 deleteSegment(callback?: (err: AWSError, data: Pinpoint.Types.DeleteSegmentResponse) => void): Request<Pinpoint.Types.DeleteSegmentResponse, AWSError>;
158 /**
159 * Delete an SMS channel.
160 */
161 deleteSmsChannel(params: Pinpoint.Types.DeleteSmsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteSmsChannelResponse) => void): Request<Pinpoint.Types.DeleteSmsChannelResponse, AWSError>;
162 /**
163 * Delete an SMS channel.
164 */
165 deleteSmsChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteSmsChannelResponse) => void): Request<Pinpoint.Types.DeleteSmsChannelResponse, AWSError>;
166 /**
167 * Deletes endpoints that are associated with a User ID.
168 */
169 deleteUserEndpoints(params: Pinpoint.Types.DeleteUserEndpointsRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteUserEndpointsResponse) => void): Request<Pinpoint.Types.DeleteUserEndpointsResponse, AWSError>;
170 /**
171 * Deletes endpoints that are associated with a User ID.
172 */
173 deleteUserEndpoints(callback?: (err: AWSError, data: Pinpoint.Types.DeleteUserEndpointsResponse) => void): Request<Pinpoint.Types.DeleteUserEndpointsResponse, AWSError>;
174 /**
175 * Delete an Voice channel
176 */
177 deleteVoiceChannel(params: Pinpoint.Types.DeleteVoiceChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.DeleteVoiceChannelResponse) => void): Request<Pinpoint.Types.DeleteVoiceChannelResponse, AWSError>;
178 /**
179 * Delete an Voice channel
180 */
181 deleteVoiceChannel(callback?: (err: AWSError, data: Pinpoint.Types.DeleteVoiceChannelResponse) => void): Request<Pinpoint.Types.DeleteVoiceChannelResponse, AWSError>;
182 /**
183 * Get an ADM channel.
184 */
185 getAdmChannel(params: Pinpoint.Types.GetAdmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetAdmChannelResponse) => void): Request<Pinpoint.Types.GetAdmChannelResponse, AWSError>;
186 /**
187 * Get an ADM channel.
188 */
189 getAdmChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetAdmChannelResponse) => void): Request<Pinpoint.Types.GetAdmChannelResponse, AWSError>;
190 /**
191 * Returns information about the APNs channel for an app.
192 */
193 getApnsChannel(params: Pinpoint.Types.GetApnsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetApnsChannelResponse) => void): Request<Pinpoint.Types.GetApnsChannelResponse, AWSError>;
194 /**
195 * Returns information about the APNs channel for an app.
196 */
197 getApnsChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetApnsChannelResponse) => void): Request<Pinpoint.Types.GetApnsChannelResponse, AWSError>;
198 /**
199 * Get an APNS sandbox channel.
200 */
201 getApnsSandboxChannel(params: Pinpoint.Types.GetApnsSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.GetApnsSandboxChannelResponse, AWSError>;
202 /**
203 * Get an APNS sandbox channel.
204 */
205 getApnsSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.GetApnsSandboxChannelResponse, AWSError>;
206 /**
207 * Get an APNS VoIP channel
208 */
209 getApnsVoipChannel(params: Pinpoint.Types.GetApnsVoipChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetApnsVoipChannelResponse) => void): Request<Pinpoint.Types.GetApnsVoipChannelResponse, AWSError>;
210 /**
211 * Get an APNS VoIP channel
212 */
213 getApnsVoipChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetApnsVoipChannelResponse) => void): Request<Pinpoint.Types.GetApnsVoipChannelResponse, AWSError>;
214 /**
215 * Get an APNS VoIPSandbox channel
216 */
217 getApnsVoipSandboxChannel(params: Pinpoint.Types.GetApnsVoipSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.GetApnsVoipSandboxChannelResponse, AWSError>;
218 /**
219 * Get an APNS VoIPSandbox channel
220 */
221 getApnsVoipSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.GetApnsVoipSandboxChannelResponse, AWSError>;
222 /**
223 * Returns information about an app.
224 */
225 getApp(params: Pinpoint.Types.GetAppRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetAppResponse) => void): Request<Pinpoint.Types.GetAppResponse, AWSError>;
226 /**
227 * Returns information about an app.
228 */
229 getApp(callback?: (err: AWSError, data: Pinpoint.Types.GetAppResponse) => void): Request<Pinpoint.Types.GetAppResponse, AWSError>;
230 /**
231 * Used to request the settings for an app.
232 */
233 getApplicationSettings(params: Pinpoint.Types.GetApplicationSettingsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetApplicationSettingsResponse) => void): Request<Pinpoint.Types.GetApplicationSettingsResponse, AWSError>;
234 /**
235 * Used to request the settings for an app.
236 */
237 getApplicationSettings(callback?: (err: AWSError, data: Pinpoint.Types.GetApplicationSettingsResponse) => void): Request<Pinpoint.Types.GetApplicationSettingsResponse, AWSError>;
238 /**
239 * Returns information about your apps.
240 */
241 getApps(params: Pinpoint.Types.GetAppsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetAppsResponse) => void): Request<Pinpoint.Types.GetAppsResponse, AWSError>;
242 /**
243 * Returns information about your apps.
244 */
245 getApps(callback?: (err: AWSError, data: Pinpoint.Types.GetAppsResponse) => void): Request<Pinpoint.Types.GetAppsResponse, AWSError>;
246 /**
247 * Get a BAIDU GCM channel
248 */
249 getBaiduChannel(params: Pinpoint.Types.GetBaiduChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetBaiduChannelResponse) => void): Request<Pinpoint.Types.GetBaiduChannelResponse, AWSError>;
250 /**
251 * Get a BAIDU GCM channel
252 */
253 getBaiduChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetBaiduChannelResponse) => void): Request<Pinpoint.Types.GetBaiduChannelResponse, AWSError>;
254 /**
255 * Returns information about a campaign.
256 */
257 getCampaign(params: Pinpoint.Types.GetCampaignRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignResponse) => void): Request<Pinpoint.Types.GetCampaignResponse, AWSError>;
258 /**
259 * Returns information about a campaign.
260 */
261 getCampaign(callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignResponse) => void): Request<Pinpoint.Types.GetCampaignResponse, AWSError>;
262 /**
263 * Returns information about the activity performed by a campaign.
264 */
265 getCampaignActivities(params: Pinpoint.Types.GetCampaignActivitiesRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignActivitiesResponse) => void): Request<Pinpoint.Types.GetCampaignActivitiesResponse, AWSError>;
266 /**
267 * Returns information about the activity performed by a campaign.
268 */
269 getCampaignActivities(callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignActivitiesResponse) => void): Request<Pinpoint.Types.GetCampaignActivitiesResponse, AWSError>;
270 /**
271 * Returns information about a specific version of a campaign.
272 */
273 getCampaignVersion(params: Pinpoint.Types.GetCampaignVersionRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignVersionResponse) => void): Request<Pinpoint.Types.GetCampaignVersionResponse, AWSError>;
274 /**
275 * Returns information about a specific version of a campaign.
276 */
277 getCampaignVersion(callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignVersionResponse) => void): Request<Pinpoint.Types.GetCampaignVersionResponse, AWSError>;
278 /**
279 * Returns information about your campaign versions.
280 */
281 getCampaignVersions(params: Pinpoint.Types.GetCampaignVersionsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignVersionsResponse) => void): Request<Pinpoint.Types.GetCampaignVersionsResponse, AWSError>;
282 /**
283 * Returns information about your campaign versions.
284 */
285 getCampaignVersions(callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignVersionsResponse) => void): Request<Pinpoint.Types.GetCampaignVersionsResponse, AWSError>;
286 /**
287 * Returns information about your campaigns.
288 */
289 getCampaigns(params: Pinpoint.Types.GetCampaignsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignsResponse) => void): Request<Pinpoint.Types.GetCampaignsResponse, AWSError>;
290 /**
291 * Returns information about your campaigns.
292 */
293 getCampaigns(callback?: (err: AWSError, data: Pinpoint.Types.GetCampaignsResponse) => void): Request<Pinpoint.Types.GetCampaignsResponse, AWSError>;
294 /**
295 * Get all channels.
296 */
297 getChannels(params: Pinpoint.Types.GetChannelsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetChannelsResponse) => void): Request<Pinpoint.Types.GetChannelsResponse, AWSError>;
298 /**
299 * Get all channels.
300 */
301 getChannels(callback?: (err: AWSError, data: Pinpoint.Types.GetChannelsResponse) => void): Request<Pinpoint.Types.GetChannelsResponse, AWSError>;
302 /**
303 * Get an email channel.
304 */
305 getEmailChannel(params: Pinpoint.Types.GetEmailChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetEmailChannelResponse) => void): Request<Pinpoint.Types.GetEmailChannelResponse, AWSError>;
306 /**
307 * Get an email channel.
308 */
309 getEmailChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetEmailChannelResponse) => void): Request<Pinpoint.Types.GetEmailChannelResponse, AWSError>;
310 /**
311 * Returns information about an endpoint.
312 */
313 getEndpoint(params: Pinpoint.Types.GetEndpointRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetEndpointResponse) => void): Request<Pinpoint.Types.GetEndpointResponse, AWSError>;
314 /**
315 * Returns information about an endpoint.
316 */
317 getEndpoint(callback?: (err: AWSError, data: Pinpoint.Types.GetEndpointResponse) => void): Request<Pinpoint.Types.GetEndpointResponse, AWSError>;
318 /**
319 * Returns the event stream for an app.
320 */
321 getEventStream(params: Pinpoint.Types.GetEventStreamRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetEventStreamResponse) => void): Request<Pinpoint.Types.GetEventStreamResponse, AWSError>;
322 /**
323 * Returns the event stream for an app.
324 */
325 getEventStream(callback?: (err: AWSError, data: Pinpoint.Types.GetEventStreamResponse) => void): Request<Pinpoint.Types.GetEventStreamResponse, AWSError>;
326 /**
327 * Returns information about an export job.
328 */
329 getExportJob(params: Pinpoint.Types.GetExportJobRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetExportJobResponse) => void): Request<Pinpoint.Types.GetExportJobResponse, AWSError>;
330 /**
331 * Returns information about an export job.
332 */
333 getExportJob(callback?: (err: AWSError, data: Pinpoint.Types.GetExportJobResponse) => void): Request<Pinpoint.Types.GetExportJobResponse, AWSError>;
334 /**
335 * Returns information about your export jobs.
336 */
337 getExportJobs(params: Pinpoint.Types.GetExportJobsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetExportJobsResponse) => void): Request<Pinpoint.Types.GetExportJobsResponse, AWSError>;
338 /**
339 * Returns information about your export jobs.
340 */
341 getExportJobs(callback?: (err: AWSError, data: Pinpoint.Types.GetExportJobsResponse) => void): Request<Pinpoint.Types.GetExportJobsResponse, AWSError>;
342 /**
343 * Returns information about the GCM channel for an app.
344 */
345 getGcmChannel(params: Pinpoint.Types.GetGcmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetGcmChannelResponse) => void): Request<Pinpoint.Types.GetGcmChannelResponse, AWSError>;
346 /**
347 * Returns information about the GCM channel for an app.
348 */
349 getGcmChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetGcmChannelResponse) => void): Request<Pinpoint.Types.GetGcmChannelResponse, AWSError>;
350 /**
351 * Returns information about an import job.
352 */
353 getImportJob(params: Pinpoint.Types.GetImportJobRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetImportJobResponse) => void): Request<Pinpoint.Types.GetImportJobResponse, AWSError>;
354 /**
355 * Returns information about an import job.
356 */
357 getImportJob(callback?: (err: AWSError, data: Pinpoint.Types.GetImportJobResponse) => void): Request<Pinpoint.Types.GetImportJobResponse, AWSError>;
358 /**
359 * Returns information about your import jobs.
360 */
361 getImportJobs(params: Pinpoint.Types.GetImportJobsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetImportJobsResponse) => void): Request<Pinpoint.Types.GetImportJobsResponse, AWSError>;
362 /**
363 * Returns information about your import jobs.
364 */
365 getImportJobs(callback?: (err: AWSError, data: Pinpoint.Types.GetImportJobsResponse) => void): Request<Pinpoint.Types.GetImportJobsResponse, AWSError>;
366 /**
367 * Returns information about a segment.
368 */
369 getSegment(params: Pinpoint.Types.GetSegmentRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentResponse) => void): Request<Pinpoint.Types.GetSegmentResponse, AWSError>;
370 /**
371 * Returns information about a segment.
372 */
373 getSegment(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentResponse) => void): Request<Pinpoint.Types.GetSegmentResponse, AWSError>;
374 /**
375 * Returns a list of export jobs for a specific segment.
376 */
377 getSegmentExportJobs(params: Pinpoint.Types.GetSegmentExportJobsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentExportJobsResponse) => void): Request<Pinpoint.Types.GetSegmentExportJobsResponse, AWSError>;
378 /**
379 * Returns a list of export jobs for a specific segment.
380 */
381 getSegmentExportJobs(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentExportJobsResponse) => void): Request<Pinpoint.Types.GetSegmentExportJobsResponse, AWSError>;
382 /**
383 * Returns a list of import jobs for a specific segment.
384 */
385 getSegmentImportJobs(params: Pinpoint.Types.GetSegmentImportJobsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentImportJobsResponse) => void): Request<Pinpoint.Types.GetSegmentImportJobsResponse, AWSError>;
386 /**
387 * Returns a list of import jobs for a specific segment.
388 */
389 getSegmentImportJobs(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentImportJobsResponse) => void): Request<Pinpoint.Types.GetSegmentImportJobsResponse, AWSError>;
390 /**
391 * Returns information about a segment version.
392 */
393 getSegmentVersion(params: Pinpoint.Types.GetSegmentVersionRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentVersionResponse) => void): Request<Pinpoint.Types.GetSegmentVersionResponse, AWSError>;
394 /**
395 * Returns information about a segment version.
396 */
397 getSegmentVersion(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentVersionResponse) => void): Request<Pinpoint.Types.GetSegmentVersionResponse, AWSError>;
398 /**
399 * Returns information about your segment versions.
400 */
401 getSegmentVersions(params: Pinpoint.Types.GetSegmentVersionsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentVersionsResponse) => void): Request<Pinpoint.Types.GetSegmentVersionsResponse, AWSError>;
402 /**
403 * Returns information about your segment versions.
404 */
405 getSegmentVersions(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentVersionsResponse) => void): Request<Pinpoint.Types.GetSegmentVersionsResponse, AWSError>;
406 /**
407 * Used to get information about your segments.
408 */
409 getSegments(params: Pinpoint.Types.GetSegmentsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentsResponse) => void): Request<Pinpoint.Types.GetSegmentsResponse, AWSError>;
410 /**
411 * Used to get information about your segments.
412 */
413 getSegments(callback?: (err: AWSError, data: Pinpoint.Types.GetSegmentsResponse) => void): Request<Pinpoint.Types.GetSegmentsResponse, AWSError>;
414 /**
415 * Get an SMS channel.
416 */
417 getSmsChannel(params: Pinpoint.Types.GetSmsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetSmsChannelResponse) => void): Request<Pinpoint.Types.GetSmsChannelResponse, AWSError>;
418 /**
419 * Get an SMS channel.
420 */
421 getSmsChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetSmsChannelResponse) => void): Request<Pinpoint.Types.GetSmsChannelResponse, AWSError>;
422 /**
423 * Returns information about the endpoints that are associated with a User ID.
424 */
425 getUserEndpoints(params: Pinpoint.Types.GetUserEndpointsRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetUserEndpointsResponse) => void): Request<Pinpoint.Types.GetUserEndpointsResponse, AWSError>;
426 /**
427 * Returns information about the endpoints that are associated with a User ID.
428 */
429 getUserEndpoints(callback?: (err: AWSError, data: Pinpoint.Types.GetUserEndpointsResponse) => void): Request<Pinpoint.Types.GetUserEndpointsResponse, AWSError>;
430 /**
431 * Get a Voice Channel
432 */
433 getVoiceChannel(params: Pinpoint.Types.GetVoiceChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.GetVoiceChannelResponse) => void): Request<Pinpoint.Types.GetVoiceChannelResponse, AWSError>;
434 /**
435 * Get a Voice Channel
436 */
437 getVoiceChannel(callback?: (err: AWSError, data: Pinpoint.Types.GetVoiceChannelResponse) => void): Request<Pinpoint.Types.GetVoiceChannelResponse, AWSError>;
438 /**
439 *
440 */
441 listTagsForResource(params: Pinpoint.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Pinpoint.Types.ListTagsForResourceResponse) => void): Request<Pinpoint.Types.ListTagsForResourceResponse, AWSError>;
442 /**
443 *
444 */
445 listTagsForResource(callback?: (err: AWSError, data: Pinpoint.Types.ListTagsForResourceResponse) => void): Request<Pinpoint.Types.ListTagsForResourceResponse, AWSError>;
446 /**
447 * Returns information about the specified phone number.
448 */
449 phoneNumberValidate(params: Pinpoint.Types.PhoneNumberValidateRequest, callback?: (err: AWSError, data: Pinpoint.Types.PhoneNumberValidateResponse) => void): Request<Pinpoint.Types.PhoneNumberValidateResponse, AWSError>;
450 /**
451 * Returns information about the specified phone number.
452 */
453 phoneNumberValidate(callback?: (err: AWSError, data: Pinpoint.Types.PhoneNumberValidateResponse) => void): Request<Pinpoint.Types.PhoneNumberValidateResponse, AWSError>;
454 /**
455 * Use to create or update the event stream for an app.
456 */
457 putEventStream(params: Pinpoint.Types.PutEventStreamRequest, callback?: (err: AWSError, data: Pinpoint.Types.PutEventStreamResponse) => void): Request<Pinpoint.Types.PutEventStreamResponse, AWSError>;
458 /**
459 * Use to create or update the event stream for an app.
460 */
461 putEventStream(callback?: (err: AWSError, data: Pinpoint.Types.PutEventStreamResponse) => void): Request<Pinpoint.Types.PutEventStreamResponse, AWSError>;
462 /**
463 * Use to record events for endpoints. This method creates events and creates or updates the endpoints that those events are associated with.
464 */
465 putEvents(params: Pinpoint.Types.PutEventsRequest, callback?: (err: AWSError, data: Pinpoint.Types.PutEventsResponse) => void): Request<Pinpoint.Types.PutEventsResponse, AWSError>;
466 /**
467 * Use to record events for endpoints. This method creates events and creates or updates the endpoints that those events are associated with.
468 */
469 putEvents(callback?: (err: AWSError, data: Pinpoint.Types.PutEventsResponse) => void): Request<Pinpoint.Types.PutEventsResponse, AWSError>;
470 /**
471 * Used to remove the attributes for an app
472 */
473 removeAttributes(params: Pinpoint.Types.RemoveAttributesRequest, callback?: (err: AWSError, data: Pinpoint.Types.RemoveAttributesResponse) => void): Request<Pinpoint.Types.RemoveAttributesResponse, AWSError>;
474 /**
475 * Used to remove the attributes for an app
476 */
477 removeAttributes(callback?: (err: AWSError, data: Pinpoint.Types.RemoveAttributesResponse) => void): Request<Pinpoint.Types.RemoveAttributesResponse, AWSError>;
478 /**
479 * Used to send a direct message.
480 */
481 sendMessages(params: Pinpoint.Types.SendMessagesRequest, callback?: (err: AWSError, data: Pinpoint.Types.SendMessagesResponse) => void): Request<Pinpoint.Types.SendMessagesResponse, AWSError>;
482 /**
483 * Used to send a direct message.
484 */
485 sendMessages(callback?: (err: AWSError, data: Pinpoint.Types.SendMessagesResponse) => void): Request<Pinpoint.Types.SendMessagesResponse, AWSError>;
486 /**
487 * Used to send a message to a list of users.
488 */
489 sendUsersMessages(params: Pinpoint.Types.SendUsersMessagesRequest, callback?: (err: AWSError, data: Pinpoint.Types.SendUsersMessagesResponse) => void): Request<Pinpoint.Types.SendUsersMessagesResponse, AWSError>;
490 /**
491 * Used to send a message to a list of users.
492 */
493 sendUsersMessages(callback?: (err: AWSError, data: Pinpoint.Types.SendUsersMessagesResponse) => void): Request<Pinpoint.Types.SendUsersMessagesResponse, AWSError>;
494 /**
495 *
496 */
497 tagResource(params: Pinpoint.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
498 /**
499 *
500 */
501 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
502 /**
503 *
504 */
505 untagResource(params: Pinpoint.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
506 /**
507 *
508 */
509 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
510 /**
511 * Update an ADM channel.
512 */
513 updateAdmChannel(params: Pinpoint.Types.UpdateAdmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateAdmChannelResponse) => void): Request<Pinpoint.Types.UpdateAdmChannelResponse, AWSError>;
514 /**
515 * Update an ADM channel.
516 */
517 updateAdmChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateAdmChannelResponse) => void): Request<Pinpoint.Types.UpdateAdmChannelResponse, AWSError>;
518 /**
519 * Use to update the APNs channel for an app.
520 */
521 updateApnsChannel(params: Pinpoint.Types.UpdateApnsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsChannelResponse, AWSError>;
522 /**
523 * Use to update the APNs channel for an app.
524 */
525 updateApnsChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsChannelResponse, AWSError>;
526 /**
527 * Update an APNS sandbox channel.
528 */
529 updateApnsSandboxChannel(params: Pinpoint.Types.UpdateApnsSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsSandboxChannelResponse, AWSError>;
530 /**
531 * Update an APNS sandbox channel.
532 */
533 updateApnsSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsSandboxChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsSandboxChannelResponse, AWSError>;
534 /**
535 * Update an APNS VoIP channel
536 */
537 updateApnsVoipChannel(params: Pinpoint.Types.UpdateApnsVoipChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsVoipChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsVoipChannelResponse, AWSError>;
538 /**
539 * Update an APNS VoIP channel
540 */
541 updateApnsVoipChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsVoipChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsVoipChannelResponse, AWSError>;
542 /**
543 * Update an APNS VoIP sandbox channel
544 */
545 updateApnsVoipSandboxChannel(params: Pinpoint.Types.UpdateApnsVoipSandboxChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsVoipSandboxChannelResponse, AWSError>;
546 /**
547 * Update an APNS VoIP sandbox channel
548 */
549 updateApnsVoipSandboxChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateApnsVoipSandboxChannelResponse) => void): Request<Pinpoint.Types.UpdateApnsVoipSandboxChannelResponse, AWSError>;
550 /**
551 * Used to update the settings for an app.
552 */
553 updateApplicationSettings(params: Pinpoint.Types.UpdateApplicationSettingsRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateApplicationSettingsResponse) => void): Request<Pinpoint.Types.UpdateApplicationSettingsResponse, AWSError>;
554 /**
555 * Used to update the settings for an app.
556 */
557 updateApplicationSettings(callback?: (err: AWSError, data: Pinpoint.Types.UpdateApplicationSettingsResponse) => void): Request<Pinpoint.Types.UpdateApplicationSettingsResponse, AWSError>;
558 /**
559 * Update a BAIDU GCM channel
560 */
561 updateBaiduChannel(params: Pinpoint.Types.UpdateBaiduChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateBaiduChannelResponse) => void): Request<Pinpoint.Types.UpdateBaiduChannelResponse, AWSError>;
562 /**
563 * Update a BAIDU GCM channel
564 */
565 updateBaiduChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateBaiduChannelResponse) => void): Request<Pinpoint.Types.UpdateBaiduChannelResponse, AWSError>;
566 /**
567 * Use to update a campaign.
568 */
569 updateCampaign(params: Pinpoint.Types.UpdateCampaignRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateCampaignResponse) => void): Request<Pinpoint.Types.UpdateCampaignResponse, AWSError>;
570 /**
571 * Use to update a campaign.
572 */
573 updateCampaign(callback?: (err: AWSError, data: Pinpoint.Types.UpdateCampaignResponse) => void): Request<Pinpoint.Types.UpdateCampaignResponse, AWSError>;
574 /**
575 * Update an email channel.
576 */
577 updateEmailChannel(params: Pinpoint.Types.UpdateEmailChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateEmailChannelResponse) => void): Request<Pinpoint.Types.UpdateEmailChannelResponse, AWSError>;
578 /**
579 * Update an email channel.
580 */
581 updateEmailChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateEmailChannelResponse) => void): Request<Pinpoint.Types.UpdateEmailChannelResponse, AWSError>;
582 /**
583 * Creates or updates an endpoint.
584 */
585 updateEndpoint(params: Pinpoint.Types.UpdateEndpointRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateEndpointResponse) => void): Request<Pinpoint.Types.UpdateEndpointResponse, AWSError>;
586 /**
587 * Creates or updates an endpoint.
588 */
589 updateEndpoint(callback?: (err: AWSError, data: Pinpoint.Types.UpdateEndpointResponse) => void): Request<Pinpoint.Types.UpdateEndpointResponse, AWSError>;
590 /**
591 * Use to update a batch of endpoints.
592 */
593 updateEndpointsBatch(params: Pinpoint.Types.UpdateEndpointsBatchRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateEndpointsBatchResponse) => void): Request<Pinpoint.Types.UpdateEndpointsBatchResponse, AWSError>;
594 /**
595 * Use to update a batch of endpoints.
596 */
597 updateEndpointsBatch(callback?: (err: AWSError, data: Pinpoint.Types.UpdateEndpointsBatchResponse) => void): Request<Pinpoint.Types.UpdateEndpointsBatchResponse, AWSError>;
598 /**
599 * Use to update the GCM channel for an app.
600 */
601 updateGcmChannel(params: Pinpoint.Types.UpdateGcmChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateGcmChannelResponse) => void): Request<Pinpoint.Types.UpdateGcmChannelResponse, AWSError>;
602 /**
603 * Use to update the GCM channel for an app.
604 */
605 updateGcmChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateGcmChannelResponse) => void): Request<Pinpoint.Types.UpdateGcmChannelResponse, AWSError>;
606 /**
607 * Used to update a segment.
608 */
609 updateSegment(params: Pinpoint.Types.UpdateSegmentRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateSegmentResponse) => void): Request<Pinpoint.Types.UpdateSegmentResponse, AWSError>;
610 /**
611 * Used to update a segment.
612 */
613 updateSegment(callback?: (err: AWSError, data: Pinpoint.Types.UpdateSegmentResponse) => void): Request<Pinpoint.Types.UpdateSegmentResponse, AWSError>;
614 /**
615 * Update an SMS channel.
616 */
617 updateSmsChannel(params: Pinpoint.Types.UpdateSmsChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateSmsChannelResponse) => void): Request<Pinpoint.Types.UpdateSmsChannelResponse, AWSError>;
618 /**
619 * Update an SMS channel.
620 */
621 updateSmsChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateSmsChannelResponse) => void): Request<Pinpoint.Types.UpdateSmsChannelResponse, AWSError>;
622 /**
623 * Update an Voice channel
624 */
625 updateVoiceChannel(params: Pinpoint.Types.UpdateVoiceChannelRequest, callback?: (err: AWSError, data: Pinpoint.Types.UpdateVoiceChannelResponse) => void): Request<Pinpoint.Types.UpdateVoiceChannelResponse, AWSError>;
626 /**
627 * Update an Voice channel
628 */
629 updateVoiceChannel(callback?: (err: AWSError, data: Pinpoint.Types.UpdateVoiceChannelResponse) => void): Request<Pinpoint.Types.UpdateVoiceChannelResponse, AWSError>;
630}
631declare namespace Pinpoint {
632 export interface ADMChannelRequest {
633 /**
634 * The Client ID that you obtained from the Amazon App Distribution Portal.
635 */
636 ClientId?: __string;
637 /**
638 * The Client Secret that you obtained from the Amazon App Distribution Portal.
639 */
640 ClientSecret?: __string;
641 /**
642 * Indicates whether or not the channel is enabled for sending messages.
643 */
644 Enabled?: __boolean;
645 }
646 export interface ADMChannelResponse {
647 /**
648 * The ID of the application to which the channel applies.
649 */
650 ApplicationId?: __string;
651 /**
652 * The date and time when this channel was created.
653 */
654 CreationDate?: __string;
655 /**
656 * Indicates whether or not the channel is enabled for sending messages.
657 */
658 Enabled?: __boolean;
659 /**
660 * Not used. Retained for backwards compatibility.
661 */
662 HasCredential?: __boolean;
663 /**
664 * (Deprecated) An identifier for the channel. Retained for backwards compatibility.
665 */
666 Id?: __string;
667 /**
668 * Indicates whether or not the channel is archived.
669 */
670 IsArchived?: __boolean;
671 /**
672 * The user who last updated this channel.
673 */
674 LastModifiedBy?: __string;
675 /**
676 * The date and time when this channel was last modified.
677 */
678 LastModifiedDate?: __string;
679 /**
680 * The platform type. For this channel, the value is always "ADM."
681 */
682 Platform?: __string;
683 /**
684 * The channel version.
685 */
686 Version?: __integer;
687 }
688 export interface ADMMessage {
689 /**
690 * The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL
691 */
692 Action?: Action;
693 /**
694 * The message body of the notification.
695 */
696 Body?: __string;
697 /**
698 * Optional. Arbitrary string used to indicate multiple messages are logically the same and that ADM is allowed to drop previously enqueued messages in favor of this one.
699 */
700 ConsolidationKey?: __string;
701 /**
702 * The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object
703 */
704 Data?: MapOf__string;
705 /**
706 * Optional. Number of seconds ADM should retain the message if the device is offline
707 */
708 ExpiresAfter?: __string;
709 /**
710 * The icon image name of the asset saved in your application.
711 */
712 IconReference?: __string;
713 /**
714 * The URL that points to an image used as the large icon to the notification content view.
715 */
716 ImageIconUrl?: __string;
717 /**
718 * The URL that points to an image used in the push notification.
719 */
720 ImageUrl?: __string;
721 /**
722 * Optional. Base-64-encoded MD5 checksum of the data parameter. Used to verify data integrity
723 */
724 MD5?: __string;
725 /**
726 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
727 */
728 RawContent?: __string;
729 /**
730 * Indicates if the message should display on the users device. Silent pushes can be used for Remote Configuration and Phone Home use cases.
731 */
732 SilentPush?: __boolean;
733 /**
734 * The URL that points to an image used as the small icon for the notification which will be used to represent the notification in the status bar and content view
735 */
736 SmallImageIconUrl?: __string;
737 /**
738 * Indicates a sound to play when the device receives the notification. Supports default, or the filename of a sound resource bundled in the app. Android sound files must reside in /res/raw/
739 */
740 Sound?: __string;
741 /**
742 * Default message substitutions. Can be overridden by individual address substitutions.
743 */
744 Substitutions?: MapOfListOf__string;
745 /**
746 * The message title that displays above the message on the user's device.
747 */
748 Title?: __string;
749 /**
750 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
751 */
752 Url?: __string;
753 }
754 export interface APNSChannelRequest {
755 /**
756 * The bundle id used for APNs Tokens.
757 */
758 BundleId?: __string;
759 /**
760 * The distribution certificate from Apple.
761 */
762 Certificate?: __string;
763 /**
764 * The default authentication method used for APNs.
765 */
766 DefaultAuthenticationMethod?: __string;
767 /**
768 * If the channel is enabled for sending messages.
769 */
770 Enabled?: __boolean;
771 /**
772 * The certificate private key.
773 */
774 PrivateKey?: __string;
775 /**
776 * The team id used for APNs Tokens.
777 */
778 TeamId?: __string;
779 /**
780 * The token key used for APNs Tokens.
781 */
782 TokenKey?: __string;
783 /**
784 * The token key used for APNs Tokens.
785 */
786 TokenKeyId?: __string;
787 }
788 export interface APNSChannelResponse {
789 /**
790 * The ID of the application that the channel applies to.
791 */
792 ApplicationId?: __string;
793 /**
794 * The date and time when this channel was created.
795 */
796 CreationDate?: __string;
797 /**
798 * The default authentication method used for APNs.
799 */
800 DefaultAuthenticationMethod?: __string;
801 /**
802 * If the channel is enabled for sending messages.
803 */
804 Enabled?: __boolean;
805 /**
806 * Not used. Retained for backwards compatibility.
807 */
808 HasCredential?: __boolean;
809 /**
810 * Indicates whether the channel is configured with a key for APNs token authentication. Provide a token key by setting the TokenKey attribute.
811 */
812 HasTokenKey?: __boolean;
813 /**
814 * (Deprecated) An identifier for the channel. Retained for backwards compatibility.
815 */
816 Id?: __string;
817 /**
818 * Indicates whether or not the channel is archived.
819 */
820 IsArchived?: __boolean;
821 /**
822 * The user who last updated this channel.
823 */
824 LastModifiedBy?: __string;
825 /**
826 * The date and time when this channel was last modified.
827 */
828 LastModifiedDate?: __string;
829 /**
830 * The platform type. For this channel, the value is always "ADM."
831 */
832 Platform?: __string;
833 /**
834 * The channel version.
835 */
836 Version?: __integer;
837 }
838 export interface APNSMessage {
839 /**
840 * The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL
841 */
842 Action?: Action;
843 /**
844 * Include this key when you want the system to modify the badge of your app icon. If this key is not included in the dictionary, the badge is not changed. To remove the badge, set the value of this key to 0.
845 */
846 Badge?: __integer;
847 /**
848 * The message body of the notification.
849 */
850 Body?: __string;
851 /**
852 * Provide this key with a string value that represents the notification's type. This value corresponds to the value in the identifier property of one of your app's registered categories.
853 */
854 Category?: __string;
855 /**
856 * An ID that, if assigned to multiple messages, causes APNs to coalesce the messages into a single push notification instead of delivering each message individually. The value must not exceed 64 bytes. Amazon Pinpoint uses this value to set the apns-collapse-id request header when it sends the message to APNs.
857 */
858 CollapseId?: __string;
859 /**
860 * The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object
861 */
862 Data?: MapOf__string;
863 /**
864 * A URL that refers to the location of an image or video that you want to display in the push notification.
865 */
866 MediaUrl?: __string;
867 /**
868 * The preferred authentication method, either "CERTIFICATE" or "TOKEN"
869 */
870 PreferredAuthenticationMethod?: __string;
871 /**
872 * The message priority. Amazon Pinpoint uses this value to set the apns-priority request header when it sends the message to APNs. Accepts the following values:
873
874"5" - Low priority. Messages might be delayed, delivered in groups, and throttled.
875
876"10" - High priority. Messages are sent immediately. High priority messages must cause an alert, sound, or badge on the receiving device.
877
878The default value is "10".
879
880The equivalent values for FCM or GCM messages are "normal" and "high". Amazon Pinpoint accepts these values for APNs messages and converts them.
881
882For more information about the apns-priority parameter, see Communicating with APNs in the APNs Local and Remote Notification Programming Guide.
883 */
884 Priority?: __string;
885 /**
886 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
887 */
888 RawContent?: __string;
889 /**
890 * Indicates if the message should display on the users device. Silent pushes can be used for Remote Configuration and Phone Home use cases.
891 */
892 SilentPush?: __boolean;
893 /**
894 * Include this key when you want the system to play a sound. The value of this key is the name of a sound file in your app's main bundle or in the Library/Sounds folder of your app's data container. If the sound file cannot be found, or if you specify defaultfor the value, the system plays the default alert sound.
895 */
896 Sound?: __string;
897 /**
898 * Default message substitutions. Can be overridden by individual address substitutions.
899 */
900 Substitutions?: MapOfListOf__string;
901 /**
902 * Provide this key with a string value that represents the app-specific identifier for grouping notifications. If you provide a Notification Content app extension, you can use this value to group your notifications together.
903 */
904 ThreadId?: __string;
905 /**
906 * The length of time (in seconds) that APNs stores and attempts to deliver the message. If the value is 0, APNs does not store the message or attempt to deliver it more than once. Amazon Pinpoint uses this value to set the apns-expiration request header when it sends the message to APNs.
907 */
908 TimeToLive?: __integer;
909 /**
910 * The message title that displays above the message on the user's device.
911 */
912 Title?: __string;
913 /**
914 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
915 */
916 Url?: __string;
917 }
918 export interface APNSSandboxChannelRequest {
919 /**
920 * The bundle id used for APNs Tokens.
921 */
922 BundleId?: __string;
923 /**
924 * The distribution certificate from Apple.
925 */
926 Certificate?: __string;
927 /**
928 * The default authentication method used for APNs.
929 */
930 DefaultAuthenticationMethod?: __string;
931 /**
932 * If the channel is enabled for sending messages.
933 */
934 Enabled?: __boolean;
935 /**
936 * The certificate private key.
937 */
938 PrivateKey?: __string;
939 /**
940 * The team id used for APNs Tokens.
941 */
942 TeamId?: __string;
943 /**
944 * The token key used for APNs Tokens.
945 */
946 TokenKey?: __string;
947 /**
948 * The token key used for APNs Tokens.
949 */
950 TokenKeyId?: __string;
951 }
952 export interface APNSSandboxChannelResponse {
953 /**
954 * The ID of the application to which the channel applies.
955 */
956 ApplicationId?: __string;
957 /**
958 * When was this segment created
959 */
960 CreationDate?: __string;
961 /**
962 * The default authentication method used for APNs.
963 */
964 DefaultAuthenticationMethod?: __string;
965 /**
966 * If the channel is enabled for sending messages.
967 */
968 Enabled?: __boolean;
969 /**
970 * Not used. Retained for backwards compatibility.
971 */
972 HasCredential?: __boolean;
973 /**
974 * Indicates whether the channel is configured with a key for APNs token authentication. Provide a token key by setting the TokenKey attribute.
975 */
976 HasTokenKey?: __boolean;
977 /**
978 * Channel ID. Not used, only for backwards compatibility.
979 */
980 Id?: __string;
981 /**
982 * Is this channel archived
983 */
984 IsArchived?: __boolean;
985 /**
986 * Who last updated this entry
987 */
988 LastModifiedBy?: __string;
989 /**
990 * Last date this was updated
991 */
992 LastModifiedDate?: __string;
993 /**
994 * The platform type. Will be APNS_SANDBOX.
995 */
996 Platform?: __string;
997 /**
998 * Version of channel
999 */
1000 Version?: __integer;
1001 }
1002 export interface APNSVoipChannelRequest {
1003 /**
1004 * The bundle id used for APNs Tokens.
1005 */
1006 BundleId?: __string;
1007 /**
1008 * The distribution certificate from Apple.
1009 */
1010 Certificate?: __string;
1011 /**
1012 * The default authentication method used for APNs.
1013 */
1014 DefaultAuthenticationMethod?: __string;
1015 /**
1016 * If the channel is enabled for sending messages.
1017 */
1018 Enabled?: __boolean;
1019 /**
1020 * The certificate private key.
1021 */
1022 PrivateKey?: __string;
1023 /**
1024 * The team id used for APNs Tokens.
1025 */
1026 TeamId?: __string;
1027 /**
1028 * The token key used for APNs Tokens.
1029 */
1030 TokenKey?: __string;
1031 /**
1032 * The token key used for APNs Tokens.
1033 */
1034 TokenKeyId?: __string;
1035 }
1036 export interface APNSVoipChannelResponse {
1037 /**
1038 * Application id
1039 */
1040 ApplicationId?: __string;
1041 /**
1042 * When was this segment created
1043 */
1044 CreationDate?: __string;
1045 /**
1046 * The default authentication method used for APNs.
1047 */
1048 DefaultAuthenticationMethod?: __string;
1049 /**
1050 * If the channel is enabled for sending messages.
1051 */
1052 Enabled?: __boolean;
1053 /**
1054 * Not used. Retained for backwards compatibility.
1055 */
1056 HasCredential?: __boolean;
1057 /**
1058 * If the channel is registered with a token key for authentication.
1059 */
1060 HasTokenKey?: __boolean;
1061 /**
1062 * Channel ID. Not used, only for backwards compatibility.
1063 */
1064 Id?: __string;
1065 /**
1066 * Is this channel archived
1067 */
1068 IsArchived?: __boolean;
1069 /**
1070 * Who made the last change
1071 */
1072 LastModifiedBy?: __string;
1073 /**
1074 * Last date this was updated
1075 */
1076 LastModifiedDate?: __string;
1077 /**
1078 * The platform type. Will be APNS.
1079 */
1080 Platform?: __string;
1081 /**
1082 * Version of channel
1083 */
1084 Version?: __integer;
1085 }
1086 export interface APNSVoipSandboxChannelRequest {
1087 /**
1088 * The bundle id used for APNs Tokens.
1089 */
1090 BundleId?: __string;
1091 /**
1092 * The distribution certificate from Apple.
1093 */
1094 Certificate?: __string;
1095 /**
1096 * The default authentication method used for APNs.
1097 */
1098 DefaultAuthenticationMethod?: __string;
1099 /**
1100 * If the channel is enabled for sending messages.
1101 */
1102 Enabled?: __boolean;
1103 /**
1104 * The certificate private key.
1105 */
1106 PrivateKey?: __string;
1107 /**
1108 * The team id used for APNs Tokens.
1109 */
1110 TeamId?: __string;
1111 /**
1112 * The token key used for APNs Tokens.
1113 */
1114 TokenKey?: __string;
1115 /**
1116 * The token key used for APNs Tokens.
1117 */
1118 TokenKeyId?: __string;
1119 }
1120 export interface APNSVoipSandboxChannelResponse {
1121 /**
1122 * Application id
1123 */
1124 ApplicationId?: __string;
1125 /**
1126 * When was this segment created
1127 */
1128 CreationDate?: __string;
1129 /**
1130 * The default authentication method used for APNs.
1131 */
1132 DefaultAuthenticationMethod?: __string;
1133 /**
1134 * If the channel is enabled for sending messages.
1135 */
1136 Enabled?: __boolean;
1137 /**
1138 * Not used. Retained for backwards compatibility.
1139 */
1140 HasCredential?: __boolean;
1141 /**
1142 * If the channel is registered with a token key for authentication.
1143 */
1144 HasTokenKey?: __boolean;
1145 /**
1146 * Channel ID. Not used, only for backwards compatibility.
1147 */
1148 Id?: __string;
1149 /**
1150 * Is this channel archived
1151 */
1152 IsArchived?: __boolean;
1153 /**
1154 * Who made the last change
1155 */
1156 LastModifiedBy?: __string;
1157 /**
1158 * Last date this was updated
1159 */
1160 LastModifiedDate?: __string;
1161 /**
1162 * The platform type. Will be APNS.
1163 */
1164 Platform?: __string;
1165 /**
1166 * Version of channel
1167 */
1168 Version?: __integer;
1169 }
1170 export type Action = "OPEN_APP"|"DEEP_LINK"|"URL"|string;
1171 export interface ActivitiesResponse {
1172 /**
1173 * List of campaign activities
1174 */
1175 Item?: ListOfActivityResponse;
1176 /**
1177 * The string that you use in a subsequent request to get the next page of results in a paginated response.
1178 */
1179 NextToken?: __string;
1180 }
1181 export interface ActivityResponse {
1182 /**
1183 * The ID of the application to which the campaign applies.
1184 */
1185 ApplicationId?: __string;
1186 /**
1187 * The ID of the campaign to which the activity applies.
1188 */
1189 CampaignId?: __string;
1190 /**
1191 * The actual time the activity was marked CANCELLED or COMPLETED. Provided in ISO 8601 format.
1192 */
1193 End?: __string;
1194 /**
1195 * The unique activity ID.
1196 */
1197 Id?: __string;
1198 /**
1199 * Indicates whether the activity succeeded.
1200
1201Valid values: SUCCESS, FAIL
1202 */
1203 Result?: __string;
1204 /**
1205 * The scheduled start time for the activity in ISO 8601 format.
1206 */
1207 ScheduledStart?: __string;
1208 /**
1209 * The actual start time of the activity in ISO 8601 format.
1210 */
1211 Start?: __string;
1212 /**
1213 * The state of the activity.
1214
1215Valid values: PENDING, INITIALIZING, RUNNING, PAUSED, CANCELLED, COMPLETED
1216 */
1217 State?: __string;
1218 /**
1219 * The total number of endpoints to which the campaign successfully delivered messages.
1220 */
1221 SuccessfulEndpointCount?: __integer;
1222 /**
1223 * The total number of timezones completed.
1224 */
1225 TimezonesCompletedCount?: __integer;
1226 /**
1227 * The total number of unique timezones present in the segment.
1228 */
1229 TimezonesTotalCount?: __integer;
1230 /**
1231 * The total number of endpoints to which the campaign attempts to deliver messages.
1232 */
1233 TotalEndpointCount?: __integer;
1234 /**
1235 * The ID of a variation of the campaign used for A/B testing.
1236 */
1237 TreatmentId?: __string;
1238 }
1239 export interface AddressConfiguration {
1240 /**
1241 * Body override. If specified will override default body.
1242 */
1243 BodyOverride?: __string;
1244 /**
1245 * The channel type.
1246
1247Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDU
1248 */
1249 ChannelType?: ChannelType;
1250 /**
1251 * A map of custom attributes to attributes to be attached to the message for this address. This payload is added to the push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event attributes.
1252 */
1253 Context?: MapOf__string;
1254 /**
1255 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
1256 */
1257 RawContent?: __string;
1258 /**
1259 * A map of substitution values for the message to be merged with the DefaultMessage's substitutions. Substitutions on this map take precedence over the all other substitutions.
1260 */
1261 Substitutions?: MapOfListOf__string;
1262 /**
1263 * Title override. If specified will override default title if applicable.
1264 */
1265 TitleOverride?: __string;
1266 }
1267 export interface ApplicationResponse {
1268 /**
1269 * The arn for the application.
1270 */
1271 Arn?: __string;
1272 /**
1273 * The unique application ID.
1274 */
1275 Id?: __string;
1276 /**
1277 * The display name of the application.
1278 */
1279 Name?: __string;
1280 /**
1281 * The Tags for the application.
1282 */
1283 tags?: MapOf__string;
1284 }
1285 export interface ApplicationSettingsResource {
1286 /**
1287 * The unique ID for the application.
1288 */
1289 ApplicationId?: __string;
1290 /**
1291 * Default campaign hook.
1292 */
1293 CampaignHook?: CampaignHook;
1294 /**
1295 * The date that the settings were last updated in ISO 8601 format.
1296 */
1297 LastModifiedDate?: __string;
1298 /**
1299 * The default campaign limits for the app. These limits apply to each campaign for the app, unless the campaign overrides the default with limits of its own.
1300 */
1301 Limits?: CampaignLimits;
1302 /**
1303 * The default quiet time for the app. Campaigns in the app don't send messages to endpoints during the quiet time.
1304
1305Note: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your app. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.
1306
1307When you set up an app to use quiet time, campaigns in that app don't send messages during the time range you specified, as long as all of the following are true:
1308- The endpoint includes a valid Demographic.Timezone attribute.
1309- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the app (or campaign, if applicable).
1310- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the app (or campaign, if applicable).
1311
1312Individual campaigns within the app can have their own quiet time settings, which override the quiet time settings at the app level.
1313 */
1314 QuietTime?: QuietTime;
1315 }
1316 export interface ApplicationsResponse {
1317 /**
1318 * List of applications returned in this page.
1319 */
1320 Item?: ListOfApplicationResponse;
1321 /**
1322 * The string that you use in a subsequent request to get the next page of results in a paginated response.
1323 */
1324 NextToken?: __string;
1325 }
1326 export interface AttributeDimension {
1327 /**
1328 * The type of dimension:
1329
1330INCLUSIVE - Endpoints that match the criteria are included in the segment.
1331
1332EXCLUSIVE - Endpoints that match the criteria are excluded from the segment.
1333 */
1334 AttributeType?: AttributeType;
1335 /**
1336 * The criteria values for the segment dimension. Endpoints with matching attribute values are included or excluded from the segment, depending on the setting for Type.
1337 */
1338 Values?: ListOf__string;
1339 }
1340 export type AttributeType = "INCLUSIVE"|"EXCLUSIVE"|string;
1341 export interface AttributesResource {
1342 /**
1343 * The unique ID for the application.
1344 */
1345 ApplicationId?: __string;
1346 /**
1347 * The attribute type for the application.
1348 */
1349 AttributeType?: __string;
1350 /**
1351 * The attributes for the application.
1352 */
1353 Attributes?: ListOf__string;
1354 }
1355 export interface BaiduChannelRequest {
1356 /**
1357 * Platform credential API key from Baidu.
1358 */
1359 ApiKey?: __string;
1360 /**
1361 * If the channel is enabled for sending messages.
1362 */
1363 Enabled?: __boolean;
1364 /**
1365 * Platform credential Secret key from Baidu.
1366 */
1367 SecretKey?: __string;
1368 }
1369 export interface BaiduChannelResponse {
1370 /**
1371 * Application id
1372 */
1373 ApplicationId?: __string;
1374 /**
1375 * When was this segment created
1376 */
1377 CreationDate?: __string;
1378 /**
1379 * The Baidu API key from Baidu.
1380 */
1381 Credential?: __string;
1382 /**
1383 * If the channel is enabled for sending messages.
1384 */
1385 Enabled?: __boolean;
1386 /**
1387 * Not used. Retained for backwards compatibility.
1388 */
1389 HasCredential?: __boolean;
1390 /**
1391 * Channel ID. Not used, only for backwards compatibility.
1392 */
1393 Id?: __string;
1394 /**
1395 * Is this channel archived
1396 */
1397 IsArchived?: __boolean;
1398 /**
1399 * Who made the last change
1400 */
1401 LastModifiedBy?: __string;
1402 /**
1403 * Last date this was updated
1404 */
1405 LastModifiedDate?: __string;
1406 /**
1407 * The platform type. Will be BAIDU
1408 */
1409 Platform?: __string;
1410 /**
1411 * Version of channel
1412 */
1413 Version?: __integer;
1414 }
1415 export interface BaiduMessage {
1416 /**
1417 * The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL
1418 */
1419 Action?: Action;
1420 /**
1421 * The message body of the notification.
1422 */
1423 Body?: __string;
1424 /**
1425 * The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object
1426 */
1427 Data?: MapOf__string;
1428 /**
1429 * The icon image name of the asset saved in your application.
1430 */
1431 IconReference?: __string;
1432 /**
1433 * The URL that points to an image used as the large icon to the notification content view.
1434 */
1435 ImageIconUrl?: __string;
1436 /**
1437 * The URL that points to an image used in the push notification.
1438 */
1439 ImageUrl?: __string;
1440 /**
1441 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
1442 */
1443 RawContent?: __string;
1444 /**
1445 * Indicates if the message should display on the users device. Silent pushes can be used for Remote Configuration and Phone Home use cases.
1446 */
1447 SilentPush?: __boolean;
1448 /**
1449 * The URL that points to an image used as the small icon for the notification which will be used to represent the notification in the status bar and content view
1450 */
1451 SmallImageIconUrl?: __string;
1452 /**
1453 * Indicates a sound to play when the device receives the notification. Supports default, or the filename of a sound resource bundled in the app. Android sound files must reside in /res/raw/
1454 */
1455 Sound?: __string;
1456 /**
1457 * Default message substitutions. Can be overridden by individual address substitutions.
1458 */
1459 Substitutions?: MapOfListOf__string;
1460 /**
1461 * This parameter specifies how long (in seconds) the message should be kept in Baidu storage if the device is offline. The and the default value and the maximum time to live supported is 7 days (604800 seconds)
1462 */
1463 TimeToLive?: __integer;
1464 /**
1465 * The message title that displays above the message on the user's device.
1466 */
1467 Title?: __string;
1468 /**
1469 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
1470 */
1471 Url?: __string;
1472 }
1473 export interface CampaignEmailMessage {
1474 /**
1475 * The email text body.
1476 */
1477 Body?: __string;
1478 /**
1479 * The email address used to send the email from. Defaults to use FromAddress specified in the Email Channel.
1480 */
1481 FromAddress?: __string;
1482 /**
1483 * The email html body.
1484 */
1485 HtmlBody?: __string;
1486 /**
1487 * The email title (Or subject).
1488 */
1489 Title?: __string;
1490 }
1491 export interface CampaignEventFilter {
1492 /**
1493 * An object that defines the dimensions for the event filter.
1494 */
1495 Dimensions?: EventDimensions;
1496 /**
1497 * The type of event that causes the campaign to be sent. Possible values:
1498
1499SYSTEM - Send the campaign when a system event occurs. See the System resource for more information.
1500
1501ENDPOINT - Send the campaign when an endpoint event occurs. See the Event resource for more information.
1502 */
1503 FilterType?: FilterType;
1504 }
1505 export interface CampaignHook {
1506 /**
1507 * Lambda function name or arn to be called for delivery
1508 */
1509 LambdaFunctionName?: __string;
1510 /**
1511 * What mode Lambda should be invoked in.
1512 */
1513 Mode?: Mode;
1514 /**
1515 * Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request
1516 */
1517 WebUrl?: __string;
1518 }
1519 export interface CampaignLimits {
1520 /**
1521 * The maximum number of messages that each campaign can send to a single endpoint in a 24-hour period.
1522 */
1523 Daily?: __integer;
1524 /**
1525 * The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60.
1526 */
1527 MaximumDuration?: __integer;
1528 /**
1529 * The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000.
1530 */
1531 MessagesPerSecond?: __integer;
1532 /**
1533 * The maximum number of messages that an individual campaign can send to a single endpoint over the course of the campaign.
1534 */
1535 Total?: __integer;
1536 }
1537 export interface CampaignResponse {
1538 /**
1539 * Treatments that are defined in addition to the default treatment.
1540 */
1541 AdditionalTreatments?: ListOfTreatmentResource;
1542 /**
1543 * The ID of the application to which the campaign applies.
1544 */
1545 ApplicationId?: __string;
1546 /**
1547 * The arn for the campaign.
1548 */
1549 Arn?: __string;
1550 /**
1551 * The date the campaign was created in ISO 8601 format.
1552 */
1553 CreationDate?: __string;
1554 /**
1555 * The status of the campaign's default treatment. Only present for A/B test campaigns.
1556 */
1557 DefaultState?: CampaignState;
1558 /**
1559 * A description of the campaign.
1560 */
1561 Description?: __string;
1562 /**
1563 * The allocated percentage of end users who will not receive messages from this campaign.
1564 */
1565 HoldoutPercent?: __integer;
1566 /**
1567 * Campaign hook information.
1568 */
1569 Hook?: CampaignHook;
1570 /**
1571 * The unique campaign ID.
1572 */
1573 Id?: __string;
1574 /**
1575 * Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by setting IsPaused to false.
1576 */
1577 IsPaused?: __boolean;
1578 /**
1579 * The date the campaign was last updated in ISO 8601 format.
1580 */
1581 LastModifiedDate?: __string;
1582 /**
1583 * The campaign limits settings.
1584 */
1585 Limits?: CampaignLimits;
1586 /**
1587 * The message configuration settings.
1588 */
1589 MessageConfiguration?: MessageConfiguration;
1590 /**
1591 * The custom name of the campaign.
1592 */
1593 Name?: __string;
1594 /**
1595 * The campaign schedule.
1596 */
1597 Schedule?: Schedule;
1598 /**
1599 * The ID of the segment to which the campaign sends messages.
1600 */
1601 SegmentId?: __string;
1602 /**
1603 * The version of the segment to which the campaign sends messages.
1604 */
1605 SegmentVersion?: __integer;
1606 /**
1607 * The campaign status.
1608
1609An A/B test campaign will have a status of COMPLETED only when all treatments have a status of COMPLETED.
1610 */
1611 State?: CampaignState;
1612 /**
1613 * The Tags for the campaign.
1614 */
1615 tags?: MapOf__string;
1616 /**
1617 * A custom description for the treatment.
1618 */
1619 TreatmentDescription?: __string;
1620 /**
1621 * The custom name of a variation of the campaign used for A/B testing.
1622 */
1623 TreatmentName?: __string;
1624 /**
1625 * The campaign version number.
1626 */
1627 Version?: __integer;
1628 }
1629 export interface CampaignSmsMessage {
1630 /**
1631 * The SMS text body.
1632 */
1633 Body?: __string;
1634 /**
1635 * Is this is a transactional SMS message, otherwise a promotional message.
1636 */
1637 MessageType?: MessageType;
1638 /**
1639 * Sender ID of sent message.
1640 */
1641 SenderId?: __string;
1642 }
1643 export interface CampaignState {
1644 /**
1645 * The status of the campaign, or the status of a treatment that belongs to an A/B test campaign.
1646
1647Valid values: SCHEDULED, EXECUTING, PENDING_NEXT_RUN, COMPLETED, PAUSED
1648 */
1649 CampaignStatus?: CampaignStatus;
1650 }
1651 export type CampaignStatus = "SCHEDULED"|"EXECUTING"|"PENDING_NEXT_RUN"|"COMPLETED"|"PAUSED"|"DELETED"|string;
1652 export interface CampaignsResponse {
1653 /**
1654 * A list of campaigns.
1655 */
1656 Item?: ListOfCampaignResponse;
1657 /**
1658 * The string that you use in a subsequent request to get the next page of results in a paginated response.
1659 */
1660 NextToken?: __string;
1661 }
1662 export interface ChannelResponse {
1663 /**
1664 * Application id
1665 */
1666 ApplicationId?: __string;
1667 /**
1668 * When was this segment created
1669 */
1670 CreationDate?: __string;
1671 /**
1672 * If the channel is enabled for sending messages.
1673 */
1674 Enabled?: __boolean;
1675 /**
1676 * Not used. Retained for backwards compatibility.
1677 */
1678 HasCredential?: __boolean;
1679 /**
1680 * Channel ID. Not used, only for backwards compatibility.
1681 */
1682 Id?: __string;
1683 /**
1684 * Is this channel archived
1685 */
1686 IsArchived?: __boolean;
1687 /**
1688 * Who made the last change
1689 */
1690 LastModifiedBy?: __string;
1691 /**
1692 * Last date this was updated
1693 */
1694 LastModifiedDate?: __string;
1695 /**
1696 * Version of channel
1697 */
1698 Version?: __integer;
1699 }
1700 export type ChannelType = "GCM"|"APNS"|"APNS_SANDBOX"|"APNS_VOIP"|"APNS_VOIP_SANDBOX"|"ADM"|"SMS"|"VOICE"|"EMAIL"|"BAIDU"|"CUSTOM"|string;
1701 export interface ChannelsResponse {
1702 /**
1703 * A map of channels, with the ChannelType as the key and the Channel as the value.
1704 */
1705 Channels?: MapOfChannelResponse;
1706 }
1707 export interface CreateAppRequest {
1708 CreateApplicationRequest: CreateApplicationRequest;
1709 }
1710 export interface CreateAppResponse {
1711 ApplicationResponse: ApplicationResponse;
1712 }
1713 export interface CreateApplicationRequest {
1714 /**
1715 * The display name of the application. Used in the Amazon Pinpoint console.
1716 */
1717 Name?: __string;
1718 /**
1719 * The Tags for the app.
1720 */
1721 tags?: MapOf__string;
1722 }
1723 export interface CreateCampaignRequest {
1724 /**
1725 * The unique ID of your Amazon Pinpoint application.
1726 */
1727 ApplicationId: __string;
1728 WriteCampaignRequest: WriteCampaignRequest;
1729 }
1730 export interface CreateCampaignResponse {
1731 CampaignResponse: CampaignResponse;
1732 }
1733 export interface CreateExportJobRequest {
1734 /**
1735 * The unique ID of your Amazon Pinpoint application.
1736 */
1737 ApplicationId: __string;
1738 ExportJobRequest: ExportJobRequest;
1739 }
1740 export interface CreateExportJobResponse {
1741 ExportJobResponse: ExportJobResponse;
1742 }
1743 export interface CreateImportJobRequest {
1744 /**
1745 * The unique ID of your Amazon Pinpoint application.
1746 */
1747 ApplicationId: __string;
1748 ImportJobRequest: ImportJobRequest;
1749 }
1750 export interface CreateImportJobResponse {
1751 ImportJobResponse: ImportJobResponse;
1752 }
1753 export interface CreateSegmentRequest {
1754 /**
1755 * The unique ID of your Amazon Pinpoint application.
1756 */
1757 ApplicationId: __string;
1758 WriteSegmentRequest: WriteSegmentRequest;
1759 }
1760 export interface CreateSegmentResponse {
1761 SegmentResponse: SegmentResponse;
1762 }
1763 export interface DefaultMessage {
1764 /**
1765 * The message body of the notification, the email body or the text message.
1766 */
1767 Body?: __string;
1768 /**
1769 * Default message substitutions. Can be overridden by individual address substitutions.
1770 */
1771 Substitutions?: MapOfListOf__string;
1772 }
1773 export interface DefaultPushNotificationMessage {
1774 /**
1775 * The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL
1776 */
1777 Action?: Action;
1778 /**
1779 * The message body of the notification.
1780 */
1781 Body?: __string;
1782 /**
1783 * The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object
1784 */
1785 Data?: MapOf__string;
1786 /**
1787 * Indicates if the message should display on the recipient's device. You can use silent pushes for remote configuration or to deliver messages to in-app notification centers.
1788 */
1789 SilentPush?: __boolean;
1790 /**
1791 * Default message substitutions. Can be overridden by individual address substitutions.
1792 */
1793 Substitutions?: MapOfListOf__string;
1794 /**
1795 * The message title that displays above the message on the user's device.
1796 */
1797 Title?: __string;
1798 /**
1799 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
1800 */
1801 Url?: __string;
1802 }
1803 export interface DeleteAdmChannelRequest {
1804 /**
1805 * The unique ID of your Amazon Pinpoint application.
1806 */
1807 ApplicationId: __string;
1808 }
1809 export interface DeleteAdmChannelResponse {
1810 ADMChannelResponse: ADMChannelResponse;
1811 }
1812 export interface DeleteApnsChannelRequest {
1813 /**
1814 * The unique ID of your Amazon Pinpoint application.
1815 */
1816 ApplicationId: __string;
1817 }
1818 export interface DeleteApnsChannelResponse {
1819 APNSChannelResponse: APNSChannelResponse;
1820 }
1821 export interface DeleteApnsSandboxChannelRequest {
1822 /**
1823 * The unique ID of your Amazon Pinpoint application.
1824 */
1825 ApplicationId: __string;
1826 }
1827 export interface DeleteApnsSandboxChannelResponse {
1828 APNSSandboxChannelResponse: APNSSandboxChannelResponse;
1829 }
1830 export interface DeleteApnsVoipChannelRequest {
1831 /**
1832 * The unique ID of your Amazon Pinpoint application.
1833 */
1834 ApplicationId: __string;
1835 }
1836 export interface DeleteApnsVoipChannelResponse {
1837 APNSVoipChannelResponse: APNSVoipChannelResponse;
1838 }
1839 export interface DeleteApnsVoipSandboxChannelRequest {
1840 /**
1841 * The unique ID of your Amazon Pinpoint application.
1842 */
1843 ApplicationId: __string;
1844 }
1845 export interface DeleteApnsVoipSandboxChannelResponse {
1846 APNSVoipSandboxChannelResponse: APNSVoipSandboxChannelResponse;
1847 }
1848 export interface DeleteAppRequest {
1849 /**
1850 * The unique ID of your Amazon Pinpoint application.
1851 */
1852 ApplicationId: __string;
1853 }
1854 export interface DeleteAppResponse {
1855 ApplicationResponse: ApplicationResponse;
1856 }
1857 export interface DeleteBaiduChannelRequest {
1858 /**
1859 * The unique ID of your Amazon Pinpoint application.
1860 */
1861 ApplicationId: __string;
1862 }
1863 export interface DeleteBaiduChannelResponse {
1864 BaiduChannelResponse: BaiduChannelResponse;
1865 }
1866 export interface DeleteCampaignRequest {
1867 /**
1868 * The unique ID of your Amazon Pinpoint application.
1869 */
1870 ApplicationId: __string;
1871 /**
1872 * The unique ID of the campaign.
1873 */
1874 CampaignId: __string;
1875 }
1876 export interface DeleteCampaignResponse {
1877 CampaignResponse: CampaignResponse;
1878 }
1879 export interface DeleteEmailChannelRequest {
1880 /**
1881 * The unique ID of your Amazon Pinpoint application.
1882 */
1883 ApplicationId: __string;
1884 }
1885 export interface DeleteEmailChannelResponse {
1886 EmailChannelResponse: EmailChannelResponse;
1887 }
1888 export interface DeleteEndpointRequest {
1889 /**
1890 * The unique ID of your Amazon Pinpoint application.
1891 */
1892 ApplicationId: __string;
1893 /**
1894 * The unique ID of the endpoint.
1895 */
1896 EndpointId: __string;
1897 }
1898 export interface DeleteEndpointResponse {
1899 EndpointResponse: EndpointResponse;
1900 }
1901 export interface DeleteEventStreamRequest {
1902 /**
1903 * The unique ID of your Amazon Pinpoint application.
1904 */
1905 ApplicationId: __string;
1906 }
1907 export interface DeleteEventStreamResponse {
1908 EventStream: EventStream;
1909 }
1910 export interface DeleteGcmChannelRequest {
1911 /**
1912 * The unique ID of your Amazon Pinpoint application.
1913 */
1914 ApplicationId: __string;
1915 }
1916 export interface DeleteGcmChannelResponse {
1917 GCMChannelResponse: GCMChannelResponse;
1918 }
1919 export interface DeleteSegmentRequest {
1920 /**
1921 * The unique ID of your Amazon Pinpoint application.
1922 */
1923 ApplicationId: __string;
1924 /**
1925 * The unique ID of the segment.
1926 */
1927 SegmentId: __string;
1928 }
1929 export interface DeleteSegmentResponse {
1930 SegmentResponse: SegmentResponse;
1931 }
1932 export interface DeleteSmsChannelRequest {
1933 /**
1934 * The unique ID of your Amazon Pinpoint application.
1935 */
1936 ApplicationId: __string;
1937 }
1938 export interface DeleteSmsChannelResponse {
1939 SMSChannelResponse: SMSChannelResponse;
1940 }
1941 export interface DeleteUserEndpointsRequest {
1942 /**
1943 * The unique ID of your Amazon Pinpoint application.
1944 */
1945 ApplicationId: __string;
1946 /**
1947 * The unique ID of the user.
1948 */
1949 UserId: __string;
1950 }
1951 export interface DeleteUserEndpointsResponse {
1952 EndpointsResponse: EndpointsResponse;
1953 }
1954 export interface DeleteVoiceChannelRequest {
1955 /**
1956 * The unique ID of your Amazon Pinpoint application.
1957 */
1958 ApplicationId: __string;
1959 }
1960 export interface DeleteVoiceChannelResponse {
1961 VoiceChannelResponse: VoiceChannelResponse;
1962 }
1963 export type DeliveryStatus = "SUCCESSFUL"|"THROTTLED"|"TEMPORARY_FAILURE"|"PERMANENT_FAILURE"|"UNKNOWN_FAILURE"|"OPT_OUT"|"DUPLICATE"|string;
1964 export type DimensionType = "INCLUSIVE"|"EXCLUSIVE"|string;
1965 export interface DirectMessageConfiguration {
1966 /**
1967 * The message to ADM channels. Overrides the default push notification message.
1968 */
1969 ADMMessage?: ADMMessage;
1970 /**
1971 * The message to APNS channels. Overrides the default push notification message.
1972 */
1973 APNSMessage?: APNSMessage;
1974 /**
1975 * The message to Baidu GCM channels. Overrides the default push notification message.
1976 */
1977 BaiduMessage?: BaiduMessage;
1978 /**
1979 * The default message for all channels.
1980 */
1981 DefaultMessage?: DefaultMessage;
1982 /**
1983 * The default push notification message for all push channels.
1984 */
1985 DefaultPushNotificationMessage?: DefaultPushNotificationMessage;
1986 /**
1987 * The message to Email channels. Overrides the default message.
1988 */
1989 EmailMessage?: EmailMessage;
1990 /**
1991 * The message to GCM channels. Overrides the default push notification message.
1992 */
1993 GCMMessage?: GCMMessage;
1994 /**
1995 * The message to SMS channels. Overrides the default message.
1996 */
1997 SMSMessage?: SMSMessage;
1998 /**
1999 * The message to Voice channels. Overrides the default message.
2000 */
2001 VoiceMessage?: VoiceMessage;
2002 }
2003 export type Duration = "HR_24"|"DAY_7"|"DAY_14"|"DAY_30"|string;
2004 export interface EmailChannelRequest {
2005 /**
2006 * The configuration set that you want to use when you send email using the Pinpoint Email API.
2007 */
2008 ConfigurationSet?: __string;
2009 /**
2010 * If the channel is enabled for sending messages.
2011 */
2012 Enabled?: __boolean;
2013 /**
2014 * The email address used to send emails from.
2015 */
2016 FromAddress?: __string;
2017 /**
2018 * The ARN of an identity verified with SES.
2019 */
2020 Identity?: __string;
2021 /**
2022 * The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service
2023 */
2024 RoleArn?: __string;
2025 }
2026 export interface EmailChannelResponse {
2027 /**
2028 * The unique ID of the application to which the email channel belongs.
2029 */
2030 ApplicationId?: __string;
2031 /**
2032 * The configuration set that you want to use when you send email using the Pinpoint Email API.
2033 */
2034 ConfigurationSet?: __string;
2035 /**
2036 * The date that the settings were last updated in ISO 8601 format.
2037 */
2038 CreationDate?: __string;
2039 /**
2040 * If the channel is enabled for sending messages.
2041 */
2042 Enabled?: __boolean;
2043 /**
2044 * The email address used to send emails from.
2045 */
2046 FromAddress?: __string;
2047 /**
2048 * Not used. Retained for backwards compatibility.
2049 */
2050 HasCredential?: __boolean;
2051 /**
2052 * Channel ID. Not used, only for backwards compatibility.
2053 */
2054 Id?: __string;
2055 /**
2056 * The ARN of an identity verified with SES.
2057 */
2058 Identity?: __string;
2059 /**
2060 * Is this channel archived
2061 */
2062 IsArchived?: __boolean;
2063 /**
2064 * Who last updated this entry
2065 */
2066 LastModifiedBy?: __string;
2067 /**
2068 * Last date this was updated
2069 */
2070 LastModifiedDate?: __string;
2071 /**
2072 * Messages per second that can be sent
2073 */
2074 MessagesPerSecond?: __integer;
2075 /**
2076 * Platform type. Will be "EMAIL"
2077 */
2078 Platform?: __string;
2079 /**
2080 * The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service
2081 */
2082 RoleArn?: __string;
2083 /**
2084 * Version of channel
2085 */
2086 Version?: __integer;
2087 }
2088 export interface EmailMessage {
2089 /**
2090 * The body of the email message.
2091 */
2092 Body?: __string;
2093 /**
2094 * The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.
2095 */
2096 FeedbackForwardingAddress?: __string;
2097 /**
2098 * The email address used to send the email from. Defaults to use FromAddress specified in the Email Channel.
2099 */
2100 FromAddress?: __string;
2101 /**
2102 * An email represented as a raw MIME message.
2103 */
2104 RawEmail?: RawEmail;
2105 /**
2106 * The reply-to email address(es) for the email. If the recipient replies to the email, each reply-to address will receive the reply.
2107 */
2108 ReplyToAddresses?: ListOf__string;
2109 /**
2110 * An email composed of a subject, a text part and a html part.
2111 */
2112 SimpleEmail?: SimpleEmail;
2113 /**
2114 * Default message substitutions. Can be overridden by individual address substitutions.
2115 */
2116 Substitutions?: MapOfListOf__string;
2117 }
2118 export interface EndpointBatchItem {
2119 /**
2120 * The destination for messages that you send to this endpoint. The address varies by channel. For mobile push channels, use the token provided by the push notification service, such as the APNs device token or the FCM registration token. For the SMS channel, use a phone number in E.164 format, such as +12065550100. For the email channel, use an email address.
2121 */
2122 Address?: __string;
2123 /**
2124 * Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named "interests" might have the values ["science", "politics", "travel"]. You can use these attributes as selection criteria when you create a segment of users to engage with a messaging campaign.
2125
2126The following characters are not recommended in attribute names: # : ? \ /. The Amazon Pinpoint console does not display attributes that include these characters in the name. This limitation does not apply to attribute values.
2127 */
2128 Attributes?: MapOfListOf__string;
2129 /**
2130 * The channel type.
2131
2132Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDU
2133 */
2134 ChannelType?: ChannelType;
2135 /**
2136 * The endpoint demographic attributes.
2137 */
2138 Demographic?: EndpointDemographic;
2139 /**
2140 * The last time the endpoint was updated. Provided in ISO 8601 format.
2141 */
2142 EffectiveDate?: __string;
2143 /**
2144 * Unused.
2145 */
2146 EndpointStatus?: __string;
2147 /**
2148 * The unique Id for the Endpoint in the batch.
2149 */
2150 Id?: __string;
2151 /**
2152 * The endpoint location attributes.
2153 */
2154 Location?: EndpointLocation;
2155 /**
2156 * Custom metrics that your app reports to Amazon Pinpoint.
2157 */
2158 Metrics?: MapOf__double;
2159 /**
2160 * Indicates whether a user has opted out of receiving messages with one of the following values:
2161
2162ALL - User has opted out of all messages.
2163
2164NONE - Users has not opted out and receives all messages.
2165 */
2166 OptOut?: __string;
2167 /**
2168 * The unique ID for the most recent request to update the endpoint.
2169 */
2170 RequestId?: __string;
2171 /**
2172 * Custom user-specific attributes that your app reports to Amazon Pinpoint.
2173 */
2174 User?: EndpointUser;
2175 }
2176 export interface EndpointBatchRequest {
2177 /**
2178 * List of items to update. Maximum 100 items
2179 */
2180 Item?: ListOfEndpointBatchItem;
2181 }
2182 export interface EndpointDemographic {
2183 /**
2184 * The version of the application associated with the endpoint.
2185 */
2186 AppVersion?: __string;
2187 /**
2188 * The endpoint locale in the following format: The ISO 639-1 alpha-2 code, followed by an underscore, followed by an ISO 3166-1 alpha-2 value.
2189
2190 */
2191 Locale?: __string;
2192 /**
2193 * The manufacturer of the endpoint device, such as Apple or Samsung.
2194 */
2195 Make?: __string;
2196 /**
2197 * The model name or number of the endpoint device, such as iPhone.
2198 */
2199 Model?: __string;
2200 /**
2201 * The model version of the endpoint device.
2202 */
2203 ModelVersion?: __string;
2204 /**
2205 * The platform of the endpoint device, such as iOS or Android.
2206 */
2207 Platform?: __string;
2208 /**
2209 * The platform version of the endpoint device.
2210 */
2211 PlatformVersion?: __string;
2212 /**
2213 * The timezone of the endpoint. Specified as a tz database value, such as Americas/Los_Angeles.
2214 */
2215 Timezone?: __string;
2216 }
2217 export interface EndpointItemResponse {
2218 /**
2219 * A custom message associated with the registration of an endpoint when issuing a response.
2220 */
2221 Message?: __string;
2222 /**
2223 * The status code associated with the merging of an endpoint when issuing a response.
2224 */
2225 StatusCode?: __integer;
2226 }
2227 export interface EndpointLocation {
2228 /**
2229 * The city where the endpoint is located.
2230 */
2231 City?: __string;
2232 /**
2233 * The two-letter code for the country or region of the endpoint. Specified as an ISO 3166-1 alpha-2 code, such as "US" for the United States.
2234 */
2235 Country?: __string;
2236 /**
2237 * The latitude of the endpoint location, rounded to one decimal place.
2238 */
2239 Latitude?: __double;
2240 /**
2241 * The longitude of the endpoint location, rounded to one decimal place.
2242 */
2243 Longitude?: __double;
2244 /**
2245 * The postal code or zip code of the endpoint.
2246 */
2247 PostalCode?: __string;
2248 /**
2249 * The region of the endpoint location. For example, in the United States, this corresponds to a state.
2250 */
2251 Region?: __string;
2252 }
2253 export interface EndpointMessageResult {
2254 /**
2255 * Address that endpoint message was delivered to.
2256 */
2257 Address?: __string;
2258 /**
2259 * The delivery status of the message. Possible values:
2260
2261SUCCESS - The message was successfully delivered to the endpoint.
2262
2263TRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.
2264
2265FAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
2266
2267TIMEOUT - The message couldn't be sent within the timeout period.
2268
2269QUIET_TIME - The local time for the endpoint was within the QuietTime for the campaign or app.
2270
2271DAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.
2272
2273HOLDOUT - The endpoint was in a hold out treatment for the campaign.
2274
2275THROTTLED - Amazon Pinpoint throttled sending to this endpoint.
2276
2277EXPIRED - The endpoint address is expired.
2278
2279CAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.
2280
2281SERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.
2282
2283UNKNOWN - An unknown error occurred.
2284 */
2285 DeliveryStatus?: DeliveryStatus;
2286 /**
2287 * Unique message identifier associated with the message that was sent.
2288 */
2289 MessageId?: __string;
2290 /**
2291 * Downstream service status code.
2292 */
2293 StatusCode?: __integer;
2294 /**
2295 * Status message for message delivery.
2296 */
2297 StatusMessage?: __string;
2298 /**
2299 * If token was updated as part of delivery. (This is GCM Specific)
2300 */
2301 UpdatedToken?: __string;
2302 }
2303 export interface EndpointRequest {
2304 /**
2305 * The destination for messages that you send to this endpoint. The address varies by channel. For mobile push channels, use the token provided by the push notification service, such as the APNs device token or the FCM registration token. For the SMS channel, use a phone number in E.164 format, such as +12065550100. For the email channel, use an email address.
2306 */
2307 Address?: __string;
2308 /**
2309 * Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named "interests" might have the values ["science", "politics", "travel"]. You can use these attributes as selection criteria when you create a segment of users to engage with a messaging campaign.
2310
2311The following characters are not recommended in attribute names: # : ? \ /. The Amazon Pinpoint console does not display attributes that include these characters in the name. This limitation does not apply to attribute values.
2312 */
2313 Attributes?: MapOfListOf__string;
2314 /**
2315 * The channel type.
2316
2317Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDU
2318 */
2319 ChannelType?: ChannelType;
2320 /**
2321 * Demographic attributes for the endpoint.
2322 */
2323 Demographic?: EndpointDemographic;
2324 /**
2325 * The date and time when the endpoint was updated, shown in ISO 8601 format.
2326 */
2327 EffectiveDate?: __string;
2328 /**
2329 * Unused.
2330 */
2331 EndpointStatus?: __string;
2332 /**
2333 * The endpoint location attributes.
2334 */
2335 Location?: EndpointLocation;
2336 /**
2337 * Custom metrics that your app reports to Amazon Pinpoint.
2338 */
2339 Metrics?: MapOf__double;
2340 /**
2341 * Indicates whether a user has opted out of receiving messages with one of the following values:
2342
2343ALL - User has opted out of all messages.
2344
2345NONE - Users has not opted out and receives all messages.
2346 */
2347 OptOut?: __string;
2348 /**
2349 * The unique ID for the most recent request to update the endpoint.
2350 */
2351 RequestId?: __string;
2352 /**
2353 * Custom user-specific attributes that your app reports to Amazon Pinpoint.
2354 */
2355 User?: EndpointUser;
2356 }
2357 export interface EndpointResponse {
2358 /**
2359 * The address of the endpoint as provided by your push provider. For example, the DeviceToken or RegistrationId.
2360 */
2361 Address?: __string;
2362 /**
2363 * The ID of the application that is associated with the endpoint.
2364 */
2365 ApplicationId?: __string;
2366 /**
2367 * Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named "interests" might have the following values: ["science", "politics", "travel"]. You can use these attributes as selection criteria when you create segments.
2368
2369The Amazon Pinpoint console can't display attribute names that include the following characters: hash/pound sign (#), colon (:), question mark (?), backslash (\), and forward slash (/). For this reason, you should avoid using these characters in the names of custom attributes.
2370 */
2371 Attributes?: MapOfListOf__string;
2372 /**
2373 * The channel type.
2374
2375Valid values: GCM | APNS | APNS_SANDBOX | APNS_VOIP | APNS_VOIP_SANDBOX | ADM | SMS | EMAIL | BAIDU
2376 */
2377 ChannelType?: ChannelType;
2378 /**
2379 * A number from 0-99 that represents the cohort the endpoint is assigned to. Endpoints are grouped into cohorts randomly, and each cohort contains approximately 1 percent of the endpoints for an app. Amazon Pinpoint assigns cohorts to the holdout or treatment allocations for a campaign.
2380 */
2381 CohortId?: __string;
2382 /**
2383 * The date and time when the endpoint was created, shown in ISO 8601 format.
2384 */
2385 CreationDate?: __string;
2386 /**
2387 * The endpoint demographic attributes.
2388 */
2389 Demographic?: EndpointDemographic;
2390 /**
2391 * The date and time when the endpoint was last updated, shown in ISO 8601 format.
2392 */
2393 EffectiveDate?: __string;
2394 /**
2395 * Unused.
2396 */
2397 EndpointStatus?: __string;
2398 /**
2399 * The unique ID that you assigned to the endpoint. The ID should be a globally unique identifier (GUID) to ensure that it doesn't conflict with other endpoint IDs associated with the application.
2400 */
2401 Id?: __string;
2402 /**
2403 * The endpoint location attributes.
2404 */
2405 Location?: EndpointLocation;
2406 /**
2407 * Custom metrics that your app reports to Amazon Pinpoint.
2408 */
2409 Metrics?: MapOf__double;
2410 /**
2411 * Indicates whether a user has opted out of receiving messages with one of the following values:
2412
2413ALL - User has opted out of all messages.
2414
2415NONE - Users has not opted out and receives all messages.
2416 */
2417 OptOut?: __string;
2418 /**
2419 * The unique ID for the most recent request to update the endpoint.
2420 */
2421 RequestId?: __string;
2422 /**
2423 * Custom user-specific attributes that your app reports to Amazon Pinpoint.
2424 */
2425 User?: EndpointUser;
2426 }
2427 export interface EndpointSendConfiguration {
2428 /**
2429 * Body override. If specified will override default body.
2430 */
2431 BodyOverride?: __string;
2432 /**
2433 * A map of custom attributes to attributes to be attached to the message for this address. This payload is added to the push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event attributes.
2434 */
2435 Context?: MapOf__string;
2436 /**
2437 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
2438 */
2439 RawContent?: __string;
2440 /**
2441 * A map of substitution values for the message to be merged with the DefaultMessage's substitutions. Substitutions on this map take precedence over the all other substitutions.
2442 */
2443 Substitutions?: MapOfListOf__string;
2444 /**
2445 * Title override. If specified will override default title if applicable.
2446 */
2447 TitleOverride?: __string;
2448 }
2449 export interface EndpointUser {
2450 /**
2451 * Custom attributes that describe the user by associating a name with an array of values. For example, an attribute named "interests" might have the following values: ["science", "politics", "travel"]. You can use these attributes as selection criteria when you create segments.
2452
2453The Amazon Pinpoint console can't display attribute names that include the following characters: hash/pound sign (#), colon (:), question mark (?), backslash (\), and forward slash (/). For this reason, you should avoid using these characters in the names of custom attributes.
2454 */
2455 UserAttributes?: MapOfListOf__string;
2456 /**
2457 * The unique ID of the user.
2458 */
2459 UserId?: __string;
2460 }
2461 export interface EndpointsResponse {
2462 /**
2463 * The list of endpoints.
2464 */
2465 Item?: ListOfEndpointResponse;
2466 }
2467 export interface Event {
2468 /**
2469 * The package name associated with the app that's recording the event.
2470 */
2471 AppPackageName?: __string;
2472 /**
2473 * The title of the app that's recording the event.
2474 */
2475 AppTitle?: __string;
2476 /**
2477 * The version number of the app that's recording the event.
2478 */
2479 AppVersionCode?: __string;
2480 /**
2481 * Custom attributes that are associated with the event you're adding or updating.
2482 */
2483 Attributes?: MapOf__string;
2484 /**
2485 * The version of the SDK that's running on the client device.
2486 */
2487 ClientSdkVersion?: __string;
2488 /**
2489 * The name of the custom event that you're recording.
2490 */
2491 EventType?: __string;
2492 /**
2493 * Custom metrics related to the event.
2494 */
2495 Metrics?: MapOf__double;
2496 /**
2497 * The name of the SDK that's being used to record the event.
2498 */
2499 SdkName?: __string;
2500 /**
2501 * Information about the session in which the event occurred.
2502 */
2503 Session?: Session;
2504 /**
2505 * The date and time when the event occurred, in ISO 8601 format.
2506 */
2507 Timestamp?: __string;
2508 }
2509 export interface EventDimensions {
2510 /**
2511 * Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.
2512 */
2513 Attributes?: MapOfAttributeDimension;
2514 /**
2515 * The name of the event that causes the campaign to be sent. This can be a standard event type that Amazon Pinpoint generates, such as _session.start, or a custom event that's specific to your app.
2516 */
2517 EventType?: SetDimension;
2518 /**
2519 * Custom metrics that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.
2520 */
2521 Metrics?: MapOfMetricDimension;
2522 }
2523 export interface EventItemResponse {
2524 /**
2525 * A custom message that is associated with the processing of an event.
2526 */
2527 Message?: __string;
2528 /**
2529 * The status returned in the response as a result of processing the event.
2530
2531Possible values: 400 (for invalid events) and 202 (for events that were accepted).
2532 */
2533 StatusCode?: __integer;
2534 }
2535 export interface EventStream {
2536 /**
2537 * The ID of the application from which events should be published.
2538 */
2539 ApplicationId?: __string;
2540 /**
2541 * The Amazon Resource Name (ARN) of the Amazon Kinesis stream or Firehose delivery stream to which you want to publish events.
2542 Firehose ARN: arn:aws:firehose:REGION:ACCOUNT_ID:deliverystream/STREAM_NAME
2543 Kinesis ARN: arn:aws:kinesis:REGION:ACCOUNT_ID:stream/STREAM_NAME
2544 */
2545 DestinationStreamArn?: __string;
2546 /**
2547 * (Deprecated) Your AWS account ID, which you assigned to the ExternalID key in an IAM trust policy. Used by Amazon Pinpoint to assume an IAM role. This requirement is removed, and external IDs are not recommended for IAM roles assumed by Amazon Pinpoint.
2548 */
2549 ExternalId?: __string;
2550 /**
2551 * The date the event stream was last updated in ISO 8601 format.
2552 */
2553 LastModifiedDate?: __string;
2554 /**
2555 * The IAM user who last modified the event stream.
2556 */
2557 LastUpdatedBy?: __string;
2558 /**
2559 * The IAM role that authorizes Amazon Pinpoint to publish events to the stream in your account.
2560 */
2561 RoleArn?: __string;
2562 }
2563 export interface EventsBatch {
2564 /**
2565 * The PublicEndpoint attached to the EndpointId from the request.
2566 */
2567 Endpoint?: PublicEndpoint;
2568 /**
2569 * An object that contains a set of events associated with the endpoint.
2570 */
2571 Events?: MapOfEvent;
2572 }
2573 export interface EventsRequest {
2574 /**
2575 * A batch of events to process. Each BatchItem consists of an endpoint ID as the key, and an EventsBatch object as the value.
2576 */
2577 BatchItem?: MapOfEventsBatch;
2578 }
2579 export interface EventsResponse {
2580 /**
2581 * A map that contains a multipart response for each endpoint. Each item in this object uses the endpoint ID as the key, and the item response as the value.
2582
2583If no item response exists, the value can also be one of the following: 202 (if the request was processed successfully) or 400 (if the payload was invalid, or required fields were missing).
2584 */
2585 Results?: MapOfItemResponse;
2586 }
2587 export interface ExportJobRequest {
2588 /**
2589 * The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that endpoints will be exported to.
2590 */
2591 RoleArn?: __string;
2592 /**
2593 * A URL that points to the location within an Amazon S3 bucket that will receive the export. The location is typically a folder with multiple files.
2594
2595The URL should follow this format: s3://bucket-name/folder-name/
2596
2597Amazon Pinpoint will export endpoints to this location.
2598 */
2599 S3UrlPrefix?: __string;
2600 /**
2601 * The ID of the segment to export endpoints from. If not present, Amazon Pinpoint exports all of the endpoints that belong to the application.
2602 */
2603 SegmentId?: __string;
2604 /**
2605 * The version of the segment to export if specified.
2606 */
2607 SegmentVersion?: __integer;
2608 }
2609 export interface ExportJobResource {
2610 /**
2611 * The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that endpoints will be exported to.
2612 */
2613 RoleArn?: __string;
2614 /**
2615 * A URL that points to the location within an Amazon S3 bucket that will receive the export. The location is typically a folder with multiple files.
2616
2617The URL should follow this format: s3://bucket-name/folder-name/
2618
2619Amazon Pinpoint will export endpoints to this location.
2620 */
2621 S3UrlPrefix?: __string;
2622 /**
2623 * The ID of the segment to export endpoints from. If not present, Amazon Pinpoint exports all of the endpoints that belong to the application.
2624 */
2625 SegmentId?: __string;
2626 /**
2627 * The version of the segment to export if specified.
2628 */
2629 SegmentVersion?: __integer;
2630 }
2631 export interface ExportJobResponse {
2632 /**
2633 * The unique ID of the application associated with the export job.
2634 */
2635 ApplicationId?: __string;
2636 /**
2637 * The number of pieces that have successfully completed as of the time of the request.
2638 */
2639 CompletedPieces?: __integer;
2640 /**
2641 * The date the job completed in ISO 8601 format.
2642 */
2643 CompletionDate?: __string;
2644 /**
2645 * The date the job was created in ISO 8601 format.
2646 */
2647 CreationDate?: __string;
2648 /**
2649 * The export job settings.
2650 */
2651 Definition?: ExportJobResource;
2652 /**
2653 * The number of pieces that failed to be processed as of the time of the request.
2654 */
2655 FailedPieces?: __integer;
2656 /**
2657 * Provides up to 100 of the first failed entries for the job, if any exist.
2658 */
2659 Failures?: ListOf__string;
2660 /**
2661 * The unique ID of the job.
2662 */
2663 Id?: __string;
2664 /**
2665 * The status of the job.
2666Valid values: CREATED, INITIALIZING, PROCESSING, COMPLETING, COMPLETED, FAILING, FAILED
2667
2668The job status is FAILED if one or more pieces failed.
2669 */
2670 JobStatus?: JobStatus;
2671 /**
2672 * The number of endpoints that were not processed; for example, because of syntax errors.
2673 */
2674 TotalFailures?: __integer;
2675 /**
2676 * The total number of pieces that must be processed to finish the job. Each piece is an approximately equal portion of the endpoints.
2677 */
2678 TotalPieces?: __integer;
2679 /**
2680 * The number of endpoints that were processed by the job.
2681 */
2682 TotalProcessed?: __integer;
2683 /**
2684 * The job type. Will be 'EXPORT'.
2685 */
2686 Type?: __string;
2687 }
2688 export interface ExportJobsResponse {
2689 /**
2690 * A list of export jobs for the application.
2691 */
2692 Item?: ListOfExportJobResponse;
2693 /**
2694 * The string that you use in a subsequent request to get the next page of results in a paginated response.
2695 */
2696 NextToken?: __string;
2697 }
2698 export type FilterType = "SYSTEM"|"ENDPOINT"|string;
2699 export type Format = "CSV"|"JSON"|string;
2700 export type Frequency = "ONCE"|"HOURLY"|"DAILY"|"WEEKLY"|"MONTHLY"|"EVENT"|string;
2701 export interface GCMChannelRequest {
2702 /**
2703 * Platform credential API key from Google.
2704 */
2705 ApiKey?: __string;
2706 /**
2707 * If the channel is enabled for sending messages.
2708 */
2709 Enabled?: __boolean;
2710 }
2711 export interface GCMChannelResponse {
2712 /**
2713 * The ID of the application to which the channel applies.
2714 */
2715 ApplicationId?: __string;
2716 /**
2717 * When was this segment created
2718 */
2719 CreationDate?: __string;
2720 /**
2721 * The GCM API key from Google.
2722 */
2723 Credential?: __string;
2724 /**
2725 * If the channel is enabled for sending messages.
2726 */
2727 Enabled?: __boolean;
2728 /**
2729 * Not used. Retained for backwards compatibility.
2730 */
2731 HasCredential?: __boolean;
2732 /**
2733 * Channel ID. Not used. Present only for backwards compatibility.
2734 */
2735 Id?: __string;
2736 /**
2737 * Is this channel archived
2738 */
2739 IsArchived?: __boolean;
2740 /**
2741 * Who last updated this entry
2742 */
2743 LastModifiedBy?: __string;
2744 /**
2745 * Last date this was updated
2746 */
2747 LastModifiedDate?: __string;
2748 /**
2749 * The platform type. Will be GCM
2750 */
2751 Platform?: __string;
2752 /**
2753 * Version of channel
2754 */
2755 Version?: __integer;
2756 }
2757 export interface GCMMessage {
2758 /**
2759 * The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app. URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK | URL
2760 */
2761 Action?: Action;
2762 /**
2763 * The message body of the notification.
2764 */
2765 Body?: __string;
2766 /**
2767 * This parameter identifies a group of messages (e.g., with collapse_key: "Updates Available") that can be collapsed, so that only the last message gets sent when delivery can be resumed. This is intended to avoid sending too many of the same messages when the device comes back online or becomes active.
2768 */
2769 CollapseKey?: __string;
2770 /**
2771 * The data payload used for a silent push. This payload is added to the notifications' data.pinpoint.jsonBody' object
2772 */
2773 Data?: MapOf__string;
2774 /**
2775 * The icon image name of the asset saved in your application.
2776 */
2777 IconReference?: __string;
2778 /**
2779 * The URL that points to an image used as the large icon to the notification content view.
2780 */
2781 ImageIconUrl?: __string;
2782 /**
2783 * The URL that points to an image used in the push notification.
2784 */
2785 ImageUrl?: __string;
2786 /**
2787 * The message priority. Amazon Pinpoint uses this value to set the FCM or GCM priority parameter when it sends the message. Accepts the following values:
2788
2789"Normal" - Messages might be delayed. Delivery is optimized for battery usage on the receiving device. Use normal priority unless immediate delivery is required.
2790
2791"High" - Messages are sent immediately and might wake a sleeping device.
2792
2793The equivalent values for APNs messages are "5" and "10". Amazon Pinpoint accepts these values here and converts them.
2794
2795For more information, see About FCM Messages in the Firebase documentation.
2796 */
2797 Priority?: __string;
2798 /**
2799 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
2800 */
2801 RawContent?: __string;
2802 /**
2803 * This parameter specifies the package name of the application where the registration tokens must match in order to receive the message.
2804 */
2805 RestrictedPackageName?: __string;
2806 /**
2807 * Indicates if the message should display on the users device. Silent pushes can be used for Remote Configuration and Phone Home use cases.
2808 */
2809 SilentPush?: __boolean;
2810 /**
2811 * The URL that points to an image used as the small icon for the notification which will be used to represent the notification in the status bar and content view
2812 */
2813 SmallImageIconUrl?: __string;
2814 /**
2815 * Indicates a sound to play when the device receives the notification. Supports default, or the filename of a sound resource bundled in the app. Android sound files must reside in /res/raw/
2816 */
2817 Sound?: __string;
2818 /**
2819 * Default message substitutions. Can be overridden by individual address substitutions.
2820 */
2821 Substitutions?: MapOfListOf__string;
2822 /**
2823 * The length of time (in seconds) that FCM or GCM stores and attempts to deliver the message. If unspecified, the value defaults to the maximum, which is 2,419,200 seconds (28 days). Amazon Pinpoint uses this value to set the FCM or GCM time_to_live parameter.
2824 */
2825 TimeToLive?: __integer;
2826 /**
2827 * The message title that displays above the message on the user's device.
2828 */
2829 Title?: __string;
2830 /**
2831 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
2832 */
2833 Url?: __string;
2834 }
2835 export interface GPSCoordinates {
2836 /**
2837 * Latitude
2838 */
2839 Latitude?: __double;
2840 /**
2841 * Longitude
2842 */
2843 Longitude?: __double;
2844 }
2845 export interface GPSPointDimension {
2846 /**
2847 * Coordinate to measure distance from.
2848 */
2849 Coordinates?: GPSCoordinates;
2850 /**
2851 * Range in kilometers from the coordinate.
2852 */
2853 RangeInKilometers?: __double;
2854 }
2855 export interface GetAdmChannelRequest {
2856 /**
2857 * The unique ID of your Amazon Pinpoint application.
2858 */
2859 ApplicationId: __string;
2860 }
2861 export interface GetAdmChannelResponse {
2862 ADMChannelResponse: ADMChannelResponse;
2863 }
2864 export interface GetApnsChannelRequest {
2865 /**
2866 * The unique ID of your Amazon Pinpoint application.
2867 */
2868 ApplicationId: __string;
2869 }
2870 export interface GetApnsChannelResponse {
2871 APNSChannelResponse: APNSChannelResponse;
2872 }
2873 export interface GetApnsSandboxChannelRequest {
2874 /**
2875 * The unique ID of your Amazon Pinpoint application.
2876 */
2877 ApplicationId: __string;
2878 }
2879 export interface GetApnsSandboxChannelResponse {
2880 APNSSandboxChannelResponse: APNSSandboxChannelResponse;
2881 }
2882 export interface GetApnsVoipChannelRequest {
2883 /**
2884 * The unique ID of your Amazon Pinpoint application.
2885 */
2886 ApplicationId: __string;
2887 }
2888 export interface GetApnsVoipChannelResponse {
2889 APNSVoipChannelResponse: APNSVoipChannelResponse;
2890 }
2891 export interface GetApnsVoipSandboxChannelRequest {
2892 /**
2893 * The unique ID of your Amazon Pinpoint application.
2894 */
2895 ApplicationId: __string;
2896 }
2897 export interface GetApnsVoipSandboxChannelResponse {
2898 APNSVoipSandboxChannelResponse: APNSVoipSandboxChannelResponse;
2899 }
2900 export interface GetAppRequest {
2901 /**
2902 * The unique ID of your Amazon Pinpoint application.
2903 */
2904 ApplicationId: __string;
2905 }
2906 export interface GetAppResponse {
2907 ApplicationResponse: ApplicationResponse;
2908 }
2909 export interface GetApplicationSettingsRequest {
2910 /**
2911 * The unique ID of your Amazon Pinpoint application.
2912 */
2913 ApplicationId: __string;
2914 }
2915 export interface GetApplicationSettingsResponse {
2916 ApplicationSettingsResource: ApplicationSettingsResource;
2917 }
2918 export interface GetAppsRequest {
2919 /**
2920 * The number of entries you want on each page in the response.
2921 */
2922 PageSize?: __string;
2923 /**
2924 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
2925 */
2926 Token?: __string;
2927 }
2928 export interface GetAppsResponse {
2929 ApplicationsResponse: ApplicationsResponse;
2930 }
2931 export interface GetBaiduChannelRequest {
2932 /**
2933 * The unique ID of your Amazon Pinpoint application.
2934 */
2935 ApplicationId: __string;
2936 }
2937 export interface GetBaiduChannelResponse {
2938 BaiduChannelResponse: BaiduChannelResponse;
2939 }
2940 export interface GetCampaignActivitiesRequest {
2941 /**
2942 * The unique ID of your Amazon Pinpoint application.
2943 */
2944 ApplicationId: __string;
2945 /**
2946 * The unique ID of the campaign.
2947 */
2948 CampaignId: __string;
2949 /**
2950 * The number of entries you want on each page in the response.
2951 */
2952 PageSize?: __string;
2953 /**
2954 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
2955 */
2956 Token?: __string;
2957 }
2958 export interface GetCampaignActivitiesResponse {
2959 ActivitiesResponse: ActivitiesResponse;
2960 }
2961 export interface GetCampaignRequest {
2962 /**
2963 * The unique ID of your Amazon Pinpoint application.
2964 */
2965 ApplicationId: __string;
2966 /**
2967 * The unique ID of the campaign.
2968 */
2969 CampaignId: __string;
2970 }
2971 export interface GetCampaignResponse {
2972 CampaignResponse: CampaignResponse;
2973 }
2974 export interface GetCampaignVersionRequest {
2975 /**
2976 * The unique ID of your Amazon Pinpoint application.
2977 */
2978 ApplicationId: __string;
2979 /**
2980 * The unique ID of the campaign.
2981 */
2982 CampaignId: __string;
2983 /**
2984 * The version of the campaign.
2985 */
2986 Version: __string;
2987 }
2988 export interface GetCampaignVersionResponse {
2989 CampaignResponse: CampaignResponse;
2990 }
2991 export interface GetCampaignVersionsRequest {
2992 /**
2993 * The unique ID of your Amazon Pinpoint application.
2994 */
2995 ApplicationId: __string;
2996 /**
2997 * The unique ID of the campaign.
2998 */
2999 CampaignId: __string;
3000 /**
3001 * The number of entries you want on each page in the response.
3002 */
3003 PageSize?: __string;
3004 /**
3005 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3006 */
3007 Token?: __string;
3008 }
3009 export interface GetCampaignVersionsResponse {
3010 CampaignsResponse: CampaignsResponse;
3011 }
3012 export interface GetCampaignsRequest {
3013 /**
3014 * The unique ID of your Amazon Pinpoint application.
3015 */
3016 ApplicationId: __string;
3017 /**
3018 * The number of entries you want on each page in the response.
3019 */
3020 PageSize?: __string;
3021 /**
3022 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3023 */
3024 Token?: __string;
3025 }
3026 export interface GetCampaignsResponse {
3027 CampaignsResponse: CampaignsResponse;
3028 }
3029 export interface GetChannelsRequest {
3030 /**
3031 * The unique ID of your Amazon Pinpoint application.
3032 */
3033 ApplicationId: __string;
3034 }
3035 export interface GetChannelsResponse {
3036 ChannelsResponse: ChannelsResponse;
3037 }
3038 export interface GetEmailChannelRequest {
3039 /**
3040 * The unique ID of your Amazon Pinpoint application.
3041 */
3042 ApplicationId: __string;
3043 }
3044 export interface GetEmailChannelResponse {
3045 EmailChannelResponse: EmailChannelResponse;
3046 }
3047 export interface GetEndpointRequest {
3048 /**
3049 * The unique ID of your Amazon Pinpoint application.
3050 */
3051 ApplicationId: __string;
3052 /**
3053 * The unique ID of the endpoint.
3054 */
3055 EndpointId: __string;
3056 }
3057 export interface GetEndpointResponse {
3058 EndpointResponse: EndpointResponse;
3059 }
3060 export interface GetEventStreamRequest {
3061 /**
3062 * The unique ID of your Amazon Pinpoint application.
3063 */
3064 ApplicationId: __string;
3065 }
3066 export interface GetEventStreamResponse {
3067 EventStream: EventStream;
3068 }
3069 export interface GetExportJobRequest {
3070 /**
3071 * The unique ID of your Amazon Pinpoint application.
3072 */
3073 ApplicationId: __string;
3074 /**
3075 * The unique ID of the job.
3076 */
3077 JobId: __string;
3078 }
3079 export interface GetExportJobResponse {
3080 ExportJobResponse: ExportJobResponse;
3081 }
3082 export interface GetExportJobsRequest {
3083 /**
3084 * The unique ID of your Amazon Pinpoint application.
3085 */
3086 ApplicationId: __string;
3087 /**
3088 * The number of entries you want on each page in the response.
3089 */
3090 PageSize?: __string;
3091 /**
3092 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3093 */
3094 Token?: __string;
3095 }
3096 export interface GetExportJobsResponse {
3097 ExportJobsResponse: ExportJobsResponse;
3098 }
3099 export interface GetGcmChannelRequest {
3100 /**
3101 * The unique ID of your Amazon Pinpoint application.
3102 */
3103 ApplicationId: __string;
3104 }
3105 export interface GetGcmChannelResponse {
3106 GCMChannelResponse: GCMChannelResponse;
3107 }
3108 export interface GetImportJobRequest {
3109 /**
3110 * The unique ID of your Amazon Pinpoint application.
3111 */
3112 ApplicationId: __string;
3113 /**
3114 * The unique ID of the job.
3115 */
3116 JobId: __string;
3117 }
3118 export interface GetImportJobResponse {
3119 ImportJobResponse: ImportJobResponse;
3120 }
3121 export interface GetImportJobsRequest {
3122 /**
3123 * The unique ID of your Amazon Pinpoint application.
3124 */
3125 ApplicationId: __string;
3126 /**
3127 * The number of entries you want on each page in the response.
3128 */
3129 PageSize?: __string;
3130 /**
3131 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3132 */
3133 Token?: __string;
3134 }
3135 export interface GetImportJobsResponse {
3136 ImportJobsResponse: ImportJobsResponse;
3137 }
3138 export interface GetSegmentExportJobsRequest {
3139 /**
3140 * The unique ID of your Amazon Pinpoint application.
3141 */
3142 ApplicationId: __string;
3143 /**
3144 * The number of entries you want on each page in the response.
3145 */
3146 PageSize?: __string;
3147 /**
3148 * The unique ID of the segment.
3149 */
3150 SegmentId: __string;
3151 /**
3152 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3153 */
3154 Token?: __string;
3155 }
3156 export interface GetSegmentExportJobsResponse {
3157 ExportJobsResponse: ExportJobsResponse;
3158 }
3159 export interface GetSegmentImportJobsRequest {
3160 /**
3161 * The unique ID of your Amazon Pinpoint application.
3162 */
3163 ApplicationId: __string;
3164 /**
3165 * The number of entries you want on each page in the response.
3166 */
3167 PageSize?: __string;
3168 /**
3169 * The unique ID of the segment.
3170 */
3171 SegmentId: __string;
3172 /**
3173 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3174 */
3175 Token?: __string;
3176 }
3177 export interface GetSegmentImportJobsResponse {
3178 ImportJobsResponse: ImportJobsResponse;
3179 }
3180 export interface GetSegmentRequest {
3181 /**
3182 * The unique ID of your Amazon Pinpoint application.
3183 */
3184 ApplicationId: __string;
3185 /**
3186 * The unique ID of the segment.
3187 */
3188 SegmentId: __string;
3189 }
3190 export interface GetSegmentResponse {
3191 SegmentResponse: SegmentResponse;
3192 }
3193 export interface GetSegmentVersionRequest {
3194 /**
3195 * The unique ID of your Amazon Pinpoint application.
3196 */
3197 ApplicationId: __string;
3198 /**
3199 * The unique ID of the segment.
3200 */
3201 SegmentId: __string;
3202 /**
3203 * The segment version.
3204 */
3205 Version: __string;
3206 }
3207 export interface GetSegmentVersionResponse {
3208 SegmentResponse: SegmentResponse;
3209 }
3210 export interface GetSegmentVersionsRequest {
3211 /**
3212 * The unique ID of your Amazon Pinpoint application.
3213 */
3214 ApplicationId: __string;
3215 /**
3216 * The number of entries you want on each page in the response.
3217 */
3218 PageSize?: __string;
3219 /**
3220 * The unique ID of the segment.
3221 */
3222 SegmentId: __string;
3223 /**
3224 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3225 */
3226 Token?: __string;
3227 }
3228 export interface GetSegmentVersionsResponse {
3229 SegmentsResponse: SegmentsResponse;
3230 }
3231 export interface GetSegmentsRequest {
3232 /**
3233 * The unique ID of your Amazon Pinpoint application.
3234 */
3235 ApplicationId: __string;
3236 /**
3237 * The number of entries you want on each page in the response.
3238 */
3239 PageSize?: __string;
3240 /**
3241 * The NextToken string returned on a previous page that you use to get the next page of results in a paginated response.
3242 */
3243 Token?: __string;
3244 }
3245 export interface GetSegmentsResponse {
3246 SegmentsResponse: SegmentsResponse;
3247 }
3248 export interface GetSmsChannelRequest {
3249 /**
3250 * The unique ID of your Amazon Pinpoint application.
3251 */
3252 ApplicationId: __string;
3253 }
3254 export interface GetSmsChannelResponse {
3255 SMSChannelResponse: SMSChannelResponse;
3256 }
3257 export interface GetUserEndpointsRequest {
3258 /**
3259 * The unique ID of your Amazon Pinpoint application.
3260 */
3261 ApplicationId: __string;
3262 /**
3263 * The unique ID of the user.
3264 */
3265 UserId: __string;
3266 }
3267 export interface GetUserEndpointsResponse {
3268 EndpointsResponse: EndpointsResponse;
3269 }
3270 export interface GetVoiceChannelRequest {
3271 /**
3272 * The unique ID of your Amazon Pinpoint application.
3273 */
3274 ApplicationId: __string;
3275 }
3276 export interface GetVoiceChannelResponse {
3277 VoiceChannelResponse: VoiceChannelResponse;
3278 }
3279 export interface ImportJobRequest {
3280 /**
3281 * Sets whether the endpoints create a segment when they are imported.
3282 */
3283 DefineSegment?: __boolean;
3284 /**
3285 * (Deprecated) Your AWS account ID, which you assigned to the ExternalID key in an IAM trust policy. Used by Amazon Pinpoint to assume an IAM role. This requirement is removed, and external IDs are not recommended for IAM roles assumed by Amazon Pinpoint.
3286 */
3287 ExternalId?: __string;
3288 /**
3289 * The format of the files that contain the endpoint definitions.
3290Valid values: CSV, JSON
3291 */
3292 Format?: Format;
3293 /**
3294 * Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
3295 */
3296 RegisterEndpoints?: __boolean;
3297 /**
3298 * The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that contains the endpoints to import.
3299 */
3300 RoleArn?: __string;
3301 /**
3302 * The URL of the S3 bucket that contains the segment information to import. The location can be a folder or a single file. The URL should use the following format: s3://bucket-name/folder-name/file-name
3303
3304Amazon Pinpoint imports endpoints from this location and any subfolders it contains.
3305 */
3306 S3Url?: __string;
3307 /**
3308 * The ID of the segment to update if the import job is meant to update an existing segment.
3309 */
3310 SegmentId?: __string;
3311 /**
3312 * A custom name for the segment created by the import job. Use if DefineSegment is true.
3313 */
3314 SegmentName?: __string;
3315 }
3316 export interface ImportJobResource {
3317 /**
3318 * Sets whether the endpoints create a segment when they are imported.
3319 */
3320 DefineSegment?: __boolean;
3321 /**
3322 * (Deprecated) Your AWS account ID, which you assigned to the ExternalID key in an IAM trust policy. Used by Amazon Pinpoint to assume an IAM role. This requirement is removed, and external IDs are not recommended for IAM roles assumed by Amazon Pinpoint.
3323 */
3324 ExternalId?: __string;
3325 /**
3326 * The format of the files that contain the endpoint definitions.
3327Valid values: CSV, JSON
3328 */
3329 Format?: Format;
3330 /**
3331 * Sets whether the endpoints are registered with Amazon Pinpoint when they are imported.
3332 */
3333 RegisterEndpoints?: __boolean;
3334 /**
3335 * The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the Amazon S3 location that contains the endpoints to import.
3336 */
3337 RoleArn?: __string;
3338 /**
3339 * The URL of the S3 bucket that contains the segment information to import. The location can be a folder or a single file. The URL should use the following format: s3://bucket-name/folder-name/file-name
3340
3341Amazon Pinpoint imports endpoints from this location and any subfolders it contains.
3342 */
3343 S3Url?: __string;
3344 /**
3345 * The ID of the segment to update if the import job is meant to update an existing segment.
3346 */
3347 SegmentId?: __string;
3348 /**
3349 * A custom name for the segment created by the import job. Use if DefineSegment is true.
3350 */
3351 SegmentName?: __string;
3352 }
3353 export interface ImportJobResponse {
3354 /**
3355 * The unique ID of the application to which the import job applies.
3356 */
3357 ApplicationId?: __string;
3358 /**
3359 * The number of pieces that have successfully imported as of the time of the request.
3360 */
3361 CompletedPieces?: __integer;
3362 /**
3363 * The date the import job completed in ISO 8601 format.
3364 */
3365 CompletionDate?: __string;
3366 /**
3367 * The date the import job was created in ISO 8601 format.
3368 */
3369 CreationDate?: __string;
3370 /**
3371 * The import job settings.
3372 */
3373 Definition?: ImportJobResource;
3374 /**
3375 * The number of pieces that have failed to import as of the time of the request.
3376 */
3377 FailedPieces?: __integer;
3378 /**
3379 * Provides up to 100 of the first failed entries for the job, if any exist.
3380 */
3381 Failures?: ListOf__string;
3382 /**
3383 * The unique ID of the import job.
3384 */
3385 Id?: __string;
3386 /**
3387 * The status of the import job.
3388Valid values: CREATED, INITIALIZING, PROCESSING, COMPLETING, COMPLETED, FAILING, FAILED
3389
3390The job status is FAILED if one or more pieces failed to import.
3391 */
3392 JobStatus?: JobStatus;
3393 /**
3394 * The number of endpoints that failed to import; for example, because of syntax errors.
3395 */
3396 TotalFailures?: __integer;
3397 /**
3398 * The total number of pieces that must be imported to finish the job. Each piece is an approximately equal portion of the endpoints to import.
3399 */
3400 TotalPieces?: __integer;
3401 /**
3402 * The number of endpoints that were processed by the import job.
3403 */
3404 TotalProcessed?: __integer;
3405 /**
3406 * The job type. Will be Import.
3407 */
3408 Type?: __string;
3409 }
3410 export interface ImportJobsResponse {
3411 /**
3412 * A list of import jobs for the application.
3413 */
3414 Item?: ListOfImportJobResponse;
3415 /**
3416 * The string that you use in a subsequent request to get the next page of results in a paginated response.
3417 */
3418 NextToken?: __string;
3419 }
3420 export type Include = "ALL"|"ANY"|"NONE"|string;
3421 export interface ItemResponse {
3422 /**
3423 * The response received after the endpoint was accepted.
3424 */
3425 EndpointItemResponse?: EndpointItemResponse;
3426 /**
3427 * A multipart response object that contains a key and value for each event ID in the request. In each object, the event ID is the key, and an EventItemResponse object is the value.
3428 */
3429 EventsItemResponse?: MapOfEventItemResponse;
3430 }
3431 export type JobStatus = "CREATED"|"INITIALIZING"|"PROCESSING"|"COMPLETING"|"COMPLETED"|"FAILING"|"FAILED"|string;
3432 export interface ListTagsForResourceRequest {
3433 ResourceArn: __string;
3434 }
3435 export interface ListTagsForResourceResponse {
3436 TagsModel: TagsModel;
3437 }
3438 export interface Message {
3439 /**
3440 * The action that occurs if the user taps a push notification delivered by the campaign:
3441OPEN_APP - Your app launches, or it becomes the foreground app if it has been sent to the background. This is the default action.
3442
3443DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display a designated user interface within the app.
3444
3445URL - The default mobile browser on the user's device launches and opens a web page at the URL you specify.
3446 */
3447 Action?: Action;
3448 /**
3449 * The message body. Can include up to 140 characters.
3450 */
3451 Body?: __string;
3452 /**
3453 * The URL that points to the icon image for the push notification icon, for example, the app icon.
3454 */
3455 ImageIconUrl?: __string;
3456 /**
3457 * The URL that points to the small icon image for the push notification icon, for example, the app icon.
3458 */
3459 ImageSmallIconUrl?: __string;
3460 /**
3461 * The URL that points to an image used in the push notification.
3462 */
3463 ImageUrl?: __string;
3464 /**
3465 * The JSON payload used for a silent push.
3466 */
3467 JsonBody?: __string;
3468 /**
3469 * A URL that refers to the location of an image or video that you want to display in the push notification.
3470 */
3471 MediaUrl?: __string;
3472 /**
3473 * The Raw JSON formatted string to be used as the payload. This value overrides the message.
3474 */
3475 RawContent?: __string;
3476 /**
3477 * Indicates if the message should display on the users device.
3478
3479Silent pushes can be used for Remote Configuration and Phone Home use cases.
3480 */
3481 SilentPush?: __boolean;
3482 /**
3483 * This parameter specifies how long (in seconds) the message should be kept if the service is unable to deliver the notification the first time. If the value is 0, it treats the notification as if it expires immediately and does not store the notification or attempt to redeliver it. This value is converted to the expiration field when sent to the service. It only applies to APNs and GCM
3484 */
3485 TimeToLive?: __integer;
3486 /**
3487 * The message title that displays above the message on the user's device.
3488 */
3489 Title?: __string;
3490 /**
3491 * The URL to open in the user's mobile browser. Used if the value for Action is URL.
3492 */
3493 Url?: __string;
3494 }
3495 export interface MessageBody {
3496 /**
3497 * The error message that's returned from the API.
3498 */
3499 Message?: __string;
3500 /**
3501 * The unique message body ID.
3502 */
3503 RequestID?: __string;
3504 }
3505 export interface MessageConfiguration {
3506 /**
3507 * The message that the campaign delivers to ADM channels. Overrides the default message.
3508 */
3509 ADMMessage?: Message;
3510 /**
3511 * The message that the campaign delivers to APNS channels. Overrides the default message.
3512 */
3513 APNSMessage?: Message;
3514 /**
3515 * The message that the campaign delivers to Baidu channels. Overrides the default message.
3516 */
3517 BaiduMessage?: Message;
3518 /**
3519 * The default message for all channels.
3520 */
3521 DefaultMessage?: Message;
3522 /**
3523 * The email message configuration.
3524 */
3525 EmailMessage?: CampaignEmailMessage;
3526 /**
3527 * The message that the campaign delivers to GCM channels. Overrides the default message.
3528 */
3529 GCMMessage?: Message;
3530 /**
3531 * The SMS message configuration.
3532 */
3533 SMSMessage?: CampaignSmsMessage;
3534 }
3535 export interface MessageRequest {
3536 /**
3537 * A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object. An address can be a push notification token, a phone number, or an email address.
3538 */
3539 Addresses?: MapOfAddressConfiguration;
3540 /**
3541 * A map of custom attributes to attributes to be attached to the message. This payload is added to the push notification's 'data.pinpoint' object or added to the email/sms delivery receipt event attributes.
3542 */
3543 Context?: MapOf__string;
3544 /**
3545 * A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object. Within an EndpointSendConfiguration object, you can tailor the message for an endpoint by specifying message overrides or substitutions.
3546 */
3547 Endpoints?: MapOfEndpointSendConfiguration;
3548 /**
3549 * Message configuration.
3550 */
3551 MessageConfiguration?: DirectMessageConfiguration;
3552 /**
3553 * A unique ID that you can use to trace a message. This ID is visible to recipients.
3554 */
3555 TraceId?: __string;
3556 }
3557 export interface MessageResponse {
3558 /**
3559 * Application id of the message.
3560 */
3561 ApplicationId?: __string;
3562 /**
3563 * A map containing a multi part response for each address, with the endpointId as the key and the result as the value.
3564 */
3565 EndpointResult?: MapOfEndpointMessageResult;
3566 /**
3567 * Original request Id for which this message was delivered.
3568 */
3569 RequestId?: __string;
3570 /**
3571 * A map containing a multi part response for each address, with the address as the key(Email address, phone number or push token) and the result as the value.
3572 */
3573 Result?: MapOfMessageResult;
3574 }
3575 export interface MessageResult {
3576 /**
3577 * The delivery status of the message. Possible values:
3578
3579SUCCESS - The message was successfully delivered to the endpoint.
3580
3581TRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.
3582
3583FAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
3584
3585TIMEOUT - The message couldn't be sent within the timeout period.
3586
3587QUIET_TIME - The local time for the endpoint was within the QuietTime for the campaign or app.
3588
3589DAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.
3590
3591HOLDOUT - The endpoint was in a hold out treatment for the campaign.
3592
3593THROTTLED - Amazon Pinpoint throttled sending to this endpoint.
3594
3595EXPIRED - The endpoint address is expired.
3596
3597CAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.
3598
3599SERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.
3600
3601UNKNOWN - An unknown error occurred.
3602 */
3603 DeliveryStatus?: DeliveryStatus;
3604 /**
3605 * Unique message identifier associated with the message that was sent.
3606 */
3607 MessageId?: __string;
3608 /**
3609 * Downstream service status code.
3610 */
3611 StatusCode?: __integer;
3612 /**
3613 * Status message for message delivery.
3614 */
3615 StatusMessage?: __string;
3616 /**
3617 * If token was updated as part of delivery. (This is GCM Specific)
3618 */
3619 UpdatedToken?: __string;
3620 }
3621 export type MessageType = "TRANSACTIONAL"|"PROMOTIONAL"|string;
3622 export interface MetricDimension {
3623 /**
3624 * The operator that you're using to compare metric values. Possible values: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, or EQUAL
3625 */
3626 ComparisonOperator?: __string;
3627 /**
3628 * The value to be compared.
3629 */
3630 Value?: __double;
3631 }
3632 export type Mode = "DELIVERY"|"FILTER"|string;
3633 export interface NumberValidateRequest {
3634 /**
3635 * (Optional) The two-character ISO country code for the country or region where the phone number was originally registered.
3636 */
3637 IsoCountryCode?: __string;
3638 /**
3639 * The phone number to get information about. The phone number that you provide should include a country code. If the number doesn't include a valid country code, the operation might result in an error.
3640 */
3641 PhoneNumber?: __string;
3642 }
3643 export interface NumberValidateResponse {
3644 /**
3645 * The carrier or servive provider that the phone number is currently registered with.
3646 */
3647 Carrier?: __string;
3648 /**
3649 * The city where the phone number was originally registered.
3650 */
3651 City?: __string;
3652 /**
3653 * The cleansed phone number, shown in E.164 format.
3654 */
3655 CleansedPhoneNumberE164?: __string;
3656 /**
3657 * The cleansed phone number, shown in the local phone number format.
3658 */
3659 CleansedPhoneNumberNational?: __string;
3660 /**
3661 * The country or region where the phone number was originally registered.
3662 */
3663 Country?: __string;
3664 /**
3665 * The two-character ISO code for the country or region where the phone number was originally registered.
3666 */
3667 CountryCodeIso2?: __string;
3668 /**
3669 * The numeric code for the country or region where the phone number was originally registered.
3670 */
3671 CountryCodeNumeric?: __string;
3672 /**
3673 * The county where the phone number was originally registered.
3674 */
3675 County?: __string;
3676 /**
3677 * The two-character code (in ISO 3166-1 alpha-2 format) for the country or region in the request body.
3678 */
3679 OriginalCountryCodeIso2?: __string;
3680 /**
3681 * The phone number that you included in the request body.
3682 */
3683 OriginalPhoneNumber?: __string;
3684 /**
3685 * A description of the phone type. Possible values are MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.
3686 */
3687 PhoneType?: __string;
3688 /**
3689 * The phone type, represented by an integer. Possible values include 0 (MOBILE), 1 (LANDLINE), 2 (VOIP), 3 (INVALID), 4 (OTHER), and 5 (PREPAID).
3690 */
3691 PhoneTypeCode?: __integer;
3692 /**
3693 * The time zone for the location where the phone number was originally registered.
3694 */
3695 Timezone?: __string;
3696 /**
3697 * The postal code for the location where the phone number was originally registered.
3698 */
3699 ZipCode?: __string;
3700 }
3701 export interface PhoneNumberValidateRequest {
3702 NumberValidateRequest: NumberValidateRequest;
3703 }
3704 export interface PhoneNumberValidateResponse {
3705 NumberValidateResponse: NumberValidateResponse;
3706 }
3707 export interface PublicEndpoint {
3708 /**
3709 * The unique identifier for the recipient. For example, an address could be a device token, email address, or mobile phone number.
3710 */
3711 Address?: __string;
3712 /**
3713 * Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create a segment.
3714 */
3715 Attributes?: MapOfListOf__string;
3716 /**
3717 * The channel type.
3718
3719Valid values: APNS, GCM
3720 */
3721 ChannelType?: ChannelType;
3722 /**
3723 * The endpoint demographic attributes.
3724 */
3725 Demographic?: EndpointDemographic;
3726 /**
3727 * The date and time when the endpoint was last updated, in ISO 8601 format.
3728 */
3729 EffectiveDate?: __string;
3730 /**
3731 * The status of the endpoint. If the update fails, the value is INACTIVE. If the endpoint is updated successfully, the value is ACTIVE.
3732 */
3733 EndpointStatus?: __string;
3734 /**
3735 * The endpoint location attributes.
3736 */
3737 Location?: EndpointLocation;
3738 /**
3739 * Custom metrics that your app reports to Amazon Pinpoint.
3740 */
3741 Metrics?: MapOf__double;
3742 /**
3743 * Indicates whether a user has opted out of receiving messages with one of the following values:
3744
3745ALL - User has opted out of all messages.
3746
3747NONE - Users has not opted out and receives all messages.
3748 */
3749 OptOut?: __string;
3750 /**
3751 * A unique identifier that is generated each time the endpoint is updated.
3752 */
3753 RequestId?: __string;
3754 /**
3755 * Custom user-specific attributes that your app reports to Amazon Pinpoint.
3756 */
3757 User?: EndpointUser;
3758 }
3759 export interface PutEventStreamRequest {
3760 /**
3761 * The unique ID of your Amazon Pinpoint application.
3762 */
3763 ApplicationId: __string;
3764 WriteEventStream: WriteEventStream;
3765 }
3766 export interface PutEventStreamResponse {
3767 EventStream: EventStream;
3768 }
3769 export interface PutEventsRequest {
3770 /**
3771 * The unique ID of your Amazon Pinpoint application.
3772 */
3773 ApplicationId: __string;
3774 EventsRequest: EventsRequest;
3775 }
3776 export interface PutEventsResponse {
3777 EventsResponse: EventsResponse;
3778 }
3779 export interface QuietTime {
3780 /**
3781 * The time at which quiet time should end. The value that you specify has to be in HH:mm format, where HH is the hour in 24-hour format (with a leading zero, if applicable), and mm is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.
3782 */
3783 End?: __string;
3784 /**
3785 * The time at which quiet time should begin. The value that you specify has to be in HH:mm format, where HH is the hour in 24-hour format (with a leading zero, if applicable), and mm is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.
3786 */
3787 Start?: __string;
3788 }
3789 export interface RawEmail {
3790 /**
3791 * The raw email message itself. Then entire message must be base64-encoded.
3792 */
3793 Data?: __blob;
3794 }
3795 export type __blob = Buffer|Uint8Array|Blob|string;
3796 export interface RecencyDimension {
3797 /**
3798 * The length of time during which users have been active or inactive with your app.
3799
3800Valid values: HR_24, DAY_7, DAY_14, DAY_30
3801 */
3802 Duration?: Duration;
3803 /**
3804 * The recency dimension type:
3805
3806ACTIVE - Users who have used your app within the specified duration are included in the segment.
3807
3808INACTIVE - Users who have not used your app within the specified duration are included in the segment.
3809 */
3810 RecencyType?: RecencyType;
3811 }
3812 export type RecencyType = "ACTIVE"|"INACTIVE"|string;
3813 export interface RemoveAttributesRequest {
3814 /**
3815 * The unique ID of your Amazon Pinpoint application.
3816 */
3817 ApplicationId: __string;
3818 /**
3819 * Type of attribute. Can be endpoint-custom-attributes, endpoint-custom-metrics, endpoint-user-attributes.
3820 */
3821 AttributeType: __string;
3822 UpdateAttributesRequest: UpdateAttributesRequest;
3823 }
3824 export interface RemoveAttributesResponse {
3825 AttributesResource: AttributesResource;
3826 }
3827 export interface SMSChannelRequest {
3828 /**
3829 * If the channel is enabled for sending messages.
3830 */
3831 Enabled?: __boolean;
3832 /**
3833 * Sender identifier of your messages.
3834 */
3835 SenderId?: __string;
3836 /**
3837 * ShortCode registered with phone provider.
3838 */
3839 ShortCode?: __string;
3840 }
3841 export interface SMSChannelResponse {
3842 /**
3843 * The unique ID of the application to which the SMS channel belongs.
3844 */
3845 ApplicationId?: __string;
3846 /**
3847 * The date that the settings were last updated in ISO 8601 format.
3848 */
3849 CreationDate?: __string;
3850 /**
3851 * If the channel is enabled for sending messages.
3852 */
3853 Enabled?: __boolean;
3854 /**
3855 * Not used. Retained for backwards compatibility.
3856 */
3857 HasCredential?: __boolean;
3858 /**
3859 * Channel ID. Not used, only for backwards compatibility.
3860 */
3861 Id?: __string;
3862 /**
3863 * Is this channel archived
3864 */
3865 IsArchived?: __boolean;
3866 /**
3867 * Who last updated this entry
3868 */
3869 LastModifiedBy?: __string;
3870 /**
3871 * Last date this was updated
3872 */
3873 LastModifiedDate?: __string;
3874 /**
3875 * Platform type. Will be "SMS"
3876 */
3877 Platform?: __string;
3878 /**
3879 * Promotional messages per second that can be sent
3880 */
3881 PromotionalMessagesPerSecond?: __integer;
3882 /**
3883 * Sender identifier of your messages.
3884 */
3885 SenderId?: __string;
3886 /**
3887 * The short code registered with the phone provider.
3888 */
3889 ShortCode?: __string;
3890 /**
3891 * Transactional messages per second that can be sent
3892 */
3893 TransactionalMessagesPerSecond?: __integer;
3894 /**
3895 * Version of channel
3896 */
3897 Version?: __integer;
3898 }
3899 export interface SMSMessage {
3900 /**
3901 * The body of the SMS message.
3902 */
3903 Body?: __string;
3904 /**
3905 * The SMS program name that you provided to AWS Support when you requested your dedicated number.
3906 */
3907 Keyword?: __string;
3908 /**
3909 * Is this a transaction priority message or lower priority.
3910 */
3911 MessageType?: MessageType;
3912 /**
3913 * The phone number that the SMS message originates from. Specify one of the dedicated long codes or short codes that you requested from AWS Support and that is assigned to your account. If this attribute is not specified, Amazon Pinpoint randomly assigns a long code.
3914 */
3915 OriginationNumber?: __string;
3916 /**
3917 * The sender ID that is shown as the message sender on the recipient's device. Support for sender IDs varies by country or region.
3918 */
3919 SenderId?: __string;
3920 /**
3921 * Default message substitutions. Can be overridden by individual address substitutions.
3922 */
3923 Substitutions?: MapOfListOf__string;
3924 }
3925 export interface Schedule {
3926 /**
3927 * The scheduled time that the campaign ends in ISO 8601 format.
3928 */
3929 EndTime?: __string;
3930 /**
3931 * Defines the type of events that can trigger the campaign. Used when the Frequency is set to EVENT.
3932 */
3933 EventFilter?: CampaignEventFilter;
3934 /**
3935 * How often the campaign delivers messages.
3936
3937Valid values:
3938
3939ONCE
3940
3941HOURLY
3942
3943DAILY
3944
3945WEEKLY
3946
3947MONTHLY
3948
3949EVENT
3950 */
3951 Frequency?: Frequency;
3952 /**
3953 * Indicates whether the campaign schedule takes effect according to each user's local time.
3954 */
3955 IsLocalTime?: __boolean;
3956 /**
3957 * The default quiet time for the campaign. The campaign doesn't send messages to endpoints during the quiet time.
3958
3959Note: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your campaign. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.
3960
3961When you set up a campaign to use quiet time, the campaign doesn't send messages during the time range you specified, as long as all of the following are true:
3962- The endpoint includes a valid Demographic.Timezone attribute.
3963- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the campaign.
3964- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the campaign.
3965 */
3966 QuietTime?: QuietTime;
3967 /**
3968 * The scheduled time that the campaign begins in ISO 8601 format.
3969 */
3970 StartTime?: __string;
3971 /**
3972 * The starting UTC offset for the schedule if the value for isLocalTime is true
3973
3974Valid values:
3975UTC
3976UTC+01
3977UTC+02
3978UTC+03
3979UTC+03:30
3980UTC+04
3981UTC+04:30
3982UTC+05
3983UTC+05:30
3984UTC+05:45
3985UTC+06
3986UTC+06:30
3987UTC+07
3988UTC+08
3989UTC+09
3990UTC+09:30
3991UTC+10
3992UTC+10:30
3993UTC+11
3994UTC+12
3995UTC+13
3996UTC-02
3997UTC-03
3998UTC-04
3999UTC-05
4000UTC-06
4001UTC-07
4002UTC-08
4003UTC-09
4004UTC-10
4005UTC-11
4006 */
4007 Timezone?: __string;
4008 }
4009 export interface SegmentBehaviors {
4010 /**
4011 * The recency of use.
4012 */
4013 Recency?: RecencyDimension;
4014 }
4015 export interface SegmentDemographics {
4016 /**
4017 * The app version criteria for the segment.
4018 */
4019 AppVersion?: SetDimension;
4020 /**
4021 * The channel criteria for the segment.
4022 */
4023 Channel?: SetDimension;
4024 /**
4025 * The device type criteria for the segment.
4026 */
4027 DeviceType?: SetDimension;
4028 /**
4029 * The device make criteria for the segment.
4030 */
4031 Make?: SetDimension;
4032 /**
4033 * The device model criteria for the segment.
4034 */
4035 Model?: SetDimension;
4036 /**
4037 * The device platform criteria for the segment.
4038 */
4039 Platform?: SetDimension;
4040 }
4041 export interface SegmentDimensions {
4042 /**
4043 * Custom segment attributes.
4044 */
4045 Attributes?: MapOfAttributeDimension;
4046 /**
4047 * The segment behaviors attributes.
4048 */
4049 Behavior?: SegmentBehaviors;
4050 /**
4051 * The segment demographics attributes.
4052 */
4053 Demographic?: SegmentDemographics;
4054 /**
4055 * The segment location attributes.
4056 */
4057 Location?: SegmentLocation;
4058 /**
4059 * Custom segment metrics.
4060 */
4061 Metrics?: MapOfMetricDimension;
4062 /**
4063 * Custom segment user attributes.
4064 */
4065 UserAttributes?: MapOfAttributeDimension;
4066 }
4067 export interface SegmentGroup {
4068 /**
4069 * List of dimensions to include or exclude.
4070 */
4071 Dimensions?: ListOfSegmentDimensions;
4072 /**
4073 * The base segment that you build your segment on. The source segment defines the starting "universe" of endpoints. When you add dimensions to the segment, it filters the source segment based on the dimensions that you specify. You can specify more than one dimensional segment. You can only specify one imported segment.
4074
4075NOTE: If you specify an imported segment for this attribute, the segment size estimate that appears in the Amazon Pinpoint console shows the size of the imported segment, without any filters applied to it.
4076 */
4077 SourceSegments?: ListOfSegmentReference;
4078 /**
4079 * Specify how to handle multiple source segments. For example, if you specify three source segments, should the resulting segment be based on any or all of the segments? Acceptable values: ANY or ALL.
4080 */
4081 SourceType?: SourceType;
4082 /**
4083 * Specify how to handle multiple segment dimensions. For example, if you specify three dimensions, should the resulting segment include endpoints that are matched by all, any, or none of the dimensions? Acceptable values: ALL, ANY, or NONE.
4084 */
4085 Type?: Type;
4086 }
4087 export interface SegmentGroupList {
4088 /**
4089 * A set of segment criteria to evaluate.
4090 */
4091 Groups?: ListOfSegmentGroup;
4092 /**
4093 * Specify how to handle multiple segment groups. For example, if the segment includes three segment groups, should the resulting segment include endpoints that are matched by all, any, or none of the segment groups you created. Acceptable values: ALL, ANY, or NONE.
4094 */
4095 Include?: Include;
4096 }
4097 export interface SegmentImportResource {
4098 /**
4099 * The number of channel types in the imported segment.
4100 */
4101 ChannelCounts?: MapOf__integer;
4102 /**
4103 * (Deprecated) Your AWS account ID, which you assigned to the ExternalID key in an IAM trust policy. Used by Amazon Pinpoint to assume an IAM role. This requirement is removed, and external IDs are not recommended for IAM roles assumed by Amazon Pinpoint.
4104 */
4105 ExternalId?: __string;
4106 /**
4107 * The format of the endpoint files that were imported to create this segment.
4108Valid values: CSV, JSON
4109 */
4110 Format?: Format;
4111 /**
4112 * The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint access to the endpoints in Amazon S3.
4113 */
4114 RoleArn?: __string;
4115 /**
4116 * The URL of the S3 bucket that the segment was imported from.
4117 */
4118 S3Url?: __string;
4119 /**
4120 * The number of endpoints that were successfully imported to create this segment.
4121 */
4122 Size?: __integer;
4123 }
4124 export interface SegmentLocation {
4125 /**
4126 * The country or region, in ISO 3166-1 alpha-2 format.
4127 */
4128 Country?: SetDimension;
4129 /**
4130 * The GPS Point dimension.
4131 */
4132 GPSPoint?: GPSPointDimension;
4133 }
4134 export interface SegmentReference {
4135 /**
4136 * A unique identifier for the segment.
4137 */
4138 Id?: __string;
4139 /**
4140 * If specified contains a specific version of the segment included.
4141 */
4142 Version?: __integer;
4143 }
4144 export interface SegmentResponse {
4145 /**
4146 * The ID of the application that the segment applies to.
4147 */
4148 ApplicationId?: __string;
4149 /**
4150 * The arn for the segment.
4151 */
4152 Arn?: __string;
4153 /**
4154 * The date and time when the segment was created.
4155 */
4156 CreationDate?: __string;
4157 /**
4158 * The segment dimensions attributes.
4159 */
4160 Dimensions?: SegmentDimensions;
4161 /**
4162 * The unique segment ID.
4163 */
4164 Id?: __string;
4165 /**
4166 * The import job settings.
4167 */
4168 ImportDefinition?: SegmentImportResource;
4169 /**
4170 * The date and time when the segment was last modified.
4171 */
4172 LastModifiedDate?: __string;
4173 /**
4174 * The name of the segment.
4175 */
4176 Name?: __string;
4177 /**
4178 * A segment group, which consists of zero or more source segments, plus dimensions that are applied to those source segments.
4179 */
4180 SegmentGroups?: SegmentGroupList;
4181 /**
4182 * The segment type:
4183DIMENSIONAL - A dynamic segment built from selection criteria based on endpoint data reported by your app. You create this type of segment by using the segment builder in the Amazon Pinpoint console or by making a POST request to the segments resource.
4184IMPORT - A static segment built from an imported set of endpoint definitions. You create this type of segment by importing a segment in the Amazon Pinpoint console or by making a POST request to the jobs/import resource.
4185 */
4186 SegmentType?: SegmentType;
4187 /**
4188 * The Tags for the segment.
4189 */
4190 tags?: MapOf__string;
4191 /**
4192 * The segment version number.
4193 */
4194 Version?: __integer;
4195 }
4196 export type SegmentType = "DIMENSIONAL"|"IMPORT"|string;
4197 export interface SegmentsResponse {
4198 /**
4199 * The list of segments.
4200 */
4201 Item?: ListOfSegmentResponse;
4202 /**
4203 * An identifier used to retrieve the next page of results. The token is null if no additional pages exist.
4204 */
4205 NextToken?: __string;
4206 }
4207 export interface SendMessagesRequest {
4208 /**
4209 * The unique ID of your Amazon Pinpoint application.
4210 */
4211 ApplicationId: __string;
4212 MessageRequest: MessageRequest;
4213 }
4214 export interface SendMessagesResponse {
4215 MessageResponse: MessageResponse;
4216 }
4217 export interface SendUsersMessageRequest {
4218 /**
4219 * A map of custom attribute-value pairs. Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the push notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.
4220 */
4221 Context?: MapOf__string;
4222 /**
4223 * Message definitions for the default message and any messages that are tailored for specific channels.
4224 */
4225 MessageConfiguration?: DirectMessageConfiguration;
4226 /**
4227 * A unique ID that you can use to trace a message. This ID is visible to recipients.
4228 */
4229 TraceId?: __string;
4230 /**
4231 * A map that associates user IDs with EndpointSendConfiguration objects. Within an EndpointSendConfiguration object, you can tailor the message for a user by specifying message overrides or substitutions.
4232 */
4233 Users?: MapOfEndpointSendConfiguration;
4234 }
4235 export interface SendUsersMessageResponse {
4236 /**
4237 * The unique ID of the Amazon Pinpoint project used to send the message.
4238 */
4239 ApplicationId?: __string;
4240 /**
4241 * The unique ID assigned to the users-messages request.
4242 */
4243 RequestId?: __string;
4244 /**
4245 * An object that shows the endpoints that were messaged for each user. The object provides a list of user IDs. For each user ID, it provides the endpoint IDs that were messaged. For each endpoint ID, it provides an EndpointMessageResult object.
4246 */
4247 Result?: MapOfMapOfEndpointMessageResult;
4248 }
4249 export interface SendUsersMessagesRequest {
4250 /**
4251 * The unique ID of your Amazon Pinpoint application.
4252 */
4253 ApplicationId: __string;
4254 SendUsersMessageRequest: SendUsersMessageRequest;
4255 }
4256 export interface SendUsersMessagesResponse {
4257 SendUsersMessageResponse: SendUsersMessageResponse;
4258 }
4259 export interface Session {
4260 /**
4261 * The duration of the session, in milliseconds.
4262 */
4263 Duration?: __integer;
4264 /**
4265 * A unique identifier for the session.
4266 */
4267 Id?: __string;
4268 /**
4269 * The date and time when the session began.
4270 */
4271 StartTimestamp?: __string;
4272 /**
4273 * The date and time when the session ended.
4274 */
4275 StopTimestamp?: __string;
4276 }
4277 export interface SetDimension {
4278 /**
4279 * The type of dimension:
4280
4281INCLUSIVE - Endpoints that match the criteria are included in the segment.
4282
4283EXCLUSIVE - Endpoints that match the criteria are excluded from the segment.
4284 */
4285 DimensionType?: DimensionType;
4286 /**
4287 * The criteria values for the segment dimension. Endpoints with matching attribute values are included or excluded from the segment, depending on the setting for Type.
4288 */
4289 Values?: ListOf__string;
4290 }
4291 export interface SimpleEmail {
4292 /**
4293 * The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
4294 */
4295 HtmlPart?: SimpleEmailPart;
4296 /**
4297 * The subject of the message: A short summary of the content, which will appear in the recipient's inbox.
4298 */
4299 Subject?: SimpleEmailPart;
4300 /**
4301 * The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
4302 */
4303 TextPart?: SimpleEmailPart;
4304 }
4305 export interface SimpleEmailPart {
4306 /**
4307 * The character set of the content.
4308 */
4309 Charset?: __string;
4310 /**
4311 * The textual data of the content.
4312 */
4313 Data?: __string;
4314 }
4315 export type SourceType = "ALL"|"ANY"|"NONE"|string;
4316 export interface TagResourceRequest {
4317 ResourceArn: __string;
4318 TagsModel: TagsModel;
4319 }
4320 export interface TagsModel {
4321 tags: MapOf__string;
4322 }
4323 export interface TreatmentResource {
4324 /**
4325 * The unique treatment ID.
4326 */
4327 Id?: __string;
4328 /**
4329 * The message configuration settings.
4330 */
4331 MessageConfiguration?: MessageConfiguration;
4332 /**
4333 * The campaign schedule.
4334 */
4335 Schedule?: Schedule;
4336 /**
4337 * The allocated percentage of users for this treatment.
4338 */
4339 SizePercent?: __integer;
4340 /**
4341 * The treatment status.
4342 */
4343 State?: CampaignState;
4344 /**
4345 * A custom description for the treatment.
4346 */
4347 TreatmentDescription?: __string;
4348 /**
4349 * The custom name of a variation of the campaign used for A/B testing.
4350 */
4351 TreatmentName?: __string;
4352 }
4353 export type Type = "ALL"|"ANY"|"NONE"|string;
4354 export interface UntagResourceRequest {
4355 ResourceArn: __string;
4356 /**
4357 * The key(s) of tag to be deleted
4358 */
4359 TagKeys: ListOf__string;
4360 }
4361 export interface UpdateAdmChannelRequest {
4362 ADMChannelRequest: ADMChannelRequest;
4363 /**
4364 * The unique ID of your Amazon Pinpoint application.
4365 */
4366 ApplicationId: __string;
4367 }
4368 export interface UpdateAdmChannelResponse {
4369 ADMChannelResponse: ADMChannelResponse;
4370 }
4371 export interface UpdateApnsChannelRequest {
4372 APNSChannelRequest: APNSChannelRequest;
4373 /**
4374 * The unique ID of your Amazon Pinpoint application.
4375 */
4376 ApplicationId: __string;
4377 }
4378 export interface UpdateApnsChannelResponse {
4379 APNSChannelResponse: APNSChannelResponse;
4380 }
4381 export interface UpdateApnsSandboxChannelRequest {
4382 APNSSandboxChannelRequest: APNSSandboxChannelRequest;
4383 /**
4384 * The unique ID of your Amazon Pinpoint application.
4385 */
4386 ApplicationId: __string;
4387 }
4388 export interface UpdateApnsSandboxChannelResponse {
4389 APNSSandboxChannelResponse: APNSSandboxChannelResponse;
4390 }
4391 export interface UpdateApnsVoipChannelRequest {
4392 APNSVoipChannelRequest: APNSVoipChannelRequest;
4393 /**
4394 * The unique ID of your Amazon Pinpoint application.
4395 */
4396 ApplicationId: __string;
4397 }
4398 export interface UpdateApnsVoipChannelResponse {
4399 APNSVoipChannelResponse: APNSVoipChannelResponse;
4400 }
4401 export interface UpdateApnsVoipSandboxChannelRequest {
4402 APNSVoipSandboxChannelRequest: APNSVoipSandboxChannelRequest;
4403 /**
4404 * The unique ID of your Amazon Pinpoint application.
4405 */
4406 ApplicationId: __string;
4407 }
4408 export interface UpdateApnsVoipSandboxChannelResponse {
4409 APNSVoipSandboxChannelResponse: APNSVoipSandboxChannelResponse;
4410 }
4411 export interface UpdateApplicationSettingsRequest {
4412 /**
4413 * The unique ID of your Amazon Pinpoint application.
4414 */
4415 ApplicationId: __string;
4416 WriteApplicationSettingsRequest: WriteApplicationSettingsRequest;
4417 }
4418 export interface UpdateApplicationSettingsResponse {
4419 ApplicationSettingsResource: ApplicationSettingsResource;
4420 }
4421 export interface UpdateAttributesRequest {
4422 /**
4423 * The GLOB wildcard for removing the attributes in the application
4424 */
4425 Blacklist?: ListOf__string;
4426 }
4427 export interface UpdateBaiduChannelRequest {
4428 /**
4429 * The unique ID of your Amazon Pinpoint application.
4430 */
4431 ApplicationId: __string;
4432 BaiduChannelRequest: BaiduChannelRequest;
4433 }
4434 export interface UpdateBaiduChannelResponse {
4435 BaiduChannelResponse: BaiduChannelResponse;
4436 }
4437 export interface UpdateCampaignRequest {
4438 /**
4439 * The unique ID of your Amazon Pinpoint application.
4440 */
4441 ApplicationId: __string;
4442 /**
4443 * The unique ID of the campaign.
4444 */
4445 CampaignId: __string;
4446 WriteCampaignRequest: WriteCampaignRequest;
4447 }
4448 export interface UpdateCampaignResponse {
4449 CampaignResponse: CampaignResponse;
4450 }
4451 export interface UpdateEmailChannelRequest {
4452 /**
4453 * The unique ID of your Amazon Pinpoint application.
4454 */
4455 ApplicationId: __string;
4456 EmailChannelRequest: EmailChannelRequest;
4457 }
4458 export interface UpdateEmailChannelResponse {
4459 EmailChannelResponse: EmailChannelResponse;
4460 }
4461 export interface UpdateEndpointRequest {
4462 /**
4463 * The unique ID of your Amazon Pinpoint application.
4464 */
4465 ApplicationId: __string;
4466 /**
4467 * The unique ID of the endpoint.
4468 */
4469 EndpointId: __string;
4470 EndpointRequest: EndpointRequest;
4471 }
4472 export interface UpdateEndpointResponse {
4473 MessageBody: MessageBody;
4474 }
4475 export interface UpdateEndpointsBatchRequest {
4476 /**
4477 * The unique ID of your Amazon Pinpoint application.
4478 */
4479 ApplicationId: __string;
4480 EndpointBatchRequest: EndpointBatchRequest;
4481 }
4482 export interface UpdateEndpointsBatchResponse {
4483 MessageBody: MessageBody;
4484 }
4485 export interface UpdateGcmChannelRequest {
4486 /**
4487 * The unique ID of your Amazon Pinpoint application.
4488 */
4489 ApplicationId: __string;
4490 GCMChannelRequest: GCMChannelRequest;
4491 }
4492 export interface UpdateGcmChannelResponse {
4493 GCMChannelResponse: GCMChannelResponse;
4494 }
4495 export interface UpdateSegmentRequest {
4496 /**
4497 * The unique ID of your Amazon Pinpoint application.
4498 */
4499 ApplicationId: __string;
4500 /**
4501 * The unique ID of the segment.
4502 */
4503 SegmentId: __string;
4504 WriteSegmentRequest: WriteSegmentRequest;
4505 }
4506 export interface UpdateSegmentResponse {
4507 SegmentResponse: SegmentResponse;
4508 }
4509 export interface UpdateSmsChannelRequest {
4510 /**
4511 * The unique ID of your Amazon Pinpoint application.
4512 */
4513 ApplicationId: __string;
4514 SMSChannelRequest: SMSChannelRequest;
4515 }
4516 export interface UpdateSmsChannelResponse {
4517 SMSChannelResponse: SMSChannelResponse;
4518 }
4519 export interface UpdateVoiceChannelRequest {
4520 /**
4521 * The unique ID of your Amazon Pinpoint application.
4522 */
4523 ApplicationId: __string;
4524 VoiceChannelRequest: VoiceChannelRequest;
4525 }
4526 export interface UpdateVoiceChannelResponse {
4527 VoiceChannelResponse: VoiceChannelResponse;
4528 }
4529 export interface VoiceChannelRequest {
4530 /**
4531 * If the channel is enabled for sending messages.
4532 */
4533 Enabled?: __boolean;
4534 }
4535 export interface VoiceChannelResponse {
4536 /**
4537 * Application id
4538 */
4539 ApplicationId?: __string;
4540 /**
4541 * The date that the settings were last updated in ISO 8601 format.
4542 */
4543 CreationDate?: __string;
4544 /**
4545 * If the channel is enabled for sending messages.
4546 */
4547 Enabled?: __boolean;
4548 HasCredential?: __boolean;
4549 /**
4550 * Channel ID. Not used, only for backwards compatibility.
4551 */
4552 Id?: __string;
4553 /**
4554 * Is this channel archived
4555 */
4556 IsArchived?: __boolean;
4557 /**
4558 * Who made the last change
4559 */
4560 LastModifiedBy?: __string;
4561 /**
4562 * Last date this was updated
4563 */
4564 LastModifiedDate?: __string;
4565 /**
4566 * Platform type. Will be "Voice"
4567 */
4568 Platform?: __string;
4569 /**
4570 * Version of channel
4571 */
4572 Version?: __integer;
4573 }
4574 export interface VoiceMessage {
4575 /**
4576 * The message body of the notification, the email body or the text message.
4577 */
4578 Body?: __string;
4579 /**
4580 * Language of sent message
4581 */
4582 LanguageCode?: __string;
4583 /**
4584 * Is the number from the pool or messaging service to send from.
4585 */
4586 OriginationNumber?: __string;
4587 /**
4588 * Default message substitutions. Can be overridden by individual address substitutions.
4589 */
4590 Substitutions?: MapOfListOf__string;
4591 /**
4592 * Voice ID of sent message.
4593 */
4594 VoiceId?: __string;
4595 }
4596 export interface WriteApplicationSettingsRequest {
4597 /**
4598 * Default campaign hook information.
4599 */
4600 CampaignHook?: CampaignHook;
4601 /**
4602 * The CloudWatchMetrics settings for the app.
4603 */
4604 CloudWatchMetricsEnabled?: __boolean;
4605 /**
4606 * The limits that apply to each campaign in the project by default. Campaigns can also have their own limits, which override the settings at the project level.
4607 */
4608 Limits?: CampaignLimits;
4609 /**
4610 * The default quiet time for the app. Campaigns in the app don't send messages to endpoints during the quiet time.
4611
4612Note: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your app. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.
4613
4614When you set up an app to use quiet time, campaigns in that app don't send messages during the time range you specified, as long as all of the following are true:
4615- The endpoint includes a valid Demographic.Timezone attribute.
4616- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the app (or campaign, if applicable).
4617- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the app (or campaign, if applicable).
4618
4619Individual campaigns within the app can have their own quiet time settings, which override the quiet time settings at the app level.
4620 */
4621 QuietTime?: QuietTime;
4622 }
4623 export interface WriteCampaignRequest {
4624 /**
4625 * Treatments that are defined in addition to the default treatment.
4626 */
4627 AdditionalTreatments?: ListOfWriteTreatmentResource;
4628 /**
4629 * A description of the campaign.
4630 */
4631 Description?: __string;
4632 /**
4633 * The allocated percentage of end users who will not receive messages from this campaign.
4634 */
4635 HoldoutPercent?: __integer;
4636 /**
4637 * Campaign hook information.
4638 */
4639 Hook?: CampaignHook;
4640 /**
4641 * Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by setting IsPaused to false.
4642 */
4643 IsPaused?: __boolean;
4644 /**
4645 * The campaign limits settings.
4646 */
4647 Limits?: CampaignLimits;
4648 /**
4649 * The message configuration settings.
4650 */
4651 MessageConfiguration?: MessageConfiguration;
4652 /**
4653 * The custom name of the campaign.
4654 */
4655 Name?: __string;
4656 /**
4657 * The campaign schedule.
4658 */
4659 Schedule?: Schedule;
4660 /**
4661 * The ID of the segment to which the campaign sends messages.
4662 */
4663 SegmentId?: __string;
4664 /**
4665 * The version of the segment to which the campaign sends messages.
4666 */
4667 SegmentVersion?: __integer;
4668 /**
4669 * The Tags for the campaign.
4670 */
4671 tags?: MapOf__string;
4672 /**
4673 * A custom description for the treatment.
4674 */
4675 TreatmentDescription?: __string;
4676 /**
4677 * The custom name of a variation of the campaign used for A/B testing.
4678 */
4679 TreatmentName?: __string;
4680 }
4681 export interface WriteEventStream {
4682 /**
4683 * The Amazon Resource Name (ARN) of the Amazon Kinesis stream or Firehose delivery stream to which you want to publish events.
4684 Firehose ARN: arn:aws:firehose:REGION:ACCOUNT_ID:deliverystream/STREAM_NAME
4685 Kinesis ARN: arn:aws:kinesis:REGION:ACCOUNT_ID:stream/STREAM_NAME
4686 */
4687 DestinationStreamArn?: __string;
4688 /**
4689 * The IAM role that authorizes Amazon Pinpoint to publish events to the stream in your account.
4690 */
4691 RoleArn?: __string;
4692 }
4693 export interface WriteSegmentRequest {
4694 /**
4695 * The segment dimensions attributes.
4696 */
4697 Dimensions?: SegmentDimensions;
4698 /**
4699 * The name of segment
4700 */
4701 Name?: __string;
4702 /**
4703 * A segment group, which consists of zero or more source segments, plus dimensions that are applied to those source segments. Your request can only include one segment group. Your request can include either a SegmentGroups object or a Dimensions object, but not both.
4704 */
4705 SegmentGroups?: SegmentGroupList;
4706 /**
4707 * The Tags for the segments.
4708 */
4709 tags?: MapOf__string;
4710 }
4711 export interface WriteTreatmentResource {
4712 /**
4713 * The message configuration settings.
4714 */
4715 MessageConfiguration?: MessageConfiguration;
4716 /**
4717 * The campaign schedule.
4718 */
4719 Schedule?: Schedule;
4720 /**
4721 * The allocated percentage of users for this treatment.
4722 */
4723 SizePercent?: __integer;
4724 /**
4725 * A custom description for the treatment.
4726 */
4727 TreatmentDescription?: __string;
4728 /**
4729 * The custom name of a variation of the campaign used for A/B testing.
4730 */
4731 TreatmentName?: __string;
4732 }
4733 export type __boolean = boolean;
4734 export type __double = number;
4735 export type __integer = number;
4736 export type ListOfActivityResponse = ActivityResponse[];
4737 export type ListOfApplicationResponse = ApplicationResponse[];
4738 export type ListOfCampaignResponse = CampaignResponse[];
4739 export type ListOfEndpointBatchItem = EndpointBatchItem[];
4740 export type ListOfEndpointResponse = EndpointResponse[];
4741 export type ListOfExportJobResponse = ExportJobResponse[];
4742 export type ListOfImportJobResponse = ImportJobResponse[];
4743 export type ListOfSegmentDimensions = SegmentDimensions[];
4744 export type ListOfSegmentGroup = SegmentGroup[];
4745 export type ListOfSegmentReference = SegmentReference[];
4746 export type ListOfSegmentResponse = SegmentResponse[];
4747 export type ListOfTreatmentResource = TreatmentResource[];
4748 export type ListOfWriteTreatmentResource = WriteTreatmentResource[];
4749 export type ListOf__string = __string[];
4750 export type MapOfAddressConfiguration = {[key: string]: AddressConfiguration};
4751 export type MapOfAttributeDimension = {[key: string]: AttributeDimension};
4752 export type MapOfChannelResponse = {[key: string]: ChannelResponse};
4753 export type MapOfEndpointMessageResult = {[key: string]: EndpointMessageResult};
4754 export type MapOfEndpointSendConfiguration = {[key: string]: EndpointSendConfiguration};
4755 export type MapOfEvent = {[key: string]: Event};
4756 export type MapOfEventItemResponse = {[key: string]: EventItemResponse};
4757 export type MapOfEventsBatch = {[key: string]: EventsBatch};
4758 export type MapOfItemResponse = {[key: string]: ItemResponse};
4759 export type MapOfMessageResult = {[key: string]: MessageResult};
4760 export type MapOfMetricDimension = {[key: string]: MetricDimension};
4761 export type MapOf__double = {[key: string]: __double};
4762 export type MapOf__integer = {[key: string]: __integer};
4763 export type MapOfListOf__string = {[key: string]: ListOf__string};
4764 export type MapOfMapOfEndpointMessageResult = {[key: string]: MapOfEndpointMessageResult};
4765 export type MapOf__string = {[key: string]: __string};
4766 export type __string = string;
4767 /**
4768 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
4769 */
4770 export type apiVersion = "2016-12-01"|"latest"|string;
4771 export interface ClientApiVersions {
4772 /**
4773 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
4774 */
4775 apiVersion?: apiVersion;
4776 }
4777 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
4778 /**
4779 * Contains interfaces for use with the Pinpoint client.
4780 */
4781 export import Types = Pinpoint;
4782}
4783export = Pinpoint;