Python scripts with Lambda, get data from Dynamo DB
Budget: $25 – $50 USD
Scan table in DynamoDB, get phone list and substitution phone number into PhoneNumber in following scripts. make a phone call via AmazonConnect.
Amazon Connect part has done.
I need Lambda scripts.
tablename: phonelist
key: PhoneNumber
----------------------------------------------------------------------
import boto3
def lambda_handler(event, context):
client = boto3.client('connect', region_name='region')
alert = client.start_outbound_voice_contact(
DestinationPhoneNumber="PhoneNumber",
ContactFlowId="flow id",
InstanceId="instance id",
SourcePhoneNumber="my number"
)
----------------------------------------------------------------------
Amazon Connect part has done.
I need Lambda scripts.
tablename: phonelist
key: PhoneNumber
----------------------------------------------------------------------
import boto3
def lambda_handler(event, context):
client = boto3.client('connect', region_name='region')
alert = client.start_outbound_voice_contact(
DestinationPhoneNumber="PhoneNumber",
ContactFlowId="flow id",
InstanceId="instance id",
SourcePhoneNumber="my number"
)
----------------------------------------------------------------------