amazonka-cloudtrail-1.0.1: Amazon CloudTrail SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

See: AWS API Reference for CreateTrail.

Synopsis

Creating a Request

createTrail Source

Creates a value of CreateTrail with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

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.

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.

ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool) Source

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

ctCloudWatchLogsRoleARN :: Lens' CreateTrail (Maybe Text) Source

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

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.

Destructuring the Response

createTrailResponse Source

Creates a value of CreateTrailResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateTrailResponse Source

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: createTrailResponse smart constructor.

Response Lenses

ctrsS3KeyPrefix :: 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.

ctrsSNSTopicName :: Lens' CreateTrailResponse (Maybe Text) Source

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

ctrsCloudWatchLogsLogGroupARN :: Lens' CreateTrailResponse (Maybe Text) Source

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

ctrsName :: Lens' CreateTrailResponse (Maybe Text) Source

Specifies the name of the trail.

ctrsIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool) Source

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

ctrsCloudWatchLogsRoleARN :: Lens' CreateTrailResponse (Maybe Text) Source

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

ctrsS3BucketName :: Lens' CreateTrailResponse (Maybe Text) Source

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

ctrsStatus :: Lens' CreateTrailResponse Int Source

The response status code.