packages feed

amazonka-cloudwatch-logs 1.4.4 → 1.4.5

raw patch · 30 files changed

+593/−468 lines, 30 filesdep ~amazonka-cloudwatch-logsdep ~amazonka-coredep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-cloudwatch-logs, amazonka-core, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.CloudWatchLogs.CancelExportTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.CancelExportTask.CancelExportTask
- Network.AWS.CloudWatchLogs.CreateExportTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.CreateExportTask.CreateExportTask
- Network.AWS.CloudWatchLogs.CreateLogGroup: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.CreateLogGroup.CreateLogGroup
- Network.AWS.CloudWatchLogs.CreateLogStream: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.CreateLogStream.CreateLogStream
- Network.AWS.CloudWatchLogs.DeleteDestination: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteDestination.DeleteDestination
- Network.AWS.CloudWatchLogs.DeleteLogGroup: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteLogGroup.DeleteLogGroup
- Network.AWS.CloudWatchLogs.DeleteLogStream: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteLogStream.DeleteLogStream
- Network.AWS.CloudWatchLogs.DeleteMetricFilter: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteMetricFilter.DeleteMetricFilter
- Network.AWS.CloudWatchLogs.DeleteRetentionPolicy: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteRetentionPolicy.DeleteRetentionPolicy
- Network.AWS.CloudWatchLogs.DeleteSubscriptionFilter: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DeleteSubscriptionFilter.DeleteSubscriptionFilter
- Network.AWS.CloudWatchLogs.DescribeDestinations: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeDestinations.DescribeDestinations
- Network.AWS.CloudWatchLogs.DescribeExportTasks: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeExportTasks.DescribeExportTasks
- Network.AWS.CloudWatchLogs.DescribeLogGroups: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeLogGroups.DescribeLogGroups
- Network.AWS.CloudWatchLogs.DescribeLogStreams: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeLogStreams.DescribeLogStreams
- Network.AWS.CloudWatchLogs.DescribeMetricFilters: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeMetricFilters.DescribeMetricFilters
- Network.AWS.CloudWatchLogs.DescribeSubscriptionFilters: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.DescribeSubscriptionFilters.DescribeSubscriptionFilters
- Network.AWS.CloudWatchLogs.FilterLogEvents: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.FilterLogEvents.FilterLogEvents
- Network.AWS.CloudWatchLogs.GetLogEvents: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.GetLogEvents.GetLogEvents
- Network.AWS.CloudWatchLogs.PutDestination: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutDestination.PutDestination
- Network.AWS.CloudWatchLogs.PutDestinationPolicy: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutDestinationPolicy.PutDestinationPolicy
- Network.AWS.CloudWatchLogs.PutLogEvents: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutLogEvents.PutLogEvents
- Network.AWS.CloudWatchLogs.PutMetricFilter: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutMetricFilter.PutMetricFilter
- Network.AWS.CloudWatchLogs.PutRetentionPolicy: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutRetentionPolicy.PutRetentionPolicy
- Network.AWS.CloudWatchLogs.PutSubscriptionFilter: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.PutSubscriptionFilter.PutSubscriptionFilter
- Network.AWS.CloudWatchLogs.TestMetricFilter: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchLogs.TestMetricFilter.TestMetricFilter
+ Network.AWS.CloudWatchLogs: mfLogGroupName :: Lens' MetricFilter (Maybe Text)
+ Network.AWS.CloudWatchLogs.CancelExportTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.CancelExportTask.CancelExportTask
+ Network.AWS.CloudWatchLogs.CreateExportTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.CreateExportTask.CreateExportTask
+ Network.AWS.CloudWatchLogs.CreateLogGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.CreateLogGroup.CreateLogGroup
+ Network.AWS.CloudWatchLogs.CreateLogStream: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.CreateLogStream.CreateLogStream
+ Network.AWS.CloudWatchLogs.DeleteDestination: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteDestination.DeleteDestination
+ Network.AWS.CloudWatchLogs.DeleteLogGroup: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteLogGroup.DeleteLogGroup
+ Network.AWS.CloudWatchLogs.DeleteLogStream: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteLogStream.DeleteLogStream
+ Network.AWS.CloudWatchLogs.DeleteMetricFilter: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteMetricFilter.DeleteMetricFilter
+ Network.AWS.CloudWatchLogs.DeleteRetentionPolicy: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteRetentionPolicy.DeleteRetentionPolicy
+ Network.AWS.CloudWatchLogs.DeleteSubscriptionFilter: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DeleteSubscriptionFilter.DeleteSubscriptionFilter
+ Network.AWS.CloudWatchLogs.DescribeDestinations: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeDestinations.DescribeDestinations
+ Network.AWS.CloudWatchLogs.DescribeExportTasks: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeExportTasks.DescribeExportTasks
+ Network.AWS.CloudWatchLogs.DescribeLogGroups: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeLogGroups.DescribeLogGroups
+ Network.AWS.CloudWatchLogs.DescribeLogStreams: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeLogStreams.DescribeLogStreams
+ Network.AWS.CloudWatchLogs.DescribeMetricFilters: dmfMetricName :: Lens' DescribeMetricFilters (Maybe Text)
+ Network.AWS.CloudWatchLogs.DescribeMetricFilters: dmfMetricNamespace :: Lens' DescribeMetricFilters (Maybe Text)
+ Network.AWS.CloudWatchLogs.DescribeMetricFilters: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeMetricFilters.DescribeMetricFilters
+ Network.AWS.CloudWatchLogs.DescribeSubscriptionFilters: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.DescribeSubscriptionFilters.DescribeSubscriptionFilters
+ Network.AWS.CloudWatchLogs.FilterLogEvents: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.FilterLogEvents.FilterLogEvents
+ Network.AWS.CloudWatchLogs.GetLogEvents: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.GetLogEvents.GetLogEvents
+ Network.AWS.CloudWatchLogs.PutDestination: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutDestination.PutDestination
+ Network.AWS.CloudWatchLogs.PutDestinationPolicy: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutDestinationPolicy.PutDestinationPolicy
+ Network.AWS.CloudWatchLogs.PutLogEvents: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutLogEvents.PutLogEvents
+ Network.AWS.CloudWatchLogs.PutMetricFilter: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutMetricFilter.PutMetricFilter
+ Network.AWS.CloudWatchLogs.PutRetentionPolicy: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutRetentionPolicy.PutRetentionPolicy
+ Network.AWS.CloudWatchLogs.PutSubscriptionFilter: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.PutSubscriptionFilter.PutSubscriptionFilter
+ Network.AWS.CloudWatchLogs.TestMetricFilter: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchLogs.TestMetricFilter.TestMetricFilter
+ Network.AWS.CloudWatchLogs.Types: mfLogGroupName :: Lens' MetricFilter (Maybe Text)
- Network.AWS.CloudWatchLogs.DescribeMetricFilters: describeMetricFilters :: Text -> DescribeMetricFilters
+ Network.AWS.CloudWatchLogs.DescribeMetricFilters: describeMetricFilters :: DescribeMetricFilters
- Network.AWS.CloudWatchLogs.DescribeMetricFilters: dmfLogGroupName :: Lens' DescribeMetricFilters Text
+ Network.AWS.CloudWatchLogs.DescribeMetricFilters: dmfLogGroupName :: Lens' DescribeMetricFilters (Maybe Text)

Files

README.md view
@@ -8,32 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.--You can use CloudWatch Logs to:---   __Monitor Logs from Amazon EC2 Instances in Real-time__: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.---   __Monitor Amazon CloudTrail Logged Events__: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.---   __Archive Log Data__: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-cloudwatch-logs) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.CloudWatchLogs](http://hackage.haskell.org/package/amazonka-cloudwatch-logs/docs/Network-AWS-CloudWatchLogs.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-cloudwatch-logs.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-cloudwatch-logs-version:               1.4.4+version:               1.4.5 synopsis:              Amazon CloudWatch Logs SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,28 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.--    You can use CloudWatch Logs to:--    -   __Monitor Logs from Amazon EC2 Instances in Real-time__: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.--    -   __Monitor Amazon CloudTrail Logged Events__: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.--    -   __Archive Log Data__: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding     de/serialisation into more palatable Haskell values.     The provided lenses should be compatible with any of the major lens libraries     such as <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.CloudWatchLogs" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.CloudWatchLogs" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -82,7 +73,7 @@         , Network.AWS.CloudWatchLogs.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-cloudwatch-logs-test@@ -102,9 +93,9 @@         , Test.AWS.CloudWatchLogs.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-cloudwatch-logs == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-cloudwatch-logs == 1.4.5.*         , base         , bytestring         , tasty
gen/Network/AWS/CloudWatchLogs.hs view
@@ -11,16 +11,19 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK.+-- You can use Amazon CloudWatch Logs to monitor, store, and access your log files from EC2 instances, Amazon CloudTrail, or other sources. You can then retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs API, or the CloudWatch Logs SDK. --+-- -- You can use CloudWatch Logs to: ----- -   __Monitor Logs from Amazon EC2 Instances in Real-time__: You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as \"NullReferenceException\") or count the number of occurrences of a literal term at a particular position in log data (such as \"404\" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify.+--     * __Monitor Logs from Amazon EC2 Instances in Real-time__ : You can use CloudWatch Logs to monitor applications and systems using log data. For example, CloudWatch Logs can track the number of errors that occur in your application logs and send you a notification whenever the rate of errors exceeds a threshold you specify. CloudWatch Logs uses your log data for monitoring; so, no code changes are required. For example, you can monitor application logs for specific literal terms (such as "NullReferenceException") or count the number of occurrences of a literal term at a particular position in log data (such as "404" status codes in an Apache access log). When the term you are searching for is found, CloudWatch Logs reports the data to a Amazon CloudWatch metric that you specify. ----- -   __Monitor Amazon CloudTrail Logged Events__: You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting.+--     * __Monitor Amazon CloudTrail Logged Events__ : You can create alarms in Amazon CloudWatch and receive notifications of particular API activity as captured by CloudTrail and use the notification to perform troubleshooting. ----- -   __Archive Log Data__: You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it.+--     * __Archive Log Data__ : You can use CloudWatch Logs to store your log data in highly durable storage. You can change the log retention setting so that any log events older than this setting are automatically deleted. The CloudWatch Logs agent makes it easy to quickly send both rotated and non-rotated log data off of a host and into the log service. You can then access the raw log data when you need it. --+--+-- module Network.AWS.CloudWatchLogs     (     -- * Service Configuration@@ -222,6 +225,7 @@     , metricFilter     , mfCreationTime     , mfFilterName+    , mfLogGroupName     , mfFilterPattern     , mfMetricTransformations 
gen/Network/AWS/CloudWatchLogs/CancelExportTask.hs view
@@ -18,7 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Cancels an export task if it is in 'PENDING' or 'RUNNING' state.+-- Cancels the specified export task.+--+--+-- The task must be in the @PENDING@ or @RUNNING@ state.+-- module Network.AWS.CloudWatchLogs.CancelExportTask     (     -- * Creating a Request@@ -48,7 +52,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cetTaskId'+-- * 'cetTaskId' - The ID of the export task. cancelExportTask     :: Text -- ^ 'cetTaskId'     -> CancelExportTask@@ -57,7 +61,7 @@     { _cetTaskId = pTaskId_     } --- | Id of the export task to cancel.+-- | The ID of the export task. cetTaskId :: Lens' CancelExportTask Text cetTaskId = lens _cetTaskId (\ s a -> s{_cetTaskId = a}); 
gen/Network/AWS/CloudWatchLogs/CreateExportTask.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates an 'ExportTask' which allows you to efficiently export data from a Log Group to your Amazon S3 bucket.+-- Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket. ----- This is an asynchronous call. If all the required information is provided, this API will initiate an export task and respond with the task Id. Once started, 'DescribeExportTasks' can be used to get the status of an export task. You can only have one active ('RUNNING' or 'PENDING') export task at a time, per account. ----- You can export logs from multiple log groups or multiple time ranges to the same Amazon S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.+-- This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use 'DescribeExportTasks' to get the status of the export task. Each account can only have one active (@RUNNING@ or @PENDING@ ) export task at a time. To cancel an export task, use 'CancelExportTask' .+--+-- You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix that will be used as the Amazon S3 key prefix for all exported objects.+-- module Network.AWS.CloudWatchLogs.CreateExportTask     (     -- * Creating a Request@@ -67,19 +69,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cetDestinationPrefix'+-- * 'cetDestinationPrefix' - The prefix used as the start of the key for every object exported. If you don't specify a value, the default is @exportedlogs@ . ----- * 'cetTaskName'+-- * 'cetTaskName' - The name of the export task. ----- * 'cetLogStreamNamePrefix'+-- * 'cetLogStreamNamePrefix' - Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied. ----- * 'cetLogGroupName'+-- * 'cetLogGroupName' - The name of the log group. ----- * 'cetFrom'+-- * 'cetFrom' - The start time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported. ----- * 'cetTo'+-- * 'cetTo' - The end time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported. ----- * 'cetDestination'+-- * 'cetDestination' - The name of S3 bucket for the exported log data. The bucket must be in the same AWS region. createExportTask     :: Text -- ^ 'cetLogGroupName'     -> Natural -- ^ 'cetFrom'@@ -97,7 +99,7 @@     , _cetDestination = pDestination_     } --- | Prefix that will be used as the start of Amazon S3 key for every object exported. If not specified, this defaults to \'exportedlogs\'.+-- | The prefix used as the start of the key for every object exported. If you don't specify a value, the default is @exportedlogs@ . cetDestinationPrefix :: Lens' CreateExportTask (Maybe Text) cetDestinationPrefix = lens _cetDestinationPrefix (\ s a -> s{_cetDestinationPrefix = a}); @@ -105,25 +107,23 @@ cetTaskName :: Lens' CreateExportTask (Maybe Text) cetTaskName = lens _cetTaskName (\ s a -> s{_cetTaskName = a}); --- | Will only export log streams that match the provided logStreamNamePrefix. If you don\'t specify a value, no prefix filter is applied.+-- | Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied. cetLogStreamNamePrefix :: Lens' CreateExportTask (Maybe Text) cetLogStreamNamePrefix = lens _cetLogStreamNamePrefix (\ s a -> s{_cetLogStreamNamePrefix = a}); --- | The name of the log group to export.+-- | The name of the log group. cetLogGroupName :: Lens' CreateExportTask Text cetLogGroupName = lens _cetLogGroupName (\ s a -> s{_cetLogGroupName = a}); --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the start time of the range for the request. Events with a timestamp prior to this time will not be exported.+-- | The start time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported. cetFrom :: Lens' CreateExportTask Natural cetFrom = lens _cetFrom (\ s a -> s{_cetFrom = a}) . _Nat; --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. It indicates the end time of the range for the request. Events with a timestamp later than this time will not be exported.+-- | The end time of the range for the request, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported. cetTo :: Lens' CreateExportTask Natural cetTo = lens _cetTo (\ s a -> s{_cetTo = a}) . _Nat; --- | Name of Amazon S3 bucket to which the log data will be exported.------ __Note:__ Only buckets in the same AWS region are supported.+-- | The name of S3 bucket for the exported log data. The bucket must be in the same AWS region. cetDestination :: Lens' CreateExportTask Text cetDestination = lens _cetDestination (\ s a -> s{_cetDestination = a}); @@ -177,9 +177,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cetrsTaskId'+-- * 'cetrsTaskId' - The ID of the export task. ----- * 'cetrsResponseStatus'+-- * 'cetrsResponseStatus' - -- | The response status code. createExportTaskResponse     :: Int -- ^ 'cetrsResponseStatus'     -> CreateExportTaskResponse@@ -189,11 +189,11 @@     , _cetrsResponseStatus = pResponseStatus_     } --- | Id of the export task that got created.+-- | The ID of the export task. cetrsTaskId :: Lens' CreateExportTaskResponse (Maybe Text) cetrsTaskId = lens _cetrsTaskId (\ s a -> s{_cetrsTaskId = a}); --- | The response status code.+-- | -- | The response status code. cetrsResponseStatus :: Lens' CreateExportTaskResponse Int cetrsResponseStatus = lens _cetrsResponseStatus (\ s a -> s{_cetrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/CreateLogGroup.hs view
@@ -18,14 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a new log group with the specified name. The name of the log group must be unique within a region for an AWS account. You can create up to 500 log groups per account.+-- Creates a log group with the specified name. --+--+-- You can create up to 5000 log groups per account.+-- -- You must use the following guidelines when naming a log group: ----- -   Log group names can be between 1 and 512 characters long.+--     * Log group names must be unique within a region for an AWS account. ----- -   Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (hyphen), \'\/\' (forward slash), and \'.\' (period).+--     * Log group names can be between 1 and 512 characters long. --+--     * Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).+--+--+-- module Network.AWS.CloudWatchLogs.CreateLogGroup     (     -- * Creating a Request@@ -55,7 +62,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'clgLogGroupName'+-- * 'clgLogGroupName' - The name of the log group. createLogGroup     :: Text -- ^ 'clgLogGroupName'     -> CreateLogGroup@@ -64,7 +71,7 @@     { _clgLogGroupName = pLogGroupName_     } --- | The name of the log group to create.+-- | The name of the log group. clgLogGroupName :: Lens' CreateLogGroup Text clgLogGroupName = lens _clgLogGroupName (\ s a -> s{_clgLogGroupName = a}); 
gen/Network/AWS/CloudWatchLogs/CreateLogStream.hs view
@@ -18,14 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a new log stream in the specified log group. The name of the log stream must be unique within the log group. There is no limit on the number of log streams that can exist in a log group.+-- Creates a log stream for the specified log group. --+--+-- There is no limit on the number of log streams that you can create for a log group.+-- -- You must use the following guidelines when naming a log stream: ----- -   Log stream names can be between 1 and 512 characters long.+--     * Log stream names must be unique within the log group. ----- -   The \':\' colon character is not allowed.+--     * Log stream names can be between 1 and 512 characters long. --+--     * The ':' (colon) and '*' (asterisk) characters are not allowed.+--+--+-- module Network.AWS.CloudWatchLogs.CreateLogStream     (     -- * Creating a Request@@ -57,9 +64,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'clsLogGroupName'+-- * 'clsLogGroupName' - The name of the log group. ----- * 'clsLogStreamName'+-- * 'clsLogStreamName' - The name of the log stream. createLogStream     :: Text -- ^ 'clsLogGroupName'     -> Text -- ^ 'clsLogStreamName'@@ -70,11 +77,11 @@     , _clsLogStreamName = pLogStreamName_     } --- | The name of the log group under which the log stream is to be created.+-- | The name of the log group. clsLogGroupName :: Lens' CreateLogStream Text clsLogGroupName = lens _clsLogGroupName (\ s a -> s{_clsLogGroupName = a}); --- | The name of the log stream to create.+-- | The name of the log stream. clsLogStreamName :: Lens' CreateLogStream Text clsLogStreamName = lens _clsLogStreamName (\ s a -> s{_clsLogStreamName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteDestination.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the destination with the specified name and eventually disables all the subscription filters that publish to it. This will not delete the physical resource encapsulated by the destination.+-- Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.+--+-- module Network.AWS.CloudWatchLogs.DeleteDestination     (     -- * Creating a Request@@ -48,7 +50,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddDestinationName'+-- * 'ddDestinationName' - The name of the destination. deleteDestination     :: Text -- ^ 'ddDestinationName'     -> DeleteDestination@@ -57,7 +59,7 @@     { _ddDestinationName = pDestinationName_     } --- | The name of destination to delete.+-- | The name of the destination. ddDestinationName :: Lens' DeleteDestination Text ddDestinationName = lens _ddDestinationName (\ s a -> s{_ddDestinationName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteLogGroup.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the log group with the specified name and permanently deletes all the archived log events associated with it.+-- Deletes the specified log group and permanently deletes all the archived log events associated with the log group.+--+-- module Network.AWS.CloudWatchLogs.DeleteLogGroup     (     -- * Creating a Request@@ -48,7 +50,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlgLogGroupName'+-- * 'dlgLogGroupName' - The name of the log group. deleteLogGroup     :: Text -- ^ 'dlgLogGroupName'     -> DeleteLogGroup@@ -57,7 +59,7 @@     { _dlgLogGroupName = pLogGroupName_     } --- | The name of the log group to delete.+-- | The name of the log group. dlgLogGroupName :: Lens' DeleteLogGroup Text dlgLogGroupName = lens _dlgLogGroupName (\ s a -> s{_dlgLogGroupName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteLogStream.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes a log stream and permanently deletes all the archived log events associated with it.+-- Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.+--+-- module Network.AWS.CloudWatchLogs.DeleteLogStream     (     -- * Creating a Request@@ -50,9 +52,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlsLogGroupName'+-- * 'dlsLogGroupName' - The name of the log group. ----- * 'dlsLogStreamName'+-- * 'dlsLogStreamName' - The name of the log stream. deleteLogStream     :: Text -- ^ 'dlsLogGroupName'     -> Text -- ^ 'dlsLogStreamName'@@ -63,11 +65,11 @@     , _dlsLogStreamName = pLogStreamName_     } --- | The name of the log group under which the log stream to delete belongs.+-- | The name of the log group. dlsLogGroupName :: Lens' DeleteLogStream Text dlsLogGroupName = lens _dlsLogGroupName (\ s a -> s{_dlsLogGroupName = a}); --- | The name of the log stream to delete.+-- | The name of the log stream. dlsLogStreamName :: Lens' DeleteLogStream Text dlsLogStreamName = lens _dlsLogStreamName (\ s a -> s{_dlsLogStreamName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteMetricFilter.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes a metric filter associated with the specified log group.+-- Deletes the specified metric filter.+--+-- module Network.AWS.CloudWatchLogs.DeleteMetricFilter     (     -- * Creating a Request@@ -50,9 +52,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'delLogGroupName'+-- * 'delLogGroupName' - The name of the log group. ----- * 'delFilterName'+-- * 'delFilterName' - The name of the metric filter. deleteMetricFilter     :: Text -- ^ 'delLogGroupName'     -> Text -- ^ 'delFilterName'@@ -63,11 +65,11 @@     , _delFilterName = pFilterName_     } --- | The name of the log group that is associated with the metric filter to delete.+-- | The name of the log group. delLogGroupName :: Lens' DeleteMetricFilter Text delLogGroupName = lens _delLogGroupName (\ s a -> s{_delLogGroupName = a}); --- | The name of the metric filter to delete.+-- | The name of the metric filter. delFilterName :: Lens' DeleteMetricFilter Text delFilterName = lens _delFilterName (\ s a -> s{_delFilterName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteRetentionPolicy.hs view
@@ -18,7 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the retention policy of the specified log group. Log events would not expire if they belong to log groups without a retention policy.+-- Deletes the specified retention policy.+--+--+-- Log events do not expire if they belong to log groups without a retention policy.+-- module Network.AWS.CloudWatchLogs.DeleteRetentionPolicy     (     -- * Creating a Request@@ -48,7 +52,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'drpLogGroupName'+-- * 'drpLogGroupName' - The name of the log group. deleteRetentionPolicy     :: Text -- ^ 'drpLogGroupName'     -> DeleteRetentionPolicy@@ -57,7 +61,7 @@     { _drpLogGroupName = pLogGroupName_     } --- | The name of the log group that is associated with the retention policy to delete.+-- | The name of the log group. drpLogGroupName :: Lens' DeleteRetentionPolicy Text drpLogGroupName = lens _drpLogGroupName (\ s a -> s{_drpLogGroupName = a}); 
gen/Network/AWS/CloudWatchLogs/DeleteSubscriptionFilter.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes a subscription filter associated with the specified log group.+-- Deletes the specified subscription filter.+--+-- module Network.AWS.CloudWatchLogs.DeleteSubscriptionFilter     (     -- * Creating a Request@@ -50,9 +52,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dLogGroupName'+-- * 'dLogGroupName' - The name of the log group. ----- * 'dFilterName'+-- * 'dFilterName' - The name of the subscription filter. deleteSubscriptionFilter     :: Text -- ^ 'dLogGroupName'     -> Text -- ^ 'dFilterName'@@ -63,11 +65,11 @@     , _dFilterName = pFilterName_     } --- | The name of the log group that is associated with the subscription filter to delete.+-- | The name of the log group. dLogGroupName :: Lens' DeleteSubscriptionFilter Text dLogGroupName = lens _dLogGroupName (\ s a -> s{_dLogGroupName = a}); --- | The name of the subscription filter to delete.+-- | The name of the subscription filter. dFilterName :: Lens' DeleteSubscriptionFilter Text dFilterName = lens _dFilterName (\ s a -> s{_dFilterName = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeDestinations.hs view
@@ -18,10 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the destinations that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by destination name.+-- Lists all your destinations. The results are ASCII-sorted by destination name. ----- By default, this operation returns up to 50 destinations. If there are more destinations to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of destinations returned in the response by specifying the 'limit' parameter in the request. --+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.DescribeDestinations     (@@ -61,11 +61,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddNextToken'+-- * 'ddNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'ddLimit'+-- * 'ddLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. ----- * 'ddDestinationNamePrefix'+-- * 'ddDestinationNamePrefix' - The prefix to match. If you don't specify a value, no prefix filter is applied. describeDestinations     :: DescribeDestinations describeDestinations =@@ -75,15 +75,15 @@     , _ddDestinationNamePrefix = Nothing     } --- | Undocumented member.+-- | The token for the next set of items to return. (You received this token from a previous call.) ddNextToken :: Lens' DescribeDestinations (Maybe Text) ddNextToken = lens _ddNextToken (\ s a -> s{_ddNextToken = a}); --- | Undocumented member.+-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. ddLimit :: Lens' DescribeDestinations (Maybe Natural) ddLimit = lens _ddLimit (\ s a -> s{_ddLimit = a}) . mapping _Nat; --- | Will only return destinations that match the provided destinationNamePrefix. If you don\'t specify a value, no prefix is applied.+-- | The prefix to match. If you don't specify a value, no prefix filter is applied. ddDestinationNamePrefix :: Lens' DescribeDestinations (Maybe Text) ddDestinationNamePrefix = lens _ddDestinationNamePrefix (\ s a -> s{_ddDestinationNamePrefix = a}); @@ -145,11 +145,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ddrsNextToken'+-- * 'ddrsNextToken' - Undocumented member. ----- * 'ddrsDestinations'+-- * 'ddrsDestinations' - The destinations. ----- * 'ddrsResponseStatus'+-- * 'ddrsResponseStatus' - -- | The response status code. describeDestinationsResponse     :: Int -- ^ 'ddrsResponseStatus'     -> DescribeDestinationsResponse@@ -164,11 +164,11 @@ ddrsNextToken :: Lens' DescribeDestinationsResponse (Maybe Text) ddrsNextToken = lens _ddrsNextToken (\ s a -> s{_ddrsNextToken = a}); --- | Undocumented member.+-- | The destinations. ddrsDestinations :: Lens' DescribeDestinationsResponse [Destination] ddrsDestinations = lens _ddrsDestinations (\ s a -> s{_ddrsDestinations = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. ddrsResponseStatus :: Lens' DescribeDestinationsResponse Int ddrsResponseStatus = lens _ddrsResponseStatus (\ s a -> s{_ddrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeExportTasks.hs view
@@ -18,9 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the export tasks that are associated with the AWS account making the request. The export tasks can be filtered based on 'TaskId' or 'TaskStatus'.+-- Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status. ----- By default, this operation returns up to 50 export tasks that satisfy the specified filters. If there are more export tasks to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of export tasks returned in the response by specifying the 'limit' parameter in the request.+-- module Network.AWS.CloudWatchLogs.DescribeExportTasks     (     -- * Creating a Request@@ -60,13 +60,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'detTaskId'+-- * 'detTaskId' - The ID of the export task. Specifying a task ID filters the results to zero or one export tasks. ----- * 'detNextToken'+-- * 'detNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'detLimit'+-- * 'detLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. ----- * 'detStatusCode'+-- * 'detStatusCode' - The status code of the export task. Specifying a status code filters the results to zero or more export tasks. describeExportTasks     :: DescribeExportTasks describeExportTasks =@@ -77,19 +77,19 @@     , _detStatusCode = Nothing     } --- | Export task that matches the specified task Id will be returned. This can result in zero or one export task.+-- | The ID of the export task. Specifying a task ID filters the results to zero or one export tasks. detTaskId :: Lens' DescribeExportTasks (Maybe Text) detTaskId = lens _detTaskId (\ s a -> s{_detTaskId = a}); --- | A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous 'DescribeExportTasks' request.+-- | The token for the next set of items to return. (You received this token from a previous call.) detNextToken :: Lens' DescribeExportTasks (Maybe Text) detNextToken = lens _detNextToken (\ s a -> s{_detNextToken = a}); --- | The maximum number of items returned in the response. If you don\'t specify a value, the request would return up to 50 items.+-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. detLimit :: Lens' DescribeExportTasks (Maybe Natural) detLimit = lens _detLimit (\ s a -> s{_detLimit = a}) . mapping _Nat; --- | All export tasks that matches the specified status code will be returned. This can return zero or more export tasks.+-- | The status code of the export task. Specifying a status code filters the results to zero or more export tasks. detStatusCode :: Lens' DescribeExportTasks (Maybe ExportTaskStatusCode) detStatusCode = lens _detStatusCode (\ s a -> s{_detStatusCode = a}); @@ -144,11 +144,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'detrsNextToken'+-- * 'detrsNextToken' - Undocumented member. ----- * 'detrsExportTasks'+-- * 'detrsExportTasks' - The export tasks. ----- * 'detrsResponseStatus'+-- * 'detrsResponseStatus' - -- | The response status code. describeExportTasksResponse     :: Int -- ^ 'detrsResponseStatus'     -> DescribeExportTasksResponse@@ -163,11 +163,11 @@ detrsNextToken :: Lens' DescribeExportTasksResponse (Maybe Text) detrsNextToken = lens _detrsNextToken (\ s a -> s{_detrsNextToken = a}); --- | Undocumented member.+-- | The export tasks. detrsExportTasks :: Lens' DescribeExportTasksResponse [ExportTask] detrsExportTasks = lens _detrsExportTasks (\ s a -> s{_detrsExportTasks = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. detrsResponseStatus :: Lens' DescribeExportTasksResponse Int detrsResponseStatus = lens _detrsResponseStatus (\ s a -> s{_detrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeLogGroups.hs view
@@ -18,10 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the log groups that are associated with the AWS account making the request. The list returned in the response is ASCII-sorted by log group name.+-- Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name. ----- By default, this operation returns up to 50 log groups. If there are more log groups to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of log groups returned in the response by specifying the 'limit' parameter in the request. --+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.DescribeLogGroups     (@@ -61,11 +61,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlgLogGroupNamePrefix'+-- * 'dlgLogGroupNamePrefix' - The prefix to match. ----- * 'dlgNextToken'+-- * 'dlgNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'dlgLimit'+-- * 'dlgLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. describeLogGroups     :: DescribeLogGroups describeLogGroups =@@ -75,15 +75,15 @@     , _dlgLimit = Nothing     } --- | Will only return log groups that match the provided logGroupNamePrefix. If you don\'t specify a value, no prefix filter is applied.+-- | The prefix to match. dlgLogGroupNamePrefix :: Lens' DescribeLogGroups (Maybe Text) dlgLogGroupNamePrefix = lens _dlgLogGroupNamePrefix (\ s a -> s{_dlgLogGroupNamePrefix = a}); --- | A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous 'DescribeLogGroups' request.+-- | The token for the next set of items to return. (You received this token from a previous call.) dlgNextToken :: Lens' DescribeLogGroups (Maybe Text) dlgNextToken = lens _dlgNextToken (\ s a -> s{_dlgNextToken = a}); --- | The maximum number of items returned in the response. If you don\'t specify a value, the request would return up to 50 items.+-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. dlgLimit :: Lens' DescribeLogGroups (Maybe Natural) dlgLimit = lens _dlgLimit (\ s a -> s{_dlgLimit = a}) . mapping _Nat; @@ -144,11 +144,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlgrsLogGroups'+-- * 'dlgrsLogGroups' - The log groups. ----- * 'dlgrsNextToken'+-- * 'dlgrsNextToken' - Undocumented member. ----- * 'dlgrsResponseStatus'+-- * 'dlgrsResponseStatus' - -- | The response status code. describeLogGroupsResponse     :: Int -- ^ 'dlgrsResponseStatus'     -> DescribeLogGroupsResponse@@ -159,7 +159,7 @@     , _dlgrsResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The log groups. dlgrsLogGroups :: Lens' DescribeLogGroupsResponse [LogGroup] dlgrsLogGroups = lens _dlgrsLogGroups (\ s a -> s{_dlgrsLogGroups = a}) . _Default . _Coerce; @@ -167,7 +167,7 @@ dlgrsNextToken :: Lens' DescribeLogGroupsResponse (Maybe Text) dlgrsNextToken = lens _dlgrsNextToken (\ s a -> s{_dlgrsNextToken = a}); --- | The response status code.+-- | -- | The response status code. dlgrsResponseStatus :: Lens' DescribeLogGroupsResponse Int dlgrsResponseStatus = lens _dlgrsResponseStatus (\ s a -> s{_dlgrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeLogStreams.hs view
@@ -18,10 +18,12 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the log streams that are associated with the specified log group. The list returned in the response is ASCII-sorted by log stream name.+-- Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered. ----- By default, this operation returns up to 50 log streams. If there are more log streams to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of log streams returned in the response by specifying the 'limit' parameter in the request. This operation has a limit of five transactions per second, after which transactions are throttled. --+-- This operation has a limit of five transactions per second, after which transactions are throttled.+--+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.DescribeLogStreams     (@@ -67,17 +69,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlssOrderBy'+-- * 'dlssOrderBy' - If the value is @LogStreamName@ , the results are ordered by log stream name. If the value is @LastEventTime@ , the results are ordered by the event time. The default value is @LogStreamName@ . If you order the results by event time, you cannot specify the @logStreamNamePrefix@ parameter. ----- * 'dlssDescending'+-- * 'dlssDescending' - If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false. ----- * 'dlssNextToken'+-- * 'dlssNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'dlssLogStreamNamePrefix'+-- * 'dlssLogStreamNamePrefix' - The prefix to match. You cannot specify this parameter if @orderBy@ is @LastEventTime@ . ----- * 'dlssLimit'+-- * 'dlssLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. ----- * 'dlssLogGroupName'+-- * 'dlssLogGroupName' - The name of the log group. describeLogStreams     :: Text -- ^ 'dlssLogGroupName'     -> DescribeLogStreams@@ -91,27 +93,27 @@     , _dlssLogGroupName = pLogGroupName_     } --- | Specifies what to order the returned log streams by. Valid arguments are \'LogStreamName\' or \'LastEventTime\'. If you don\'t specify a value, results are ordered by LogStreamName. If \'LastEventTime\' is chosen, the request cannot also contain a logStreamNamePrefix.+-- | If the value is @LogStreamName@ , the results are ordered by log stream name. If the value is @LastEventTime@ , the results are ordered by the event time. The default value is @LogStreamName@ . If you order the results by event time, you cannot specify the @logStreamNamePrefix@ parameter. dlssOrderBy :: Lens' DescribeLogStreams (Maybe OrderBy) dlssOrderBy = lens _dlssOrderBy (\ s a -> s{_dlssOrderBy = a}); --- | If set to true, results are returned in descending order. If you don\'t specify a value or set it to false, results are returned in ascending order.+-- | If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false. dlssDescending :: Lens' DescribeLogStreams (Maybe Bool) dlssDescending = lens _dlssDescending (\ s a -> s{_dlssDescending = a}); --- | A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous 'DescribeLogStreams' request.+-- | The token for the next set of items to return. (You received this token from a previous call.) dlssNextToken :: Lens' DescribeLogStreams (Maybe Text) dlssNextToken = lens _dlssNextToken (\ s a -> s{_dlssNextToken = a}); --- | Will only return log streams that match the provided logStreamNamePrefix. If you don\'t specify a value, no prefix filter is applied.+-- | The prefix to match. You cannot specify this parameter if @orderBy@ is @LastEventTime@ . dlssLogStreamNamePrefix :: Lens' DescribeLogStreams (Maybe Text) dlssLogStreamNamePrefix = lens _dlssLogStreamNamePrefix (\ s a -> s{_dlssLogStreamNamePrefix = a}); --- | The maximum number of items returned in the response. If you don\'t specify a value, the request would return up to 50 items.+-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. dlssLimit :: Lens' DescribeLogStreams (Maybe Natural) dlssLimit = lens _dlssLimit (\ s a -> s{_dlssLimit = a}) . mapping _Nat; --- | The log group name for which log streams are to be listed.+-- | The name of the log group. dlssLogGroupName :: Lens' DescribeLogStreams Text dlssLogGroupName = lens _dlssLogGroupName (\ s a -> s{_dlssLogGroupName = a}); @@ -176,11 +178,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dlsrsNextToken'+-- * 'dlsrsNextToken' - Undocumented member. ----- * 'dlsrsLogStreams'+-- * 'dlsrsLogStreams' - The log streams. ----- * 'dlsrsResponseStatus'+-- * 'dlsrsResponseStatus' - -- | The response status code. describeLogStreamsResponse     :: Int -- ^ 'dlsrsResponseStatus'     -> DescribeLogStreamsResponse@@ -195,11 +197,11 @@ dlsrsNextToken :: Lens' DescribeLogStreamsResponse (Maybe Text) dlsrsNextToken = lens _dlsrsNextToken (\ s a -> s{_dlsrsNextToken = a}); --- | Undocumented member.+-- | The log streams. dlsrsLogStreams :: Lens' DescribeLogStreamsResponse [LogStream] dlsrsLogStreams = lens _dlsrsLogStreams (\ s a -> s{_dlsrsLogStreams = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. dlsrsResponseStatus :: Lens' DescribeLogStreamsResponse Int dlsrsResponseStatus = lens _dlsrsResponseStatus (\ s a -> s{_dlsrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeMetricFilters.hs view
@@ -18,10 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the metrics filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.+-- Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name. ----- By default, this operation returns up to 50 metric filters. If there are more metric filters to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of metric filters returned in the response by specifying the 'limit' parameter in the request. --+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.DescribeMetricFilters     (@@ -30,9 +30,11 @@     , DescribeMetricFilters     -- * Request Lenses     , dmfFilterNamePrefix+    , dmfMetricName+    , dmfLogGroupName     , dmfNextToken+    , dmfMetricNamespace     , dmfLimit-    , dmfLogGroupName      -- * Destructuring the Response     , describeMetricFiltersResponse@@ -54,49 +56,64 @@ -- | /See:/ 'describeMetricFilters' smart constructor. data DescribeMetricFilters = DescribeMetricFilters'     { _dmfFilterNamePrefix :: !(Maybe Text)+    , _dmfMetricName       :: !(Maybe Text)+    , _dmfLogGroupName     :: !(Maybe Text)     , _dmfNextToken        :: !(Maybe Text)+    , _dmfMetricNamespace  :: !(Maybe Text)     , _dmfLimit            :: !(Maybe Nat)-    , _dmfLogGroupName     :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)  -- | Creates a value of 'DescribeMetricFilters' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmfFilterNamePrefix'+-- * 'dmfFilterNamePrefix' - The prefix to match. ----- * 'dmfNextToken'+-- * 'dmfMetricName' - The name of the CloudWatch metric. ----- * 'dmfLimit'+-- * 'dmfLogGroupName' - The name of the log group. ----- * 'dmfLogGroupName'+-- * 'dmfNextToken' - The token for the next set of items to return. (You received this token from a previous call.)+--+-- * 'dmfMetricNamespace' - The namespace of the CloudWatch metric.+--+-- * 'dmfLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. describeMetricFilters-    :: Text -- ^ 'dmfLogGroupName'-    -> DescribeMetricFilters-describeMetricFilters pLogGroupName_ =+    :: DescribeMetricFilters+describeMetricFilters =     DescribeMetricFilters'     { _dmfFilterNamePrefix = Nothing+    , _dmfMetricName = Nothing+    , _dmfLogGroupName = Nothing     , _dmfNextToken = Nothing+    , _dmfMetricNamespace = Nothing     , _dmfLimit = Nothing-    , _dmfLogGroupName = pLogGroupName_     } --- | Will only return metric filters that match the provided filterNamePrefix. If you don\'t specify a value, no prefix filter is applied.+-- | The prefix to match. dmfFilterNamePrefix :: Lens' DescribeMetricFilters (Maybe Text) dmfFilterNamePrefix = lens _dmfFilterNamePrefix (\ s a -> s{_dmfFilterNamePrefix = a}); --- | A string token used for pagination that points to the next page of results. It must be a value obtained from the response of the previous 'DescribeMetricFilters' request.+-- | The name of the CloudWatch metric.+dmfMetricName :: Lens' DescribeMetricFilters (Maybe Text)+dmfMetricName = lens _dmfMetricName (\ s a -> s{_dmfMetricName = a});++-- | The name of the log group.+dmfLogGroupName :: Lens' DescribeMetricFilters (Maybe Text)+dmfLogGroupName = lens _dmfLogGroupName (\ s a -> s{_dmfLogGroupName = a});++-- | The token for the next set of items to return. (You received this token from a previous call.) dmfNextToken :: Lens' DescribeMetricFilters (Maybe Text) dmfNextToken = lens _dmfNextToken (\ s a -> s{_dmfNextToken = a}); --- | The maximum number of items returned in the response. If you don\'t specify a value, the request would return up to 50 items.+-- | The namespace of the CloudWatch metric.+dmfMetricNamespace :: Lens' DescribeMetricFilters (Maybe Text)+dmfMetricNamespace = lens _dmfMetricNamespace (\ s a -> s{_dmfMetricNamespace = a});++-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. dmfLimit :: Lens' DescribeMetricFilters (Maybe Natural) dmfLimit = lens _dmfLimit (\ s a -> s{_dmfLimit = a}) . mapping _Nat; --- | The log group name for which metric filters are to be listed.-dmfLogGroupName :: Lens' DescribeMetricFilters Text-dmfLogGroupName = lens _dmfLogGroupName (\ s a -> s{_dmfLogGroupName = a});- instance AWSPager DescribeMetricFilters where         page rq rs           | stop (rs ^. dmfrsNextToken) = Nothing@@ -135,9 +152,11 @@           = object               (catMaybes                  [("filterNamePrefix" .=) <$> _dmfFilterNamePrefix,+                  ("metricName" .=) <$> _dmfMetricName,+                  ("logGroupName" .=) <$> _dmfLogGroupName,                   ("nextToken" .=) <$> _dmfNextToken,-                  ("limit" .=) <$> _dmfLimit,-                  Just ("logGroupName" .= _dmfLogGroupName)])+                  ("metricNamespace" .=) <$> _dmfMetricNamespace,+                  ("limit" .=) <$> _dmfLimit])  instance ToPath DescribeMetricFilters where         toPath = const "/"@@ -156,11 +175,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dmfrsNextToken'+-- * 'dmfrsNextToken' - Undocumented member. ----- * 'dmfrsMetricFilters'+-- * 'dmfrsMetricFilters' - The metric filters. ----- * 'dmfrsResponseStatus'+-- * 'dmfrsResponseStatus' - -- | The response status code. describeMetricFiltersResponse     :: Int -- ^ 'dmfrsResponseStatus'     -> DescribeMetricFiltersResponse@@ -175,11 +194,11 @@ dmfrsNextToken :: Lens' DescribeMetricFiltersResponse (Maybe Text) dmfrsNextToken = lens _dmfrsNextToken (\ s a -> s{_dmfrsNextToken = a}); --- | Undocumented member.+-- | The metric filters. dmfrsMetricFilters :: Lens' DescribeMetricFiltersResponse [MetricFilter] dmfrsMetricFilters = lens _dmfrsMetricFilters (\ s a -> s{_dmfrsMetricFilters = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. dmfrsResponseStatus :: Lens' DescribeMetricFiltersResponse Int dmfrsResponseStatus = lens _dmfrsResponseStatus (\ s a -> s{_dmfrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/DescribeSubscriptionFilters.hs view
@@ -18,10 +18,10 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns all the subscription filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.+-- Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name. ----- By default, this operation returns up to 50 subscription filters. If there are more subscription filters to list, the response would contain a 'nextToken' value in the response body. You can also limit the number of subscription filters returned in the response by specifying the 'limit' parameter in the request. --+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.DescribeSubscriptionFilters     (@@ -63,13 +63,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsfFilterNamePrefix'+-- * 'dsfFilterNamePrefix' - The prefix to match. If you don't specify a value, no prefix filter is applied. ----- * 'dsfNextToken'+-- * 'dsfNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'dsfLimit'+-- * 'dsfLimit' - The maximum number of items returned. If you don't specify a value, the default is up to 50 items. ----- * 'dsfLogGroupName'+-- * 'dsfLogGroupName' - The name of the log group. describeSubscriptionFilters     :: Text -- ^ 'dsfLogGroupName'     -> DescribeSubscriptionFilters@@ -81,19 +81,19 @@     , _dsfLogGroupName = pLogGroupName_     } --- | Will only return subscription filters that match the provided filterNamePrefix. If you don\'t specify a value, no prefix filter is applied.+-- | The prefix to match. If you don't specify a value, no prefix filter is applied. dsfFilterNamePrefix :: Lens' DescribeSubscriptionFilters (Maybe Text) dsfFilterNamePrefix = lens _dsfFilterNamePrefix (\ s a -> s{_dsfFilterNamePrefix = a}); --- | Undocumented member.+-- | The token for the next set of items to return. (You received this token from a previous call.) dsfNextToken :: Lens' DescribeSubscriptionFilters (Maybe Text) dsfNextToken = lens _dsfNextToken (\ s a -> s{_dsfNextToken = a}); --- | Undocumented member.+-- | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. dsfLimit :: Lens' DescribeSubscriptionFilters (Maybe Natural) dsfLimit = lens _dsfLimit (\ s a -> s{_dsfLimit = a}) . mapping _Nat; --- | The log group name for which subscription filters are to be listed.+-- | The name of the log group. dsfLogGroupName :: Lens' DescribeSubscriptionFilters Text dsfLogGroupName = lens _dsfLogGroupName (\ s a -> s{_dsfLogGroupName = a}); @@ -156,11 +156,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsfrsSubscriptionFilters'+-- * 'dsfrsSubscriptionFilters' - The subscription filters. ----- * 'dsfrsNextToken'+-- * 'dsfrsNextToken' - Undocumented member. ----- * 'dsfrsResponseStatus'+-- * 'dsfrsResponseStatus' - -- | The response status code. describeSubscriptionFiltersResponse     :: Int -- ^ 'dsfrsResponseStatus'     -> DescribeSubscriptionFiltersResponse@@ -171,7 +171,7 @@     , _dsfrsResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The subscription filters. dsfrsSubscriptionFilters :: Lens' DescribeSubscriptionFiltersResponse [SubscriptionFilter] dsfrsSubscriptionFilters = lens _dsfrsSubscriptionFilters (\ s a -> s{_dsfrsSubscriptionFilters = a}) . _Default . _Coerce; @@ -179,7 +179,7 @@ dsfrsNextToken :: Lens' DescribeSubscriptionFiltersResponse (Maybe Text) dsfrsNextToken = lens _dsfrsNextToken (\ s a -> s{_dsfrsNextToken = a}); --- | The response status code.+-- | -- | The response status code. dsfrsResponseStatus :: Lens' DescribeSubscriptionFiltersResponse Int dsfrsResponseStatus = lens _dsfrsResponseStatus (\ s a -> s{_dsfrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/FilterLogEvents.hs view
@@ -18,10 +18,12 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves log events, optionally filtered by a filter pattern from the specified log group. You can provide an optional time range to filter the results on the event 'timestamp'. You can limit the streams searched to an explicit list of 'logStreamNames'.+-- Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream. ----- By default, this operation returns as much matching log events as can fit in a response size of 1MB, up to 10,000 log events, or all the events found within a time-bounded scan window. If the response includes a 'nextToken', then there is more data to search, and the search can be resumed with a new request providing the nextToken. The response will contain a list of 'searchedLogStreams' that contains information about which streams were searched in the request and whether they have been searched completely or require further pagination. The 'limit' parameter in the request can be used to specify the maximum number of events to return in a page. --+-- By default, this operation returns as many log events as can fit in 1MB (up to 10,000 log events), or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call.+--+-- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.FilterLogEvents     (@@ -72,21 +74,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fleStartTime'+-- * 'fleStartTime' - The start of the time range. Events with a timestamp prior to this time are not returned. ----- * 'fleNextToken'+-- * 'fleNextToken' - The token for the next set of events to return. (You received this token from a previous call.) ----- * 'fleLogStreamNames'+-- * 'fleLogStreamNames' - Optional list of log stream names. ----- * 'fleEndTime'+-- * 'fleEndTime' - The end of the time range. Events with a timestamp later than this time are not returned. ----- * 'fleLimit'+-- * 'fleLimit' - The maximum number of events to return. The default is 10,000 events. ----- * 'fleFilterPattern'+-- * 'fleFilterPattern' - The filter pattern to use. If not provided, all the events are matched. ----- * 'fleInterleaved'+-- * 'fleInterleaved' - If the value is true, the operation makes a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If the value is false all the matched log events in the first log stream are searched first, then those in the next log stream, and so on. The default is false. ----- * 'fleLogGroupName'+-- * 'fleLogGroupName' - The name of the log group. filterLogEvents     :: Text -- ^ 'fleLogGroupName'     -> FilterLogEvents@@ -102,35 +104,35 @@     , _fleLogGroupName = pLogGroupName_     } --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp prior to this time are not returned.+-- | The start of the time range. Events with a timestamp prior to this time are not returned. fleStartTime :: Lens' FilterLogEvents (Maybe Natural) fleStartTime = lens _fleStartTime (\ s a -> s{_fleStartTime = a}) . mapping _Nat; --- | A pagination token obtained from a 'FilterLogEvents' response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.+-- | The token for the next set of events to return. (You received this token from a previous call.) fleNextToken :: Lens' FilterLogEvents (Maybe Text) fleNextToken = lens _fleNextToken (\ s a -> s{_fleNextToken = a}); --- | Optional list of log stream names within the specified log group to search. Defaults to all the log streams in the log group.+-- | Optional list of log stream names. fleLogStreamNames :: Lens' FilterLogEvents (Maybe (NonEmpty Text)) fleLogStreamNames = lens _fleLogStreamNames (\ s a -> s{_fleLogStreamNames = a}) . mapping _List1; --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. If provided, events with a timestamp later than this time are not returned.+-- | The end of the time range. Events with a timestamp later than this time are not returned. fleEndTime :: Lens' FilterLogEvents (Maybe Natural) fleEndTime = lens _fleEndTime (\ s a -> s{_fleEndTime = a}) . mapping _Nat; --- | The maximum number of events to return in a page of results. Default is 10,000 events.+-- | The maximum number of events to return. The default is 10,000 events. fleLimit :: Lens' FilterLogEvents (Maybe Natural) fleLimit = lens _fleLimit (\ s a -> s{_fleLimit = a}) . mapping _Nat; --- | A valid CloudWatch Logs filter pattern to use for filtering the response. If not provided, all the events are matched.+-- | The filter pattern to use. If not provided, all the events are matched. fleFilterPattern :: Lens' FilterLogEvents (Maybe Text) fleFilterPattern = lens _fleFilterPattern (\ s a -> s{_fleFilterPattern = a}); --- | If provided, the API will make a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If not provided, all the matched log events in the first log stream will be searched first, then those in the next log stream, etc.+-- | If the value is true, the operation makes a best effort to provide responses that contain events from multiple log streams within the log group interleaved in a single response. If the value is false all the matched log events in the first log stream are searched first, then those in the next log stream, and so on. The default is false. fleInterleaved :: Lens' FilterLogEvents (Maybe Bool) fleInterleaved = lens _fleInterleaved (\ s a -> s{_fleInterleaved = a}); --- | The name of the log group to query.+-- | The name of the log group. fleLogGroupName :: Lens' FilterLogEvents Text fleLogGroupName = lens _fleLogGroupName (\ s a -> s{_fleLogGroupName = a}); @@ -196,13 +198,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'flersSearchedLogStreams'+-- * 'flersSearchedLogStreams' - Indicates which log streams have been searched and whether each has been searched completely. ----- * 'flersNextToken'+-- * 'flersNextToken' - The token to use when requesting the next set of items. The token expires after 24 hours. ----- * 'flersEvents'+-- * 'flersEvents' - The matched events. ----- * 'flersResponseStatus'+-- * 'flersResponseStatus' - -- | The response status code. filterLogEventsResponse     :: Int -- ^ 'flersResponseStatus'     -> FilterLogEventsResponse@@ -214,19 +216,19 @@     , _flersResponseStatus = pResponseStatus_     } --- | A list of 'SearchedLogStream' objects indicating which log streams have been searched in this request and whether each has been searched completely or still has more to be paginated.+-- | Indicates which log streams have been searched and whether each has been searched completely. flersSearchedLogStreams :: Lens' FilterLogEventsResponse [SearchedLogStream] flersSearchedLogStreams = lens _flersSearchedLogStreams (\ s a -> s{_flersSearchedLogStreams = a}) . _Default . _Coerce; --- | A pagination token obtained from a 'FilterLogEvents' response to continue paginating the FilterLogEvents results. This token is omitted from the response when there are no other events to display.+-- | The token to use when requesting the next set of items. The token expires after 24 hours. flersNextToken :: Lens' FilterLogEventsResponse (Maybe Text) flersNextToken = lens _flersNextToken (\ s a -> s{_flersNextToken = a}); --- | A list of 'FilteredLogEvent' objects representing the matched events from the request.+-- | The matched events. flersEvents :: Lens' FilterLogEventsResponse [FilteredLogEvent] flersEvents = lens _flersEvents (\ s a -> s{_flersEvents = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. flersResponseStatus :: Lens' FilterLogEventsResponse Int flersResponseStatus = lens _flersResponseStatus (\ s a -> s{_flersResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/GetLogEvents.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves log events from the specified log stream. You can provide an optional time range to filter the results on the event 'timestamp'.+-- Lists log events from the specified log stream. You can list all the log events or filter using a time range. ----- By default, this operation returns as much log events as can fit in a response size of 1MB, up to 10,000 log events. The response will always include a 'nextForwardToken' and a 'nextBackwardToken' in the response body. You can use any of these tokens in subsequent 'GetLogEvents' requests to paginate through events in either forward or backward direction. You can also limit the number of log events returned in the response by specifying the 'limit' parameter in the request.+--+-- By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). If the results include tokens, there are more log events available. You can get additional log events by specifying one of the tokens in a subsequent call.+-- module Network.AWS.CloudWatchLogs.GetLogEvents     (     -- * Creating a Request@@ -67,19 +69,19 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gleStartTime'+-- * 'gleStartTime' - The start of the time range. Events with a timestamp earlier than this time are not included. ----- * 'gleStartFromHead'+-- * 'gleStartFromHead' - If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false. ----- * 'gleNextToken'+-- * 'gleNextToken' - The token for the next set of items to return. (You received this token from a previous call.) ----- * 'gleEndTime'+-- * 'gleEndTime' - The end of the time range. Events with a timestamp later than this time are not included. ----- * 'gleLimit'+-- * 'gleLimit' - The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1MB, up to 10,000 log events. ----- * 'gleLogGroupName'+-- * 'gleLogGroupName' - The name of the log group. ----- * 'gleLogStreamName'+-- * 'gleLogStreamName' - The name of the log stream. getLogEvents     :: Text -- ^ 'gleLogGroupName'     -> Text -- ^ 'gleLogStreamName'@@ -95,31 +97,31 @@     , _gleLogStreamName = pLogStreamName_     } --- | Undocumented member.+-- | The start of the time range. Events with a timestamp earlier than this time are not included. gleStartTime :: Lens' GetLogEvents (Maybe Natural) gleStartTime = lens _gleStartTime (\ s a -> s{_gleStartTime = a}) . mapping _Nat; --- | If set to true, the earliest log events would be returned first. The default is false (the latest log events are returned first).+-- | If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false. gleStartFromHead :: Lens' GetLogEvents (Maybe Bool) gleStartFromHead = lens _gleStartFromHead (\ s a -> s{_gleStartFromHead = a}); --- | A string token used for pagination that points to the next page of results. It must be a value obtained from the 'nextForwardToken' or 'nextBackwardToken' fields in the response of the previous 'GetLogEvents' request.+-- | The token for the next set of items to return. (You received this token from a previous call.) gleNextToken :: Lens' GetLogEvents (Maybe Text) gleNextToken = lens _gleNextToken (\ s a -> s{_gleNextToken = a}); --- | Undocumented member.+-- | The end of the time range. Events with a timestamp later than this time are not included. gleEndTime :: Lens' GetLogEvents (Maybe Natural) gleEndTime = lens _gleEndTime (\ s a -> s{_gleEndTime = a}) . mapping _Nat; --- | The maximum number of log events returned in the response. If you don\'t specify a value, the request would return as many log events as can fit in a response size of 1MB, up to 10,000 log events.+-- | The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1MB, up to 10,000 log events. gleLimit :: Lens' GetLogEvents (Maybe Natural) gleLimit = lens _gleLimit (\ s a -> s{_gleLimit = a}) . mapping _Nat; --- | The name of the log group to query.+-- | The name of the log group. gleLogGroupName :: Lens' GetLogEvents Text gleLogGroupName = lens _gleLogGroupName (\ s a -> s{_gleLogGroupName = a}); --- | The name of the log stream to query.+-- | The name of the log stream. gleLogStreamName :: Lens' GetLogEvents Text gleLogStreamName = lens _gleLogStreamName (\ s a -> s{_gleLogStreamName = a}); @@ -178,13 +180,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'glersNextBackwardToken'+-- * 'glersNextBackwardToken' - The token for the next set of items in the backward direction. The token expires after 24 hours. ----- * 'glersNextForwardToken'+-- * 'glersNextForwardToken' - The token for the next set of items in the forward direction. The token expires after 24 hours. ----- * 'glersEvents'+-- * 'glersEvents' - The events. ----- * 'glersResponseStatus'+-- * 'glersResponseStatus' - -- | The response status code. getLogEventsResponse     :: Int -- ^ 'glersResponseStatus'     -> GetLogEventsResponse@@ -196,19 +198,19 @@     , _glersResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The token for the next set of items in the backward direction. The token expires after 24 hours. glersNextBackwardToken :: Lens' GetLogEventsResponse (Maybe Text) glersNextBackwardToken = lens _glersNextBackwardToken (\ s a -> s{_glersNextBackwardToken = a}); --- | Undocumented member.+-- | The token for the next set of items in the forward direction. The token expires after 24 hours. glersNextForwardToken :: Lens' GetLogEventsResponse (Maybe Text) glersNextForwardToken = lens _glersNextForwardToken (\ s a -> s{_glersNextForwardToken = a}); --- | Undocumented member.+-- | The events. glersEvents :: Lens' GetLogEventsResponse [OutputLogEvent] glersEvents = lens _glersEvents (\ s a -> s{_glersEvents = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. glersResponseStatus :: Lens' GetLogEventsResponse Int glersResponseStatus = lens _glersResponseStatus (\ s a -> s{_glersResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/PutDestination.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates a 'Destination'. A destination encapsulates a physical resource (such as a Kinesis stream) and allows you to subscribe to a real-time stream of log events of a different account, ingested through 'PutLogEvents' requests. Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination.+-- Creates or updates a destination. A destination encapsulates a physical resource (such as a Kinesis stream) and enables you to subscribe to a real-time stream of log events of a different account, ingested using 'PutLogEvents' . Currently, the only supported physical resource is a Amazon Kinesis stream belonging to the same account as the destination. ----- A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, PutDestination does not set any access policy with the destination, which means a cross-account user will not be able to call 'PutSubscriptionFilter' against this destination. To enable that, the destination owner must call 'PutDestinationPolicy' after PutDestination.+--+-- A destination controls what is written to its Amazon Kinesis stream through an access policy. By default, @PutDestination@ does not set any access policy with the destination, which means a cross-account user cannot call 'PutSubscriptionFilter' against this destination. To enable this, the destination owner must call 'PutDestinationPolicy' after @PutDestination@ .+-- module Network.AWS.CloudWatchLogs.PutDestination     (     -- * Creating a Request@@ -57,11 +59,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pdDestinationName'+-- * 'pdDestinationName' - A name for the destination. ----- * 'pdTargetARN'+-- * 'pdTargetARN' - The ARN of an Amazon Kinesis stream to deliver matching log events to. ----- * 'pdRoleARN'+-- * 'pdRoleARN' - The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon Kinesis PutRecord on the destination stream. putDestination     :: Text -- ^ 'pdDestinationName'     -> Text -- ^ 'pdTargetARN'@@ -82,7 +84,7 @@ pdTargetARN :: Lens' PutDestination Text pdTargetARN = lens _pdTargetARN (\ s a -> s{_pdTargetARN = a}); --- | The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the destination stream.+-- | The ARN of an IAM role that grants CloudWatch Logs permissions to call Amazon Kinesis PutRecord on the destination stream. pdRoleARN :: Lens' PutDestination Text pdRoleARN = lens _pdRoleARN (\ s a -> s{_pdRoleARN = a}); @@ -132,9 +134,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pdrsDestination'+-- * 'pdrsDestination' - The destination. ----- * 'pdrsResponseStatus'+-- * 'pdrsResponseStatus' - -- | The response status code. putDestinationResponse     :: Int -- ^ 'pdrsResponseStatus'     -> PutDestinationResponse@@ -144,11 +146,11 @@     , _pdrsResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The destination. pdrsDestination :: Lens' PutDestinationResponse (Maybe Destination) pdrsDestination = lens _pdrsDestination (\ s a -> s{_pdrsDestination = a}); --- | The response status code.+-- | -- | The response status code. pdrsResponseStatus :: Lens' PutDestinationResponse Int pdrsResponseStatus = lens _pdrsResponseStatus (\ s a -> s{_pdrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/PutDestinationPolicy.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates an access policy associated with an existing 'Destination'. An access policy is an <http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html IAM policy document> that is used to authorize claims to register a subscription filter against a given destination.+-- Creates or updates an access policy associated with an existing destination. An access policy is an <http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html IAM policy document> that is used to authorize claims to register a subscription filter against a given destination.+--+-- module Network.AWS.CloudWatchLogs.PutDestinationPolicy     (     -- * Creating a Request@@ -50,9 +52,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pdpDestinationName'+-- * 'pdpDestinationName' - A name for an existing destination. ----- * 'pdpAccessPolicy'+-- * 'pdpAccessPolicy' - An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. putDestinationPolicy     :: Text -- ^ 'pdpDestinationName'     -> Text -- ^ 'pdpAccessPolicy'@@ -67,7 +69,7 @@ pdpDestinationName :: Lens' PutDestinationPolicy Text pdpDestinationName = lens _pdpDestinationName (\ s a -> s{_pdpDestinationName = a}); --- | An IAM policy document that authorizes cross-account users to deliver their log events to associated destination.+-- | An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. pdpAccessPolicy :: Lens' PutDestinationPolicy Text pdpAccessPolicy = lens _pdpAccessPolicy (\ s a -> s{_pdpAccessPolicy = a}); 
gen/Network/AWS/CloudWatchLogs/PutLogEvents.hs view
@@ -20,22 +20,25 @@ -- -- Uploads a batch of log events to the specified log stream. ----- Every PutLogEvents request must include the 'sequenceToken' obtained from the response of the previous request. An upload in a newly created log stream does not require a 'sequenceToken'. You can also get the 'sequenceToken' using < DescribeLogStreams>. --+-- You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using 'DescribeLogStreams' .+-- -- The batch of events must satisfy the following constraints: ----- -   The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.+--     * The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event. ----- -   None of the log events in the batch can be more than 2 hours in the future.+--     * None of the log events in the batch can be more than 2 hours in the future. ----- -   None of the log events in the batch can be older than 14 days or the retention period of the log group.+--     * None of the log events in the batch can be older than 14 days or the retention period of the log group. ----- -   The log events in the batch must be in chronological ordered by their 'timestamp'.+--     * The log events in the batch must be in chronological ordered by their timestamp. ----- -   The maximum number of log events in a batch is 10,000.+--     * The maximum number of log events in a batch is 10,000. ----- -   A batch of log events in a single PutLogEvents request cannot span more than 24 hours. Otherwise, the PutLogEvents operation will fail.+--     * A batch of log events in a single PutLogEvents request cannot span more than 24 hours. Otherwise, the PutLogEvents operation will fail. --+--+-- module Network.AWS.CloudWatchLogs.PutLogEvents     (     -- * Creating a Request@@ -75,13 +78,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pleSequenceToken'+-- * 'pleSequenceToken' - The sequence token. ----- * 'pleLogGroupName'+-- * 'pleLogGroupName' - The name of the log group. ----- * 'pleLogStreamName'+-- * 'pleLogStreamName' - The name of the log stream. ----- * 'pleLogEvents'+-- * 'pleLogEvents' - The log events. putLogEvents     :: Text -- ^ 'pleLogGroupName'     -> Text -- ^ 'pleLogStreamName'@@ -95,19 +98,19 @@     , _pleLogEvents = _List1 # pLogEvents_     } --- | A string token that must be obtained from the response of the previous 'PutLogEvents' request.+-- | The sequence token. pleSequenceToken :: Lens' PutLogEvents (Maybe Text) pleSequenceToken = lens _pleSequenceToken (\ s a -> s{_pleSequenceToken = a}); --- | The name of the log group to put log events to.+-- | The name of the log group. pleLogGroupName :: Lens' PutLogEvents Text pleLogGroupName = lens _pleLogGroupName (\ s a -> s{_pleLogGroupName = a}); --- | The name of the log stream to put log events to.+-- | The name of the log stream. pleLogStreamName :: Lens' PutLogEvents Text pleLogStreamName = lens _pleLogStreamName (\ s a -> s{_pleLogStreamName = a}); --- | Undocumented member.+-- | The log events. pleLogEvents :: Lens' PutLogEvents (NonEmpty InputLogEvent) pleLogEvents = lens _pleLogEvents (\ s a -> s{_pleLogEvents = a}) . _List1; @@ -161,11 +164,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'plersRejectedLogEventsInfo'+-- * 'plersRejectedLogEventsInfo' - The rejected events. ----- * 'plersNextSequenceToken'+-- * 'plersNextSequenceToken' - The next sequence token. ----- * 'plersResponseStatus'+-- * 'plersResponseStatus' - -- | The response status code. putLogEventsResponse     :: Int -- ^ 'plersResponseStatus'     -> PutLogEventsResponse@@ -176,15 +179,15 @@     , _plersResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The rejected events. plersRejectedLogEventsInfo :: Lens' PutLogEventsResponse (Maybe RejectedLogEventsInfo) plersRejectedLogEventsInfo = lens _plersRejectedLogEventsInfo (\ s a -> s{_plersRejectedLogEventsInfo = a}); --- | Undocumented member.+-- | The next sequence token. plersNextSequenceToken :: Lens' PutLogEventsResponse (Maybe Text) plersNextSequenceToken = lens _plersNextSequenceToken (\ s a -> s{_plersNextSequenceToken = a}); --- | The response status code.+-- | -- | The response status code. plersResponseStatus :: Lens' PutLogEventsResponse Int plersResponseStatus = lens _plersResponseStatus (\ s a -> s{_plersResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/PutMetricFilter.hs view
@@ -18,9 +18,11 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through 'PutLogEvents' requests.+-- Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through 'PutLogEvents' . --+-- -- The maximum number of metric filters that can be associated with a log group is 100.+-- module Network.AWS.CloudWatchLogs.PutMetricFilter     (     -- * Creating a Request@@ -56,13 +58,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pmfLogGroupName'+-- * 'pmfLogGroupName' - The name of the log group. ----- * 'pmfFilterName'+-- * 'pmfFilterName' - A name for the metric filter. ----- * 'pmfFilterPattern'+-- * 'pmfFilterPattern' - A filter pattern for extracting metric data out of ingested log events. ----- * 'pmfMetricTransformations'+-- * 'pmfMetricTransformations' - A collection of information needed to define how metric data gets emitted. putMetricFilter     :: Text -- ^ 'pmfLogGroupName'     -> Text -- ^ 'pmfFilterName'@@ -77,7 +79,7 @@     , _pmfMetricTransformations = _List1 # pMetricTransformations_     } --- | The name of the log group to associate the metric filter with.+-- | The name of the log group. pmfLogGroupName :: Lens' PutMetricFilter Text pmfLogGroupName = lens _pmfLogGroupName (\ s a -> s{_pmfLogGroupName = a}); @@ -85,7 +87,7 @@ pmfFilterName :: Lens' PutMetricFilter Text pmfFilterName = lens _pmfFilterName (\ s a -> s{_pmfFilterName = a}); --- | A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.+-- | A filter pattern for extracting metric data out of ingested log events. pmfFilterPattern :: Lens' PutMetricFilter Text pmfFilterPattern = lens _pmfFilterPattern (\ s a -> s{_pmfFilterPattern = a}); 
gen/Network/AWS/CloudWatchLogs/PutRetentionPolicy.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Sets the retention of the specified log group. A retention policy allows you to configure the number of days you want to retain log events in the specified log group.+--+-- module Network.AWS.CloudWatchLogs.PutRetentionPolicy     (     -- * Creating a Request@@ -50,9 +52,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'prpLogGroupName'+-- * 'prpLogGroupName' - The name of the log group. ----- * 'prpRetentionInDays'+-- * 'prpRetentionInDays' - Undocumented member. putRetentionPolicy     :: Text -- ^ 'prpLogGroupName'     -> Int -- ^ 'prpRetentionInDays'@@ -63,7 +65,7 @@     , _prpRetentionInDays = pRetentionInDays_     } --- | The name of the log group to associate the retention policy with.+-- | The name of the log group. prpLogGroupName :: Lens' PutRetentionPolicy Text prpLogGroupName = lens _prpLogGroupName (\ s a -> s{_prpLogGroupName = a}); 
gen/Network/AWS/CloudWatchLogs/PutSubscriptionFilter.hs view
@@ -18,17 +18,21 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through 'PutLogEvents' requests and have them delivered to a specific destination. Currently, the supported destinations are:+-- Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through 'PutLogEvents' and have them delivered to a specific destination. Currently, the supported destinations are: ----- -   An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. ----- -   A logical destination (used via an ARN of 'Destination') belonging to a different account, for cross-account delivery.+--     * An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery. ----- -   An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.+--     * A logical destination that belongs to a different account, for cross-account delivery. ----- -   An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.+--     * An Amazon Kinesis Firehose stream that belongs to the same account as the subscription filter, for same-account delivery. ----- Currently there can only be one subscription filter associated with a log group.+--     * An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.+--+--+--+-- There can only be one subscription filter associated with a log group.+-- module Network.AWS.CloudWatchLogs.PutSubscriptionFilter     (     -- * Creating a Request@@ -66,15 +70,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'psfRoleARN'+-- * 'psfRoleARN' - The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. ----- * 'psfLogGroupName'+-- * 'psfLogGroupName' - The name of the log group. ----- * 'psfFilterName'+-- * 'psfFilterName' - A name for the subscription filter. ----- * 'psfFilterPattern'+-- * 'psfFilterPattern' - A filter pattern for subscribing to a filtered stream of log events. ----- * 'psfDestinationARN'+-- * 'psfDestinationARN' - The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:     * An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.     * A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.     * An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.     * An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery. putSubscriptionFilter     :: Text -- ^ 'psfLogGroupName'     -> Text -- ^ 'psfFilterName'@@ -90,11 +94,11 @@     , _psfDestinationARN = pDestinationARN_     } --- | The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don\'t need to provide the ARN when you are working with a logical destination (used via an ARN of 'Destination') for cross-account delivery.+-- | The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. psfRoleARN :: Lens' PutSubscriptionFilter (Maybe Text) psfRoleARN = lens _psfRoleARN (\ s a -> s{_psfRoleARN = a}); --- | The name of the log group to associate the subscription filter with.+-- | The name of the log group. psfLogGroupName :: Lens' PutSubscriptionFilter Text psfLogGroupName = lens _psfLogGroupName (\ s a -> s{_psfLogGroupName = a}); @@ -102,20 +106,11 @@ psfFilterName :: Lens' PutSubscriptionFilter Text psfFilterName = lens _psfFilterName (\ s a -> s{_psfFilterName = a}); --- | A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.+-- | A filter pattern for subscribing to a filtered stream of log events. psfFilterPattern :: Lens' PutSubscriptionFilter Text psfFilterPattern = lens _psfFilterPattern (\ s a -> s{_psfFilterPattern = a}); --- | The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:------ -   An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.------ -   A logical destination (used via an ARN of 'Destination') belonging to a different account, for cross-account delivery.------ -   An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.------ -   An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.---+-- | The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:     * An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.     * A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.     * An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.     * An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery. psfDestinationARN :: Lens' PutSubscriptionFilter Text psfDestinationARN = lens _psfDestinationARN (\ s a -> s{_psfDestinationARN = a}); 
gen/Network/AWS/CloudWatchLogs/TestMetricFilter.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.+--+-- module Network.AWS.CloudWatchLogs.TestMetricFilter     (     -- * Creating a Request@@ -53,9 +55,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'tmfFilterPattern'+-- * 'tmfFilterPattern' - Undocumented member. ----- * 'tmfLogEventMessages'+-- * 'tmfLogEventMessages' - The log event messages to test. testMetricFilter     :: Text -- ^ 'tmfFilterPattern'     -> NonEmpty Text -- ^ 'tmfLogEventMessages'@@ -70,7 +72,7 @@ tmfFilterPattern :: Lens' TestMetricFilter Text tmfFilterPattern = lens _tmfFilterPattern (\ s a -> s{_tmfFilterPattern = a}); --- | A list of log event messages to test.+-- | The log event messages to test. tmfLogEventMessages :: Lens' TestMetricFilter (NonEmpty Text) tmfLogEventMessages = lens _tmfLogEventMessages (\ s a -> s{_tmfLogEventMessages = a}) . _List1; @@ -119,9 +121,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'tmfrsMatches'+-- * 'tmfrsMatches' - The matched events. ----- * 'tmfrsResponseStatus'+-- * 'tmfrsResponseStatus' - -- | The response status code. testMetricFilterResponse     :: Int -- ^ 'tmfrsResponseStatus'     -> TestMetricFilterResponse@@ -131,11 +133,11 @@     , _tmfrsResponseStatus = pResponseStatus_     } --- | Undocumented member.+-- | The matched events. tmfrsMatches :: Lens' TestMetricFilterResponse [MetricFilterMatchRecord] tmfrsMatches = lens _tmfrsMatches (\ s a -> s{_tmfrsMatches = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. tmfrsResponseStatus :: Lens' TestMetricFilterResponse Int tmfrsResponseStatus = lens _tmfrsResponseStatus (\ s a -> s{_tmfrsResponseStatus = a}); 
gen/Network/AWS/CloudWatchLogs/Types.hs view
@@ -109,6 +109,7 @@     , metricFilter     , mfCreationTime     , mfFilterName+    , mfLogGroupName     , mfFilterPattern     , mfMetricTransformations @@ -164,7 +165,7 @@ import           Network.AWS.Prelude import           Network.AWS.Sign.V4 --- | API version '2014-03-28' of the Amazon CloudWatch Logs SDK configuration.+-- | API version @2014-03-28@ of the Amazon CloudWatch Logs SDK configuration. cloudWatchLogs :: Service cloudWatchLogs =     Service@@ -198,46 +199,64 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | Returned if a parameter of the request is incorrectly specified.+-- | A parameter is specified incorrectly.+--+-- _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterException =     _ServiceError . hasCode "InvalidParameterException" --- | Prism for InvalidSequenceTokenException' errors.+-- | The sequence token is not valid.+--+-- _InvalidSequenceTokenException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidSequenceTokenException =     _ServiceError . hasCode "InvalidSequenceTokenException" --- | Returned if the specified resource already exists.+-- | The specified resource already exists.+--+-- _ResourceAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceAlreadyExistsException =     _ServiceError . hasCode "ResourceAlreadyExistsException" --- | Returned if multiple requests to update the same resource were in conflict.+-- | Multiple requests to update the same resource were in conflict.+--+-- _OperationAbortedException :: AsError a => Getting (First ServiceError) a ServiceError _OperationAbortedException =     _ServiceError . hasCode "OperationAbortedException" --- | Returned if the service cannot complete the request.+-- | The service cannot complete the request.+--+-- _ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError _ServiceUnavailableException =     _ServiceError . hasCode "ServiceUnavailableException" --- | Prism for DataAlreadyAcceptedException' errors.+-- | The event was already logged.+--+-- _DataAlreadyAcceptedException :: AsError a => Getting (First ServiceError) a ServiceError _DataAlreadyAcceptedException =     _ServiceError . hasCode "DataAlreadyAcceptedException" --- | Returned if the operation is not valid on the specified resource+-- | The operation is not valid on the specified resource.+--+-- _InvalidOperationException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidOperationException =     _ServiceError . hasCode "InvalidOperationException" --- | Returned if the specified resource does not exist.+-- | The specified resource does not exist.+--+-- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceNotFoundException =     _ServiceError . hasCode "ResourceNotFoundException" --- | Returned if you have reached the maximum number of resources that can be created.+-- | You have reached the maximum number of resources that can be created.+--+-- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException"
gen/Network/AWS/CloudWatchLogs/Types/Product.hs view
@@ -21,8 +21,10 @@ import           Network.AWS.Lens import           Network.AWS.Prelude --- | A cross account destination that is the recipient of subscription log events.+-- | Represents a cross-account destination that receives subscription log events. --+--+-- -- /See:/ 'destination' smart constructor. data Destination = Destination'     { _dTargetARN       :: !(Maybe Text)@@ -37,17 +39,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dTargetARN'+-- * 'dTargetARN' - The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example, a Kinesis stream). ----- * 'dCreationTime'+-- * 'dCreationTime' - The creation time of the destination. ----- * 'dArn'+-- * 'dArn' - The ARN of this destination. ----- * 'dAccessPolicy'+-- * 'dAccessPolicy' - An IAM policy document that governs which AWS accounts can create subscription filters against this destination. ----- * 'dDestinationName'+-- * 'dDestinationName' - The name of the destination. ----- * 'dRoleARN'+-- * 'dRoleARN' - A role for impersonation, used when delivering log events to the target. destination     :: Destination destination =@@ -60,15 +62,15 @@     , _dRoleARN = Nothing     } --- | ARN of the physical target where the log events will be delivered (eg. ARN of a Kinesis stream).+-- | The Amazon Resource Name (ARN) of the physical target where the log events will be delivered (for example, a Kinesis stream). dTargetARN :: Lens' Destination (Maybe Text) dTargetARN = lens _dTargetARN (\ s a -> s{_dTargetARN = a}); --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC specifying when this destination was created.+-- | The creation time of the destination. dCreationTime :: Lens' Destination (Maybe Natural) dCreationTime = lens _dCreationTime (\ s a -> s{_dCreationTime = a}) . mapping _Nat; --- | ARN of this destination.+-- | The ARN of this destination. dArn :: Lens' Destination (Maybe Text) dArn = lens _dArn (\ s a -> s{_dArn = a}); @@ -76,11 +78,11 @@ dAccessPolicy :: Lens' Destination (Maybe Text) dAccessPolicy = lens _dAccessPolicy (\ s a -> s{_dAccessPolicy = a}); --- | Name of the destination.+-- | The name of the destination. dDestinationName :: Lens' Destination (Maybe Text) dDestinationName = lens _dDestinationName (\ s a -> s{_dDestinationName = a}); --- | A role for impersonation for delivering log events to the target.+-- | A role for impersonation, used when delivering log events to the target. dRoleARN :: Lens' Destination (Maybe Text) dRoleARN = lens _dRoleARN (\ s a -> s{_dRoleARN = a}); @@ -101,6 +103,8 @@  -- | Represents an export task. --+--+-- -- /See:/ 'exportTask' smart constructor. data ExportTask = ExportTask'     { _etDestinationPrefix :: !(Maybe Text)@@ -118,23 +122,23 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'etDestinationPrefix'+-- * 'etDestinationPrefix' - The prefix that was used as the start of Amazon S3 key for every object exported. ----- * 'etDestination'+-- * 'etDestination' - The name of Amazon S3 bucket to which the log data was exported. ----- * 'etStatus'+-- * 'etStatus' - The status of the export task. ----- * 'etTaskName'+-- * 'etTaskName' - The name of the export task. ----- * 'etTaskId'+-- * 'etTaskId' - The ID of the export task. ----- * 'etTo'+-- * 'etTo' - The end time. Events with a timestamp later than this time are not exported. ----- * 'etFrom'+-- * 'etFrom' - The start time. Events with a timestamp prior to this time are not exported. ----- * 'etLogGroupName'+-- * 'etLogGroupName' - The name of the log group from which logs data was exported. ----- * 'etExecutionInfo'+-- * 'etExecutionInfo' - Execution info about the export task. exportTask     :: ExportTask exportTask =@@ -150,15 +154,15 @@     , _etExecutionInfo = Nothing     } --- | Prefix that was used as the start of Amazon S3 key for every object exported.+-- | The prefix that was used as the start of Amazon S3 key for every object exported. etDestinationPrefix :: Lens' ExportTask (Maybe Text) etDestinationPrefix = lens _etDestinationPrefix (\ s a -> s{_etDestinationPrefix = a}); --- | Name of Amazon S3 bucket to which the log data was exported.+-- | The name of Amazon S3 bucket to which the log data was exported. etDestination :: Lens' ExportTask (Maybe Text) etDestination = lens _etDestination (\ s a -> s{_etDestination = a}); --- | Status of the export task.+-- | The status of the export task. etStatus :: Lens' ExportTask (Maybe ExportTaskStatus) etStatus = lens _etStatus (\ s a -> s{_etStatus = a}); @@ -166,15 +170,15 @@ etTaskName :: Lens' ExportTask (Maybe Text) etTaskName = lens _etTaskName (\ s a -> s{_etTaskName = a}); --- | Id of the export task.+-- | The ID of the export task. etTaskId :: Lens' ExportTask (Maybe Text) etTaskId = lens _etTaskId (\ s a -> s{_etTaskId = a}); --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.+-- | The end time. Events with a timestamp later than this time are not exported. etTo :: Lens' ExportTask (Maybe Natural) etTo = lens _etTo (\ s a -> s{_etTo = a}) . mapping _Nat; --- | A point in time expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this time are not exported.+-- | The start time. Events with a timestamp prior to this time are not exported. etFrom :: Lens' ExportTask (Maybe Natural) etFrom = lens _etFrom (\ s a -> s{_etFrom = a}) . mapping _Nat; @@ -206,6 +210,8 @@  -- | Represents the status of an export task. --+--+-- -- /See:/ 'exportTaskExecutionInfo' smart constructor. data ExportTaskExecutionInfo = ExportTaskExecutionInfo'     { _eteiCreationTime   :: !(Maybe Nat)@@ -216,9 +222,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'eteiCreationTime'+-- * 'eteiCreationTime' - The creation time of the export task. ----- * 'eteiCompletionTime'+-- * 'eteiCompletionTime' - The completion time of the export task. exportTaskExecutionInfo     :: ExportTaskExecutionInfo exportTaskExecutionInfo =@@ -227,11 +233,11 @@     , _eteiCompletionTime = Nothing     } --- | A point in time when the export task got created.+-- | The creation time of the export task. eteiCreationTime :: Lens' ExportTaskExecutionInfo (Maybe Natural) eteiCreationTime = lens _eteiCreationTime (\ s a -> s{_eteiCreationTime = a}) . mapping _Nat; --- | A point in time when the export task got completed.+-- | The completion time of the export task. eteiCompletionTime :: Lens' ExportTaskExecutionInfo (Maybe Natural) eteiCompletionTime = lens _eteiCompletionTime (\ s a -> s{_eteiCompletionTime = a}) . mapping _Nat; @@ -248,6 +254,8 @@  -- | Represents the status of an export task. --+--+-- -- /See:/ 'exportTaskStatus' smart constructor. data ExportTaskStatus = ExportTaskStatus'     { _etsCode    :: !(Maybe ExportTaskStatusCode)@@ -258,9 +266,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'etsCode'+-- * 'etsCode' - The status code of the export task. ----- * 'etsMessage'+-- * 'etsMessage' - The status message related to the status code. exportTaskStatus     :: ExportTaskStatus exportTaskStatus =@@ -269,11 +277,11 @@     , _etsMessage = Nothing     } --- | Status code of the export task.+-- | The status code of the export task. etsCode :: Lens' ExportTaskStatus (Maybe ExportTaskStatusCode) etsCode = lens _etsCode (\ s a -> s{_etsCode = a}); --- | Status message related to the 'code'.+-- | The status message related to the status code. etsMessage :: Lens' ExportTaskStatus (Maybe Text) etsMessage = lens _etsMessage (\ s a -> s{_etsMessage = a}); @@ -288,8 +296,10 @@  instance NFData ExportTaskStatus --- | Represents a matched event from a 'FilterLogEvents' request.+-- | Represents a matched event. --+--+-- -- /See:/ 'filteredLogEvent' smart constructor. data FilteredLogEvent = FilteredLogEvent'     { _fleIngestionTime :: !(Maybe Nat)@@ -303,15 +313,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'fleIngestionTime'+-- * 'fleIngestionTime' - The time the event was ingested. ----- * 'fleLogStreamName'+-- * 'fleLogStreamName' - The name of the log stream this event belongs to. ----- * 'fleMessage'+-- * 'fleMessage' - The data contained in the log event. ----- * 'fleTimestamp'+-- * 'fleTimestamp' - The time the event occurred. ----- * 'fleEventId'+-- * 'fleEventId' - The ID of the event. filteredLogEvent     :: FilteredLogEvent filteredLogEvent =@@ -323,7 +333,7 @@     , _fleEventId = Nothing     } --- | Undocumented member.+-- | The time the event was ingested. fleIngestionTime :: Lens' FilteredLogEvent (Maybe Natural) fleIngestionTime = lens _fleIngestionTime (\ s a -> s{_fleIngestionTime = a}) . mapping _Nat; @@ -335,11 +345,11 @@ fleMessage :: Lens' FilteredLogEvent (Maybe Text) fleMessage = lens _fleMessage (\ s a -> s{_fleMessage = a}); --- | Undocumented member.+-- | The time the event occurred. fleTimestamp :: Lens' FilteredLogEvent (Maybe Natural) fleTimestamp = lens _fleTimestamp (\ s a -> s{_fleTimestamp = a}) . mapping _Nat; --- | A unique identifier for this event.+-- | The ID of the event. fleEventId :: Lens' FilteredLogEvent (Maybe Text) fleEventId = lens _fleEventId (\ s a -> s{_fleEventId = a}); @@ -357,8 +367,10 @@  instance NFData FilteredLogEvent --- | A log event is a record of some activity that was recorded by the application or resource being monitored. The log event record that CloudWatch Logs understands contains two properties: the timestamp of when the event occurred, and the raw event message.+-- | Represents a log event, which is a record of activity that was recorded by the application or resource being monitored. --+--+-- -- /See:/ 'inputLogEvent' smart constructor. data InputLogEvent = InputLogEvent'     { _ileTimestamp :: !Nat@@ -369,9 +381,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ileTimestamp'+-- * 'ileTimestamp' - The time the event occurred. ----- * 'ileMessage'+-- * 'ileMessage' - The raw event message. inputLogEvent     :: Natural -- ^ 'ileTimestamp'     -> Text -- ^ 'ileMessage'@@ -382,11 +394,11 @@     , _ileMessage = pMessage_     } --- | Undocumented member.+-- | The time the event occurred. ileTimestamp :: Lens' InputLogEvent Natural ileTimestamp = lens _ileTimestamp (\ s a -> s{_ileTimestamp = a}) . _Nat; --- | Undocumented member.+-- | The raw event message. ileMessage :: Lens' InputLogEvent Text ileMessage = lens _ileMessage (\ s a -> s{_ileMessage = a}); @@ -401,7 +413,11 @@                  [Just ("timestamp" .= _ileTimestamp),                   Just ("message" .= _ileMessage)]) --- | /See:/ 'logGroup' smart constructor.+-- | Represents a log group.+--+--+--+-- /See:/ 'logGroup' smart constructor. data LogGroup = LogGroup'     { _lgCreationTime      :: !(Maybe Nat)     , _lgMetricFilterCount :: !(Maybe Int)@@ -415,17 +431,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lgCreationTime'+-- * 'lgCreationTime' - The creation time of the log group. ----- * 'lgMetricFilterCount'+-- * 'lgMetricFilterCount' - The number of metric filters. ----- * 'lgArn'+-- * 'lgArn' - The Amazon Resource Name (ARN) of the log group. ----- * 'lgLogGroupName'+-- * 'lgLogGroupName' - The name of the log group. ----- * 'lgRetentionInDays'+-- * 'lgRetentionInDays' - Undocumented member. ----- * 'lgStoredBytes'+-- * 'lgStoredBytes' - The number of bytes stored. logGroup     :: LogGroup logGroup =@@ -438,19 +454,19 @@     , _lgStoredBytes = Nothing     } --- | Undocumented member.+-- | The creation time of the log group. lgCreationTime :: Lens' LogGroup (Maybe Natural) lgCreationTime = lens _lgCreationTime (\ s a -> s{_lgCreationTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The number of metric filters. lgMetricFilterCount :: Lens' LogGroup (Maybe Int) lgMetricFilterCount = lens _lgMetricFilterCount (\ s a -> s{_lgMetricFilterCount = a}); --- | Undocumented member.+-- | The Amazon Resource Name (ARN) of the log group. lgArn :: Lens' LogGroup (Maybe Text) lgArn = lens _lgArn (\ s a -> s{_lgArn = a}); --- | Undocumented member.+-- | The name of the log group. lgLogGroupName :: Lens' LogGroup (Maybe Text) lgLogGroupName = lens _lgLogGroupName (\ s a -> s{_lgLogGroupName = a}); @@ -458,7 +474,7 @@ lgRetentionInDays :: Lens' LogGroup (Maybe Int) lgRetentionInDays = lens _lgRetentionInDays (\ s a -> s{_lgRetentionInDays = a}); --- | Undocumented member.+-- | The number of bytes stored. lgStoredBytes :: Lens' LogGroup (Maybe Natural) lgStoredBytes = lens _lgStoredBytes (\ s a -> s{_lgStoredBytes = a}) . mapping _Nat; @@ -478,8 +494,10 @@  instance NFData LogGroup --- | A log stream is sequence of log events from a single emitter of logs.+-- | Represents a log stream, which is a sequence of log events from a single emitter of logs. --+--+-- -- /See:/ 'logStream' smart constructor. data LogStream = LogStream'     { _lsCreationTime        :: !(Maybe Nat)@@ -496,21 +514,21 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsCreationTime'+-- * 'lsCreationTime' - The creation time of the stream. ----- * 'lsUploadSequenceToken'+-- * 'lsUploadSequenceToken' - The sequence token. ----- * 'lsArn'+-- * 'lsArn' - The Amazon Resource Name (ARN) of the log stream. ----- * 'lsFirstEventTimestamp'+-- * 'lsFirstEventTimestamp' - The time of the first event. ----- * 'lsLogStreamName'+-- * 'lsLogStreamName' - The name of the log stream. ----- * 'lsStoredBytes'+-- * 'lsStoredBytes' - The number of bytes stored. ----- * 'lsLastIngestionTime'+-- * 'lsLastIngestionTime' - The ingestion time. ----- * 'lsLastEventTimestamp'+-- * 'lsLastEventTimestamp' - The time of the last event. logStream     :: LogStream logStream =@@ -525,35 +543,35 @@     , _lsLastEventTimestamp = Nothing     } --- | Undocumented member.+-- | The creation time of the stream. lsCreationTime :: Lens' LogStream (Maybe Natural) lsCreationTime = lens _lsCreationTime (\ s a -> s{_lsCreationTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The sequence token. lsUploadSequenceToken :: Lens' LogStream (Maybe Text) lsUploadSequenceToken = lens _lsUploadSequenceToken (\ s a -> s{_lsUploadSequenceToken = a}); --- | Undocumented member.+-- | The Amazon Resource Name (ARN) of the log stream. lsArn :: Lens' LogStream (Maybe Text) lsArn = lens _lsArn (\ s a -> s{_lsArn = a}); --- | Undocumented member.+-- | The time of the first event. lsFirstEventTimestamp :: Lens' LogStream (Maybe Natural) lsFirstEventTimestamp = lens _lsFirstEventTimestamp (\ s a -> s{_lsFirstEventTimestamp = a}) . mapping _Nat; --- | Undocumented member.+-- | The name of the log stream. lsLogStreamName :: Lens' LogStream (Maybe Text) lsLogStreamName = lens _lsLogStreamName (\ s a -> s{_lsLogStreamName = a}); --- | Undocumented member.+-- | The number of bytes stored. lsStoredBytes :: Lens' LogStream (Maybe Natural) lsStoredBytes = lens _lsStoredBytes (\ s a -> s{_lsStoredBytes = a}) . mapping _Nat; --- | Undocumented member.+-- | The ingestion time. lsLastIngestionTime :: Lens' LogStream (Maybe Natural) lsLastIngestionTime = lens _lsLastIngestionTime (\ s a -> s{_lsLastIngestionTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The time of the last event. lsLastEventTimestamp :: Lens' LogStream (Maybe Natural) lsLastEventTimestamp = lens _lsLastEventTimestamp (\ s a -> s{_lsLastEventTimestamp = a}) . mapping _Nat; @@ -575,12 +593,15 @@  instance NFData LogStream --- | Metric filters can be used to express how CloudWatch Logs would extract metric observations from ingested log events and transform them to metric data in a CloudWatch metric.+-- | Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric. --+--+-- -- /See:/ 'metricFilter' smart constructor. data MetricFilter = MetricFilter'     { _mfCreationTime          :: !(Maybe Nat)     , _mfFilterName            :: !(Maybe Text)+    , _mfLogGroupName          :: !(Maybe Text)     , _mfFilterPattern         :: !(Maybe Text)     , _mfMetricTransformations :: !(Maybe (List1 MetricTransformation))     } deriving (Eq,Read,Show,Data,Typeable,Generic)@@ -589,36 +610,43 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mfCreationTime'+-- * 'mfCreationTime' - The creation time of the metric filter. ----- * 'mfFilterName'+-- * 'mfFilterName' - The name of the metric filter. ----- * 'mfFilterPattern'+-- * 'mfLogGroupName' - The name of the log group. ----- * 'mfMetricTransformations'+-- * 'mfFilterPattern' - Undocumented member.+--+-- * 'mfMetricTransformations' - The metric transformations. metricFilter     :: MetricFilter metricFilter =     MetricFilter'     { _mfCreationTime = Nothing     , _mfFilterName = Nothing+    , _mfLogGroupName = Nothing     , _mfFilterPattern = Nothing     , _mfMetricTransformations = Nothing     } --- | Undocumented member.+-- | The creation time of the metric filter. mfCreationTime :: Lens' MetricFilter (Maybe Natural) mfCreationTime = lens _mfCreationTime (\ s a -> s{_mfCreationTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The name of the metric filter. mfFilterName :: Lens' MetricFilter (Maybe Text) mfFilterName = lens _mfFilterName (\ s a -> s{_mfFilterName = a}); +-- | The name of the log group.+mfLogGroupName :: Lens' MetricFilter (Maybe Text)+mfLogGroupName = lens _mfLogGroupName (\ s a -> s{_mfLogGroupName = a});+ -- | Undocumented member. mfFilterPattern :: Lens' MetricFilter (Maybe Text) mfFilterPattern = lens _mfFilterPattern (\ s a -> s{_mfFilterPattern = a}); --- | Undocumented member.+-- | The metric transformations. mfMetricTransformations :: Lens' MetricFilter (Maybe (NonEmpty MetricTransformation)) mfMetricTransformations = lens _mfMetricTransformations (\ s a -> s{_mfMetricTransformations = a}) . mapping _List1; @@ -628,14 +656,19 @@               (\ x ->                  MetricFilter' <$>                    (x .:? "creationTime") <*> (x .:? "filterName") <*>-                     (x .:? "filterPattern")+                     (x .:? "logGroupName")+                     <*> (x .:? "filterPattern")                      <*> (x .:? "metricTransformations"))  instance Hashable MetricFilter  instance NFData MetricFilter --- | /See:/ 'metricFilterMatchRecord' smart constructor.+-- | Represents a matched event.+--+--+--+-- /See:/ 'metricFilterMatchRecord' smart constructor. data MetricFilterMatchRecord = MetricFilterMatchRecord'     { _mfmrExtractedValues :: !(Maybe (Map Text Text))     , _mfmrEventNumber     :: !(Maybe Integer)@@ -646,11 +679,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mfmrExtractedValues'+-- * 'mfmrExtractedValues' - The values extracted from the event data by the filter. ----- * 'mfmrEventNumber'+-- * 'mfmrEventNumber' - The event number. ----- * 'mfmrEventMessage'+-- * 'mfmrEventMessage' - The raw event data. metricFilterMatchRecord     :: MetricFilterMatchRecord metricFilterMatchRecord =@@ -660,15 +693,15 @@     , _mfmrEventMessage = Nothing     } --- | Undocumented member.+-- | The values extracted from the event data by the filter. mfmrExtractedValues :: Lens' MetricFilterMatchRecord (HashMap Text Text) mfmrExtractedValues = lens _mfmrExtractedValues (\ s a -> s{_mfmrExtractedValues = a}) . _Default . _Map; --- | Undocumented member.+-- | The event number. mfmrEventNumber :: Lens' MetricFilterMatchRecord (Maybe Integer) mfmrEventNumber = lens _mfmrEventNumber (\ s a -> s{_mfmrEventNumber = a}); --- | Undocumented member.+-- | The raw event data. mfmrEventMessage :: Lens' MetricFilterMatchRecord (Maybe Text) mfmrEventMessage = lens _mfmrEventMessage (\ s a -> s{_mfmrEventMessage = a}); @@ -685,7 +718,11 @@  instance NFData MetricFilterMatchRecord --- | /See:/ 'metricTransformation' smart constructor.+-- | Indicates how to transform ingested log events into metric data in a CloudWatch metric.+--+--+--+-- /See:/ 'metricTransformation' smart constructor. data MetricTransformation = MetricTransformation'     { _mtDefaultValue    :: !(Maybe Double)     , _mtMetricName      :: !Text@@ -697,13 +734,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'mtDefaultValue'+-- * 'mtDefaultValue' - (Optional) The value to emit when a filter pattern does not match a log event. This value can be null. ----- * 'mtMetricName'+-- * 'mtMetricName' - The name of the CloudWatch metric. ----- * 'mtMetricNamespace'+-- * 'mtMetricNamespace' - The namespace of the CloudWatch metric. ----- * 'mtMetricValue'+-- * 'mtMetricValue' - The value to publish to the CloudWatch metric when a filter pattern matches a log event. metricTransformation     :: Text -- ^ 'mtMetricName'     -> Text -- ^ 'mtMetricNamespace'@@ -717,19 +754,19 @@     , _mtMetricValue = pMetricValue_     } --- | (Optional) A default value to emit when a filter pattern does not match a log event. Can be null.+-- | (Optional) The value to emit when a filter pattern does not match a log event. This value can be null. mtDefaultValue :: Lens' MetricTransformation (Maybe Double) mtDefaultValue = lens _mtDefaultValue (\ s a -> s{_mtDefaultValue = a}); --- | Name of the metric.+-- | The name of the CloudWatch metric. mtMetricName :: Lens' MetricTransformation Text mtMetricName = lens _mtMetricName (\ s a -> s{_mtMetricName = a}); --- | Namespace to which the metric belongs.+-- | The namespace of the CloudWatch metric. mtMetricNamespace :: Lens' MetricTransformation Text mtMetricNamespace = lens _mtMetricNamespace (\ s a -> s{_mtMetricNamespace = a}); --- | A string representing a value to publish to this metric when a filter pattern matches a log event.+-- | The value to publish to the CloudWatch metric when a filter pattern matches a log event. mtMetricValue :: Lens' MetricTransformation Text mtMetricValue = lens _mtMetricValue (\ s a -> s{_mtMetricValue = a}); @@ -755,7 +792,11 @@                   Just ("metricNamespace" .= _mtMetricNamespace),                   Just ("metricValue" .= _mtMetricValue)]) --- | /See:/ 'outputLogEvent' smart constructor.+-- | Represents a log event.+--+--+--+-- /See:/ 'outputLogEvent' smart constructor. data OutputLogEvent = OutputLogEvent'     { _oleIngestionTime :: !(Maybe Nat)     , _oleMessage       :: !(Maybe Text)@@ -766,11 +807,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'oleIngestionTime'+-- * 'oleIngestionTime' - The time the event was ingested. ----- * 'oleMessage'+-- * 'oleMessage' - The data contained in the log event. ----- * 'oleTimestamp'+-- * 'oleTimestamp' - The time the event occurred. outputLogEvent     :: OutputLogEvent outputLogEvent =@@ -780,15 +821,15 @@     , _oleTimestamp = Nothing     } --- | Undocumented member.+-- | The time the event was ingested. oleIngestionTime :: Lens' OutputLogEvent (Maybe Natural) oleIngestionTime = lens _oleIngestionTime (\ s a -> s{_oleIngestionTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The data contained in the log event. oleMessage :: Lens' OutputLogEvent (Maybe Text) oleMessage = lens _oleMessage (\ s a -> s{_oleMessage = a}); --- | Undocumented member.+-- | The time the event occurred. oleTimestamp :: Lens' OutputLogEvent (Maybe Natural) oleTimestamp = lens _oleTimestamp (\ s a -> s{_oleTimestamp = a}) . mapping _Nat; @@ -804,7 +845,11 @@  instance NFData OutputLogEvent --- | /See:/ 'rejectedLogEventsInfo' smart constructor.+-- | Represents the rejected events.+--+--+--+-- /See:/ 'rejectedLogEventsInfo' smart constructor. data RejectedLogEventsInfo = RejectedLogEventsInfo'     { _rleiTooOldLogEventEndIndex   :: !(Maybe Int)     , _rleiTooNewLogEventStartIndex :: !(Maybe Int)@@ -815,11 +860,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rleiTooOldLogEventEndIndex'+-- * 'rleiTooOldLogEventEndIndex' - The log events that are too old. ----- * 'rleiTooNewLogEventStartIndex'+-- * 'rleiTooNewLogEventStartIndex' - The log events that are too new. ----- * 'rleiExpiredLogEventEndIndex'+-- * 'rleiExpiredLogEventEndIndex' - The expired log events. rejectedLogEventsInfo     :: RejectedLogEventsInfo rejectedLogEventsInfo =@@ -829,15 +874,15 @@     , _rleiExpiredLogEventEndIndex = Nothing     } --- | Undocumented member.+-- | The log events that are too old. rleiTooOldLogEventEndIndex :: Lens' RejectedLogEventsInfo (Maybe Int) rleiTooOldLogEventEndIndex = lens _rleiTooOldLogEventEndIndex (\ s a -> s{_rleiTooOldLogEventEndIndex = a}); --- | Undocumented member.+-- | The log events that are too new. rleiTooNewLogEventStartIndex :: Lens' RejectedLogEventsInfo (Maybe Int) rleiTooNewLogEventStartIndex = lens _rleiTooNewLogEventStartIndex (\ s a -> s{_rleiTooNewLogEventStartIndex = a}); --- | Undocumented member.+-- | The expired log events. rleiExpiredLogEventEndIndex :: Lens' RejectedLogEventsInfo (Maybe Int) rleiExpiredLogEventEndIndex = lens _rleiExpiredLogEventEndIndex (\ s a -> s{_rleiExpiredLogEventEndIndex = a}); @@ -854,8 +899,10 @@  instance NFData RejectedLogEventsInfo --- | An object indicating the search status of a log stream in a 'FilterLogEvents' request.+-- | Represents the search status of a log stream. --+--+-- -- /See:/ 'searchedLogStream' smart constructor. data SearchedLogStream = SearchedLogStream'     { _slsLogStreamName      :: !(Maybe Text)@@ -866,9 +913,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'slsLogStreamName'+-- * 'slsLogStreamName' - The name of the log stream. ----- * 'slsSearchedCompletely'+-- * 'slsSearchedCompletely' - Indicates whether all the events in this log stream were searched. searchedLogStream     :: SearchedLogStream searchedLogStream =@@ -881,7 +928,7 @@ slsLogStreamName :: Lens' SearchedLogStream (Maybe Text) slsLogStreamName = lens _slsLogStreamName (\ s a -> s{_slsLogStreamName = a}); --- | Indicates whether all the events in this log stream were searched or more data exists to search by paginating further.+-- | Indicates whether all the events in this log stream were searched. slsSearchedCompletely :: Lens' SearchedLogStream (Maybe Bool) slsSearchedCompletely = lens _slsSearchedCompletely (\ s a -> s{_slsSearchedCompletely = a}); @@ -897,7 +944,11 @@  instance NFData SearchedLogStream --- | /See:/ 'subscriptionFilter' smart constructor.+-- | Represents a subscription filter.+--+--+--+-- /See:/ 'subscriptionFilter' smart constructor. data SubscriptionFilter = SubscriptionFilter'     { _sfCreationTime   :: !(Maybe Nat)     , _sfFilterName     :: !(Maybe Text)@@ -911,17 +962,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'sfCreationTime'+-- * 'sfCreationTime' - The creation time of the subscription filter. ----- * 'sfFilterName'+-- * 'sfFilterName' - The name of the subscription filter. ----- * 'sfDestinationARN'+-- * 'sfDestinationARN' - The Amazon Resource Name (ARN) of the destination. ----- * 'sfLogGroupName'+-- * 'sfLogGroupName' - The name of the log group. ----- * 'sfFilterPattern'+-- * 'sfFilterPattern' - Undocumented member. ----- * 'sfRoleARN'+-- * 'sfRoleARN' - subscriptionFilter     :: SubscriptionFilter subscriptionFilter =@@ -934,19 +985,19 @@     , _sfRoleARN = Nothing     } --- | Undocumented member.+-- | The creation time of the subscription filter. sfCreationTime :: Lens' SubscriptionFilter (Maybe Natural) sfCreationTime = lens _sfCreationTime (\ s a -> s{_sfCreationTime = a}) . mapping _Nat; --- | Undocumented member.+-- | The name of the subscription filter. sfFilterName :: Lens' SubscriptionFilter (Maybe Text) sfFilterName = lens _sfFilterName (\ s a -> s{_sfFilterName = a}); --- | Undocumented member.+-- | The Amazon Resource Name (ARN) of the destination. sfDestinationARN :: Lens' SubscriptionFilter (Maybe Text) sfDestinationARN = lens _sfDestinationARN (\ s a -> s{_sfDestinationARN = a}); --- | Undocumented member.+-- | The name of the log group. sfLogGroupName :: Lens' SubscriptionFilter (Maybe Text) sfLogGroupName = lens _sfLogGroupName (\ s a -> s{_sfLogGroupName = a}); @@ -954,7 +1005,7 @@ sfFilterPattern :: Lens' SubscriptionFilter (Maybe Text) sfFilterPattern = lens _sfFilterPattern (\ s a -> s{_sfFilterPattern = a}); --- | Undocumented member.+-- | sfRoleARN :: Lens' SubscriptionFilter (Maybe Text) sfRoleARN = lens _sfRoleARN (\ s a -> s{_sfRoleARN = a});