Skip to content

Instantly share code, notes, and snippets.

@charusat09
Created February 13, 2020 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charusat09/d8ef3a1934d7c05b6fcd38aeb89a47a9 to your computer and use it in GitHub Desktop.
Save charusat09/d8ef3a1934d7c05b6fcd38aeb89a47a9 to your computer and use it in GitHub Desktop.
import json
import boto3
connect = boto3.client("connect")
def lambda_handler(event, context):
destinationNo = event['destinationNo']
response = connect.start_outbound_voice_contact(
DestinationPhoneNumber=destinationNo,
ContactFlowId="5bcb4f57-0d7a-4ff0-9147-34134b74efd2",
InstanceId="248dbcf5-5224-42be-9e2a-63b12139b9a6",
QueueId="1831f178-d535-4329-86bf-381116eb543f",
SourcePhoneNumber=SourcePhoneNumber,
Attributes={
'petName': 'Tom'
}
)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment