projects/GetSetDataByID/getsetdatabyid.yml [111:137]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          table = ddb.Table(tb_name)    
          
          def lambda_handler(event, context):
              print(event)

              now = int(time.time())
              try:   
                customer_id = event["Details"]["Parameters"] ["CustomerId"]
                key = {
                  "CustomerId": customer_id
                } 
                resp = table.get_item(
                    Key=key
                )

                if "Item" in resp:
                  data = resp["Item"]
                  data["CustomerStatus"] = "KNOWN"
                  return data
                else:
                  return {"CustomerStatus": "UNKNOWN"}
              except Exception as e:
                print(e)
                return {"CustomerStatus": "UNKNOWN"}

      Policies:
        - DynamoDBCrudPolicy: 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



projects/LastAgentRouting/lastagentrouting.yml [111:137]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          table = ddb.Table(tb_name)    
          
          def lambda_handler(event, context):
              print(event)

              now = int(time.time())
              try:   
                customer_id = event["Details"]["Parameters"] ["CustomerId"]
                key = {
                  "CustomerId": customer_id
                } 
                resp = table.get_item(
                    Key=key
                )

                if "Item" in resp:
                  data = resp["Item"]
                  data["CustomerStatus"] = "KNOWN"
                  return data
                else:
                  return {"CustomerStatus": "UNKNOWN"}
              except Exception as e:
                print(e)
                return {"CustomerStatus": "UNKNOWN"}

      Policies:
        - DynamoDBCrudPolicy: 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



