Skip to content

Put Event Configuration

cloudtrail_put_event_configuration R Documentation

Updates the event configuration settings for the specified event data store or trail

Description

Updates the event configuration settings for the specified event data store or trail. This operation supports updating the maximum event size, adding or modifying context key selectors for event data store, and configuring aggregation settings for the trail.

Usage

cloudtrail_put_event_configuration(TrailName, EventDataStore,
  MaxEventSize, ContextKeySelectors, AggregationConfigurations)

Arguments

TrailName

The name of the trail for which you want to update event configuration settings.

EventDataStore

The Amazon Resource Name (ARN) or ID suffix of the ARN of the event data store for which event configuration settings are updated.

MaxEventSize

The maximum allowed size for events to be stored in the specified event data store. If you are using context key selectors, MaxEventSize must be set to Large.

ContextKeySelectors

A list of context key selectors that will be included to provide enriched event data.

AggregationConfigurations

The list of aggregation configurations that you want to configure for the trail.

Value

A list with the following syntax:

list(
  TrailARN = "string",
  EventDataStoreArn = "string",
  MaxEventSize = "Standard"|"Large",
  ContextKeySelectors = list(
    list(
      Type = "TagContext"|"RequestContext",
      Equals = list(
        "string"
      )
    )
  ),
  AggregationConfigurations = list(
    list(
      Templates = list(
        "API_ACTIVITY"|"RESOURCE_ACCESS"|"USER_ACTIONS"
      ),
      EventCategory = "Data"
    )
  )
)

Request syntax

svc$put_event_configuration(
  TrailName = "string",
  EventDataStore = "string",
  MaxEventSize = "Standard"|"Large",
  ContextKeySelectors = list(
    list(
      Type = "TagContext"|"RequestContext",
      Equals = list(
        "string"
      )
    )
  ),
  AggregationConfigurations = list(
    list(
      Templates = list(
        "API_ACTIVITY"|"RESOURCE_ACCESS"|"USER_ACTIONS"
      ),
      EventCategory = "Data"
    )
  )
)