Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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.
See: AWS API Reference for CreateTrail.
- createTrail :: Text -> Text -> CreateTrail
- data CreateTrail
- ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text)
- ctSNSTopicName :: Lens' CreateTrail (Maybe Text)
- ctCloudWatchLogsLogGroupARN :: Lens' CreateTrail (Maybe Text)
- ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)
- ctCloudWatchLogsRoleARN :: Lens' CreateTrail (Maybe Text)
- ctName :: Lens' CreateTrail Text
- ctS3BucketName :: Lens' CreateTrail Text
- createTrailResponse :: Int -> CreateTrailResponse
- data CreateTrailResponse
- ctrsS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)
- ctrsSNSTopicName :: Lens' CreateTrailResponse (Maybe Text)
- ctrsCloudWatchLogsLogGroupARN :: Lens' CreateTrailResponse (Maybe Text)
- ctrsName :: Lens' CreateTrailResponse (Maybe Text)
- ctrsIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)
- ctrsCloudWatchLogsRoleARN :: Lens' CreateTrailResponse (Maybe Text)
- ctrsS3BucketName :: Lens' CreateTrailResponse (Maybe Text)
- ctrsResponseStatus :: Lens' CreateTrailResponse Int
Creating a Request
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:
data CreateTrail Source
Specifies the settings for each trail.
See: createTrail
smart constructor.
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
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.
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.
ctrsResponseStatus :: Lens' CreateTrailResponse Int Source
The response status code.