Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_UpdateTrail.html
- data UpdateTrail
- updateTrail :: Text -> UpdateTrail
- utCloudWatchLogsLogGroupArn :: Lens' UpdateTrail (Maybe Text)
- utCloudWatchLogsRoleArn :: Lens' UpdateTrail (Maybe Text)
- utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool)
- utName :: Lens' UpdateTrail Text
- utS3BucketName :: Lens' UpdateTrail (Maybe Text)
- utS3KeyPrefix :: Lens' UpdateTrail (Maybe Text)
- utSnsTopicName :: Lens' UpdateTrail (Maybe Text)
- data UpdateTrailResponse
- updateTrailResponse :: UpdateTrailResponse
- utrCloudWatchLogsLogGroupArn :: Lens' UpdateTrailResponse (Maybe Text)
- utrCloudWatchLogsRoleArn :: Lens' UpdateTrailResponse (Maybe Text)
- utrIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool)
- utrName :: Lens' UpdateTrailResponse (Maybe Text)
- utrS3BucketName :: Lens' UpdateTrailResponse (Maybe Text)
- utrS3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text)
- utrSnsTopicName :: Lens' UpdateTrailResponse (Maybe Text)
Request
data UpdateTrail Source
Request constructor
:: Text | |
-> UpdateTrail |
UpdateTrail
constructor.
The fields accessible through corresponding lenses are:
Request lenses
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.
utCloudWatchLogsRoleArn :: Lens' UpdateTrail (Maybe Text) Source
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.
utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool) Source
Specifies whether the trail is publishing events from global services such as IAM to the log files.
utName :: Lens' UpdateTrail Text Source
Specifies the name of the trail.
utS3BucketName :: Lens' UpdateTrail (Maybe Text) Source
Specifies the name of the Amazon S3 bucket designated for publishing log files.
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.
Response
Response constructor
updateTrailResponse :: UpdateTrailResponse Source
UpdateTrailResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
utrCloudWatchLogsLogGroupArn :: Lens' UpdateTrailResponse (Maybe Text) Source
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
utrCloudWatchLogsRoleArn :: Lens' UpdateTrailResponse (Maybe Text) Source
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user’s log group.
utrIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool) Source
Specifies whether the trail is publishing events from global services such as IAM to the log files.
utrS3BucketName :: Lens' UpdateTrailResponse (Maybe Text) Source
Specifies the name of the Amazon S3 bucket designated for publishing log files.
utrS3KeyPrefix :: 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.
utrSnsTopicName :: Lens' UpdateTrailResponse (Maybe Text) Source
Specifies the name of the Amazon SNS topic defined for notification of log file delivery.