amazonka-cloudtrail-2.0: Amazon CloudTrail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudTrail.Types.Event

Description

 
Synopsis

Documentation

data Event Source #

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

See: newEvent smart constructor.

Constructors

Event' 

Fields

Instances

Instances details
FromJSON Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Generic Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

Read Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Show Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

NFData Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Methods

rnf :: Event -> () #

Eq Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Hashable Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

Methods

hashWithSalt :: Int -> Event -> Int #

hash :: Event -> Int #

type Rep Event Source # 
Instance details

Defined in Amazonka.CloudTrail.Types.Event

newEvent :: Event Source #

Create a value of Event with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accessKeyId:Event', event_accessKeyId - The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.

$sel:cloudTrailEvent:Event', event_cloudTrailEvent - A JSON string that contains a representation of the event returned.

$sel:eventId:Event', event_eventId - The CloudTrail ID of the event returned.

$sel:eventName:Event', event_eventName - The name of the event returned.

$sel:eventSource:Event', event_eventSource - The Amazon Web Services service to which the request was made.

$sel:eventTime:Event', event_eventTime - The date and time of the event returned.

$sel:readOnly:Event', event_readOnly - Information about whether the event is a write event or a read event.

$sel:resources:Event', event_resources - A list of resources referenced by the event returned.

$sel:username:Event', event_username - A user name or role name of the requester that called the API in the event returned.

event_accessKeyId :: Lens' Event (Maybe Text) Source #

The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.

event_cloudTrailEvent :: Lens' Event (Maybe Text) Source #

A JSON string that contains a representation of the event returned.

event_eventId :: Lens' Event (Maybe Text) Source #

The CloudTrail ID of the event returned.

event_eventName :: Lens' Event (Maybe Text) Source #

The name of the event returned.

event_eventSource :: Lens' Event (Maybe Text) Source #

The Amazon Web Services service to which the request was made.

event_eventTime :: Lens' Event (Maybe UTCTime) Source #

The date and time of the event returned.

event_readOnly :: Lens' Event (Maybe Text) Source #

Information about whether the event is a write event or a read event.

event_resources :: Lens' Event (Maybe [Resource]) Source #

A list of resources referenced by the event returned.

event_username :: Lens' Event (Maybe Text) Source #

A user name or role name of the requester that called the API in the event returned.