packages feed

amazonka-cloudtrail 0.0.1 → 0.0.2

raw patch · 9 files changed

+92/−88 lines, 9 filesdep ~amazonka-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-core

API changes (from Hackage documentation)

Files

README.md view
@@ -8,7 +8,11 @@  ## Description -CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.+    CloudTrail is a web service that records AWS API calls for your AWS account+    and delivers log files to an Amazon S3 bucket. The recorded information+    includes the identity of the user, the start time of the AWS API call, the+    source IP address, the request parameters, and the response elements returned+    by the service.  Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-cloudtrail) and [AWS API Reference](http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/Welcome.html).
amazonka-cloudtrail.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-cloudtrail-version:               0.0.1+version:               0.0.2 synopsis:              Amazon CloudTrail SDK. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense@@ -13,11 +13,11 @@ cabal-version:         >= 1.10  description:-    CloudTrail is a web service that records AWS API calls for your AWS-    account and delivers log files to an Amazon S3 bucket. The recorded-    information includes the identity of the user, the start time of the-    AWS API call, the source IP address, the request parameters, and the-    response elements returned by the service.+    CloudTrail is a web service that records AWS API calls for your AWS account+    and delivers log files to an Amazon S3 bucket. The recorded information+    includes the identity of the user, the start time of the AWS API call, the+    source IP address, the request parameters, and the response elements returned+    by the service.     .     /See:/ <http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/Welcome.html AWS API Reference>     .@@ -48,5 +48,5 @@     other-modules:      build-depends:-          amazonka-core == 0.0.1.*+          amazonka-core == 0.0.2.*         , base          >= 4.7     && < 5
gen/Network/AWS/CloudTrail.hs view
@@ -11,8 +11,8 @@ -- | CloudTrail is a web service that records AWS API calls for your AWS account -- and delivers log files to an Amazon S3 bucket. The recorded information -- includes the identity of the user, the start time of the AWS API call, the--- source IP address, the request parameters, and the response elements--- returned by the service.+-- source IP address, the request parameters, and the response elements returned+-- by the service. module Network.AWS.CloudTrail     ( module Network.AWS.CloudTrail.CreateTrail     , module Network.AWS.CloudTrail.DeleteTrail
gen/Network/AWS/CloudTrail/CreateTrail.hs view
@@ -20,9 +20,11 @@ -- Stability   : experimental -- Portability : non-portable (GHC extensions) --- | From the command line, use create-subscription. Creates a trail that--- specifies the settings for delivery of log data to an Amazon S3 bucket.+-- | 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> module Network.AWS.CloudTrail.CreateTrail     (@@ -107,14 +109,14 @@     lens _ctCloudWatchLogsLogGroupArn         (\s a -> s { _ctCloudWatchLogsLogGroupArn = a }) --- | Specifies the role for the CloudWatch Logs endpoint to assume to write to--- a user’s log group.+-- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a+-- user’s log group. ctCloudWatchLogsRoleArn :: Lens' CreateTrail (Maybe Text) ctCloudWatchLogsRoleArn =     lens _ctCloudWatchLogsRoleArn (\s a -> s { _ctCloudWatchLogsRoleArn = a }) --- | Specifies whether the trail is publishing events from global services--- such as IAM to the log files.+-- | Specifies whether the trail is publishing events from global services such as+-- IAM to the log files. ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool) ctIncludeGlobalServiceEvents =     lens _ctIncludeGlobalServiceEvents@@ -129,13 +131,13 @@ ctS3BucketName :: Lens' CreateTrail Text ctS3BucketName = lens _ctS3BucketName (\s a -> s { _ctS3BucketName = a }) --- | Specifies the Amazon S3 key prefix that precedes the name of the bucket--- you have designated for log file delivery.+-- | Specifies the Amazon S3 key prefix that precedes the name of the bucket you+-- have designated for log file delivery. ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text) ctS3KeyPrefix = lens _ctS3KeyPrefix (\s a -> s { _ctS3KeyPrefix = a }) --- | Specifies the name of the Amazon SNS topic defined for notification of--- log file delivery.+-- | Specifies the name of the Amazon SNS topic defined for notification of log+-- file delivery. ctSnsTopicName :: Lens' CreateTrail (Maybe Text) ctSnsTopicName = lens _ctSnsTopicName (\s a -> s { _ctSnsTopicName = a }) @@ -178,22 +180,22 @@     , _ctrCloudWatchLogsRoleArn      = Nothing     } --- | Specifies the Amazon Resource Name (ARN) of the log group to which--- CloudTrail logs will be delivered.+-- | Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail+-- logs will be delivered. ctrCloudWatchLogsLogGroupArn :: Lens' CreateTrailResponse (Maybe Text) ctrCloudWatchLogsLogGroupArn =     lens _ctrCloudWatchLogsLogGroupArn         (\s a -> s { _ctrCloudWatchLogsLogGroupArn = a }) --- | Specifies the role for the CloudWatch Logs endpoint to assume to write to--- a user’s log group.+-- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a+-- user’s log group. ctrCloudWatchLogsRoleArn :: Lens' CreateTrailResponse (Maybe Text) ctrCloudWatchLogsRoleArn =     lens _ctrCloudWatchLogsRoleArn         (\s a -> s { _ctrCloudWatchLogsRoleArn = a }) --- | Specifies whether the trail is publishing events from global services--- such as IAM to the log files.+-- | Specifies whether the trail is publishing events from global services such as+-- IAM to the log files. ctrIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool) ctrIncludeGlobalServiceEvents =     lens _ctrIncludeGlobalServiceEvents@@ -208,13 +210,13 @@ ctrS3BucketName :: Lens' CreateTrailResponse (Maybe Text) ctrS3BucketName = lens _ctrS3BucketName (\s a -> s { _ctrS3BucketName = a }) --- | Specifies the Amazon S3 key prefix that precedes the name of the bucket--- you have designated for log file delivery.+-- | Specifies the Amazon S3 key prefix that precedes the name of the bucket you+-- have designated for log file delivery. ctrS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text) ctrS3KeyPrefix = lens _ctrS3KeyPrefix (\s a -> s { _ctrS3KeyPrefix = a }) --- | Specifies the name of the Amazon SNS topic defined for notification of--- log file delivery.+-- | Specifies the name of the Amazon SNS topic defined for notification of log+-- file delivery. ctrSnsTopicName :: Lens' CreateTrailResponse (Maybe Text) ctrSnsTopicName = lens _ctrSnsTopicName (\s a -> s { _ctrSnsTopicName = a }) 
gen/Network/AWS/CloudTrail/DescribeTrails.hs view
@@ -20,8 +20,8 @@ -- Stability   : experimental -- Portability : non-portable (GHC extensions) --- | Retrieves settings for the trail associated with the current region for--- your account.+-- | Retrieves settings for the trail associated with the current region for your+-- account. -- -- <http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_DescribeTrails.html> module Network.AWS.CloudTrail.DescribeTrails
gen/Network/AWS/CloudTrail/GetTrailStatus.hs view
@@ -78,13 +78,13 @@ data GetTrailStatusResponse = GetTrailStatusResponse     { _gtsrIsLogging                         :: Maybe Bool     , _gtsrLatestCloudWatchLogsDeliveryError :: Maybe Text-    , _gtsrLatestCloudWatchLogsDeliveryTime  :: Maybe RFC822+    , _gtsrLatestCloudWatchLogsDeliveryTime  :: Maybe ISO8601     , _gtsrLatestDeliveryError               :: Maybe Text-    , _gtsrLatestDeliveryTime                :: Maybe RFC822+    , _gtsrLatestDeliveryTime                :: Maybe ISO8601     , _gtsrLatestNotificationError           :: Maybe Text-    , _gtsrLatestNotificationTime            :: Maybe RFC822-    , _gtsrStartLoggingTime                  :: Maybe RFC822-    , _gtsrStopLoggingTime                   :: Maybe RFC822+    , _gtsrLatestNotificationTime            :: Maybe ISO8601+    , _gtsrStartLoggingTime                  :: Maybe ISO8601+    , _gtsrStopLoggingTime                   :: Maybe ISO8601     } deriving (Eq, Ord, Show)  -- | 'GetTrailStatusResponse' constructor.@@ -141,46 +141,44 @@         (\s a -> s { _gtsrLatestCloudWatchLogsDeliveryTime = a })             . mapping _Time --- | Displays any Amazon S3 error that CloudTrail encountered when attempting--- to deliver log files to the designated bucket. For more information see--- the topic Error Responses in the Amazon S3 API Reference.+-- | Displays any Amazon S3 error that CloudTrail encountered when attempting to+-- deliver log files to the designated bucket. For more information see the+-- topic <http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses> in the Amazon S3 API Reference. gtsrLatestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text) gtsrLatestDeliveryError =     lens _gtsrLatestDeliveryError (\s a -> s { _gtsrLatestDeliveryError = a }) --- | Specifies the date and time that CloudTrail last delivered log files to--- an account's Amazon S3 bucket.+-- | Specifies the date and time that CloudTrail last delivered log files to an+-- account's Amazon S3 bucket. gtsrLatestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrLatestDeliveryTime =     lens _gtsrLatestDeliveryTime (\s a -> s { _gtsrLatestDeliveryTime = a })         . mapping _Time --- | Displays any Amazon SNS error that CloudTrail encountered when attempting--- to send a notification. For more information about Amazon SNS errors, see--- the Amazon SNS Developer Guide.+-- | Displays any Amazon SNS error that CloudTrail encountered when attempting to+-- send a notification. For more information about Amazon SNS errors, see the <http://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide>. gtsrLatestNotificationError :: Lens' GetTrailStatusResponse (Maybe Text) gtsrLatestNotificationError =     lens _gtsrLatestNotificationError         (\s a -> s { _gtsrLatestNotificationError = a }) --- | Specifies the date and time of the most recent Amazon SNS notification--- that CloudTrail has written a new log file to an account's Amazon S3--- bucket.+-- | Specifies the date and time of the most recent Amazon SNS notification that+-- CloudTrail has written a new log file to an account's Amazon S3 bucket. gtsrLatestNotificationTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrLatestNotificationTime =     lens _gtsrLatestNotificationTime         (\s a -> s { _gtsrLatestNotificationTime = a })             . mapping _Time --- | Specifies the most recent date and time when CloudTrail started recording--- API calls for an AWS account.+-- | Specifies the most recent date and time when CloudTrail started recording API+-- calls for an AWS account. gtsrStartLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrStartLoggingTime =     lens _gtsrStartLoggingTime (\s a -> s { _gtsrStartLoggingTime = a })         . mapping _Time --- | Specifies the most recent date and time when CloudTrail stopped recording--- API calls for an AWS account.+-- | Specifies the most recent date and time when CloudTrail stopped recording API+-- calls for an AWS account. gtsrStopLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrStopLoggingTime =     lens _gtsrStopLoggingTime (\s a -> s { _gtsrStopLoggingTime = a })
gen/Network/AWS/CloudTrail/StopLogging.hs view
@@ -22,8 +22,8 @@  -- | Suspends the recording of AWS API calls and log file delivery for the -- specified trail. Under most circumstances, there is no need to use this--- action. You can update a trail without stopping it first. This action is--- the only way to stop recording.+-- action. You can update a trail without stopping it first. This action is the+-- only way to stop recording. -- -- <http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html> module Network.AWS.CloudTrail.StopLogging@@ -62,8 +62,8 @@     { _slName = p1     } --- | Communicates to CloudTrail the name of the trail for which to stop--- logging AWS API calls.+-- | Communicates to CloudTrail the name of the trail for which to stop logging+-- AWS API calls. slName :: Lens' StopLogging Text slName = lens _slName (\s a -> s { _slName = a }) 
gen/Network/AWS/CloudTrail/Types.hs view
@@ -102,32 +102,31 @@     , _tCloudWatchLogsRoleArn      = Nothing     } --- | Specifies an Amazon Resource Name (ARN), a unique identifier that--- represents the log group to which CloudTrail logs will be delivered.+-- | Specifies an Amazon Resource Name (ARN), a unique identifier that represents+-- the log group to which CloudTrail logs will be delivered. tCloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text) tCloudWatchLogsLogGroupArn =     lens _tCloudWatchLogsLogGroupArn         (\s a -> s { _tCloudWatchLogsLogGroupArn = a }) --- | Specifies the role for the CloudWatch Logs endpoint to assume to write to--- a user’s log group.+-- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a+-- user’s log group. tCloudWatchLogsRoleArn :: Lens' Trail (Maybe Text) tCloudWatchLogsRoleArn =     lens _tCloudWatchLogsRoleArn (\s a -> s { _tCloudWatchLogsRoleArn = a }) --- | Set to True to include AWS API calls from AWS global services such as--- IAM. Otherwise, False.+-- | Set to True to include AWS API calls from AWS global services such as IAM.+-- Otherwise, False. tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool) tIncludeGlobalServiceEvents =     lens _tIncludeGlobalServiceEvents         (\s a -> s { _tIncludeGlobalServiceEvents = a }) --- | Name of the trail set by calling CreateTrail.+-- | Name of the trail set by calling 'CreateTrail'. tName :: Lens' Trail (Maybe Text) tName = lens _tName (\s a -> s { _tName = a }) --- | Name of the Amazon S3 bucket into which CloudTrail delivers your trail--- files.+-- | Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. tS3BucketName :: Lens' Trail (Maybe Text) tS3BucketName = lens _tS3BucketName (\s a -> s { _tS3BucketName = a }) 
gen/Network/AWS/CloudTrail/UpdateTrail.hs view
@@ -20,12 +20,13 @@ -- Stability   : experimental -- Portability : non-portable (GHC extensions) --- | 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.+-- | 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> module Network.AWS.CloudTrail.UpdateTrail     (@@ -109,14 +110,14 @@     lens _utCloudWatchLogsLogGroupArn         (\s a -> s { _utCloudWatchLogsLogGroupArn = a }) --- | Specifies the role for the CloudWatch Logs endpoint to assume to write to--- a user’s log group.+-- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a+-- user’s log group. utCloudWatchLogsRoleArn :: Lens' UpdateTrail (Maybe Text) utCloudWatchLogsRoleArn =     lens _utCloudWatchLogsRoleArn (\s a -> s { _utCloudWatchLogsRoleArn = a }) --- | Specifies whether the trail is publishing events from global services--- such as IAM to the log files.+-- | Specifies whether the trail is publishing events from global services such as+-- IAM to the log files. utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool) utIncludeGlobalServiceEvents =     lens _utIncludeGlobalServiceEvents@@ -131,13 +132,13 @@ utS3BucketName :: Lens' UpdateTrail (Maybe Text) utS3BucketName = lens _utS3BucketName (\s a -> s { _utS3BucketName = a }) --- | Specifies the Amazon S3 key prefix that precedes the name of the bucket--- you have designated for log file delivery.+-- | Specifies the Amazon S3 key prefix that precedes the name of the bucket you+-- have designated for log file delivery. utS3KeyPrefix :: Lens' UpdateTrail (Maybe Text) utS3KeyPrefix = lens _utS3KeyPrefix (\s a -> s { _utS3KeyPrefix = a }) --- | Specifies the name of the Amazon SNS topic defined for notification of--- log file delivery.+-- | Specifies the name of the Amazon SNS topic defined for notification of log+-- file delivery. utSnsTopicName :: Lens' UpdateTrail (Maybe Text) utSnsTopicName = lens _utSnsTopicName (\s a -> s { _utSnsTopicName = a }) @@ -180,22 +181,22 @@     , _utrCloudWatchLogsRoleArn      = Nothing     } --- | Specifies the Amazon Resource Name (ARN) of the log group to which--- CloudTrail logs will be delivered.+-- | Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail+-- logs will be delivered. utrCloudWatchLogsLogGroupArn :: Lens' UpdateTrailResponse (Maybe Text) utrCloudWatchLogsLogGroupArn =     lens _utrCloudWatchLogsLogGroupArn         (\s a -> s { _utrCloudWatchLogsLogGroupArn = a }) --- | Specifies the role for the CloudWatch Logs endpoint to assume to write to--- a user’s log group.+-- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a+-- user’s log group. utrCloudWatchLogsRoleArn :: Lens' UpdateTrailResponse (Maybe Text) utrCloudWatchLogsRoleArn =     lens _utrCloudWatchLogsRoleArn         (\s a -> s { _utrCloudWatchLogsRoleArn = a }) --- | Specifies whether the trail is publishing events from global services--- such as IAM to the log files.+-- | Specifies whether the trail is publishing events from global services such as+-- IAM to the log files. utrIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool) utrIncludeGlobalServiceEvents =     lens _utrIncludeGlobalServiceEvents@@ -210,13 +211,13 @@ utrS3BucketName :: Lens' UpdateTrailResponse (Maybe Text) utrS3BucketName = lens _utrS3BucketName (\s a -> s { _utrS3BucketName = a }) --- | Specifies the Amazon S3 key prefix that precedes the name of the bucket--- you have designated for log file delivery.+-- | Specifies the Amazon S3 key prefix that precedes the name of the bucket you+-- have designated for log file delivery. utrS3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text) utrS3KeyPrefix = lens _utrS3KeyPrefix (\s a -> s { _utrS3KeyPrefix = a }) --- | Specifies the name of the Amazon SNS topic defined for notification of--- log file delivery.+-- | Specifies the name of the Amazon SNS topic defined for notification of log+-- file delivery. utrSnsTopicName :: Lens' UpdateTrailResponse (Maybe Text) utrSnsTopicName = lens _utrSnsTopicName (\s a -> s { _utrSnsTopicName = a })