Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data CreateTrail
- createTrail :: Text -> Text -> CreateTrail
- ctCloudWatchLogsLogGroupArn :: Lens' CreateTrail (Maybe Text)
- ctCloudWatchLogsRoleArn :: Lens' CreateTrail (Maybe Text)
- ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)
- ctName :: Lens' CreateTrail Text
- ctS3BucketName :: Lens' CreateTrail Text
- ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text)
- ctSnsTopicName :: Lens' CreateTrail (Maybe Text)
- data CreateTrailResponse
- createTrailResponse :: CreateTrailResponse
- ctrCloudWatchLogsLogGroupArn :: Lens' CreateTrailResponse (Maybe Text)
- ctrCloudWatchLogsRoleArn :: Lens' CreateTrailResponse (Maybe Text)
- ctrIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)
- ctrName :: Lens' CreateTrailResponse (Maybe Text)
- ctrS3BucketName :: Lens' CreateTrailResponse (Maybe Text)
- ctrS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)
- ctrSnsTopicName :: Lens' CreateTrailResponse (Maybe Text)
Request
data CreateTrail Source
Request constructor
CreateTrail
constructor.
The fields accessible through corresponding lenses are:
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
createTrailResponse :: CreateTrailResponse Source
CreateTrailResponse
constructor.
The fields accessible through corresponding lenses are:
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.
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.