Paws::CloudTrail::LookupEvents - Arguments for method LookupEvents on Paws::CloudTrail
This class represents the parameters used for calling the method LookupEvents on the AWS CloudTrail service. Use the attributes of this class as arguments to method LookupEvents.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to LookupEvents.
my $cloudtrail = Paws->service('CloudTrail'); my $LookupEventsResponse = $cloudtrail->LookupEvents( EndTime => '1970-01-01T01:00:00', # OPTIONAL EventCategory => 'insight', # OPTIONAL LookupAttributes => [ { AttributeKey => 'EventId' , # values: EventId, EventName, ReadOnly, Username, ResourceType, ResourceName, EventSource, AccessKeyId AttributeValue => 'MyString', }, ... ], # OPTIONAL MaxResults => 1, # OPTIONAL NextToken => 'MyNextToken', # OPTIONAL StartTime => '1970-01-01T01:00:00', # OPTIONAL ); # Results: my $Events = $LookupEventsResponse->Events; my $NextToken = $LookupEventsResponse->NextToken; # Returns a L<Paws::CloudTrail::LookupEventsResponse> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/cloudtrail/LookupEvents
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.
Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight as the value of EventCategory, no Insights events are returned.
insight
EventCategory
Valid values are: "insight"
"insight"
Contains a list of lookup attributes. Currently the list can contain only one item.
The number of events to return. Possible values are 1 through 50. The default is 50.
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.
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.
This class forms part of Paws, documenting arguments for method LookupEvents in Paws::CloudTrail
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.