amazonka-cloudwatch 1.4.2 → 1.4.3
raw patch · 16 files changed
+162/−385 lines, 16 filesdep ~amazonka-cloudwatchdep ~amazonka-coredep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-cloudwatch, amazonka-core, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +4/−16
- amazonka-cloudwatch.cabal +8/−20
- gen/Network/AWS/CloudWatch.hs +3/−15
- gen/Network/AWS/CloudWatch/DeleteAlarms.hs +1/−2
- gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs +3/−7
- gen/Network/AWS/CloudWatch/DescribeAlarms.hs +3/−8
- gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs +2/−5
- gen/Network/AWS/CloudWatch/DisableAlarmActions.hs +1/−3
- gen/Network/AWS/CloudWatch/GetMetricStatistics.hs +10/−43
- gen/Network/AWS/CloudWatch/ListMetrics.hs +4/−12
- gen/Network/AWS/CloudWatch/PutMetricAlarm.hs +26/−95
- gen/Network/AWS/CloudWatch/PutMetricData.hs +5/−18
- gen/Network/AWS/CloudWatch/SetAlarmState.hs +4/−16
- gen/Network/AWS/CloudWatch/Types.hs +2/−4
- gen/Network/AWS/CloudWatch/Types/Product.hs +20/−55
- test/Test/AWS/Gen/CloudWatch.hs +66/−66
README.md view
@@ -8,28 +8,16 @@ ## Version -`1.4.2`+`1.4.3` ## Description -Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and-the applications you run on AWS in real-time. You can use CloudWatch to-collect and track metrics, which are the variables you want to measure-for your resources and applications.+Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications. -CloudWatch alarms send notifications or automatically make changes to-the resources you are monitoring based on rules that you define. For-example, you can monitor the CPU usage and disk reads and writes of your-Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this-data to determine whether you should launch additional instances to-handle increased load. You can also use this data to stop under-used-instances to save money.+CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money. -In addition to monitoring the built-in metrics that come with AWS, you-can monitor your own custom metrics. With CloudWatch, you gain-system-wide visibility into resource utilization, application-performance, and operational health.+In addition to monitoring the built-in metrics that come with AWS, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health. Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-cloudwatch) and the [AWS API Reference](https://aws.amazon.com/documentation/).
amazonka-cloudwatch.cabal view
@@ -1,5 +1,5 @@ name: amazonka-cloudwatch-version: 1.4.2+version: 1.4.3 synopsis: Amazon CloudWatch SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -13,23 +13,11 @@ cabal-version: >= 1.10 extra-source-files: README.md fixture/*.yaml fixture/*.proto description:- Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and- the applications you run on AWS in real-time. You can use CloudWatch to- collect and track metrics, which are the variables you want to measure- for your resources and applications.+ Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications. - CloudWatch alarms send notifications or automatically make changes to- the resources you are monitoring based on rules that you define. For- example, you can monitor the CPU usage and disk reads and writes of your- Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this- data to determine whether you should launch additional instances to- handle increased load. You can also use this data to stop under-used- instances to save money.+ CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money. - In addition to monitoring the built-in metrics that come with AWS, you- can monitor your own custom metrics. With CloudWatch, you gain- system-wide visibility into resource utilization, application- performance, and operational health.+ In addition to monitoring the built-in metrics that come with AWS, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health. . The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>, which provides@@ -76,7 +64,7 @@ , Network.AWS.CloudWatch.Types.Sum build-depends:- amazonka-core == 1.4.2.*+ amazonka-core == 1.4.3.* , base >= 4.7 && < 5 test-suite amazonka-cloudwatch-test@@ -96,9 +84,9 @@ , Test.AWS.CloudWatch.Internal build-depends:- amazonka-core == 1.4.2.*- , amazonka-test == 1.4.2.*- , amazonka-cloudwatch == 1.4.2.*+ amazonka-core == 1.4.3.*+ , amazonka-test == 1.4.3.*+ , amazonka-cloudwatch == 1.4.3.* , base , bytestring , tasty
gen/Network/AWS/CloudWatch.hs view
@@ -11,23 +11,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and--- the applications you run on AWS in real-time. You can use CloudWatch to--- collect and track metrics, which are the variables you want to measure--- for your resources and applications.+-- Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the applications you run on AWS in real-time. You can use CloudWatch to collect and track metrics, which are the variables you want to measure for your resources and applications. ----- CloudWatch alarms send notifications or automatically make changes to--- the resources you are monitoring based on rules that you define. For--- example, you can monitor the CPU usage and disk reads and writes of your--- Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this--- data to determine whether you should launch additional instances to--- handle increased load. You can also use this data to stop under-used--- instances to save money.+-- CloudWatch alarms send notifications or automatically make changes to the resources you are monitoring based on rules that you define. For example, you can monitor the CPU usage and disk reads and writes of your Amazon Elastic Compute Cloud (Amazon EC2) instances and then use this data to determine whether you should launch additional instances to handle increased load. You can also use this data to stop under-used instances to save money. ----- In addition to monitoring the built-in metrics that come with AWS, you--- can monitor your own custom metrics. With CloudWatch, you gain--- system-wide visibility into resource utilization, application--- performance, and operational health.+-- In addition to monitoring the built-in metrics that come with AWS, you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility into resource utilization, application performance, and operational health. module Network.AWS.CloudWatch ( -- * Service Configuration
gen/Network/AWS/CloudWatch/DeleteAlarms.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes all specified alarms. In the event of an error, no alarms are--- deleted.+-- Deletes all specified alarms. In the event of an error, no alarms are deleted. module Network.AWS.CloudWatch.DeleteAlarms ( -- * Creating a Request
gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs view
@@ -18,12 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves history for the specified alarm. Filter alarms by date range--- or item type. If an alarm name is not specified, Amazon CloudWatch--- returns histories for all of the owner\'s alarms.+-- Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner\'s alarms. ----- Amazon CloudWatch retains the history of an alarm for two weeks, whether--- or not you delete the alarm.+-- Amazon CloudWatch retains the history of an alarm for two weeks, whether or not you delete the alarm. -- -- This operation returns paginated results. module Network.AWS.CloudWatch.DescribeAlarmHistory@@ -109,8 +106,7 @@ dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime) dahStartDate = lens _dahStartDate (\ s a -> s{_dahStartDate = a}) . mapping _Time; --- | The token returned by a previous call to indicate that there is more--- data available.+-- | The token returned by a previous call to indicate that there is more data available. dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text) dahNextToken = lens _dahNextToken (\ s a -> s{_dahNextToken = a});
gen/Network/AWS/CloudWatch/DescribeAlarms.hs view
@@ -18,10 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves alarms with the specified names. If no name is specified, all--- alarms for the user are returned. Alarms can be retrieved by using only--- a prefix for the alarm name, the alarm state, or a prefix for any--- action.+-- Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action. -- -- This operation returns paginated results. module Network.AWS.CloudWatch.DescribeAlarms@@ -91,8 +88,7 @@ , _daMaxRecords = Nothing } --- | The alarm name prefix. 'AlarmNames' cannot be specified if this--- parameter is specified.+-- | The alarm name prefix. 'AlarmNames' cannot be specified if this parameter is specified. daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text) daAlarmNamePrefix = lens _daAlarmNamePrefix (\ s a -> s{_daAlarmNamePrefix = a}); @@ -100,8 +96,7 @@ daActionPrefix :: Lens' DescribeAlarms (Maybe Text) daActionPrefix = lens _daActionPrefix (\ s a -> s{_daActionPrefix = a}); --- | The token returned by a previous call to indicate that there is more--- data available.+-- | The token returned by a previous call to indicate that there is more data available. daNextToken :: Lens' DescribeAlarms (Maybe Text) daNextToken = lens _daNextToken (\ s a -> s{_daNextToken = a});
gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves all alarms for a single metric. Specify a statistic, period,--- or unit to filter the set of alarms further.+-- Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further. module Network.AWS.CloudWatch.DescribeAlarmsForMetric ( -- * Creating a Request@@ -91,9 +90,7 @@ dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural) dafmPeriod = lens _dafmPeriod (\ s a -> s{_dafmPeriod = a}) . mapping _Nat; --- | The list of dimensions associated with the metric. If the metric has any--- associated dimensions, you must specify them in order for the--- DescribeAlarmsForMetric to succeed.+-- | The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed. dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension] dafmDimensions = lens _dafmDimensions (\ s a -> s{_dafmDimensions = a}) . _Default . _Coerce;
gen/Network/AWS/CloudWatch/DisableAlarmActions.hs view
@@ -18,9 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Disables actions for the specified alarms. When an alarm\'s actions are--- disabled the alarm\'s state may change, but none of the alarm\'s actions--- will execute.+-- Disables actions for the specified alarms. When an alarm\'s actions are disabled the alarm\'s state may change, but none of the alarm\'s actions will execute. module Network.AWS.CloudWatch.DisableAlarmActions ( -- * Creating a Request
gen/Network/AWS/CloudWatch/GetMetricStatistics.hs view
@@ -20,34 +20,17 @@ -- -- Gets statistics for the specified metric. ----- The maximum number of data points that can be queried is 50,850, whereas--- the maximum number of data points returned from a single--- 'GetMetricStatistics' request is 1,440. If you make a request that--- generates more than 1,440 data points, Amazon CloudWatch returns an--- error. In such a case, you can alter the request by narrowing the--- specified time range or increasing the specified period. Alternatively,--- you can make multiple requests across adjacent time ranges.--- 'GetMetricStatistics' does not return the data in chronological order.+-- The maximum number of data points that can be queried is 50,850, whereas the maximum number of data points returned from a single 'GetMetricStatistics' request is 1,440. If you make a request that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, you can alter the request by narrowing the specified time range or increasing the specified period. Alternatively, you can make multiple requests across adjacent time ranges. 'GetMetricStatistics' does not return the data in chronological order. ----- Amazon CloudWatch aggregates data points based on the length of the--- 'period' that you specify. For example, if you request statistics with a--- one-minute granularity, Amazon CloudWatch aggregates data points with--- time stamps that fall within the same one-minute period. In such a case,--- the data points queried can greatly outnumber the data points returned.+-- Amazon CloudWatch aggregates data points based on the length of the 'period' that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned. ----- The following examples show various statistics allowed by the data point--- query maximum of 50,850 when you call 'GetMetricStatistics' on Amazon--- EC2 instances with detailed (one-minute) monitoring enabled:+-- The following examples show various statistics allowed by the data point query maximum of 50,850 when you call 'GetMetricStatistics' on Amazon EC2 instances with detailed (one-minute) monitoring enabled: -- -- - Statistics for up to 400 instances for a span of one hour -- - Statistics for up to 35 instances over a span of 24 hours -- - Statistics for up to 2 instances over a span of 2 weeks ----- For information about the namespace, metric names, and dimensions that--- other Amazon Web Services products use to send metrics to CloudWatch, go--- to--- <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference>--- in the /Amazon CloudWatch Developer Guide/.+-- For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to CloudWatch, go to <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference> in the /Amazon CloudWatch Developer Guide/. module Network.AWS.CloudWatch.GetMetricStatistics ( -- * Creating a Request@@ -146,39 +129,23 @@ gmsMetricName :: Lens' GetMetricStatistics Text gmsMetricName = lens _gmsMetricName (\ s a -> s{_gmsMetricName = a}); --- | The time stamp to use for determining the first datapoint to return. The--- value specified is inclusive; results include datapoints with the time--- stamp specified. The time stamp must be in ISO 8601 UTC format (e.g.,--- 2014-09-03T23:00:00Z).+-- | The time stamp to use for determining the first datapoint to return. The value specified is inclusive; results include datapoints with the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). ----- The specified start time is rounded down to the nearest value.--- Datapoints are returned for start times up to two weeks in the past.--- Specified start times that are more than two weeks in the past will not--- return datapoints for metrics that are older than two weeks.+-- The specified start time is rounded down to the nearest value. Datapoints are returned for start times up to two weeks in the past. Specified start times that are more than two weeks in the past will not return datapoints for metrics that are older than two weeks. ----- Data that is timestamped 24 hours or more in the past may take in excess--- of 48 hours to become available from submission time using--- 'GetMetricStatistics'.+-- Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using 'GetMetricStatistics'. gmsStartTime :: Lens' GetMetricStatistics UTCTime gmsStartTime = lens _gmsStartTime (\ s a -> s{_gmsStartTime = a}) . _Time; --- | The time stamp to use for determining the last datapoint to return. The--- value specified is exclusive; results will include datapoints up to the--- time stamp specified. The time stamp must be in ISO 8601 UTC format--- (e.g., 2014-09-03T23:00:00Z).+-- | The time stamp to use for determining the last datapoint to return. The value specified is exclusive; results will include datapoints up to the time stamp specified. The time stamp must be in ISO 8601 UTC format (e.g., 2014-09-03T23:00:00Z). gmsEndTime :: Lens' GetMetricStatistics UTCTime gmsEndTime = lens _gmsEndTime (\ s a -> s{_gmsEndTime = a}) . _Time; --- | The granularity, in seconds, of the returned datapoints. 'Period' must--- be at least 60 seconds and must be a multiple of 60. The default value--- is 60.+-- | The granularity, in seconds, of the returned datapoints. 'Period' must be at least 60 seconds and must be a multiple of 60. The default value is 60. gmsPeriod :: Lens' GetMetricStatistics Natural gmsPeriod = lens _gmsPeriod (\ s a -> s{_gmsPeriod = a}) . _Nat; --- | The metric statistics to return. For information about specific--- statistics returned by GetMetricStatistics, see--- <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Statistic Statistics>--- in the /Amazon CloudWatch Developer Guide/.+-- | The metric statistics to return. For information about specific statistics returned by GetMetricStatistics, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Statistic Statistics> in the /Amazon CloudWatch Developer Guide/. gmsStatistics :: Lens' GetMetricStatistics (NonEmpty Statistic) gmsStatistics = lens _gmsStatistics (\ s a -> s{_gmsStatistics = a}) . _List1;
gen/Network/AWS/CloudWatch/ListMetrics.hs view
@@ -18,18 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of valid metrics stored for the AWS account owner.--- Returned metrics can be used with < GetMetricStatistics> to obtain--- statistical data for a given metric.+-- Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with < GetMetricStatistics> to obtain statistical data for a given metric. ----- Up to 500 results are returned for any one call. To retrieve further--- results, use returned 'NextToken' values with subsequent 'ListMetrics'--- operations.+-- Up to 500 results are returned for any one call. To retrieve further results, use returned 'NextToken' values with subsequent 'ListMetrics' operations. ----- If you create a metric with the < PutMetricData> action, allow up to--- fifteen minutes for the metric to appear in calls to the 'ListMetrics'--- action. Statistics about the metric, however, are available sooner using--- < GetMetricStatistics>.+-- If you create a metric with the < PutMetricData> action, allow up to fifteen minutes for the metric to appear in calls to the 'ListMetrics' action. Statistics about the metric, however, are available sooner using < GetMetricStatistics>. -- -- This operation returns paginated results. module Network.AWS.CloudWatch.ListMetrics@@ -97,8 +90,7 @@ lmNamespace :: Lens' ListMetrics (Maybe Text) lmNamespace = lens _lmNamespace (\ s a -> s{_lmNamespace = a}); --- | The token returned by a previous call to indicate that there is more--- data available.+-- | The token returned by a previous call to indicate that there is more data available. lmNextToken :: Lens' ListMetrics (Maybe Text) lmNextToken = lens _lmNextToken (\ s a -> s{_lmNextToken = a});
gen/Network/AWS/CloudWatch/PutMetricAlarm.hs view
@@ -18,45 +18,24 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates an alarm and associates it with the specified Amazon--- CloudWatch metric. Optionally, this operation can associate one or more--- Amazon Simple Notification Service resources with the alarm.+-- Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm. ----- When this operation creates an alarm, the alarm state is immediately set--- to 'INSUFFICIENT_DATA'. The alarm is evaluated and its 'StateValue' is--- set appropriately. Any actions associated with the 'StateValue' is then--- executed.+-- When this operation creates an alarm, the alarm state is immediately set to 'INSUFFICIENT_DATA'. The alarm is evaluated and its 'StateValue' is set appropriately. Any actions associated with the 'StateValue' is then executed. -- -- When updating an existing alarm, its 'StateValue' is left unchanged. ----- If you are using an AWS Identity and Access Management (IAM) account to--- create or modify an alarm, you must have the following Amazon EC2--- permissions:+-- If you are using an AWS Identity and Access Management (IAM) account to create or modify an alarm, you must have the following Amazon EC2 permissions: ----- - 'ec2:DescribeInstanceStatus' and 'ec2:DescribeInstances' for all--- alarms on Amazon EC2 instance status metrics.+-- - 'ec2:DescribeInstanceStatus' and 'ec2:DescribeInstances' for all alarms on Amazon EC2 instance status metrics. -- - 'ec2:StopInstances' for alarms with stop actions. -- - 'ec2:TerminateInstances' for alarms with terminate actions.--- - 'ec2:DescribeInstanceRecoveryAttribute', and 'ec2:RecoverInstances'--- for alarms with recover actions.+-- - 'ec2:DescribeInstanceRecoveryAttribute', and 'ec2:RecoverInstances' for alarms with recover actions. ----- If you have read\/write permissions for Amazon CloudWatch but not for--- Amazon EC2, you can still create an alarm but the stop or terminate--- actions won\'t be performed on the Amazon EC2 instance. However, if you--- are later granted permission to use the associated Amazon EC2 APIs, the--- alarm actions you created earlier will be performed. For more--- information about IAM permissions, see--- <http://docs.aws.amazon.com//IAM/latest/UserGuide/PermissionsAndPolicies.html Permissions and Policies>--- in /Using IAM/.+-- If you have read\/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm but the stop or terminate actions won\'t be performed on the Amazon EC2 instance. However, if you are later granted permission to use the associated Amazon EC2 APIs, the alarm actions you created earlier will be performed. For more information about IAM permissions, see <http://docs.aws.amazon.com//IAM/latest/UserGuide/PermissionsAndPolicies.html Permissions and Policies> in /Using IAM/. ----- If you are using an IAM role (e.g., an Amazon EC2 instance profile), you--- cannot stop or terminate the instance using alarm actions. However, you--- can still see the alarm state and perform any other actions such as--- Amazon SNS notifications or Auto Scaling policies.+-- If you are using an IAM role (e.g., an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies. ----- If you are using temporary security credentials granted using the AWS--- Security Token Service (AWS STS), you cannot stop or terminate an Amazon--- EC2 instance using alarm actions.+-- If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions. module Network.AWS.CloudWatch.PutMetricAlarm ( -- * Creating a Request@@ -176,52 +155,27 @@ pmaAlarmDescription :: Lens' PutMetricAlarm (Maybe Text) pmaAlarmDescription = lens _pmaAlarmDescription (\ s a -> s{_pmaAlarmDescription = a}); --- | The list of actions to execute when this alarm transitions into an 'OK'--- state from any other state. Each action is specified as an Amazon--- Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'OK' state from any other state. Each action is specified as an Amazon Resource Name (ARN). ----- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover+-- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop | arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate | arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover ----- Valid Values (for use with IAM roles):--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0+-- Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0 ----- __Note:__ You must create at least one stop, terminate, or reboot alarm--- using the Amazon EC2 or CloudWatch console to create the--- __EC2ActionsAccess__ IAM role for the first time. After this IAM role is--- created, you can create stop, terminate, or reboot alarms using the CLI.+-- __Note:__ You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the __EC2ActionsAccess__ IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI. pmaOKActions :: Lens' PutMetricAlarm [Text] pmaOKActions = lens _pmaOKActions (\ s a -> s{_pmaOKActions = a}) . _Default . _Coerce; --- | Indicates whether or not actions should be executed during any changes--- to the alarm\'s state.+-- | Indicates whether or not actions should be executed during any changes to the alarm\'s state. pmaActionsEnabled :: Lens' PutMetricAlarm (Maybe Bool) pmaActionsEnabled = lens _pmaActionsEnabled (\ s a -> s{_pmaActionsEnabled = a}); --- | The list of actions to execute when this alarm transitions into an--- 'INSUFFICIENT_DATA' state from any other state. Each action is specified--- as an Amazon Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'INSUFFICIENT_DATA' state from any other state. Each action is specified as an Amazon Resource Name (ARN). ----- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover+-- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop | arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate | arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover ----- Valid Values (for use with IAM roles):--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0+-- Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0 ----- __Note:__ You must create at least one stop, terminate, or reboot alarm--- using the Amazon EC2 or CloudWatch console to create the--- __EC2ActionsAccess__ IAM role for the first time. After this IAM role is--- created, you can create stop, terminate, or reboot alarms using the CLI.+-- __Note:__ You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the __EC2ActionsAccess__ IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI. pmaInsufficientDataActions :: Lens' PutMetricAlarm [Text] pmaInsufficientDataActions = lens _pmaInsufficientDataActions (\ s a -> s{_pmaInsufficientDataActions = a}) . _Default . _Coerce; @@ -229,43 +183,23 @@ pmaDimensions :: Lens' PutMetricAlarm [Dimension] pmaDimensions = lens _pmaDimensions (\ s a -> s{_pmaDimensions = a}) . _Default . _Coerce; --- | The list of actions to execute when this alarm transitions into an--- 'ALARM' state from any other state. Each action is specified as an--- Amazon Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'ALARM' state from any other state. Each action is specified as an Amazon Resource Name (ARN). ----- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate |--- arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover+-- Valid Values: arn:aws:automate:/region (e.g., us-east-1)/:ec2:stop | arn:aws:automate:/region (e.g., us-east-1)/:ec2:terminate | arn:aws:automate:/region (e.g., us-east-1)/:ec2:recover ----- Valid Values (for use with IAM roles):--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0--- |--- arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0+-- Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0 | arn:aws:swf:us-east-1:{/customer-account/}:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0 ----- __Note:__ You must create at least one stop, terminate, or reboot alarm--- using the Amazon EC2 or CloudWatch console to create the--- __EC2ActionsAccess__ IAM role for the first time. After this IAM role is--- created, you can create stop, terminate, or reboot alarms using the CLI.+-- __Note:__ You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the __EC2ActionsAccess__ IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI. pmaAlarmActions :: Lens' PutMetricAlarm [Text] pmaAlarmActions = lens _pmaAlarmActions (\ s a -> s{_pmaAlarmActions = a}) . _Default . _Coerce; --- | The statistic\'s unit of measure. For example, the units for the Amazon--- EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of--- bytes that an instance receives on all network interfaces. You can also--- specify a unit when you create a custom metric. Units help provide--- conceptual meaning to your data. Metric data points that specify a unit--- of measure, such as Percent, are aggregated separately.+-- | The statistic\'s unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately. ----- __Note:__ If you specify a unit, you must use a unit that is appropriate--- for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to--- get stuck in the INSUFFICIENT DATA state.+-- __Note:__ If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state. pmaUnit :: Lens' PutMetricAlarm (Maybe StandardUnit) pmaUnit = lens _pmaUnit (\ s a -> s{_pmaUnit = a}); --- | The descriptive name for the alarm. This name must be unique within the--- user\'s AWS account+-- | The descriptive name for the alarm. This name must be unique within the user\'s AWS account pmaAlarmName :: Lens' PutMetricAlarm Text pmaAlarmName = lens _pmaAlarmName (\ s a -> s{_pmaAlarmName = a}); @@ -285,8 +219,7 @@ pmaPeriod :: Lens' PutMetricAlarm Natural pmaPeriod = lens _pmaPeriod (\ s a -> s{_pmaPeriod = a}) . _Nat; --- | The number of periods over which data is compared to the specified--- threshold.+-- | The number of periods over which data is compared to the specified threshold. pmaEvaluationPeriods :: Lens' PutMetricAlarm Natural pmaEvaluationPeriods = lens _pmaEvaluationPeriods (\ s a -> s{_pmaEvaluationPeriods = a}) . _Nat; @@ -294,9 +227,7 @@ pmaThreshold :: Lens' PutMetricAlarm Double pmaThreshold = lens _pmaThreshold (\ s a -> s{_pmaThreshold = a}); --- | The arithmetic operation to use when comparing the specified 'Statistic'--- and 'Threshold'. The specified 'Statistic' value is used as the first--- operand.+-- | The arithmetic operation to use when comparing the specified 'Statistic' and 'Threshold'. The specified 'Statistic' value is used as the first operand. pmaComparisonOperator :: Lens' PutMetricAlarm ComparisonOperator pmaComparisonOperator = lens _pmaComparisonOperator (\ s a -> s{_pmaComparisonOperator = a});
gen/Network/AWS/CloudWatch/PutMetricData.hs view
@@ -18,24 +18,13 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch--- associates the data points with the specified metric. If the specified--- metric does not exist, Amazon CloudWatch creates the metric. When Amazon--- CloudWatch creates a metric, it can take up to fifteen minutes for the--- metric to appear in calls to the < ListMetrics> action.+-- Publishes metric data points to Amazon CloudWatch. Amazon CloudWatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to the < ListMetrics> action. ----- Each 'PutMetricData' request is limited to 8 KB in size for HTTP GET--- requests and is limited to 40 KB in size for HTTP POST requests.+-- Each 'PutMetricData' request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests. ----- Although the 'Value' parameter accepts numbers of type 'Double', Amazon--- CloudWatch rejects values that are either too small or too large. Values--- must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or--- 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN,--- +Infinity, -Infinity) are not supported.+-- Although the 'Value' parameter accepts numbers of type 'Double', Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported. ----- Data that is timestamped 24 hours or more in the past may take in excess--- of 48 hours to become available from submission time using--- 'GetMetricStatistics'.+-- Data that is timestamped 24 hours or more in the past may take in excess of 48 hours to become available from submission time using 'GetMetricStatistics'. module Network.AWS.CloudWatch.PutMetricData ( -- * Creating a Request@@ -81,9 +70,7 @@ -- | The namespace for the metric data. ----- You cannot specify a namespace that begins with \"AWS\/\". Namespaces--- that begin with \"AWS\/\" are reserved for other Amazon Web Services--- products that send metrics to Amazon CloudWatch.+-- You cannot specify a namespace that begins with \"AWS\/\". Namespaces that begin with \"AWS\/\" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. pmdNamespace :: Lens' PutMetricData Text pmdNamespace = lens _pmdNamespace (\ s a -> s{_pmdNamespace = a});
gen/Network/AWS/CloudWatch/SetAlarmState.hs view
@@ -18,16 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Temporarily sets the state of an alarm. When the updated 'StateValue'--- differs from the previous value, the action configured for the--- appropriate state is invoked. For example, if your alarm is configured--- to send an Amazon SNS message when an alarm is triggered, temporarily--- changing the alarm\'s state to __ALARM__ will send an Amazon SNS--- message. This is not a permanent change. The next periodic alarm check--- (in about a minute) will set the alarm to its actual state. Because the--- alarm state change happens very quickly, it is typically only visibile--- in the alarm\'s __History__ tab in the Amazon CloudWatch console or--- through 'DescribeAlarmHistory'.+-- Temporarily sets the state of an alarm. When the updated 'StateValue' differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm\'s state to __ALARM__ will send an Amazon SNS message. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state. Because the alarm state change happens very quickly, it is typically only visibile in the alarm\'s __History__ tab in the Amazon CloudWatch console or through 'DescribeAlarmHistory'. module Network.AWS.CloudWatch.SetAlarmState ( -- * Creating a Request@@ -83,13 +74,11 @@ , _sasStateReason = pStateReason_ } --- | The reason that this alarm is set to this specific state (in--- machine-readable JSON format)+-- | The reason that this alarm is set to this specific state (in machine-readable JSON format) sasStateReasonData :: Lens' SetAlarmState (Maybe Text) sasStateReasonData = lens _sasStateReasonData (\ s a -> s{_sasStateReasonData = a}); --- | The descriptive name for the alarm. This name must be unique within the--- user\'s AWS account. The maximum length is 255 characters.+-- | The descriptive name for the alarm. This name must be unique within the user\'s AWS account. The maximum length is 255 characters. sasAlarmName :: Lens' SetAlarmState Text sasAlarmName = lens _sasAlarmName (\ s a -> s{_sasAlarmName = a}); @@ -97,8 +86,7 @@ sasStateValue :: Lens' SetAlarmState StateValue sasStateValue = lens _sasStateValue (\ s a -> s{_sasStateValue = a}); --- | The reason that this alarm is set to this specific state (in--- human-readable text format)+-- | The reason that this alarm is set to this specific state (in human-readable text format) sasStateReason :: Lens' SetAlarmState Text sasStateReason = lens _sasStateReason (\ s a -> s{_sasStateReason = a});
gen/Network/AWS/CloudWatch/Types.hs view
@@ -171,8 +171,7 @@ _InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError _InvalidNextToken = _ServiceError . hasStatus 400 . hasCode "InvalidNextToken" --- | Indicates that the request processing has failed due to some unknown--- error, exception, or failure.+-- | Indicates that the request processing has failed due to some unknown error, exception, or failure. _InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError _InternalServiceFault = _ServiceError . hasStatus 500 . hasCode "InternalServiceError"@@ -186,8 +185,7 @@ _InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError _InvalidFormatFault = _ServiceError . hasStatus 400 . hasCode "InvalidFormat" --- | An input parameter that is mandatory for processing the request is not--- supplied.+-- | An input parameter that is mandatory for processing the request is not supplied. _MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError _MissingRequiredParameterException = _ServiceError . hasStatus 400 . hasCode "MissingParameter"
gen/Network/AWS/CloudWatch/Types/Product.hs view
@@ -21,10 +21,7 @@ import Network.AWS.Lens import Network.AWS.Prelude --- | The 'AlarmHistoryItem' data type contains descriptive information about--- the history of a specific alarm. If you call < DescribeAlarmHistory>,--- Amazon CloudWatch returns this data type as part of the--- DescribeAlarmHistoryResult data type.+-- | The 'AlarmHistoryItem' data type contains descriptive information about the history of a specific alarm. If you call < DescribeAlarmHistory>, Amazon CloudWatch returns this data type as part of the DescribeAlarmHistoryResult data type. -- -- /See:/ 'alarmHistoryItem' smart constructor. data AlarmHistoryItem = AlarmHistoryItem'@@ -91,8 +88,7 @@ instance NFData AlarmHistoryItem --- | The 'Datapoint' data type encapsulates the statistical data that Amazon--- CloudWatch computes from metric data.+-- | The 'Datapoint' data type encapsulates the statistical data that Amazon CloudWatch computes from metric data. -- -- /See:/ 'datapoint' smart constructor. data Datapoint = Datapoint'@@ -135,8 +131,7 @@ , _dTimestamp = Nothing } --- | The number of metric values that contributed to the aggregate value of--- this datapoint.+-- | The number of metric values that contributed to the aggregate value of this datapoint. dSampleCount :: Lens' Datapoint (Maybe Double) dSampleCount = lens _dSampleCount (\ s a -> s{_dSampleCount = a}); @@ -178,8 +173,7 @@ instance NFData Datapoint --- | The 'Dimension' data type further expands on the identity of a metric--- using a Name, Value pair.+-- | The 'Dimension' data type further expands on the identity of a metric using a Name, Value pair. -- -- For examples that use one or more dimensions, see < PutMetricData>. --@@ -226,8 +220,7 @@ toQuery Dimension'{..} = mconcat ["Name" =: _dName, "Value" =: _dValue] --- | The 'DimensionFilter' data type is used to filter < ListMetrics>--- results.+-- | The 'DimensionFilter' data type is used to filter < ListMetrics> results. -- -- /See:/ 'dimensionFilter' smart constructor. data DimensionFilter = DimensionFilter'@@ -253,8 +246,7 @@ -- | The value of the dimension to be matched. ----- Specifying a 'Name' without specifying a 'Value' returns all values--- associated with that 'Name'.+-- Specifying a 'Name' without specifying a 'Value' returns all values associated with that 'Name'. dfValue :: Lens' DimensionFilter (Maybe Text) dfValue = lens _dfValue (\ s a -> s{_dfValue = a}); @@ -270,13 +262,9 @@ toQuery DimensionFilter'{..} = mconcat ["Value" =: _dfValue, "Name" =: _dfName] --- | The 'Metric' data type contains information about a specific metric. If--- you call < ListMetrics>, Amazon CloudWatch returns information contained--- by this data type.+-- | The 'Metric' data type contains information about a specific metric. If you call < ListMetrics>, Amazon CloudWatch returns information contained by this data type. ----- The example in the Examples section publishes two metrics named buffers--- and latency. Both metrics are in the examples namespace. Both metrics--- have two dimensions, InstanceID and InstanceType.+-- The example in the Examples section publishes two metrics named buffers and latency. Both metrics are in the examples namespace. Both metrics have two dimensions, InstanceID and InstanceType. -- -- /See:/ 'metric' smart constructor. data Metric = Metric'@@ -326,8 +314,7 @@ instance NFData Metric --- | The < MetricAlarm> data type represents an alarm. You can use--- < PutMetricAlarm> to create or update an alarm.+-- | The < MetricAlarm> data type represents an alarm. You can use < PutMetricAlarm> to create or update an alarm. -- -- /See:/ 'metricAlarm' smart constructor. data MetricAlarm = MetricAlarm'@@ -442,8 +429,7 @@ maAlarmDescription :: Lens' MetricAlarm (Maybe Text) maAlarmDescription = lens _maAlarmDescription (\ s a -> s{_maAlarmDescription = a}); --- | The number of periods over which data is compared to the specified--- threshold.+-- | The number of periods over which data is compared to the specified threshold. maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural) maEvaluationPeriods = lens _maEvaluationPeriods (\ s a -> s{_maEvaluationPeriods = a}) . mapping _Nat; @@ -455,15 +441,11 @@ maNamespace :: Lens' MetricAlarm (Maybe Text) maNamespace = lens _maNamespace (\ s a -> s{_maNamespace = a}); --- | The arithmetic operation to use when comparing the specified 'Statistic'--- and 'Threshold'. The specified 'Statistic' value is used as the first--- operand.+-- | The arithmetic operation to use when comparing the specified 'Statistic' and 'Threshold'. The specified 'Statistic' value is used as the first operand. maComparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator) maComparisonOperator = lens _maComparisonOperator (\ s a -> s{_maComparisonOperator = a}); --- | The list of actions to execute when this alarm transitions into an 'OK'--- state from any other state. Each action is specified as an Amazon--- Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'OK' state from any other state. Each action is specified as an Amazon Resource Name (ARN). maOKActions :: Lens' MetricAlarm [Text] maOKActions = lens _maOKActions (\ s a -> s{_maOKActions = a}) . _Default . _Coerce; @@ -479,14 +461,11 @@ maAlarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime) maAlarmConfigurationUpdatedTimestamp = lens _maAlarmConfigurationUpdatedTimestamp (\ s a -> s{_maAlarmConfigurationUpdatedTimestamp = a}) . mapping _Time; --- | Indicates whether actions should be executed during any changes to the--- alarm\'s state.+-- | Indicates whether actions should be executed during any changes to the alarm\'s state. maActionsEnabled :: Lens' MetricAlarm (Maybe Bool) maActionsEnabled = lens _maActionsEnabled (\ s a -> s{_maActionsEnabled = a}); --- | The list of actions to execute when this alarm transitions into an--- 'INSUFFICIENT_DATA' state from any other state. Each action is specified--- as an Amazon Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'INSUFFICIENT_DATA' state from any other state. Each action is specified as an Amazon Resource Name (ARN). -- -- The current WSDL lists this attribute as 'UnknownActions'. maInsufficientDataActions :: Lens' MetricAlarm [Text]@@ -508,9 +487,7 @@ maAlarmARN :: Lens' MetricAlarm (Maybe Text) maAlarmARN = lens _maAlarmARN (\ s a -> s{_maAlarmARN = a}); --- | The list of actions to execute when this alarm transitions into an--- 'ALARM' state from any other state. Each action is specified as an--- Amazon Resource Name (ARN).+-- | The list of actions to execute when this alarm transitions into an 'ALARM' state from any other state. Each action is specified as an Amazon Resource Name (ARN). maAlarmActions :: Lens' MetricAlarm [Text] maAlarmActions = lens _maAlarmActions (\ s a -> s{_maAlarmActions = a}) . _Default . _Coerce; @@ -559,9 +536,7 @@ instance NFData MetricAlarm --- | The 'MetricDatum' data type encapsulates the information sent with--- < PutMetricData> to either create a new metric or add new values to be--- aggregated into an existing metric.+-- | The 'MetricDatum' data type encapsulates the information sent with < PutMetricData> to either create a new metric or add new values to be aggregated into an existing metric. -- -- /See:/ 'metricDatum' smart constructor. data MetricDatum = MetricDatum'@@ -603,17 +578,11 @@ -- | The value for the metric. ----- Although the 'Value' parameter accepts numbers of type 'Double', Amazon--- CloudWatch rejects values that are either too small or too large. Values--- must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or--- 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN,--- +Infinity, -Infinity) are not supported.+-- Although the 'Value' parameter accepts numbers of type 'Double', Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported. mdValue :: Lens' MetricDatum (Maybe Double) mdValue = lens _mdValue (\ s a -> s{_mdValue = a}); --- | A list of dimensions associated with the metric. Note, when using the--- Dimensions value in a query, you need to append .member.N to it (e.g.,--- Dimensions.member.N).+-- | A list of dimensions associated with the metric. Note, when using the Dimensions value in a query, you need to append .member.N to it (e.g., Dimensions.member.N). mdDimensions :: Lens' MetricDatum [Dimension] mdDimensions = lens _mdDimensions (\ s a -> s{_mdDimensions = a}) . _Default . _Coerce; @@ -621,9 +590,7 @@ mdUnit :: Lens' MetricDatum (Maybe StandardUnit) mdUnit = lens _mdUnit (\ s a -> s{_mdUnit = a}); --- | The time stamp used for the metric in ISO 8601 Universal Coordinated--- Time (UTC) format. If not specified, the default value is set to the--- time the metric data was received.+-- | The time stamp used for the metric in ISO 8601 Universal Coordinated Time (UTC) format. If not specified, the default value is set to the time the metric data was received. mdTimestamp :: Lens' MetricDatum (Maybe UTCTime) mdTimestamp = lens _mdTimestamp (\ s a -> s{_mdTimestamp = a}) . mapping _Time; @@ -649,9 +616,7 @@ "StatisticValues" =: _mdStatisticValues, "MetricName" =: _mdMetricName] --- | The 'StatisticSet' data type describes the 'StatisticValues' component--- of < MetricDatum>, and represents a set of statistics that describes a--- specific metric.+-- | The 'StatisticSet' data type describes the 'StatisticValues' component of < MetricDatum>, and represents a set of statistics that describes a specific metric. -- -- /See:/ 'statisticSet' smart constructor. data StatisticSet = StatisticSet'
test/Test/AWS/Gen/CloudWatch.hs view
@@ -28,73 +28,73 @@ -- fixtures :: TestTree -- fixtures = -- [ testGroup "request"--- [ testEnableAlarmActions $+-- [ requestEnableAlarmActions $ -- enableAlarmActions ----- , testPutMetricData $+-- , requestPutMetricData $ -- putMetricData ----- , testDescribeAlarms $+-- , requestDescribeAlarms $ -- describeAlarms ----- , testListMetrics $+-- , requestListMetrics $ -- listMetrics ----- , testDeleteAlarms $+-- , requestDeleteAlarms $ -- deleteAlarms ----- , testDescribeAlarmHistory $+-- , requestDescribeAlarmHistory $ -- describeAlarmHistory ----- , testGetMetricStatistics $+-- , requestGetMetricStatistics $ -- getMetricStatistics ----- , testDescribeAlarmsForMetric $+-- , requestDescribeAlarmsForMetric $ -- describeAlarmsForMetric ----- , testDisableAlarmActions $+-- , requestDisableAlarmActions $ -- disableAlarmActions ----- , testPutMetricAlarm $+-- , requestPutMetricAlarm $ -- putMetricAlarm ----- , testSetAlarmState $+-- , requestSetAlarmState $ -- setAlarmState -- -- ] -- , testGroup "response"--- [ testEnableAlarmActionsResponse $+-- [ responseEnableAlarmActions $ -- enableAlarmActionsResponse ----- , testPutMetricDataResponse $+-- , responsePutMetricData $ -- putMetricDataResponse ----- , testDescribeAlarmsResponse $+-- , responseDescribeAlarms $ -- describeAlarmsResponse ----- , testListMetricsResponse $+-- , responseListMetrics $ -- listMetricsResponse ----- , testDeleteAlarmsResponse $+-- , responseDeleteAlarms $ -- deleteAlarmsResponse ----- , testDescribeAlarmHistoryResponse $+-- , responseDescribeAlarmHistory $ -- describeAlarmHistoryResponse ----- , testGetMetricStatisticsResponse $+-- , responseGetMetricStatistics $ -- getMetricStatisticsResponse ----- , testDescribeAlarmsForMetricResponse $+-- , responseDescribeAlarmsForMetric $ -- describeAlarmsForMetricResponse ----- , testDisableAlarmActionsResponse $+-- , responseDisableAlarmActions $ -- disableAlarmActionsResponse ----- , testPutMetricAlarmResponse $+-- , responsePutMetricAlarm $ -- putMetricAlarmResponse ----- , testSetAlarmStateResponse $+-- , responseSetAlarmState $ -- setAlarmStateResponse -- -- ]@@ -102,135 +102,135 @@ -- Requests -testEnableAlarmActions :: EnableAlarmActions -> TestTree-testEnableAlarmActions = req+requestEnableAlarmActions :: EnableAlarmActions -> TestTree+requestEnableAlarmActions = req "EnableAlarmActions" "fixture/EnableAlarmActions.yaml" -testPutMetricData :: PutMetricData -> TestTree-testPutMetricData = req+requestPutMetricData :: PutMetricData -> TestTree+requestPutMetricData = req "PutMetricData" "fixture/PutMetricData.yaml" -testDescribeAlarms :: DescribeAlarms -> TestTree-testDescribeAlarms = req+requestDescribeAlarms :: DescribeAlarms -> TestTree+requestDescribeAlarms = req "DescribeAlarms" "fixture/DescribeAlarms.yaml" -testListMetrics :: ListMetrics -> TestTree-testListMetrics = req+requestListMetrics :: ListMetrics -> TestTree+requestListMetrics = req "ListMetrics" "fixture/ListMetrics.yaml" -testDeleteAlarms :: DeleteAlarms -> TestTree-testDeleteAlarms = req+requestDeleteAlarms :: DeleteAlarms -> TestTree+requestDeleteAlarms = req "DeleteAlarms" "fixture/DeleteAlarms.yaml" -testDescribeAlarmHistory :: DescribeAlarmHistory -> TestTree-testDescribeAlarmHistory = req+requestDescribeAlarmHistory :: DescribeAlarmHistory -> TestTree+requestDescribeAlarmHistory = req "DescribeAlarmHistory" "fixture/DescribeAlarmHistory.yaml" -testGetMetricStatistics :: GetMetricStatistics -> TestTree-testGetMetricStatistics = req+requestGetMetricStatistics :: GetMetricStatistics -> TestTree+requestGetMetricStatistics = req "GetMetricStatistics" "fixture/GetMetricStatistics.yaml" -testDescribeAlarmsForMetric :: DescribeAlarmsForMetric -> TestTree-testDescribeAlarmsForMetric = req+requestDescribeAlarmsForMetric :: DescribeAlarmsForMetric -> TestTree+requestDescribeAlarmsForMetric = req "DescribeAlarmsForMetric" "fixture/DescribeAlarmsForMetric.yaml" -testDisableAlarmActions :: DisableAlarmActions -> TestTree-testDisableAlarmActions = req+requestDisableAlarmActions :: DisableAlarmActions -> TestTree+requestDisableAlarmActions = req "DisableAlarmActions" "fixture/DisableAlarmActions.yaml" -testPutMetricAlarm :: PutMetricAlarm -> TestTree-testPutMetricAlarm = req+requestPutMetricAlarm :: PutMetricAlarm -> TestTree+requestPutMetricAlarm = req "PutMetricAlarm" "fixture/PutMetricAlarm.yaml" -testSetAlarmState :: SetAlarmState -> TestTree-testSetAlarmState = req+requestSetAlarmState :: SetAlarmState -> TestTree+requestSetAlarmState = req "SetAlarmState" "fixture/SetAlarmState.yaml" -- Responses -testEnableAlarmActionsResponse :: EnableAlarmActionsResponse -> TestTree-testEnableAlarmActionsResponse = res+responseEnableAlarmActions :: EnableAlarmActionsResponse -> TestTree+responseEnableAlarmActions = res "EnableAlarmActionsResponse" "fixture/EnableAlarmActionsResponse.proto" cloudWatch (Proxy :: Proxy EnableAlarmActions) -testPutMetricDataResponse :: PutMetricDataResponse -> TestTree-testPutMetricDataResponse = res+responsePutMetricData :: PutMetricDataResponse -> TestTree+responsePutMetricData = res "PutMetricDataResponse" "fixture/PutMetricDataResponse.proto" cloudWatch (Proxy :: Proxy PutMetricData) -testDescribeAlarmsResponse :: DescribeAlarmsResponse -> TestTree-testDescribeAlarmsResponse = res+responseDescribeAlarms :: DescribeAlarmsResponse -> TestTree+responseDescribeAlarms = res "DescribeAlarmsResponse" "fixture/DescribeAlarmsResponse.proto" cloudWatch (Proxy :: Proxy DescribeAlarms) -testListMetricsResponse :: ListMetricsResponse -> TestTree-testListMetricsResponse = res+responseListMetrics :: ListMetricsResponse -> TestTree+responseListMetrics = res "ListMetricsResponse" "fixture/ListMetricsResponse.proto" cloudWatch (Proxy :: Proxy ListMetrics) -testDeleteAlarmsResponse :: DeleteAlarmsResponse -> TestTree-testDeleteAlarmsResponse = res+responseDeleteAlarms :: DeleteAlarmsResponse -> TestTree+responseDeleteAlarms = res "DeleteAlarmsResponse" "fixture/DeleteAlarmsResponse.proto" cloudWatch (Proxy :: Proxy DeleteAlarms) -testDescribeAlarmHistoryResponse :: DescribeAlarmHistoryResponse -> TestTree-testDescribeAlarmHistoryResponse = res+responseDescribeAlarmHistory :: DescribeAlarmHistoryResponse -> TestTree+responseDescribeAlarmHistory = res "DescribeAlarmHistoryResponse" "fixture/DescribeAlarmHistoryResponse.proto" cloudWatch (Proxy :: Proxy DescribeAlarmHistory) -testGetMetricStatisticsResponse :: GetMetricStatisticsResponse -> TestTree-testGetMetricStatisticsResponse = res+responseGetMetricStatistics :: GetMetricStatisticsResponse -> TestTree+responseGetMetricStatistics = res "GetMetricStatisticsResponse" "fixture/GetMetricStatisticsResponse.proto" cloudWatch (Proxy :: Proxy GetMetricStatistics) -testDescribeAlarmsForMetricResponse :: DescribeAlarmsForMetricResponse -> TestTree-testDescribeAlarmsForMetricResponse = res+responseDescribeAlarmsForMetric :: DescribeAlarmsForMetricResponse -> TestTree+responseDescribeAlarmsForMetric = res "DescribeAlarmsForMetricResponse" "fixture/DescribeAlarmsForMetricResponse.proto" cloudWatch (Proxy :: Proxy DescribeAlarmsForMetric) -testDisableAlarmActionsResponse :: DisableAlarmActionsResponse -> TestTree-testDisableAlarmActionsResponse = res+responseDisableAlarmActions :: DisableAlarmActionsResponse -> TestTree+responseDisableAlarmActions = res "DisableAlarmActionsResponse" "fixture/DisableAlarmActionsResponse.proto" cloudWatch (Proxy :: Proxy DisableAlarmActions) -testPutMetricAlarmResponse :: PutMetricAlarmResponse -> TestTree-testPutMetricAlarmResponse = res+responsePutMetricAlarm :: PutMetricAlarmResponse -> TestTree+responsePutMetricAlarm = res "PutMetricAlarmResponse" "fixture/PutMetricAlarmResponse.proto" cloudWatch (Proxy :: Proxy PutMetricAlarm) -testSetAlarmStateResponse :: SetAlarmStateResponse -> TestTree-testSetAlarmStateResponse = res+responseSetAlarmState :: SetAlarmStateResponse -> TestTree+responseSetAlarmState = res "SetAlarmStateResponse" "fixture/SetAlarmStateResponse.proto" cloudWatch