Class: Aws::CloudTrail::Types::LookupEventsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudTrail::Types::LookupEventsRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudtrail/types.rb
Overview
When making an API call, you may pass LookupEventsRequest data as a hash:
{
lookup_attributes: [
{
attribute_key: "EventId", # required, accepts EventId, EventName, ReadOnly, Username, ResourceType, ResourceName, EventSource, AccessKeyId
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
-
#end_time ⇒ Time
Specifies that only events that occur before or at the specified time are returned.
-
#lookup_attributes ⇒ Array<Types::LookupAttribute>
Contains a list of lookup attributes.
-
#max_results ⇒ Integer
The number of events to return.
-
#next_token ⇒ String
The token to use to get the next page of results after a previous API call.
-
#start_time ⇒ Time
Specifies that only events that occur after or at the specified time are returned.
Instance Attribute Details
#end_time ⇒ Time
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.
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1019 class LookupEventsRequest < Struct.new( :lookup_attributes, :start_time, :end_time, :max_results, :next_token) include Aws::Structure end |
#lookup_attributes ⇒ Array<Types::LookupAttribute>
Contains a list of lookup attributes. Currently the list can contain only one item.
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1019 class LookupEventsRequest < Struct.new( :lookup_attributes, :start_time, :end_time, :max_results, :next_token) include Aws::Structure end |
#max_results ⇒ Integer
The number of events to return. Possible values are 1 through 50. The default is 50.
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1019 class LookupEventsRequest < Struct.new( :lookup_attributes, :start_time, :end_time, :max_results, :next_token) include Aws::Structure end |
#next_token ⇒ String
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.
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1019 class LookupEventsRequest < Struct.new( :lookup_attributes, :start_time, :end_time, :max_results, :next_token) include Aws::Structure end |
#start_time ⇒ Time
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.
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1019 class LookupEventsRequest < Struct.new( :lookup_attributes, :start_time, :end_time, :max_results, :next_token) include Aws::Structure end |