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.UpdateTrail

Contents

Description

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

Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket.

See: AWS API Reference for UpdateTrail.

Synopsis

Creating a Request

updateTrail Source

Arguments

:: Text

utName

-> UpdateTrail 

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

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

Request Lenses

utS3KeyPrefix :: Lens' UpdateTrail (Maybe Text) Source

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

utSNSTopicName :: Lens' UpdateTrail (Maybe Text) Source

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

utCloudWatchLogsLogGroupARN :: Lens' UpdateTrail (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.

utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool) Source

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

utCloudWatchLogsRoleARN :: Lens' UpdateTrail (Maybe Text) Source

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

utS3BucketName :: Lens' UpdateTrail (Maybe Text) Source

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

utName :: Lens' UpdateTrail Text Source

Specifies the name of the trail.

Destructuring the Response

updateTrailResponse Source

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

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

data UpdateTrailResponse Source

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

See: updateTrailResponse smart constructor.

Response Lenses

utrsS3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text) Source

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

utrsSNSTopicName :: Lens' UpdateTrailResponse (Maybe Text) Source

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

utrsCloudWatchLogsLogGroupARN :: Lens' UpdateTrailResponse (Maybe Text) Source

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

utrsName :: Lens' UpdateTrailResponse (Maybe Text) Source

Specifies the name of the trail.

utrsIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool) Source

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

utrsCloudWatchLogsRoleARN :: Lens' UpdateTrailResponse (Maybe Text) Source

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

utrsS3BucketName :: Lens' UpdateTrailResponse (Maybe Text) Source

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

utrsStatus :: Lens' UpdateTrailResponse Int Source

The response status code.