Skip to content

Put Events

eventbridge_put_events R Documentation

Sends custom events to Amazon EventBridge so that they can be matched to rules

Description

Sends custom events to Amazon EventBridge so that they can be matched to rules.

The maximum size for a PutEvents event entry is 256 KB. Entry size is calculated including the event and any necessary characters and keys of the JSON representation of the event. To learn more, see Calculating PutEvents event entry size in the Amazon EventBridge User Guide

PutEvents accepts the data in JSON format. For the JSON number (integer) data type, the constraints are: a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807.

PutEvents will only process nested JSON up to 1100 levels deep.

Usage

eventbridge_put_events(Entries, EndpointId)

Arguments

Entries

[required] The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.

EndpointId

The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo.

When using Java, you must include auth-crt on the class path.

Value

A list with the following syntax:

list(
  FailedEntryCount = 123,
  Entries = list(
    list(
      EventId = "string",
      ErrorCode = "string",
      ErrorMessage = "string"
    )
  )
)

Request syntax

svc$put_events(
  Entries = list(
    list(
      Time = as.POSIXct(
        "2015-01-01"
      ),
      Source = "string",
      Resources = list(
        "string"
      ),
      DetailType = "string",
      Detail = "string",
      EventBusName = "string",
      TraceHeader = "string"
    )
  ),
  EndpointId = "string"
)