Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1 KB

CreateFileTarget.md

File metadata and controls

51 lines (43 loc) · 1 KB

Create EventBus

POST /bus/createEventBus HTTP/1.1
Host: demo.eventbridge.com
Content-Type: application/json; charset=utf-8
{
"eventBusName":"demo-bus",
"description":"a demo bus."
}

Create EventRule

POST /rule/createEventRule HTTP/1.1
Host: demo.eventbridge.com
Content-Type: application/json; charset=utf-8
{
  "eventBusName":"demo-bus",
  "eventRuleName":"demo-rule",
  "description":"A demo rule.",
  "filterPattern":"{}"
}

Create Target

This is a sample with EventBridge target:

POST /target/createEventTargets HTTP/1.1
Host: demo.eventbridge.com
Content-Type: application/json; charset=utf-8
{
    "eventBusName":"demo-bus",
    "eventRuleName":"demo-rule",
    "eventTargets":[
            {
            "eventTargetName":"demo-target",
            "className":"acs.eventbridge",
                "config":{
                "fileName":"~/demo",
                "line":"{    \"form\":\"JSONPATH\",    \"value\":\"$.data\"}"
                }
            }
        ]
}