Created
February 13, 2020 11:30
-
-
Save charusat09/d8ef3a1934d7c05b6fcd38aeb89a47a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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