pinpointsmsvoice.d.ts
14.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class PinpointSMSVoice extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: PinpointSMSVoice.Types.ClientConfiguration)
config: Config & PinpointSMSVoice.Types.ClientConfiguration;
/**
* Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.
*/
createConfigurationSet(params: PinpointSMSVoice.Types.CreateConfigurationSetRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.CreateConfigurationSetResponse) => void): Request<PinpointSMSVoice.Types.CreateConfigurationSetResponse, AWSError>;
/**
* Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.
*/
createConfigurationSet(callback?: (err: AWSError, data: PinpointSMSVoice.Types.CreateConfigurationSetResponse) => void): Request<PinpointSMSVoice.Types.CreateConfigurationSetResponse, AWSError>;
/**
* Create a new event destination in a configuration set.
*/
createConfigurationSetEventDestination(params: PinpointSMSVoice.Types.CreateConfigurationSetEventDestinationRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.CreateConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.CreateConfigurationSetEventDestinationResponse, AWSError>;
/**
* Create a new event destination in a configuration set.
*/
createConfigurationSetEventDestination(callback?: (err: AWSError, data: PinpointSMSVoice.Types.CreateConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.CreateConfigurationSetEventDestinationResponse, AWSError>;
/**
* Deletes an existing configuration set.
*/
deleteConfigurationSet(params: PinpointSMSVoice.Types.DeleteConfigurationSetRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.DeleteConfigurationSetResponse) => void): Request<PinpointSMSVoice.Types.DeleteConfigurationSetResponse, AWSError>;
/**
* Deletes an existing configuration set.
*/
deleteConfigurationSet(callback?: (err: AWSError, data: PinpointSMSVoice.Types.DeleteConfigurationSetResponse) => void): Request<PinpointSMSVoice.Types.DeleteConfigurationSetResponse, AWSError>;
/**
* Deletes an event destination in a configuration set.
*/
deleteConfigurationSetEventDestination(params: PinpointSMSVoice.Types.DeleteConfigurationSetEventDestinationRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.DeleteConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.DeleteConfigurationSetEventDestinationResponse, AWSError>;
/**
* Deletes an event destination in a configuration set.
*/
deleteConfigurationSetEventDestination(callback?: (err: AWSError, data: PinpointSMSVoice.Types.DeleteConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.DeleteConfigurationSetEventDestinationResponse, AWSError>;
/**
* Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.
*/
getConfigurationSetEventDestinations(params: PinpointSMSVoice.Types.GetConfigurationSetEventDestinationsRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.GetConfigurationSetEventDestinationsResponse) => void): Request<PinpointSMSVoice.Types.GetConfigurationSetEventDestinationsResponse, AWSError>;
/**
* Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.
*/
getConfigurationSetEventDestinations(callback?: (err: AWSError, data: PinpointSMSVoice.Types.GetConfigurationSetEventDestinationsResponse) => void): Request<PinpointSMSVoice.Types.GetConfigurationSetEventDestinationsResponse, AWSError>;
/**
* List all of the configuration sets associated with your Amazon Pinpoint account in the current region.
*/
listConfigurationSets(params: PinpointSMSVoice.Types.ListConfigurationSetsRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.ListConfigurationSetsResponse) => void): Request<PinpointSMSVoice.Types.ListConfigurationSetsResponse, AWSError>;
/**
* List all of the configuration sets associated with your Amazon Pinpoint account in the current region.
*/
listConfigurationSets(callback?: (err: AWSError, data: PinpointSMSVoice.Types.ListConfigurationSetsResponse) => void): Request<PinpointSMSVoice.Types.ListConfigurationSetsResponse, AWSError>;
/**
* Create a new voice message and send it to a recipient's phone number.
*/
sendVoiceMessage(params: PinpointSMSVoice.Types.SendVoiceMessageRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.SendVoiceMessageResponse) => void): Request<PinpointSMSVoice.Types.SendVoiceMessageResponse, AWSError>;
/**
* Create a new voice message and send it to a recipient's phone number.
*/
sendVoiceMessage(callback?: (err: AWSError, data: PinpointSMSVoice.Types.SendVoiceMessageResponse) => void): Request<PinpointSMSVoice.Types.SendVoiceMessageResponse, AWSError>;
/**
* Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.
*/
updateConfigurationSetEventDestination(params: PinpointSMSVoice.Types.UpdateConfigurationSetEventDestinationRequest, callback?: (err: AWSError, data: PinpointSMSVoice.Types.UpdateConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.UpdateConfigurationSetEventDestinationResponse, AWSError>;
/**
* Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.
*/
updateConfigurationSetEventDestination(callback?: (err: AWSError, data: PinpointSMSVoice.Types.UpdateConfigurationSetEventDestinationResponse) => void): Request<PinpointSMSVoice.Types.UpdateConfigurationSetEventDestinationResponse, AWSError>;
}
declare namespace PinpointSMSVoice {
export type Boolean = boolean;
export interface CallInstructionsMessageType {
/**
* The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
*/
Text?: NonEmptyString;
}
export interface CloudWatchLogsDestination {
/**
* The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.
*/
IamRoleArn?: String;
/**
* The name of the Amazon CloudWatch Log Group that you want to record events in.
*/
LogGroupArn?: String;
}
export type ConfigurationSets = WordCharactersWithDelimiters[];
export interface CreateConfigurationSetEventDestinationRequest {
/**
* ConfigurationSetName
*/
ConfigurationSetName: __string;
EventDestination?: EventDestinationDefinition;
/**
* A name that identifies the event destination.
*/
EventDestinationName?: NonEmptyString;
}
export interface CreateConfigurationSetEventDestinationResponse {
}
export interface CreateConfigurationSetRequest {
/**
* The name that you want to give the configuration set.
*/
ConfigurationSetName?: WordCharactersWithDelimiters;
}
export interface CreateConfigurationSetResponse {
}
export interface DeleteConfigurationSetEventDestinationRequest {
/**
* ConfigurationSetName
*/
ConfigurationSetName: __string;
/**
* EventDestinationName
*/
EventDestinationName: __string;
}
export interface DeleteConfigurationSetEventDestinationResponse {
}
export interface DeleteConfigurationSetRequest {
/**
* ConfigurationSetName
*/
ConfigurationSetName: __string;
}
export interface DeleteConfigurationSetResponse {
}
export interface EventDestination {
CloudWatchLogsDestination?: CloudWatchLogsDestination;
/**
* Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination.
*/
Enabled?: Boolean;
KinesisFirehoseDestination?: KinesisFirehoseDestination;
MatchingEventTypes?: EventTypes;
/**
* A name that identifies the event destination configuration.
*/
Name?: String;
SnsDestination?: SnsDestination;
}
export interface EventDestinationDefinition {
CloudWatchLogsDestination?: CloudWatchLogsDestination;
/**
* Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination.
*/
Enabled?: Boolean;
KinesisFirehoseDestination?: KinesisFirehoseDestination;
MatchingEventTypes?: EventTypes;
SnsDestination?: SnsDestination;
}
export type EventDestinations = EventDestination[];
export type EventType = "INITIATED_CALL"|"RINGING"|"ANSWERED"|"COMPLETED_CALL"|"BUSY"|"FAILED"|"NO_ANSWER"|string;
export type EventTypes = EventType[];
export interface GetConfigurationSetEventDestinationsRequest {
/**
* ConfigurationSetName
*/
ConfigurationSetName: __string;
}
export interface GetConfigurationSetEventDestinationsResponse {
EventDestinations?: EventDestinations;
}
export interface KinesisFirehoseDestination {
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream.
*/
DeliveryStreamArn?: String;
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination.
*/
IamRoleArn?: String;
}
export interface ListConfigurationSetsRequest {
/**
* A token returned from a previous call to the API that indicates the position in the list of results.
*/
NextToken?: __string;
/**
* Used to specify the number of items that should be returned in the response.
*/
PageSize?: __string;
}
export interface ListConfigurationSetsResponse {
/**
* An object that contains a list of configuration sets for your account in the current region.
*/
ConfigurationSets?: ConfigurationSets;
/**
* A token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets.
*/
NextToken?: NextTokenString;
}
export type NextTokenString = string;
export type NonEmptyString = string;
export interface PlainTextMessageType {
/**
* The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
*/
LanguageCode?: String;
/**
* The plain (not SSML-formatted) text to deliver to the recipient.
*/
Text?: NonEmptyString;
/**
* The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.
*/
VoiceId?: String;
}
export interface SSMLMessageType {
/**
* The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.
*/
LanguageCode?: String;
/**
* The SSML-formatted text to deliver to the recipient.
*/
Text?: NonEmptyString;
/**
* The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.
*/
VoiceId?: String;
}
export interface SendVoiceMessageRequest {
/**
* The phone number that appears on recipients' devices when they receive the message.
*/
CallerId?: String;
/**
* The name of the configuration set that you want to use to send the message.
*/
ConfigurationSetName?: WordCharactersWithDelimiters;
Content?: VoiceMessageContent;
/**
* The phone number that you want to send the voice message to.
*/
DestinationPhoneNumber?: NonEmptyString;
/**
* The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request.
*/
OriginationPhoneNumber?: NonEmptyString;
}
export interface SendVoiceMessageResponse {
/**
* A unique identifier for the voice message.
*/
MessageId?: String;
}
export interface SnsDestination {
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.
*/
TopicArn?: String;
}
export type String = string;
export interface UpdateConfigurationSetEventDestinationRequest {
/**
* ConfigurationSetName
*/
ConfigurationSetName: __string;
EventDestination?: EventDestinationDefinition;
/**
* EventDestinationName
*/
EventDestinationName: __string;
}
export interface UpdateConfigurationSetEventDestinationResponse {
}
export interface VoiceMessageContent {
CallInstructionsMessage?: CallInstructionsMessageType;
PlainTextMessage?: PlainTextMessageType;
SSMLMessage?: SSMLMessageType;
}
export type WordCharactersWithDelimiters = string;
export type __string = string;
/**
* 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.
*/
export type apiVersion = "2018-09-05"|"latest"|string;
export interface ClientApiVersions {
/**
* 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.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the PinpointSMSVoice client.
*/
export import Types = PinpointSMSVoice;
}
export = PinpointSMSVoice;