View Source ExAws.CloudTrail.ListLookupEvents (ex_aws_cloud_trail v2.0.3)

Provide a helper for users of library to list all events

A common use case for the CloudTrail library is to lookup events. The events may be paged (more than 50 results). This module allows a caller to gather all the events rather than handling paging themselves. The module uses Logger to output warnings if an error occurs in AWS API calls.

Example Usage

# Get all events on an EC2 instance
opts = [lookup_attributes: [attribute_key: "ResourceName", attribute_value: "i-12345678"]]
{:ok, events} = ListLookupEvents.list_lookup_events(opts, keys)

Summary

Functions

Return all CloudTrail events that match the opts criteria

Functions

Link to this function

list_lookup_events(opts, keys)

View Source

Return all CloudTrail events that match the opts criteria

Returns

  {:ok, [Event,...} on success or {:error, []} on failure