packages feed

amazonka-cloudwatch-logs 1.4.3 → 1.4.4

raw patch · 13 files changed

+49/−26 lines, 13 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.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: 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: mtDefaultValue :: Lens' MetricTransformation (Maybe Double)
+ 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.Types: mtDefaultValue :: Lens' MetricTransformation (Maybe Double)

Files

README.md view
@@ -8,12 +8,10 @@  ## Version -`1.4.3`+`1.4.4`   ## Description--Amazon CloudWatch Logs API Reference  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. 
amazonka-cloudwatch-logs.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-cloudwatch-logs-version:               1.4.3+version:               1.4.4 synopsis:              Amazon CloudWatch Logs SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -11,10 +11,8 @@ category:              Network, AWS, Cloud, Distributed Computing build-type:            Simple cabal-version:         >= 1.10-extra-source-files:    README.md fixture/*.yaml fixture/*.proto+extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    Amazon CloudWatch Logs API Reference-     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:@@ -84,7 +82,7 @@         , Network.AWS.CloudWatchLogs.Types.Sum      build-depends:-          amazonka-core == 1.4.3.*+          amazonka-core == 1.4.4.*         , base          >= 4.7     && < 5  test-suite amazonka-cloudwatch-logs-test@@ -104,9 +102,9 @@         , Test.AWS.CloudWatchLogs.Internal      build-depends:-          amazonka-core == 1.4.3.*-        , amazonka-test == 1.4.3.*-        , amazonka-cloudwatch-logs == 1.4.3.*+          amazonka-core == 1.4.4.*+        , amazonka-test == 1.4.4.*+        , amazonka-cloudwatch-logs == 1.4.4.*         , base         , bytestring         , tasty
gen/Network/AWS/CloudWatchLogs.hs view
@@ -11,8 +11,6 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Amazon CloudWatch Logs API Reference--- -- 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:@@ -237,6 +235,7 @@     -- ** MetricTransformation     , MetricTransformation     , metricTransformation+    , mtDefaultValue     , mtMetricName     , mtMetricNamespace     , mtMetricValue
gen/Network/AWS/CloudWatchLogs/CreateLogGroup.hs view
@@ -23,7 +23,9 @@ -- You must use the following guidelines when naming a log group: -- -- -   Log group names can be between 1 and 512 characters long.+-- -- -   Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (hyphen), \'\/\' (forward slash), and \'.\' (period).+-- module Network.AWS.CloudWatchLogs.CreateLogGroup     (     -- * Creating a Request
gen/Network/AWS/CloudWatchLogs/CreateLogStream.hs view
@@ -23,7 +23,9 @@ -- You must use the following guidelines when naming a log stream: -- -- -   Log stream names can be between 1 and 512 characters long.+-- -- -   The \':\' colon character is not allowed.+-- module Network.AWS.CloudWatchLogs.CreateLogStream     (     -- * Creating a Request
gen/Network/AWS/CloudWatchLogs/FilterLogEvents.hs view
@@ -20,7 +20,7 @@ -- -- 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'. ----- 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 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. -- -- This operation returns paginated results. module Network.AWS.CloudWatchLogs.FilterLogEvents
gen/Network/AWS/CloudWatchLogs/PutDestination.hs view
@@ -82,7 +82,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 desitnation stream.+-- | The ARN of an IAM role that grants CloudWatch Logs permissions to do Amazon Kinesis PutRecord requests on the destination stream. pdRoleARN :: Lens' PutDestination Text pdRoleARN = lens _pdRoleARN (\ s a -> s{_pdRoleARN = a}); 
gen/Network/AWS/CloudWatchLogs/PutLogEvents.hs view
@@ -20,16 +20,22 @@ -- -- 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'.+-- 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>. -- -- 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.+-- -- -   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.+-- -- -   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.+-- -- -   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
gen/Network/AWS/CloudWatchLogs/PutSubscriptionFilter.hs view
@@ -21,8 +21,11 @@ -- 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: -- -- -   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. -- -- Currently there can only be one subscription filter associated with a log group.@@ -106,9 +109,13 @@ -- | 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.+-- psfDestinationARN :: Lens' PutSubscriptionFilter Text psfDestinationARN = lens _psfDestinationARN (\ s a -> s{_psfDestinationARN = a}); 
gen/Network/AWS/CloudWatchLogs/Types.hs view
@@ -122,6 +122,7 @@     -- * MetricTransformation     , MetricTransformation     , metricTransformation+    , mtDefaultValue     , mtMetricName     , mtMetricNamespace     , mtMetricValue
gen/Network/AWS/CloudWatchLogs/Types/Product.hs view
@@ -687,7 +687,8 @@  -- | /See:/ 'metricTransformation' smart constructor. data MetricTransformation = MetricTransformation'-    { _mtMetricName      :: !Text+    { _mtDefaultValue    :: !(Maybe Double)+    , _mtMetricName      :: !Text     , _mtMetricNamespace :: !Text     , _mtMetricValue     :: !Text     } deriving (Eq,Read,Show,Data,Typeable,Generic)@@ -696,6 +697,8 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'mtDefaultValue'+-- -- * 'mtMetricName' -- -- * 'mtMetricNamespace'@@ -708,20 +711,25 @@     -> MetricTransformation metricTransformation pMetricName_ pMetricNamespace_ pMetricValue_ =     MetricTransformation'-    { _mtMetricName = pMetricName_+    { _mtDefaultValue = Nothing+    , _mtMetricName = pMetricName_     , _mtMetricNamespace = pMetricNamespace_     , _mtMetricValue = pMetricValue_     } --- | Undocumented member.+-- | (Optional) A default value to emit when a filter pattern does not match a log event. Can be null.+mtDefaultValue :: Lens' MetricTransformation (Maybe Double)+mtDefaultValue = lens _mtDefaultValue (\ s a -> s{_mtDefaultValue = a});++-- | Name of the metric. mtMetricName :: Lens' MetricTransformation Text mtMetricName = lens _mtMetricName (\ s a -> s{_mtMetricName = a}); --- | Undocumented member.+-- | Namespace to which the metric belongs. mtMetricNamespace :: Lens' MetricTransformation Text mtMetricNamespace = lens _mtMetricNamespace (\ s a -> s{_mtMetricNamespace = a}); --- | Undocumented member.+-- | A string representing a value to publish to this metric when a filter pattern matches a log event. mtMetricValue :: Lens' MetricTransformation Text mtMetricValue = lens _mtMetricValue (\ s a -> s{_mtMetricValue = a}); @@ -730,8 +738,9 @@           = withObject "MetricTransformation"               (\ x ->                  MetricTransformation' <$>-                   (x .: "metricName") <*> (x .: "metricNamespace") <*>-                     (x .: "metricValue"))+                   (x .:? "defaultValue") <*> (x .: "metricName") <*>+                     (x .: "metricNamespace")+                     <*> (x .: "metricValue"))  instance Hashable MetricTransformation @@ -741,7 +750,8 @@         toJSON MetricTransformation'{..}           = object               (catMaybes-                 [Just ("metricName" .= _mtMetricName),+                 [("defaultValue" .=) <$> _mtDefaultValue,+                  Just ("metricName" .= _mtMetricName),                   Just ("metricNamespace" .= _mtMetricNamespace),                   Just ("metricValue" .= _mtMetricValue)]) 
gen/Network/AWS/CloudWatchLogs/Types/Sum.hs view
@@ -37,7 +37,7 @@         "pending_cancel" -> pure PendingCancel         "running" -> pure Running         e -> fromTextError $ "Failure parsing ExportTaskStatusCode from value: '" <> e-           <> "'. Accepted values: CANCELLED, COMPLETED, FAILED, PENDING, PENDING_CANCEL, RUNNING"+           <> "'. Accepted values: cancelled, completed, failed, pending, pending_cancel, running"  instance ToText ExportTaskStatusCode where     toText = \case@@ -70,7 +70,7 @@         "lasteventtime" -> pure LastEventTime         "logstreamname" -> pure LogStreamName         e -> fromTextError $ "Failure parsing OrderBy from value: '" <> e-           <> "'. Accepted values: LastEventTime, LogStreamName"+           <> "'. Accepted values: lasteventtime, logstreamname"  instance ToText OrderBy where     toText = \case
+ src/.gitkeep view