amazonka-cloudtrail-0.2.2: Amazon CloudTrail SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudTrail.CreateTrail

Contents

Description

From the command line, use 'create-subscription'.

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.

http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_CreateTrail.html

Synopsis

Request

Request constructor

Request lenses

ctCloudWatchLogsLogGroupArn :: Lens' CreateTrail (Maybe Text) Source

Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.

ctCloudWatchLogsRoleArn :: Lens' CreateTrail (Maybe Text) Source

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

ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool) Source

Specifies whether the trail is publishing events from global services such as IAM to the log files.

ctName :: Lens' CreateTrail Text Source

Specifies the name of the trail.

ctS3BucketName :: Lens' CreateTrail Text Source

Specifies the name of the Amazon S3 bucket designated for publishing log files.

ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text) Source

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

ctSnsTopicName :: Lens' CreateTrail (Maybe Text) Source

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.

Response

Response constructor

Response lenses

ctrCloudWatchLogsLogGroupArn :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

ctrCloudWatchLogsRoleArn :: Lens' CreateTrailResponse (Maybe Text) Source

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

ctrIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool) Source

Specifies whether the trail is publishing events from global services such as IAM to the log files.

ctrName :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the name of the trail.

ctrS3BucketName :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the name of the Amazon S3 bucket designated for publishing log files.

ctrS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the Amazon S3 key prefix that precedes the name of the bucket you have designated for log file delivery.

ctrSnsTopicName :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the name of the Amazon SNS topic defined for notification of log file delivery.