// Looks up management events
// (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events)
// or CloudTrail Insights events
// (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events)
// that are captured by CloudTrail. You can look up events that occurred in a
// region within the last 90 days. Lookup supports the following attributes for
// management events:
//
// * AWS access key
//
// * Event ID
//
// * Event name
//
// * Event
// source
//
// * Read only
//
// * Resource name
//
// * Resource type
//
// * User name
//
// Lookup
// supports the following attributes for Insights events:
//
// * Event ID
//
// * Event
// name
//
// * Event source
//
// All attributes are optional. The default number of results
// returned is 50, with a maximum of 50 possible. The response includes a token
// that you can use to get the next page of results. The rate of lookup requests is
// limited to two per second per account. If this limit is exceeded, a throttling
// error occurs.
Looks up management events

or CloudTrail Insights events

that are captured by CloudTrail. You can look up events that occurred in a
region within the last 90 days. Lookup supports the following attributes for
management events.

AWS access key

Event ID

Event name

Event
source

Read only

Resource name

Resource type

User name

Lookup
supports the following attributes for Insights events.

Event ID

Event
name

Event source

All attributes are optional. The default number of results
returned is 50, with a maximum of 50 possible. The response includes a token
that you can use to get the next page of results. The rate of lookup requests is
limited to two per second per account. If this limit is exceeded, a throttling
error occurs.
// Looks up management events // ( https : // docs . aws . amazon . com / awscloudtrail / latest / userguide / cloudtrail - concepts . html#cloudtrail - concepts - management - events ) // or CloudTrail Insights events // ( https : // docs . aws . amazon . com / awscloudtrail / latest / userguide / cloudtrail - concepts . html#cloudtrail - concepts - insights - events ) // that are captured by CloudTrail . You can look up events that occurred in a // region within the last 90 days . Lookup supports the following attributes for // management events : // // * AWS access key // // * Event ID // // * Event name // // * Event // source // // * Read only // // * Resource name // // * Resource type // // * User name // // Lookup // supports the following attributes for Insights events : // // * Event ID // // * Event // name // // * Event source // // All attributes are optional . The default number of results // returned is 50 with a maximum of 50 possible . The response includes a token // that you can use to get the next page of results . The rate of lookup requests is // limited to two per second per account . If this limit is exceeded a throttling // error occurs .
func (c *Client) LookupEvents(ctx context.Context, params *LookupEventsInput, optFns ...func(*Options)) (*LookupEventsOutput, error) {
	if params == nil {
		params = &LookupEventsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "LookupEvents", params, optFns, addOperationLookupEventsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*LookupEventsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) LookupEvents ( ctx context . Context , params * LookupEventsInput , optFns ... func ( * Options ) ) ( * LookupEventsOutput , error ) { if params == nil { params = & LookupEventsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationLookupEventsMiddlewares ) if err != nil { return nil , err } out := result . ( * LookupEventsOutput ) out . ResultMetadata = metadata return out , nil }
Looks up management events
Looks up management events