Client library for Amazon Pinpoint SMS and Voice Service
npm install --save @datafire/amazonaws_sms_voice
let amazonaws_sms_voice = require('@datafire/amazonaws_sms_voice').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
Pinpoint SMS and Voice Messaging public facing APIs
amazonaws_sms_voice.ListConfigurationSets({}, context)
- input
object
- NextToken
string
- PageSize
string
- NextToken
amazonaws_sms_voice.CreateConfigurationSet({}, context)
- input
object
- ConfigurationSetName
string
: The name that you want to give the configuration set.
- ConfigurationSetName
amazonaws_sms_voice.DeleteConfigurationSet({
"ConfigurationSetName": ""
}, context)
- input
object
- ConfigurationSetName required
string
- ConfigurationSetName required
amazonaws_sms_voice.GetConfigurationSetEventDestinations({
"ConfigurationSetName": ""
}, context)
- input
object
- ConfigurationSetName required
string
- ConfigurationSetName required
amazonaws_sms_voice.CreateConfigurationSetEventDestination({
"ConfigurationSetName": ""
}, context)
- input
object
- ConfigurationSetName required
string
- EventDestination
object
: An object that defines a single event destination.- CloudWatchLogsDestination CloudWatchLogsDestination
- Enabled
- KinesisFirehoseDestination KinesisFirehoseDestination
- MatchingEventTypes EventTypes
- SnsDestination SnsDestination
- EventDestinationName
string
: A name that identifies the event destination.
- ConfigurationSetName required
amazonaws_sms_voice.DeleteConfigurationSetEventDestination({
"ConfigurationSetName": "",
"EventDestinationName": ""
}, context)
- input
object
- ConfigurationSetName required
string
- EventDestinationName required
string
- ConfigurationSetName required
amazonaws_sms_voice.UpdateConfigurationSetEventDestination({
"ConfigurationSetName": "",
"EventDestinationName": ""
}, context)
- input
object
- ConfigurationSetName required
string
- EventDestinationName required
string
- EventDestination
object
: An object that defines a single event destination.- CloudWatchLogsDestination CloudWatchLogsDestination
- Enabled
- KinesisFirehoseDestination KinesisFirehoseDestination
- MatchingEventTypes EventTypes
- SnsDestination SnsDestination
- ConfigurationSetName required
amazonaws_sms_voice.SendVoiceMessage({}, context)
- input
object
- CallerId
string
: The phone number that appears on recipients' devices when they receive the message. - ConfigurationSetName
string
: The name of the configuration set that you want to use to send the message. - Content
object
: An object that contains a voice message and information about the recipient that you want to send it to.- CallInstructionsMessage CallInstructionsMessageType
- PlainTextMessage PlainTextMessageType
- SSMLMessage SSMLMessageType
- DestinationPhoneNumber
string
: The phone number that you want to send the voice message to. - OriginationPhoneNumber
string
: 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.
- CallerId
- output SendVoiceMessageResponse
- Boolean
boolean
- CallInstructionsMessageType
object
: An object that defines a message that contains text formatted using Amazon Pinpoint Voice Instructions markup.- Text
- CloudWatchLogsDestination
object
: An object that contains information about an event destination that sends data to Amazon CloudWatch Logs.- IamRoleArn
- LogGroupArn
- ConfigurationSets
array
: An array that contains all of the configuration sets in your Amazon Pinpoint account in the current AWS Region.
- CreateConfigurationSetEventDestinationRequest
object
: Create a new event destination in a configuration set.- EventDestination EventDestinationDefinition
- EventDestinationName
- CreateConfigurationSetEventDestinationResponse
object
: An empty object that indicates that the event destination was created successfully.
- CreateConfigurationSetRequest
object
: A request to create a new configuration set.- ConfigurationSetName
- CreateConfigurationSetResponse
object
: An empty object that indicates that the configuration set was successfully created.
- DeleteConfigurationSetEventDestinationRequest
object
- DeleteConfigurationSetEventDestinationResponse
object
: An empty object that indicates that the event destination was deleted successfully.
- DeleteConfigurationSetRequest
object
- DeleteConfigurationSetResponse
object
: An empty object that indicates that the configuration set was deleted successfully.
- EventDestination
object
: An object that defines an event destination.- CloudWatchLogsDestination CloudWatchLogsDestination
- Enabled
- KinesisFirehoseDestination KinesisFirehoseDestination
- MatchingEventTypes EventTypes
- Name
- SnsDestination SnsDestination
- EventDestinationDefinition
object
: An object that defines a single event destination.- CloudWatchLogsDestination CloudWatchLogsDestination
- Enabled
- KinesisFirehoseDestination KinesisFirehoseDestination
- MatchingEventTypes EventTypes
- SnsDestination SnsDestination
- EventDestinations
array
: An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination.- items EventDestination
- EventType
string
(values: INITIATED_CALL, RINGING, ANSWERED, COMPLETED_CALL, BUSY, FAILED, NO_ANSWER): The types of events that are sent to the event destination.
- EventTypes
array
: An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination.- items EventType
- GetConfigurationSetEventDestinationsRequest
object
- GetConfigurationSetEventDestinationsResponse
object
: An object that contains information about an event destination.- EventDestinations EventDestinations
- KinesisFirehoseDestination
object
: An object that contains information about an event destination that sends data to Amazon Kinesis Data Firehose.- DeliveryStreamArn
- IamRoleArn
- ListConfigurationSetsRequest
object
- ListConfigurationSetsResponse
object
: An object that contains information about the configuration sets for your account in the current region.- ConfigurationSets
- NextToken
- NextTokenString
string
- NonEmptyString
string
- PlainTextMessageType
object
: An object that defines a message that contains unformatted text.- LanguageCode
- Text
- VoiceId
- SSMLMessageType
object
: An object that defines a message that contains SSML-formatted text.- LanguageCode
- Text
- VoiceId
- SendVoiceMessageRequest
object
: SendVoiceMessageRequest- CallerId
- ConfigurationSetName
- Content VoiceMessageContent
- DestinationPhoneNumber
- OriginationPhoneNumber
- SendVoiceMessageResponse
object
: An object that that contains the Message ID of a Voice message that was sent successfully.- MessageId
- SnsDestination
object
: An object that contains information about an event destination that sends data to Amazon SNS.- TopicArn
- String
string
- UpdateConfigurationSetEventDestinationRequest
object
: UpdateConfigurationSetEventDestinationRequest- EventDestination EventDestinationDefinition
- UpdateConfigurationSetEventDestinationResponse
object
: An empty object that indicates that the event destination was updated successfully.
- VoiceMessageContent
object
: An object that contains a voice message and information about the recipient that you want to send it to.- CallInstructionsMessage CallInstructionsMessageType
- PlainTextMessage PlainTextMessageType
- SSMLMessage SSMLMessageType
- WordCharactersWithDelimiters
string
- __string
string