amazonka-cloudtrail-0.3.3: Amazon CloudTrail SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudTrail.Types

Contents

Synopsis

Service

data CloudTrail Source

Version 2013-11-01 of the Amazon CloudTrail service.

Error

data JSONError :: *

Instances

Eq JSONError 
Show JSONError 
Generic JSONError 
FromJSON JSONError 
AWSErrorCode JSONError 
type Rep JSONError = D1 D1JSONError (C1 C1_0JSONError ((:*:) (S1 S1_0_0JSONError (Rec0 (Maybe Text))) ((:*:) (S1 S1_0_1JSONError (Rec0 ErrorCode)) (S1 S1_0_2JSONError (Rec0 Text))))) 

Event

event :: Event Source

Event constructor.

The fields accessible through corresponding lenses are:

eCloudTrailEvent :: Lens' Event (Maybe Text) Source

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

eEventId :: Lens' Event (Maybe Text) Source

The CloudTrail ID of the event returned.

eEventName :: Lens' Event (Maybe Text) Source

The name of the event returned.

eEventTime :: Lens' Event (Maybe UTCTime) Source

The date and time of the event returned.

eResources :: Lens' Event [Resource] Source

A list of resources referenced by the event returned.

eUsername :: Lens' Event (Maybe Text) Source

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

Trail

tCloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text) Source

Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

tCloudWatchLogsRoleArn :: Lens' Trail (Maybe Text) Source

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.

tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool) Source

Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.

tName :: Lens' Trail (Maybe Text) Source

Name of the trail set by calling CreateTrail.

tS3BucketName :: Lens' Trail (Maybe Text) Source

Name of the Amazon S3 bucket into which CloudTrail delivers your trail files.

tS3KeyPrefix :: Lens' Trail (Maybe Text) Source

Value of the Amazon S3 prefix.

tSnsTopicName :: Lens' Trail (Maybe Text) Source

Name of the existing Amazon SNS topic that CloudTrail uses to notify the account owner when new CloudTrail log files have been delivered.

LookupAttribute

laAttributeKey :: Lens' LookupAttribute LookupAttributeKey Source

Specifies an attribute on which to filter the events returned.

laAttributeValue :: Lens' LookupAttribute Text Source

Specifies a value for the specified AttributeKey.

LookupAttributeKey

Resource

resource :: Resource Source

Resource constructor.

The fields accessible through corresponding lenses are:

rResourceName :: Lens' Resource (Maybe Text) Source

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.

rResourceType :: Lens' Resource (Maybe Text) Source

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.