HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/events/put-events.rst
**To send a custom event to CloudWatch Events**

This example sends a custom event to CloudWatch Events. The event is contained within the putevents.json file::

  aws events put-events --entries file://putevents.json            

Here are the contents of the putevents.json file::

  [
    {
      "Source": "com.mycompany.myapp",
      "Detail": "{ \"key1\": \"value1\", \"key2\": \"value2\" }",
      "Resources": [
        "resource1",
        "resource2"
      ],
      "DetailType": "myDetailType"
    },
    {
      "Source": "com.mycompany.myapp",
      "Detail": "{ \"key1\": \"value3\", \"key2\": \"value4\" }",
      "Resources": [
        "resource1",
        "resource2"
      ],
      "DetailType": "myDetailType"
     }
  ]