diff --git a/samcli/commands/local/lib/generated_sample_events/event-mapping.json b/samcli/commands/local/lib/generated_sample_events/event-mapping.json index 829f54212a..b5c6ba4cba 100644 --- a/samcli/commands/local/lib/generated_sample_events/event-mapping.json +++ b/samcli/commands/local/lib/generated_sample_events/event-mapping.json @@ -478,6 +478,29 @@ } } }, + "connect": { + "contact-flow-event": { + "filename": "ConnectContactFlowEvent", + "help": "Generates an Amazon Connect Contact Flow Event", + "tags": { + "region": { + "default": "us-east-1" + }, + "partition": { + "default": "aws" + }, + "account-id": { + "default": "123456789012" + }, + "contact-id": { + "default": "5ca32fbd-8f92-46af-92a5-6b0f970f0efe" + }, + "phone-number": { + "default": "+11234567890" + } + } + } + }, "dynamodb": { "update": { "filename": "DynamoDBUpdate", diff --git a/samcli/commands/local/lib/generated_sample_events/events/connect/ConnectContactFlowEvent.json b/samcli/commands/local/lib/generated_sample_events/events/connect/ConnectContactFlowEvent.json new file mode 100644 index 0000000000..fba9d1825f --- /dev/null +++ b/samcli/commands/local/lib/generated_sample_events/events/connect/ConnectContactFlowEvent.json @@ -0,0 +1,33 @@ +{ + "Name": "ContactFlowEvent", + "Details": { + "ContactData": { + "Attributes": {}, + "Channel": "VOICE", + "ContactId": "{{{contact_id}}}", + "CustomerEndpoint": { + "Address": "{{{phone_number}}}", + "Type": "TELEPHONE_NUMBER" + }, + "InitialContactId": "{{{contact_id}}}", + "InitiationMethod": "API", + "InstanceARN": "arn:{{{partition}}}:connect:{{{region}}}:{{{account_id}}}:instance/9308c2a1-9bc6-4cea-8290-6c0b4a6d38fa", + "MediaStreams": { + "Customer": { + "Audio": { + "StartFragmentNumber": "91343852333181432392682062622220590765191907586", + "StartTimestamp": "1565781909613", + "StreamARN": "arn:{{{partition}}}:kinesisvideo:{{{region}}}:{{{account_id}}}:stream/connect-contact-a3d73b84-ce0e-479a-a9dc-5637c9d30ac9/1565272947806" + } + } + }, + "PreviousContactId": "{{{contact_id}}}", + "Queue": null, + "SystemEndpoint": { + "Address": "{{{phone_number}}}", + "Type": "TELEPHONE_NUMBER" + } + }, + "Parameters": {} + } +}