Skip to content

Instantly share code, notes, and snippets.

@anri-c
Created December 25, 2019 09:43
Show Gist options
  • Select an option

  • Save anri-c/448b26230fd70e4ff9fe1d533414c9b5 to your computer and use it in GitHub Desktop.

Select an option

Save anri-c/448b26230fd70e4ff9fe1d533414c9b5 to your computer and use it in GitHub Desktop.
import boto3
def lambda_handler(event, context):
connect = boto3.client("connect")
message = event['Records'][0]['Sns']['Message']
print(message)
connect.start_outbound_voice_contact(
DestinationPhoneNumber='+81xxxxxxxxxxxxxx',
ContactFlowId='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
InstanceId='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
SourcePhoneNumber='+81xxxxxxxxxxx',
Attributes={
'message': message
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment