Tech, Cloud and Programming

AWS Links 2 Eventbridge

|

Today i saw a tweet from David Boyne announcing the book EventBridgeBook. I can't wait for it.

Events are getting more useful and powerful every day in Aws. Unfortunately the documentation lacks sometimes. The above book will help with the best practices and detailed informations. The following website with AWS lambda Events from Michael Brewer aims to collect lambda events.

It shows per Service the requests and responses for events.

Example for Amazon Connect

Request

{
  "Details": {
      "ContactData": {
          "Attributes": {},
          "Channel": "VOICE",
          "ContactId": "4a573372-1f28-4e26-b97b-XXXXXXXXXXX",
          "CustomerEndpoint": {
              "Address": "+1234567890",
              "Type": "TELEPHONE_NUMBER"
          },
          "InitialContactId": "4a573372-1f28-4e26-b97b-XXXXXXXXXXX",
          "InitiationMethod": "INBOUND | OUTBOUND | TRANSFER | CALLBACK",
          "InstanceARN": "arn:aws:connect:aws-region:1234567890:instance/c8c0e68d-2200-4265-82c0-XXXXXXXXXX",
          "PreviousContactId": "4a573372-1f28-4e26-b97b-XXXXXXXXXXX",
          "Queue": {
             "ARN": "arn:aws:connect:eu-west-2:111111111111:instance/cccccccc-bbbb-dddd-eeee-ffffffffffff/queue/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
             "Name": "PasswordReset"
           },
          "SystemEndpoint": {
              "Address": "+1234567890",
              "Type": "TELEPHONE_NUMBER"
          }
      },
      "Parameters": {
          "sentAttributeKey": "sentAttributeValue"
      }
  },
  "Name": "ContactFlowEvent"
}

Response

{
    "Name": "CustomerName",
    "Address": "1234 Main Road",
    "CallerType": "Patient"
}

Resources

  • Typescript - ConnectContactFlowEvent - NPM @types/aws-lambda
  • Java - ConnectEvent - Maven aws-lambda-java-events
  • Python - ConnectContactFlowEvent - pip aws-lambda-powertools