简体   繁体   中英

Configuring the AWS Pinpoint Voice ConfigurationSet

I'm attempting to use the AWS JS SDK to fire off a voice call. What I can't figure out is what the ConfigurationSetName is, or where in the AWS Console it is configured.

For example:

    await pinpoint.sendVoiceMessage({
      CallerId: '+12025550184',
      ConfigurationSetName: '***WHAT GOES HERE??***',
      Content: {
        SSMLMessage: {
          LanguageCode: 'en-US',
          Text: '<speak>Hello!</speak>',
          VoiceId: 'Joanna'
        }
      },
      DestinationPhoneNumber: '+12025550150',
      OriginationPhoneNumber: '+12025550184'
    }).promise();

All I've been able to find is the REST API documentation . This doesn't explain where to set one up in the AWS Console in the first place.

I never did find a way to do this in the Console, but I did find that the API was much simpler than I expected. As I currently don't need any call progress notifications, I was able to make an empty config set easily:

await pinpoint.createConfigurationSet({
  ConfigurationSetName: 'my-config-set-name'
}).promise();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM