You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CloudTrail::Types::LookupEventsRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LookupEventsRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  lookup_attributes: [
    {
      attribute_key: "EventId", # required, accepts EventId, EventName, Username, ResourceType, ResourceName, EventSource
      attribute_value: "String", # required
    },
  ],
  start_time: Time.now,
  end_time: Time.now,
  max_results: 1,
  next_token: "NextToken",
}

Contains a request for LookupEvents.

Instance Attribute Summary collapse

Instance Attribute Details

#end_timeTime

Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.

Returns:

  • (Time)

    Specifies that only events that occur before or at the specified time are returned.

#lookup_attributesArray<Types::LookupAttribute>

Contains a list of lookup attributes. Currently the list can contain only one item.

Returns:

#max_resultsInteger

The number of events to return. Possible values are 1 through 50. The default is 10.

Returns:

  • (Integer)

    The number of events to return.

#next_tokenString

The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of \'Username\' with a value of \'root\', the call with NextToken should include those same parameters.

Returns:

  • (String)

    The token to use to get the next page of results after a previous API call.

#start_timeTime

Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.

Returns:

  • (Time)

    Specifies that only events that occur after or at the specified time are returned.