Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CloudTrail
- data JSONError :: *
- data Event
- event :: Event
- eCloudTrailEvent :: Lens' Event (Maybe Text)
- eEventId :: Lens' Event (Maybe Text)
- eEventName :: Lens' Event (Maybe Text)
- eEventTime :: Lens' Event (Maybe UTCTime)
- eResources :: Lens' Event [Resource]
- eUsername :: Lens' Event (Maybe Text)
- data Trail
- trail :: Trail
- tCloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text)
- tCloudWatchLogsRoleArn :: Lens' Trail (Maybe Text)
- tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
- tName :: Lens' Trail (Maybe Text)
- tS3BucketName :: Lens' Trail (Maybe Text)
- tS3KeyPrefix :: Lens' Trail (Maybe Text)
- tSnsTopicName :: Lens' Trail (Maybe Text)
- data LookupAttribute
- lookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
- laAttributeKey :: Lens' LookupAttribute LookupAttributeKey
- laAttributeValue :: Lens' LookupAttribute Text
- data LookupAttributeKey
- data Resource
- resource :: Resource
- rResourceName :: Lens' Resource (Maybe Text)
- rResourceType :: Lens' Resource (Maybe Text)
Service
data CloudTrail Source
Version 2013-11-01
of the Amazon CloudTrail service.
AWSService CloudTrail | |
type Er CloudTrail = JSONError | |
type Sg CloudTrail = V4 |
Error
data JSONError :: *
Event
Event
constructor.
The fields accessible through corresponding lenses are:
eCloudTrailEvent
::
Maybe
Text
eEventId
::
Maybe
Text
eEventName
::
Maybe
Text
eEventTime
::
Maybe
UTCTime
eResources
::
[Resource
]eUsername
::
Maybe
Text
eCloudTrailEvent :: Lens' Event (Maybe Text) Source
A JSON string that contains a representation 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
Trail
constructor.
The fields accessible through corresponding lenses are:
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.
tS3BucketName :: Lens' Trail (Maybe Text) Source
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files.
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
data LookupAttribute Source
LookupAttribute
constructor.
The fields accessible through corresponding lenses are:
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
data LookupAttributeKey Source
EventId | EventId |
EventName | EventName |
ResourceName | ResourceName |
ResourceType | ResourceType |
Username | Username |
Resource
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.