amazonka-cloudwatch 1.6.1 → 2.0
raw patch · 176 files changed
+20573/−5240 lines, 176 filesdep +case-insensitivedep ~amazonka-coredep ~amazonka-testdep ~basesetup-changedPVP ok
version bump matches the API change (PVP)
Dependencies added: case-insensitive
Dependency ranges changed: amazonka-core, amazonka-test, base
API changes (from Hackage documentation)
- Network.AWS.CloudWatch: Action :: HistoryItemType
- Network.AWS.CloudWatch: Alarm :: StateValue
- Network.AWS.CloudWatch: Average :: Statistic
- Network.AWS.CloudWatch: Bits :: StandardUnit
- Network.AWS.CloudWatch: BitsSecond :: StandardUnit
- Network.AWS.CloudWatch: Bytes :: StandardUnit
- Network.AWS.CloudWatch: BytesSecond :: StandardUnit
- Network.AWS.CloudWatch: Complete :: StatusCode
- Network.AWS.CloudWatch: ConfigurationUpdate :: HistoryItemType
- Network.AWS.CloudWatch: Count :: StandardUnit
- Network.AWS.CloudWatch: CountSecond :: StandardUnit
- Network.AWS.CloudWatch: Gigabits :: StandardUnit
- Network.AWS.CloudWatch: GigabitsSecond :: StandardUnit
- Network.AWS.CloudWatch: Gigabytes :: StandardUnit
- Network.AWS.CloudWatch: GigabytesSecond :: StandardUnit
- Network.AWS.CloudWatch: GreaterThanOrEqualToThreshold :: ComparisonOperator
- Network.AWS.CloudWatch: GreaterThanThreshold :: ComparisonOperator
- Network.AWS.CloudWatch: InsufficientData :: StateValue
- Network.AWS.CloudWatch: InternalError :: StatusCode
- Network.AWS.CloudWatch: Kilobits :: StandardUnit
- Network.AWS.CloudWatch: KilobitsSecond :: StandardUnit
- Network.AWS.CloudWatch: Kilobytes :: StandardUnit
- Network.AWS.CloudWatch: KilobytesSecond :: StandardUnit
- Network.AWS.CloudWatch: LessThanOrEqualToThreshold :: ComparisonOperator
- Network.AWS.CloudWatch: LessThanThreshold :: ComparisonOperator
- Network.AWS.CloudWatch: Maximum :: Statistic
- Network.AWS.CloudWatch: Megabits :: StandardUnit
- Network.AWS.CloudWatch: MegabitsSecond :: StandardUnit
- Network.AWS.CloudWatch: Megabytes :: StandardUnit
- Network.AWS.CloudWatch: MegabytesSecond :: StandardUnit
- Network.AWS.CloudWatch: Microseconds :: StandardUnit
- Network.AWS.CloudWatch: Milliseconds :: StandardUnit
- Network.AWS.CloudWatch: Minimum :: Statistic
- Network.AWS.CloudWatch: None :: StandardUnit
- Network.AWS.CloudWatch: OK :: StateValue
- Network.AWS.CloudWatch: PartialData :: StatusCode
- Network.AWS.CloudWatch: Percent :: StandardUnit
- Network.AWS.CloudWatch: SampleCount :: Statistic
- Network.AWS.CloudWatch: Seconds :: StandardUnit
- Network.AWS.CloudWatch: StateUpdate :: HistoryItemType
- Network.AWS.CloudWatch: Sum :: Statistic
- Network.AWS.CloudWatch: Terabits :: StandardUnit
- Network.AWS.CloudWatch: TerabitsSecond :: StandardUnit
- Network.AWS.CloudWatch: Terabytes :: StandardUnit
- Network.AWS.CloudWatch: TerabytesSecond :: StandardUnit
- Network.AWS.CloudWatch: TimestampAscending :: ScanBy
- Network.AWS.CloudWatch: TimestampDescending :: ScanBy
- Network.AWS.CloudWatch: _DashboardInvalidInputError :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _DashboardNotFoundError :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: _ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch: ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch: ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch: ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
- Network.AWS.CloudWatch: ahiHistorySummary :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch: ahiTimestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
- Network.AWS.CloudWatch: alarmExists :: Wait DescribeAlarms
- Network.AWS.CloudWatch: alarmHistoryItem :: AlarmHistoryItem
- Network.AWS.CloudWatch: cloudWatch :: Service
- Network.AWS.CloudWatch: dAverage :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch: dExtendedStatistics :: Lens' Datapoint (HashMap Text Double)
- Network.AWS.CloudWatch: dMaximum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch: dMinimum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch: dName :: Lens' Dimension Text
- Network.AWS.CloudWatch: dSampleCount :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch: dSum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch: dTimestamp :: Lens' Datapoint (Maybe UTCTime)
- Network.AWS.CloudWatch: dUnit :: Lens' Datapoint (Maybe StandardUnit)
- Network.AWS.CloudWatch: dValue :: Lens' Dimension Text
- Network.AWS.CloudWatch: dashboardEntry :: DashboardEntry
- Network.AWS.CloudWatch: dashboardValidationMessage :: DashboardValidationMessage
- Network.AWS.CloudWatch: data AlarmHistoryItem
- Network.AWS.CloudWatch: data ComparisonOperator
- Network.AWS.CloudWatch: data DashboardEntry
- Network.AWS.CloudWatch: data DashboardValidationMessage
- Network.AWS.CloudWatch: data Datapoint
- Network.AWS.CloudWatch: data Dimension
- Network.AWS.CloudWatch: data DimensionFilter
- Network.AWS.CloudWatch: data HistoryItemType
- Network.AWS.CloudWatch: data MessageData
- Network.AWS.CloudWatch: data Metric
- Network.AWS.CloudWatch: data MetricAlarm
- Network.AWS.CloudWatch: data MetricDataQuery
- Network.AWS.CloudWatch: data MetricDataResult
- Network.AWS.CloudWatch: data MetricDatum
- Network.AWS.CloudWatch: data MetricStat
- Network.AWS.CloudWatch: data ScanBy
- Network.AWS.CloudWatch: data StandardUnit
- Network.AWS.CloudWatch: data StateValue
- Network.AWS.CloudWatch: data Statistic
- Network.AWS.CloudWatch: data StatisticSet
- Network.AWS.CloudWatch: data StatusCode
- Network.AWS.CloudWatch: datapoint :: Datapoint
- Network.AWS.CloudWatch: deDashboardARN :: Lens' DashboardEntry (Maybe Text)
- Network.AWS.CloudWatch: deDashboardName :: Lens' DashboardEntry (Maybe Text)
- Network.AWS.CloudWatch: deLastModified :: Lens' DashboardEntry (Maybe UTCTime)
- Network.AWS.CloudWatch: deSize :: Lens' DashboardEntry (Maybe Integer)
- Network.AWS.CloudWatch: dfName :: Lens' DimensionFilter Text
- Network.AWS.CloudWatch: dfValue :: Lens' DimensionFilter (Maybe Text)
- Network.AWS.CloudWatch: dimension :: Text -> Text -> Dimension
- Network.AWS.CloudWatch: dimensionFilter :: Text -> DimensionFilter
- Network.AWS.CloudWatch: dvmDataPath :: Lens' DashboardValidationMessage (Maybe Text)
- Network.AWS.CloudWatch: dvmMessage :: Lens' DashboardValidationMessage (Maybe Text)
- Network.AWS.CloudWatch: mCode :: Lens' MessageData (Maybe Text)
- Network.AWS.CloudWatch: mDimensions :: Lens' Metric [Dimension]
- Network.AWS.CloudWatch: mMetricName :: Lens' Metric (Maybe Text)
- Network.AWS.CloudWatch: mNamespace :: Lens' Metric (Maybe Text)
- Network.AWS.CloudWatch: mValue :: Lens' MessageData (Maybe Text)
- Network.AWS.CloudWatch: maActionsEnabled :: Lens' MetricAlarm (Maybe Bool)
- Network.AWS.CloudWatch: maAlarmARN :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maAlarmActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch: maAlarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- Network.AWS.CloudWatch: maAlarmDescription :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maAlarmName :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maComparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
- Network.AWS.CloudWatch: maDatapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch: maDimensions :: Lens' MetricAlarm [Dimension]
- Network.AWS.CloudWatch: maEvaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch: maExtendedStatistic :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maInsufficientDataActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch: maMetricName :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maNamespace :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maOKActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch: maPeriod :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch: maStateReason :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maStateReasonData :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maStateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- Network.AWS.CloudWatch: maStateValue :: Lens' MetricAlarm (Maybe StateValue)
- Network.AWS.CloudWatch: maStatistic :: Lens' MetricAlarm (Maybe Statistic)
- Network.AWS.CloudWatch: maThreshold :: Lens' MetricAlarm (Maybe Double)
- Network.AWS.CloudWatch: maTreatMissingData :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch: maUnit :: Lens' MetricAlarm (Maybe StandardUnit)
- Network.AWS.CloudWatch: mdDimensions :: Lens' MetricDatum [Dimension]
- Network.AWS.CloudWatch: mdMetricName :: Lens' MetricDatum Text
- Network.AWS.CloudWatch: mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)
- Network.AWS.CloudWatch: mdStorageResolution :: Lens' MetricDatum (Maybe Natural)
- Network.AWS.CloudWatch: mdTimestamp :: Lens' MetricDatum (Maybe UTCTime)
- Network.AWS.CloudWatch: mdUnit :: Lens' MetricDatum (Maybe StandardUnit)
- Network.AWS.CloudWatch: mdValue :: Lens' MetricDatum (Maybe Double)
- Network.AWS.CloudWatch: mdqExpression :: Lens' MetricDataQuery (Maybe Text)
- Network.AWS.CloudWatch: mdqId :: Lens' MetricDataQuery Text
- Network.AWS.CloudWatch: mdqLabel :: Lens' MetricDataQuery (Maybe Text)
- Network.AWS.CloudWatch: mdqMetricStat :: Lens' MetricDataQuery (Maybe MetricStat)
- Network.AWS.CloudWatch: mdqReturnData :: Lens' MetricDataQuery (Maybe Bool)
- Network.AWS.CloudWatch: mdrId :: Lens' MetricDataResult (Maybe Text)
- Network.AWS.CloudWatch: mdrLabel :: Lens' MetricDataResult (Maybe Text)
- Network.AWS.CloudWatch: mdrMessages :: Lens' MetricDataResult [MessageData]
- Network.AWS.CloudWatch: mdrStatusCode :: Lens' MetricDataResult (Maybe StatusCode)
- Network.AWS.CloudWatch: mdrTimestamps :: Lens' MetricDataResult [UTCTime]
- Network.AWS.CloudWatch: mdrValues :: Lens' MetricDataResult [Double]
- Network.AWS.CloudWatch: messageData :: MessageData
- Network.AWS.CloudWatch: metric :: Metric
- Network.AWS.CloudWatch: metricAlarm :: MetricAlarm
- Network.AWS.CloudWatch: metricDataQuery :: Text -> MetricDataQuery
- Network.AWS.CloudWatch: metricDataResult :: MetricDataResult
- Network.AWS.CloudWatch: metricDatum :: Text -> MetricDatum
- Network.AWS.CloudWatch: metricStat :: Metric -> Natural -> Text -> MetricStat
- Network.AWS.CloudWatch: msMetric :: Lens' MetricStat Metric
- Network.AWS.CloudWatch: msPeriod :: Lens' MetricStat Natural
- Network.AWS.CloudWatch: msStat :: Lens' MetricStat Text
- Network.AWS.CloudWatch: msUnit :: Lens' MetricStat (Maybe StandardUnit)
- Network.AWS.CloudWatch: ssMaximum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch: ssMinimum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch: ssSampleCount :: Lens' StatisticSet Double
- Network.AWS.CloudWatch: ssSum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch: statisticSet :: Double -> Double -> Double -> Double -> StatisticSet
- Network.AWS.CloudWatch.DeleteAlarms: dAlarmNames :: Lens' DeleteAlarms [Text]
- Network.AWS.CloudWatch.DeleteAlarms: data DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: data DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: deleteAlarms :: DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: deleteAlarmsResponse :: DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance Data.Data.Data Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance Data.Data.Data Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Generics.Generic Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Generics.Generic Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Read.Read Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Read.Read Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Show.Show Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance GHC.Show.Show Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
- Network.AWS.CloudWatch.DeleteAlarms: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteAlarms: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DeleteAlarms.DeleteAlarms
- Network.AWS.CloudWatch.DeleteDashboards: data DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: data DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: ddDashboardNames :: Lens' DeleteDashboards [Text]
- Network.AWS.CloudWatch.DeleteDashboards: ddrsResponseStatus :: Lens' DeleteDashboardsResponse Int
- Network.AWS.CloudWatch.DeleteDashboards: deleteDashboards :: DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: deleteDashboardsResponse :: Int -> DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance Data.Data.Data Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance Data.Data.Data Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Classes.Eq Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Generics.Generic Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Generics.Generic Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Read.Read Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Read.Read Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Show.Show Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance GHC.Show.Show Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
- Network.AWS.CloudWatch.DeleteDashboards: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DeleteDashboards: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DeleteDashboards.DeleteDashboards
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem]
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarmHistory: dahrsResponseStatus :: Lens' DescribeAlarmHistoryResponse Int
- Network.AWS.CloudWatch.DescribeAlarmHistory: data DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: data DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: describeAlarmHistory :: DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: describeAlarmHistoryResponse :: Int -> DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarmHistory: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
- Network.AWS.CloudWatch.DescribeAlarms: daActionPrefix :: Lens' DescribeAlarms (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarms: daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarms: daAlarmNames :: Lens' DescribeAlarms [Text]
- Network.AWS.CloudWatch.DescribeAlarms: daMaxRecords :: Lens' DescribeAlarms (Maybe Natural)
- Network.AWS.CloudWatch.DescribeAlarms: daNextToken :: Lens' DescribeAlarms (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarms: daStateValue :: Lens' DescribeAlarms (Maybe StateValue)
- Network.AWS.CloudWatch.DescribeAlarms: darsMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm]
- Network.AWS.CloudWatch.DescribeAlarms: darsNextToken :: Lens' DescribeAlarmsResponse (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarms: darsResponseStatus :: Lens' DescribeAlarmsResponse Int
- Network.AWS.CloudWatch.DescribeAlarms: data DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: data DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: describeAlarms :: DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: describeAlarmsResponse :: Int -> DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
- Network.AWS.CloudWatch.DescribeAlarms: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarms: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarms.DescribeAlarms
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmExtendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text)
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmMetricName :: Lens' DescribeAlarmsForMetric Text
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmNamespace :: Lens' DescribeAlarmsForMetric Text
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: data DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: data DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Data.Data.Data Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Classes.Eq Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Generics.Generic Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Read.Read Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance GHC.Show.Show Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DescribeAlarmsForMetric: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
- Network.AWS.CloudWatch.DisableAlarmActions: daaAlarmNames :: Lens' DisableAlarmActions [Text]
- Network.AWS.CloudWatch.DisableAlarmActions: data DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: data DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: disableAlarmActions :: DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: disableAlarmActionsResponse :: DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance Data.Data.Data Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance Data.Data.Data Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Classes.Eq Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Classes.Eq Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Generics.Generic Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Generics.Generic Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Read.Read Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Read.Read Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Show.Show Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance GHC.Show.Show Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
- Network.AWS.CloudWatch.DisableAlarmActions: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.DisableAlarmActions: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.DisableAlarmActions.DisableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: data EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: data EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: eaaAlarmNames :: Lens' EnableAlarmActions [Text]
- Network.AWS.CloudWatch.EnableAlarmActions: enableAlarmActions :: EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: enableAlarmActionsResponse :: EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance Data.Data.Data Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance Data.Data.Data Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Classes.Eq Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Classes.Eq Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Generics.Generic Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Generics.Generic Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Read.Read Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Read.Read Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Show.Show Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance GHC.Show.Show Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
- Network.AWS.CloudWatch.EnableAlarmActions: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.EnableAlarmActions: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.EnableAlarmActions.EnableAlarmActions
- Network.AWS.CloudWatch.GetDashboard: data GetDashboard
- Network.AWS.CloudWatch.GetDashboard: data GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: gdDashboardName :: Lens' GetDashboard Text
- Network.AWS.CloudWatch.GetDashboard: gdrsDashboardARN :: Lens' GetDashboardResponse (Maybe Text)
- Network.AWS.CloudWatch.GetDashboard: gdrsDashboardBody :: Lens' GetDashboardResponse (Maybe Text)
- Network.AWS.CloudWatch.GetDashboard: gdrsDashboardName :: Lens' GetDashboardResponse (Maybe Text)
- Network.AWS.CloudWatch.GetDashboard: gdrsResponseStatus :: Lens' GetDashboardResponse Int
- Network.AWS.CloudWatch.GetDashboard: getDashboard :: Text -> GetDashboard
- Network.AWS.CloudWatch.GetDashboard: getDashboardResponse :: Int -> GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance Data.Data.Data Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance Data.Data.Data Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Read.Read Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Read.Read Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Show.Show Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance GHC.Show.Show Network.AWS.CloudWatch.GetDashboard.GetDashboardResponse
- Network.AWS.CloudWatch.GetDashboard: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetDashboard: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.GetDashboard.GetDashboard
- Network.AWS.CloudWatch.GetMetricData: data GetMetricData
- Network.AWS.CloudWatch.GetMetricData: data GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: getMetricData :: UTCTime -> UTCTime -> GetMetricData
- Network.AWS.CloudWatch.GetMetricData: getMetricDataResponse :: Int -> GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: gmdEndTime :: Lens' GetMetricData UTCTime
- Network.AWS.CloudWatch.GetMetricData: gmdMaxDatapoints :: Lens' GetMetricData (Maybe Int)
- Network.AWS.CloudWatch.GetMetricData: gmdMetricDataQueries :: Lens' GetMetricData [MetricDataQuery]
- Network.AWS.CloudWatch.GetMetricData: gmdNextToken :: Lens' GetMetricData (Maybe Text)
- Network.AWS.CloudWatch.GetMetricData: gmdScanBy :: Lens' GetMetricData (Maybe ScanBy)
- Network.AWS.CloudWatch.GetMetricData: gmdStartTime :: Lens' GetMetricData UTCTime
- Network.AWS.CloudWatch.GetMetricData: gmdrsMetricDataResults :: Lens' GetMetricDataResponse [MetricDataResult]
- Network.AWS.CloudWatch.GetMetricData: gmdrsNextToken :: Lens' GetMetricDataResponse (Maybe Text)
- Network.AWS.CloudWatch.GetMetricData: gmdrsResponseStatus :: Lens' GetMetricDataResponse Int
- Network.AWS.CloudWatch.GetMetricData: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance Data.Data.Data Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance Data.Data.Data Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricData.GetMetricDataResponse
- Network.AWS.CloudWatch.GetMetricData: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricData: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.GetMetricData.GetMetricData
- Network.AWS.CloudWatch.GetMetricStatistics: data GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: data GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: getMetricStatistics :: Text -> Text -> UTCTime -> UTCTime -> Natural -> GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: getMetricStatisticsResponse :: Int -> GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: gmsDimensions :: Lens' GetMetricStatistics [Dimension]
- Network.AWS.CloudWatch.GetMetricStatistics: gmsEndTime :: Lens' GetMetricStatistics UTCTime
- Network.AWS.CloudWatch.GetMetricStatistics: gmsExtendedStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Text))
- Network.AWS.CloudWatch.GetMetricStatistics: gmsMetricName :: Lens' GetMetricStatistics Text
- Network.AWS.CloudWatch.GetMetricStatistics: gmsNamespace :: Lens' GetMetricStatistics Text
- Network.AWS.CloudWatch.GetMetricStatistics: gmsPeriod :: Lens' GetMetricStatistics Natural
- Network.AWS.CloudWatch.GetMetricStatistics: gmsStartTime :: Lens' GetMetricStatistics UTCTime
- Network.AWS.CloudWatch.GetMetricStatistics: gmsStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Statistic))
- Network.AWS.CloudWatch.GetMetricStatistics: gmsUnit :: Lens' GetMetricStatistics (Maybe StandardUnit)
- Network.AWS.CloudWatch.GetMetricStatistics: gmsrsDatapoints :: Lens' GetMetricStatisticsResponse [Datapoint]
- Network.AWS.CloudWatch.GetMetricStatistics: gmsrsLabel :: Lens' GetMetricStatisticsResponse (Maybe Text)
- Network.AWS.CloudWatch.GetMetricStatistics: gmsrsResponseStatus :: Lens' GetMetricStatisticsResponse Int
- Network.AWS.CloudWatch.GetMetricStatistics: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance Data.Data.Data Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance Data.Data.Data Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Classes.Eq Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Generics.Generic Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Read.Read Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance GHC.Show.Show Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
- Network.AWS.CloudWatch.GetMetricStatistics: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.GetMetricStatistics: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.GetMetricStatistics.GetMetricStatistics
- Network.AWS.CloudWatch.ListDashboards: data ListDashboards
- Network.AWS.CloudWatch.ListDashboards: data ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance Data.Data.Data Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Data.Data.Data Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Classes.Eq Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Classes.Eq Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Generics.Generic Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Generics.Generic Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Read.Read Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Read.Read Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Show.Show Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance GHC.Show.Show Network.AWS.CloudWatch.ListDashboards.ListDashboardsResponse
- Network.AWS.CloudWatch.ListDashboards: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.ListDashboards.ListDashboards
- Network.AWS.CloudWatch.ListDashboards: ldDashboardNamePrefix :: Lens' ListDashboards (Maybe Text)
- Network.AWS.CloudWatch.ListDashboards: ldNextToken :: Lens' ListDashboards (Maybe Text)
- Network.AWS.CloudWatch.ListDashboards: ldrsDashboardEntries :: Lens' ListDashboardsResponse [DashboardEntry]
- Network.AWS.CloudWatch.ListDashboards: ldrsNextToken :: Lens' ListDashboardsResponse (Maybe Text)
- Network.AWS.CloudWatch.ListDashboards: ldrsResponseStatus :: Lens' ListDashboardsResponse Int
- Network.AWS.CloudWatch.ListDashboards: listDashboards :: ListDashboards
- Network.AWS.CloudWatch.ListDashboards: listDashboardsResponse :: Int -> ListDashboardsResponse
- Network.AWS.CloudWatch.ListMetrics: data ListMetrics
- Network.AWS.CloudWatch.ListMetrics: data ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance Data.Data.Data Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Data.Data.Data Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Classes.Eq Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Classes.Eq Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Generics.Generic Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Generics.Generic Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Read.Read Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Read.Read Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Show.Show Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance GHC.Show.Show Network.AWS.CloudWatch.ListMetrics.ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Network.AWS.Pager.AWSPager Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.ListMetrics.ListMetrics
- Network.AWS.CloudWatch.ListMetrics: listMetrics :: ListMetrics
- Network.AWS.CloudWatch.ListMetrics: listMetricsResponse :: Int -> ListMetricsResponse
- Network.AWS.CloudWatch.ListMetrics: lmDimensions :: Lens' ListMetrics [DimensionFilter]
- Network.AWS.CloudWatch.ListMetrics: lmMetricName :: Lens' ListMetrics (Maybe Text)
- Network.AWS.CloudWatch.ListMetrics: lmNamespace :: Lens' ListMetrics (Maybe Text)
- Network.AWS.CloudWatch.ListMetrics: lmNextToken :: Lens' ListMetrics (Maybe Text)
- Network.AWS.CloudWatch.ListMetrics: lmrsMetrics :: Lens' ListMetricsResponse [Metric]
- Network.AWS.CloudWatch.ListMetrics: lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text)
- Network.AWS.CloudWatch.ListMetrics: lmrsResponseStatus :: Lens' ListMetricsResponse Int
- Network.AWS.CloudWatch.PutDashboard: data PutDashboard
- Network.AWS.CloudWatch.PutDashboard: data PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance Data.Data.Data Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance Data.Data.Data Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Read.Read Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Read.Read Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Show.Show Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance GHC.Show.Show Network.AWS.CloudWatch.PutDashboard.PutDashboardResponse
- Network.AWS.CloudWatch.PutDashboard: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.PutDashboard.PutDashboard
- Network.AWS.CloudWatch.PutDashboard: pdDashboardBody :: Lens' PutDashboard Text
- Network.AWS.CloudWatch.PutDashboard: pdDashboardName :: Lens' PutDashboard Text
- Network.AWS.CloudWatch.PutDashboard: pdrsDashboardValidationMessages :: Lens' PutDashboardResponse [DashboardValidationMessage]
- Network.AWS.CloudWatch.PutDashboard: pdrsResponseStatus :: Lens' PutDashboardResponse Int
- Network.AWS.CloudWatch.PutDashboard: putDashboard :: Text -> Text -> PutDashboard
- Network.AWS.CloudWatch.PutDashboard: putDashboardResponse :: Int -> PutDashboardResponse
- Network.AWS.CloudWatch.PutMetricAlarm: data PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: data PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance Data.Data.Data Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance Data.Data.Data Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricAlarm: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.PutMetricAlarm.PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: pmaActionsEnabled :: Lens' PutMetricAlarm (Maybe Bool)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaAlarmActions :: Lens' PutMetricAlarm [Text]
- Network.AWS.CloudWatch.PutMetricAlarm: pmaAlarmDescription :: Lens' PutMetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaAlarmName :: Lens' PutMetricAlarm Text
- Network.AWS.CloudWatch.PutMetricAlarm: pmaComparisonOperator :: Lens' PutMetricAlarm ComparisonOperator
- Network.AWS.CloudWatch.PutMetricAlarm: pmaDatapointsToAlarm :: Lens' PutMetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaDimensions :: Lens' PutMetricAlarm [Dimension]
- Network.AWS.CloudWatch.PutMetricAlarm: pmaEvaluateLowSampleCountPercentile :: Lens' PutMetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaEvaluationPeriods :: Lens' PutMetricAlarm Natural
- Network.AWS.CloudWatch.PutMetricAlarm: pmaExtendedStatistic :: Lens' PutMetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaInsufficientDataActions :: Lens' PutMetricAlarm [Text]
- Network.AWS.CloudWatch.PutMetricAlarm: pmaMetricName :: Lens' PutMetricAlarm Text
- Network.AWS.CloudWatch.PutMetricAlarm: pmaNamespace :: Lens' PutMetricAlarm Text
- Network.AWS.CloudWatch.PutMetricAlarm: pmaOKActions :: Lens' PutMetricAlarm [Text]
- Network.AWS.CloudWatch.PutMetricAlarm: pmaPeriod :: Lens' PutMetricAlarm Natural
- Network.AWS.CloudWatch.PutMetricAlarm: pmaStatistic :: Lens' PutMetricAlarm (Maybe Statistic)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaThreshold :: Lens' PutMetricAlarm Double
- Network.AWS.CloudWatch.PutMetricAlarm: pmaTreatMissingData :: Lens' PutMetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.PutMetricAlarm: pmaUnit :: Lens' PutMetricAlarm (Maybe StandardUnit)
- Network.AWS.CloudWatch.PutMetricAlarm: putMetricAlarm :: Text -> Text -> Text -> Natural -> Natural -> Double -> ComparisonOperator -> PutMetricAlarm
- Network.AWS.CloudWatch.PutMetricAlarm: putMetricAlarmResponse :: PutMetricAlarmResponse
- Network.AWS.CloudWatch.PutMetricData: data PutMetricData
- Network.AWS.CloudWatch.PutMetricData: data PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance Data.Data.Data Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance Data.Data.Data Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Classes.Eq Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Generics.Generic Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Read.Read Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance GHC.Show.Show Network.AWS.CloudWatch.PutMetricData.PutMetricDataResponse
- Network.AWS.CloudWatch.PutMetricData: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.PutMetricData.PutMetricData
- Network.AWS.CloudWatch.PutMetricData: pmdMetricData :: Lens' PutMetricData [MetricDatum]
- Network.AWS.CloudWatch.PutMetricData: pmdNamespace :: Lens' PutMetricData Text
- Network.AWS.CloudWatch.PutMetricData: putMetricData :: Text -> PutMetricData
- Network.AWS.CloudWatch.PutMetricData: putMetricDataResponse :: PutMetricDataResponse
- Network.AWS.CloudWatch.SetAlarmState: data SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: data SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance Control.DeepSeq.NFData Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance Data.Data.Data Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance Data.Data.Data Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance Data.Hashable.Class.Hashable Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Classes.Eq Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Classes.Eq Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Generics.Generic Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Generics.Generic Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Read.Read Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Read.Read Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Show.Show Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance GHC.Show.Show Network.AWS.CloudWatch.SetAlarmState.SetAlarmStateResponse
- Network.AWS.CloudWatch.SetAlarmState: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: instance Network.AWS.Types.AWSRequest Network.AWS.CloudWatch.SetAlarmState.SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: sasAlarmName :: Lens' SetAlarmState Text
- Network.AWS.CloudWatch.SetAlarmState: sasStateReason :: Lens' SetAlarmState Text
- Network.AWS.CloudWatch.SetAlarmState: sasStateReasonData :: Lens' SetAlarmState (Maybe Text)
- Network.AWS.CloudWatch.SetAlarmState: sasStateValue :: Lens' SetAlarmState StateValue
- Network.AWS.CloudWatch.SetAlarmState: setAlarmState :: Text -> StateValue -> Text -> SetAlarmState
- Network.AWS.CloudWatch.SetAlarmState: setAlarmStateResponse :: SetAlarmStateResponse
- Network.AWS.CloudWatch.Types: Action :: HistoryItemType
- Network.AWS.CloudWatch.Types: Alarm :: StateValue
- Network.AWS.CloudWatch.Types: Average :: Statistic
- Network.AWS.CloudWatch.Types: Bits :: StandardUnit
- Network.AWS.CloudWatch.Types: BitsSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Bytes :: StandardUnit
- Network.AWS.CloudWatch.Types: BytesSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Complete :: StatusCode
- Network.AWS.CloudWatch.Types: ConfigurationUpdate :: HistoryItemType
- Network.AWS.CloudWatch.Types: Count :: StandardUnit
- Network.AWS.CloudWatch.Types: CountSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Gigabits :: StandardUnit
- Network.AWS.CloudWatch.Types: GigabitsSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Gigabytes :: StandardUnit
- Network.AWS.CloudWatch.Types: GigabytesSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: GreaterThanOrEqualToThreshold :: ComparisonOperator
- Network.AWS.CloudWatch.Types: GreaterThanThreshold :: ComparisonOperator
- Network.AWS.CloudWatch.Types: InsufficientData :: StateValue
- Network.AWS.CloudWatch.Types: InternalError :: StatusCode
- Network.AWS.CloudWatch.Types: Kilobits :: StandardUnit
- Network.AWS.CloudWatch.Types: KilobitsSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Kilobytes :: StandardUnit
- Network.AWS.CloudWatch.Types: KilobytesSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: LessThanOrEqualToThreshold :: ComparisonOperator
- Network.AWS.CloudWatch.Types: LessThanThreshold :: ComparisonOperator
- Network.AWS.CloudWatch.Types: Maximum :: Statistic
- Network.AWS.CloudWatch.Types: Megabits :: StandardUnit
- Network.AWS.CloudWatch.Types: MegabitsSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Megabytes :: StandardUnit
- Network.AWS.CloudWatch.Types: MegabytesSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Microseconds :: StandardUnit
- Network.AWS.CloudWatch.Types: Milliseconds :: StandardUnit
- Network.AWS.CloudWatch.Types: Minimum :: Statistic
- Network.AWS.CloudWatch.Types: None :: StandardUnit
- Network.AWS.CloudWatch.Types: OK :: StateValue
- Network.AWS.CloudWatch.Types: PartialData :: StatusCode
- Network.AWS.CloudWatch.Types: Percent :: StandardUnit
- Network.AWS.CloudWatch.Types: SampleCount :: Statistic
- Network.AWS.CloudWatch.Types: Seconds :: StandardUnit
- Network.AWS.CloudWatch.Types: StateUpdate :: HistoryItemType
- Network.AWS.CloudWatch.Types: Sum :: Statistic
- Network.AWS.CloudWatch.Types: Terabits :: StandardUnit
- Network.AWS.CloudWatch.Types: TerabitsSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: Terabytes :: StandardUnit
- Network.AWS.CloudWatch.Types: TerabytesSecond :: StandardUnit
- Network.AWS.CloudWatch.Types: TimestampAscending :: ScanBy
- Network.AWS.CloudWatch.Types: TimestampDescending :: ScanBy
- Network.AWS.CloudWatch.Types: _DashboardInvalidInputError :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _DashboardNotFoundError :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: _ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudWatch.Types: ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch.Types: ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch.Types: ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
- Network.AWS.CloudWatch.Types: ahiHistorySummary :: Lens' AlarmHistoryItem (Maybe Text)
- Network.AWS.CloudWatch.Types: ahiTimestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: alarmHistoryItem :: AlarmHistoryItem
- Network.AWS.CloudWatch.Types: cloudWatch :: Service
- Network.AWS.CloudWatch.Types: dAverage :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch.Types: dExtendedStatistics :: Lens' Datapoint (HashMap Text Double)
- Network.AWS.CloudWatch.Types: dMaximum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch.Types: dMinimum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch.Types: dName :: Lens' Dimension Text
- Network.AWS.CloudWatch.Types: dSampleCount :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch.Types: dSum :: Lens' Datapoint (Maybe Double)
- Network.AWS.CloudWatch.Types: dTimestamp :: Lens' Datapoint (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: dUnit :: Lens' Datapoint (Maybe StandardUnit)
- Network.AWS.CloudWatch.Types: dValue :: Lens' Dimension Text
- Network.AWS.CloudWatch.Types: dashboardEntry :: DashboardEntry
- Network.AWS.CloudWatch.Types: dashboardValidationMessage :: DashboardValidationMessage
- Network.AWS.CloudWatch.Types: data AlarmHistoryItem
- Network.AWS.CloudWatch.Types: data ComparisonOperator
- Network.AWS.CloudWatch.Types: data DashboardEntry
- Network.AWS.CloudWatch.Types: data DashboardValidationMessage
- Network.AWS.CloudWatch.Types: data Datapoint
- Network.AWS.CloudWatch.Types: data Dimension
- Network.AWS.CloudWatch.Types: data DimensionFilter
- Network.AWS.CloudWatch.Types: data HistoryItemType
- Network.AWS.CloudWatch.Types: data MessageData
- Network.AWS.CloudWatch.Types: data Metric
- Network.AWS.CloudWatch.Types: data MetricAlarm
- Network.AWS.CloudWatch.Types: data MetricDataQuery
- Network.AWS.CloudWatch.Types: data MetricDataResult
- Network.AWS.CloudWatch.Types: data MetricDatum
- Network.AWS.CloudWatch.Types: data MetricStat
- Network.AWS.CloudWatch.Types: data ScanBy
- Network.AWS.CloudWatch.Types: data StandardUnit
- Network.AWS.CloudWatch.Types: data StateValue
- Network.AWS.CloudWatch.Types: data Statistic
- Network.AWS.CloudWatch.Types: data StatisticSet
- Network.AWS.CloudWatch.Types: data StatusCode
- Network.AWS.CloudWatch.Types: datapoint :: Datapoint
- Network.AWS.CloudWatch.Types: deDashboardARN :: Lens' DashboardEntry (Maybe Text)
- Network.AWS.CloudWatch.Types: deDashboardName :: Lens' DashboardEntry (Maybe Text)
- Network.AWS.CloudWatch.Types: deLastModified :: Lens' DashboardEntry (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: deSize :: Lens' DashboardEntry (Maybe Integer)
- Network.AWS.CloudWatch.Types: dfName :: Lens' DimensionFilter Text
- Network.AWS.CloudWatch.Types: dfValue :: Lens' DimensionFilter (Maybe Text)
- Network.AWS.CloudWatch.Types: dimension :: Text -> Text -> Dimension
- Network.AWS.CloudWatch.Types: dimensionFilter :: Text -> DimensionFilter
- Network.AWS.CloudWatch.Types: dvmDataPath :: Lens' DashboardValidationMessage (Maybe Text)
- Network.AWS.CloudWatch.Types: dvmMessage :: Lens' DashboardValidationMessage (Maybe Text)
- Network.AWS.CloudWatch.Types: mCode :: Lens' MessageData (Maybe Text)
- Network.AWS.CloudWatch.Types: mDimensions :: Lens' Metric [Dimension]
- Network.AWS.CloudWatch.Types: mMetricName :: Lens' Metric (Maybe Text)
- Network.AWS.CloudWatch.Types: mNamespace :: Lens' Metric (Maybe Text)
- Network.AWS.CloudWatch.Types: mValue :: Lens' MessageData (Maybe Text)
- Network.AWS.CloudWatch.Types: maActionsEnabled :: Lens' MetricAlarm (Maybe Bool)
- Network.AWS.CloudWatch.Types: maAlarmARN :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maAlarmActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch.Types: maAlarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: maAlarmDescription :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maAlarmName :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maComparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
- Network.AWS.CloudWatch.Types: maDatapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch.Types: maDimensions :: Lens' MetricAlarm [Dimension]
- Network.AWS.CloudWatch.Types: maEvaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch.Types: maExtendedStatistic :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maInsufficientDataActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch.Types: maMetricName :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maNamespace :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maOKActions :: Lens' MetricAlarm [Text]
- Network.AWS.CloudWatch.Types: maPeriod :: Lens' MetricAlarm (Maybe Natural)
- Network.AWS.CloudWatch.Types: maStateReason :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maStateReasonData :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maStateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: maStateValue :: Lens' MetricAlarm (Maybe StateValue)
- Network.AWS.CloudWatch.Types: maStatistic :: Lens' MetricAlarm (Maybe Statistic)
- Network.AWS.CloudWatch.Types: maThreshold :: Lens' MetricAlarm (Maybe Double)
- Network.AWS.CloudWatch.Types: maTreatMissingData :: Lens' MetricAlarm (Maybe Text)
- Network.AWS.CloudWatch.Types: maUnit :: Lens' MetricAlarm (Maybe StandardUnit)
- Network.AWS.CloudWatch.Types: mdDimensions :: Lens' MetricDatum [Dimension]
- Network.AWS.CloudWatch.Types: mdMetricName :: Lens' MetricDatum Text
- Network.AWS.CloudWatch.Types: mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)
- Network.AWS.CloudWatch.Types: mdStorageResolution :: Lens' MetricDatum (Maybe Natural)
- Network.AWS.CloudWatch.Types: mdTimestamp :: Lens' MetricDatum (Maybe UTCTime)
- Network.AWS.CloudWatch.Types: mdUnit :: Lens' MetricDatum (Maybe StandardUnit)
- Network.AWS.CloudWatch.Types: mdValue :: Lens' MetricDatum (Maybe Double)
- Network.AWS.CloudWatch.Types: mdqExpression :: Lens' MetricDataQuery (Maybe Text)
- Network.AWS.CloudWatch.Types: mdqId :: Lens' MetricDataQuery Text
- Network.AWS.CloudWatch.Types: mdqLabel :: Lens' MetricDataQuery (Maybe Text)
- Network.AWS.CloudWatch.Types: mdqMetricStat :: Lens' MetricDataQuery (Maybe MetricStat)
- Network.AWS.CloudWatch.Types: mdqReturnData :: Lens' MetricDataQuery (Maybe Bool)
- Network.AWS.CloudWatch.Types: mdrId :: Lens' MetricDataResult (Maybe Text)
- Network.AWS.CloudWatch.Types: mdrLabel :: Lens' MetricDataResult (Maybe Text)
- Network.AWS.CloudWatch.Types: mdrMessages :: Lens' MetricDataResult [MessageData]
- Network.AWS.CloudWatch.Types: mdrStatusCode :: Lens' MetricDataResult (Maybe StatusCode)
- Network.AWS.CloudWatch.Types: mdrTimestamps :: Lens' MetricDataResult [UTCTime]
- Network.AWS.CloudWatch.Types: mdrValues :: Lens' MetricDataResult [Double]
- Network.AWS.CloudWatch.Types: messageData :: MessageData
- Network.AWS.CloudWatch.Types: metric :: Metric
- Network.AWS.CloudWatch.Types: metricAlarm :: MetricAlarm
- Network.AWS.CloudWatch.Types: metricDataQuery :: Text -> MetricDataQuery
- Network.AWS.CloudWatch.Types: metricDataResult :: MetricDataResult
- Network.AWS.CloudWatch.Types: metricDatum :: Text -> MetricDatum
- Network.AWS.CloudWatch.Types: metricStat :: Metric -> Natural -> Text -> MetricStat
- Network.AWS.CloudWatch.Types: msMetric :: Lens' MetricStat Metric
- Network.AWS.CloudWatch.Types: msPeriod :: Lens' MetricStat Natural
- Network.AWS.CloudWatch.Types: msStat :: Lens' MetricStat Text
- Network.AWS.CloudWatch.Types: msUnit :: Lens' MetricStat (Maybe StandardUnit)
- Network.AWS.CloudWatch.Types: ssMaximum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch.Types: ssMinimum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch.Types: ssSampleCount :: Lens' StatisticSet Double
- Network.AWS.CloudWatch.Types: ssSum :: Lens' StatisticSet Double
- Network.AWS.CloudWatch.Types: statisticSet :: Double -> Double -> Double -> Double -> StatisticSet
- Network.AWS.CloudWatch.Waiters: alarmExists :: Wait DescribeAlarms
+ Amazonka.CloudWatch: ActionsSuppressedBy' :: Text -> ActionsSuppressedBy
+ Amazonka.CloudWatch: AlarmHistoryItem' :: Maybe Text -> Maybe AlarmType -> Maybe Text -> Maybe HistoryItemType -> Maybe Text -> Maybe ISO8601 -> AlarmHistoryItem
+ Amazonka.CloudWatch: AlarmType' :: Text -> AlarmType
+ Amazonka.CloudWatch: AnomalyDetector' :: Maybe AnomalyDetectorConfiguration -> Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> Maybe AnomalyDetectorStateValue -> AnomalyDetector
+ Amazonka.CloudWatch: AnomalyDetectorConfiguration' :: Maybe [Range] -> Maybe Text -> AnomalyDetectorConfiguration
+ Amazonka.CloudWatch: AnomalyDetectorStateValue' :: Text -> AnomalyDetectorStateValue
+ Amazonka.CloudWatch: AnomalyDetectorType' :: Text -> AnomalyDetectorType
+ Amazonka.CloudWatch: ComparisonOperator' :: Text -> ComparisonOperator
+ Amazonka.CloudWatch: CompositeAlarm' :: Maybe Bool -> Maybe ActionsSuppressedBy -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> CompositeAlarm
+ Amazonka.CloudWatch: DashboardEntry' :: Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe Integer -> DashboardEntry
+ Amazonka.CloudWatch: DashboardValidationMessage' :: Maybe Text -> Maybe Text -> DashboardValidationMessage
+ Amazonka.CloudWatch: Datapoint' :: Maybe Double -> Maybe (HashMap Text Double) -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe ISO8601 -> Maybe StandardUnit -> Datapoint
+ Amazonka.CloudWatch: DeleteAlarms' :: [Text] -> DeleteAlarms
+ Amazonka.CloudWatch: DeleteAlarmsResponse' :: DeleteAlarmsResponse
+ Amazonka.CloudWatch: DeleteAnomalyDetector' :: Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> DeleteAnomalyDetector
+ Amazonka.CloudWatch: DeleteAnomalyDetectorResponse' :: Int -> DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch: DeleteDashboards' :: [Text] -> DeleteDashboards
+ Amazonka.CloudWatch: DeleteDashboardsResponse' :: Int -> DeleteDashboardsResponse
+ Amazonka.CloudWatch: DeleteInsightRules' :: [Text] -> DeleteInsightRules
+ Amazonka.CloudWatch: DeleteInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> DeleteInsightRulesResponse
+ Amazonka.CloudWatch: DeleteMetricStream' :: Text -> DeleteMetricStream
+ Amazonka.CloudWatch: DeleteMetricStreamResponse' :: Int -> DeleteMetricStreamResponse
+ Amazonka.CloudWatch: DescribeAlarmHistory' :: Maybe Text -> Maybe [AlarmType] -> Maybe ISO8601 -> Maybe HistoryItemType -> Maybe Natural -> Maybe Text -> Maybe ScanBy -> Maybe ISO8601 -> DescribeAlarmHistory
+ Amazonka.CloudWatch: DescribeAlarmHistoryResponse' :: Maybe [AlarmHistoryItem] -> Maybe Text -> Int -> DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch: DescribeAlarms' :: Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe [AlarmType] -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe StateValue -> DescribeAlarms
+ Amazonka.CloudWatch: DescribeAlarmsForMetric' :: Maybe [Dimension] -> Maybe Text -> Maybe Natural -> Maybe Statistic -> Maybe StandardUnit -> Text -> Text -> DescribeAlarmsForMetric
+ Amazonka.CloudWatch: DescribeAlarmsForMetricResponse' :: Maybe [MetricAlarm] -> Int -> DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch: DescribeAlarmsResponse' :: Maybe [CompositeAlarm] -> Maybe [MetricAlarm] -> Maybe Text -> Int -> DescribeAlarmsResponse
+ Amazonka.CloudWatch: DescribeAnomalyDetectors' :: Maybe [AnomalyDetectorType] -> Maybe [Dimension] -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> DescribeAnomalyDetectors
+ Amazonka.CloudWatch: DescribeAnomalyDetectorsResponse' :: Maybe [AnomalyDetector] -> Maybe Text -> Int -> DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch: DescribeInsightRules' :: Maybe Natural -> Maybe Text -> DescribeInsightRules
+ Amazonka.CloudWatch: DescribeInsightRulesResponse' :: Maybe [InsightRule] -> Maybe Text -> Int -> DescribeInsightRulesResponse
+ Amazonka.CloudWatch: Dimension' :: Text -> Text -> Dimension
+ Amazonka.CloudWatch: DimensionFilter' :: Maybe Text -> Text -> DimensionFilter
+ Amazonka.CloudWatch: DisableAlarmActions' :: [Text] -> DisableAlarmActions
+ Amazonka.CloudWatch: DisableAlarmActionsResponse' :: DisableAlarmActionsResponse
+ Amazonka.CloudWatch: DisableInsightRules' :: [Text] -> DisableInsightRules
+ Amazonka.CloudWatch: DisableInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> DisableInsightRulesResponse
+ Amazonka.CloudWatch: EnableAlarmActions' :: [Text] -> EnableAlarmActions
+ Amazonka.CloudWatch: EnableAlarmActionsResponse' :: EnableAlarmActionsResponse
+ Amazonka.CloudWatch: EnableInsightRules' :: [Text] -> EnableInsightRules
+ Amazonka.CloudWatch: EnableInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> EnableInsightRulesResponse
+ Amazonka.CloudWatch: EvaluationState' :: Text -> EvaluationState
+ Amazonka.CloudWatch: GetDashboard' :: Text -> GetDashboard
+ Amazonka.CloudWatch: GetDashboardResponse' :: Maybe Text -> Maybe Text -> Maybe Text -> Int -> GetDashboardResponse
+ Amazonka.CloudWatch: GetInsightRuleReport' :: Maybe Int -> Maybe [Text] -> Maybe Text -> Text -> ISO8601 -> ISO8601 -> Natural -> GetInsightRuleReport
+ Amazonka.CloudWatch: GetInsightRuleReportResponse' :: Maybe Double -> Maybe Text -> Maybe Integer -> Maybe [InsightRuleContributor] -> Maybe [Text] -> Maybe [InsightRuleMetricDatapoint] -> Int -> GetInsightRuleReportResponse
+ Amazonka.CloudWatch: GetMetricData' :: Maybe LabelOptions -> Maybe Int -> Maybe Text -> Maybe ScanBy -> [MetricDataQuery] -> ISO8601 -> ISO8601 -> GetMetricData
+ Amazonka.CloudWatch: GetMetricDataResponse' :: Maybe [MessageData] -> Maybe [MetricDataResult] -> Maybe Text -> Int -> GetMetricDataResponse
+ Amazonka.CloudWatch: GetMetricStatistics' :: Maybe [Dimension] -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Statistic) -> Maybe StandardUnit -> Text -> Text -> ISO8601 -> ISO8601 -> Natural -> GetMetricStatistics
+ Amazonka.CloudWatch: GetMetricStatisticsResponse' :: Maybe [Datapoint] -> Maybe Text -> Int -> GetMetricStatisticsResponse
+ Amazonka.CloudWatch: GetMetricStream' :: Text -> GetMetricStream
+ Amazonka.CloudWatch: GetMetricStreamResponse' :: Maybe Text -> Maybe ISO8601 -> Maybe [MetricStreamFilter] -> Maybe Text -> Maybe [MetricStreamFilter] -> Maybe ISO8601 -> Maybe Text -> Maybe MetricStreamOutputFormat -> Maybe Text -> Maybe Text -> Maybe [MetricStreamStatisticsConfiguration] -> Int -> GetMetricStreamResponse
+ Amazonka.CloudWatch: GetMetricWidgetImage' :: Maybe Text -> Text -> GetMetricWidgetImage
+ Amazonka.CloudWatch: GetMetricWidgetImageResponse' :: Maybe Base64 -> Int -> GetMetricWidgetImageResponse
+ Amazonka.CloudWatch: HistoryItemType' :: Text -> HistoryItemType
+ Amazonka.CloudWatch: InsightRule' :: Maybe Bool -> Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch: InsightRuleContributor' :: [Text] -> Double -> [InsightRuleContributorDatapoint] -> InsightRuleContributor
+ Amazonka.CloudWatch: InsightRuleContributorDatapoint' :: ISO8601 -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch: InsightRuleMetricDatapoint' :: Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> ISO8601 -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch: LabelOptions' :: Maybe Text -> LabelOptions
+ Amazonka.CloudWatch: ListDashboards' :: Maybe Text -> Maybe Text -> ListDashboards
+ Amazonka.CloudWatch: ListDashboardsResponse' :: Maybe [DashboardEntry] -> Maybe Text -> Int -> ListDashboardsResponse
+ Amazonka.CloudWatch: ListManagedInsightRules' :: Maybe Natural -> Maybe Text -> Text -> ListManagedInsightRules
+ Amazonka.CloudWatch: ListManagedInsightRulesResponse' :: Maybe [ManagedRuleDescription] -> Maybe Text -> Int -> ListManagedInsightRulesResponse
+ Amazonka.CloudWatch: ListMetricStreams' :: Maybe Natural -> Maybe Text -> ListMetricStreams
+ Amazonka.CloudWatch: ListMetricStreamsResponse' :: Maybe [MetricStreamEntry] -> Maybe Text -> Int -> ListMetricStreamsResponse
+ Amazonka.CloudWatch: ListMetrics' :: Maybe [DimensionFilter] -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe RecentlyActive -> ListMetrics
+ Amazonka.CloudWatch: ListMetricsResponse' :: Maybe [Metric] -> Maybe Text -> Maybe [Text] -> Int -> ListMetricsResponse
+ Amazonka.CloudWatch: ListTagsForResource' :: Text -> ListTagsForResource
+ Amazonka.CloudWatch: ListTagsForResourceResponse' :: Maybe [Tag] -> Int -> ListTagsForResourceResponse
+ Amazonka.CloudWatch: ManagedRule' :: Maybe [Tag] -> Text -> Text -> ManagedRule
+ Amazonka.CloudWatch: ManagedRuleDescription' :: Maybe Text -> Maybe ManagedRuleState -> Maybe Text -> ManagedRuleDescription
+ Amazonka.CloudWatch: ManagedRuleState' :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch: MessageData' :: Maybe Text -> Maybe Text -> MessageData
+ Amazonka.CloudWatch: Metric' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Metric
+ Amazonka.CloudWatch: MetricAlarm' :: Maybe Bool -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe ComparisonOperator -> Maybe Natural -> Maybe [Dimension] -> Maybe Text -> Maybe Natural -> Maybe EvaluationState -> Maybe Text -> Maybe [Text] -> Maybe Text -> Maybe [MetricDataQuery] -> Maybe Text -> Maybe [Text] -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> Maybe Statistic -> Maybe Double -> Maybe Text -> Maybe Text -> Maybe StandardUnit -> MetricAlarm
+ Amazonka.CloudWatch: MetricDataQuery' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe MetricStat -> Maybe Natural -> Maybe Bool -> Text -> MetricDataQuery
+ Amazonka.CloudWatch: MetricDataResult' :: Maybe Text -> Maybe Text -> Maybe [MessageData] -> Maybe StatusCode -> Maybe [ISO8601] -> Maybe [Double] -> MetricDataResult
+ Amazonka.CloudWatch: MetricDatum' :: Maybe [Double] -> Maybe [Dimension] -> Maybe StatisticSet -> Maybe Natural -> Maybe ISO8601 -> Maybe StandardUnit -> Maybe Double -> Maybe [Double] -> Text -> MetricDatum
+ Amazonka.CloudWatch: MetricMathAnomalyDetector' :: Maybe [MetricDataQuery] -> MetricMathAnomalyDetector
+ Amazonka.CloudWatch: MetricStat' :: Maybe StandardUnit -> Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch: MetricStreamEntry' :: Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe MetricStreamOutputFormat -> Maybe Text -> MetricStreamEntry
+ Amazonka.CloudWatch: MetricStreamFilter' :: Maybe Text -> MetricStreamFilter
+ Amazonka.CloudWatch: MetricStreamOutputFormat' :: Text -> MetricStreamOutputFormat
+ Amazonka.CloudWatch: MetricStreamStatisticsConfiguration' :: [MetricStreamStatisticsMetric] -> [Text] -> MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch: MetricStreamStatisticsMetric' :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch: PartialFailure' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> PartialFailure
+ Amazonka.CloudWatch: PutAnomalyDetector' :: Maybe AnomalyDetectorConfiguration -> Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> PutAnomalyDetector
+ Amazonka.CloudWatch: PutAnomalyDetectorResponse' :: Int -> PutAnomalyDetectorResponse
+ Amazonka.CloudWatch: PutCompositeAlarm' :: Maybe Bool -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe [Text] -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe [Tag] -> Text -> Text -> PutCompositeAlarm
+ Amazonka.CloudWatch: PutCompositeAlarmResponse' :: PutCompositeAlarmResponse
+ Amazonka.CloudWatch: PutDashboard' :: Text -> Text -> PutDashboard
+ Amazonka.CloudWatch: PutDashboardResponse' :: Maybe [DashboardValidationMessage] -> Int -> PutDashboardResponse
+ Amazonka.CloudWatch: PutInsightRule' :: Maybe Text -> Maybe [Tag] -> Text -> Text -> PutInsightRule
+ Amazonka.CloudWatch: PutInsightRuleResponse' :: Int -> PutInsightRuleResponse
+ Amazonka.CloudWatch: PutManagedInsightRules' :: [ManagedRule] -> PutManagedInsightRules
+ Amazonka.CloudWatch: PutManagedInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> PutManagedInsightRulesResponse
+ Amazonka.CloudWatch: PutMetricAlarm' :: Maybe Bool -> Maybe [Text] -> Maybe Text -> Maybe Natural -> Maybe [Dimension] -> Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe Text -> Maybe [MetricDataQuery] -> Maybe Text -> Maybe [Text] -> Maybe Natural -> Maybe Statistic -> Maybe [Tag] -> Maybe Double -> Maybe Text -> Maybe Text -> Maybe StandardUnit -> Text -> Natural -> ComparisonOperator -> PutMetricAlarm
+ Amazonka.CloudWatch: PutMetricAlarmResponse' :: PutMetricAlarmResponse
+ Amazonka.CloudWatch: PutMetricData' :: Text -> [MetricDatum] -> PutMetricData
+ Amazonka.CloudWatch: PutMetricDataResponse' :: PutMetricDataResponse
+ Amazonka.CloudWatch: PutMetricStream' :: Maybe [MetricStreamFilter] -> Maybe [MetricStreamFilter] -> Maybe [MetricStreamStatisticsConfiguration] -> Maybe [Tag] -> Text -> Text -> Text -> MetricStreamOutputFormat -> PutMetricStream
+ Amazonka.CloudWatch: PutMetricStreamResponse' :: Maybe Text -> Int -> PutMetricStreamResponse
+ Amazonka.CloudWatch: Range' :: ISO8601 -> ISO8601 -> Range
+ Amazonka.CloudWatch: RecentlyActive' :: Text -> RecentlyActive
+ Amazonka.CloudWatch: ScanBy' :: Text -> ScanBy
+ Amazonka.CloudWatch: SetAlarmState' :: Maybe Text -> Text -> StateValue -> Text -> SetAlarmState
+ Amazonka.CloudWatch: SetAlarmStateResponse' :: SetAlarmStateResponse
+ Amazonka.CloudWatch: SingleMetricAnomalyDetector' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Maybe Text -> SingleMetricAnomalyDetector
+ Amazonka.CloudWatch: StandardUnit' :: Text -> StandardUnit
+ Amazonka.CloudWatch: StartMetricStreams' :: [Text] -> StartMetricStreams
+ Amazonka.CloudWatch: StartMetricStreamsResponse' :: Int -> StartMetricStreamsResponse
+ Amazonka.CloudWatch: StateValue' :: Text -> StateValue
+ Amazonka.CloudWatch: Statistic' :: Text -> Statistic
+ Amazonka.CloudWatch: StatisticSet' :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch: StatusCode' :: Text -> StatusCode
+ Amazonka.CloudWatch: StopMetricStreams' :: [Text] -> StopMetricStreams
+ Amazonka.CloudWatch: StopMetricStreamsResponse' :: Int -> StopMetricStreamsResponse
+ Amazonka.CloudWatch: Tag' :: Text -> Text -> Tag
+ Amazonka.CloudWatch: TagResource' :: Text -> [Tag] -> TagResource
+ Amazonka.CloudWatch: TagResourceResponse' :: Int -> TagResourceResponse
+ Amazonka.CloudWatch: UntagResource' :: Text -> [Text] -> UntagResource
+ Amazonka.CloudWatch: UntagResourceResponse' :: Int -> UntagResourceResponse
+ Amazonka.CloudWatch: [fromActionsSuppressedBy] :: ActionsSuppressedBy -> Text
+ Amazonka.CloudWatch: [fromAlarmType] :: AlarmType -> Text
+ Amazonka.CloudWatch: [fromAnomalyDetectorStateValue] :: AnomalyDetectorStateValue -> Text
+ Amazonka.CloudWatch: [fromAnomalyDetectorType] :: AnomalyDetectorType -> Text
+ Amazonka.CloudWatch: [fromComparisonOperator] :: ComparisonOperator -> Text
+ Amazonka.CloudWatch: [fromEvaluationState] :: EvaluationState -> Text
+ Amazonka.CloudWatch: [fromHistoryItemType] :: HistoryItemType -> Text
+ Amazonka.CloudWatch: [fromMetricStreamOutputFormat] :: MetricStreamOutputFormat -> Text
+ Amazonka.CloudWatch: [fromRecentlyActive] :: RecentlyActive -> Text
+ Amazonka.CloudWatch: [fromScanBy] :: ScanBy -> Text
+ Amazonka.CloudWatch: [fromStandardUnit] :: StandardUnit -> Text
+ Amazonka.CloudWatch: [fromStateValue] :: StateValue -> Text
+ Amazonka.CloudWatch: [fromStatistic] :: Statistic -> Text
+ Amazonka.CloudWatch: [fromStatusCode] :: StatusCode -> Text
+ Amazonka.CloudWatch: _ConcurrentModificationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _DashboardInvalidInputError :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _DashboardNotFoundError :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _InternalServiceFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _InvalidFormatFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _InvalidNextToken :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _InvalidParameterCombinationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _InvalidParameterValueException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _LimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _LimitExceededFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _MissingRequiredParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _ResourceNotFound :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: _ResourceNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch: data AlarmHistoryItem
+ Amazonka.CloudWatch: data AnomalyDetector
+ Amazonka.CloudWatch: data AnomalyDetectorConfiguration
+ Amazonka.CloudWatch: data CompositeAlarm
+ Amazonka.CloudWatch: data DashboardEntry
+ Amazonka.CloudWatch: data DashboardValidationMessage
+ Amazonka.CloudWatch: data Datapoint
+ Amazonka.CloudWatch: data DeleteAlarms
+ Amazonka.CloudWatch: data DeleteAlarmsResponse
+ Amazonka.CloudWatch: data DeleteAnomalyDetector
+ Amazonka.CloudWatch: data DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch: data DeleteDashboards
+ Amazonka.CloudWatch: data DeleteDashboardsResponse
+ Amazonka.CloudWatch: data DeleteInsightRules
+ Amazonka.CloudWatch: data DeleteInsightRulesResponse
+ Amazonka.CloudWatch: data DeleteMetricStream
+ Amazonka.CloudWatch: data DeleteMetricStreamResponse
+ Amazonka.CloudWatch: data DescribeAlarmHistory
+ Amazonka.CloudWatch: data DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch: data DescribeAlarms
+ Amazonka.CloudWatch: data DescribeAlarmsForMetric
+ Amazonka.CloudWatch: data DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch: data DescribeAlarmsResponse
+ Amazonka.CloudWatch: data DescribeAnomalyDetectors
+ Amazonka.CloudWatch: data DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch: data DescribeInsightRules
+ Amazonka.CloudWatch: data DescribeInsightRulesResponse
+ Amazonka.CloudWatch: data Dimension
+ Amazonka.CloudWatch: data DimensionFilter
+ Amazonka.CloudWatch: data DisableAlarmActions
+ Amazonka.CloudWatch: data DisableAlarmActionsResponse
+ Amazonka.CloudWatch: data DisableInsightRules
+ Amazonka.CloudWatch: data DisableInsightRulesResponse
+ Amazonka.CloudWatch: data EnableAlarmActions
+ Amazonka.CloudWatch: data EnableAlarmActionsResponse
+ Amazonka.CloudWatch: data EnableInsightRules
+ Amazonka.CloudWatch: data EnableInsightRulesResponse
+ Amazonka.CloudWatch: data GetDashboard
+ Amazonka.CloudWatch: data GetDashboardResponse
+ Amazonka.CloudWatch: data GetInsightRuleReport
+ Amazonka.CloudWatch: data GetInsightRuleReportResponse
+ Amazonka.CloudWatch: data GetMetricData
+ Amazonka.CloudWatch: data GetMetricDataResponse
+ Amazonka.CloudWatch: data GetMetricStatistics
+ Amazonka.CloudWatch: data GetMetricStatisticsResponse
+ Amazonka.CloudWatch: data GetMetricStream
+ Amazonka.CloudWatch: data GetMetricStreamResponse
+ Amazonka.CloudWatch: data GetMetricWidgetImage
+ Amazonka.CloudWatch: data GetMetricWidgetImageResponse
+ Amazonka.CloudWatch: data InsightRule
+ Amazonka.CloudWatch: data InsightRuleContributor
+ Amazonka.CloudWatch: data InsightRuleContributorDatapoint
+ Amazonka.CloudWatch: data InsightRuleMetricDatapoint
+ Amazonka.CloudWatch: data LabelOptions
+ Amazonka.CloudWatch: data ListDashboards
+ Amazonka.CloudWatch: data ListDashboardsResponse
+ Amazonka.CloudWatch: data ListManagedInsightRules
+ Amazonka.CloudWatch: data ListManagedInsightRulesResponse
+ Amazonka.CloudWatch: data ListMetricStreams
+ Amazonka.CloudWatch: data ListMetricStreamsResponse
+ Amazonka.CloudWatch: data ListMetrics
+ Amazonka.CloudWatch: data ListMetricsResponse
+ Amazonka.CloudWatch: data ListTagsForResource
+ Amazonka.CloudWatch: data ListTagsForResourceResponse
+ Amazonka.CloudWatch: data ManagedRule
+ Amazonka.CloudWatch: data ManagedRuleDescription
+ Amazonka.CloudWatch: data ManagedRuleState
+ Amazonka.CloudWatch: data MessageData
+ Amazonka.CloudWatch: data Metric
+ Amazonka.CloudWatch: data MetricAlarm
+ Amazonka.CloudWatch: data MetricDataQuery
+ Amazonka.CloudWatch: data MetricDataResult
+ Amazonka.CloudWatch: data MetricDatum
+ Amazonka.CloudWatch: data MetricMathAnomalyDetector
+ Amazonka.CloudWatch: data MetricStat
+ Amazonka.CloudWatch: data MetricStreamEntry
+ Amazonka.CloudWatch: data MetricStreamFilter
+ Amazonka.CloudWatch: data MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch: data MetricStreamStatisticsMetric
+ Amazonka.CloudWatch: data PartialFailure
+ Amazonka.CloudWatch: data PutAnomalyDetector
+ Amazonka.CloudWatch: data PutAnomalyDetectorResponse
+ Amazonka.CloudWatch: data PutCompositeAlarm
+ Amazonka.CloudWatch: data PutCompositeAlarmResponse
+ Amazonka.CloudWatch: data PutDashboard
+ Amazonka.CloudWatch: data PutDashboardResponse
+ Amazonka.CloudWatch: data PutInsightRule
+ Amazonka.CloudWatch: data PutInsightRuleResponse
+ Amazonka.CloudWatch: data PutManagedInsightRules
+ Amazonka.CloudWatch: data PutManagedInsightRulesResponse
+ Amazonka.CloudWatch: data PutMetricAlarm
+ Amazonka.CloudWatch: data PutMetricAlarmResponse
+ Amazonka.CloudWatch: data PutMetricData
+ Amazonka.CloudWatch: data PutMetricDataResponse
+ Amazonka.CloudWatch: data PutMetricStream
+ Amazonka.CloudWatch: data PutMetricStreamResponse
+ Amazonka.CloudWatch: data Range
+ Amazonka.CloudWatch: data SetAlarmState
+ Amazonka.CloudWatch: data SetAlarmStateResponse
+ Amazonka.CloudWatch: data SingleMetricAnomalyDetector
+ Amazonka.CloudWatch: data StartMetricStreams
+ Amazonka.CloudWatch: data StartMetricStreamsResponse
+ Amazonka.CloudWatch: data StatisticSet
+ Amazonka.CloudWatch: data StopMetricStreams
+ Amazonka.CloudWatch: data StopMetricStreamsResponse
+ Amazonka.CloudWatch: data Tag
+ Amazonka.CloudWatch: data TagResource
+ Amazonka.CloudWatch: data TagResourceResponse
+ Amazonka.CloudWatch: data UntagResource
+ Amazonka.CloudWatch: data UntagResourceResponse
+ Amazonka.CloudWatch: defaultService :: Service
+ Amazonka.CloudWatch: newAlarmExists :: Wait DescribeAlarms
+ Amazonka.CloudWatch: newAlarmHistoryItem :: AlarmHistoryItem
+ Amazonka.CloudWatch: newAnomalyDetector :: AnomalyDetector
+ Amazonka.CloudWatch: newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration
+ Amazonka.CloudWatch: newCompositeAlarm :: CompositeAlarm
+ Amazonka.CloudWatch: newCompositeAlarmExists :: Wait DescribeAlarms
+ Amazonka.CloudWatch: newDashboardEntry :: DashboardEntry
+ Amazonka.CloudWatch: newDashboardValidationMessage :: DashboardValidationMessage
+ Amazonka.CloudWatch: newDatapoint :: Datapoint
+ Amazonka.CloudWatch: newDeleteAlarms :: DeleteAlarms
+ Amazonka.CloudWatch: newDeleteAlarmsResponse :: DeleteAlarmsResponse
+ Amazonka.CloudWatch: newDeleteAnomalyDetector :: DeleteAnomalyDetector
+ Amazonka.CloudWatch: newDeleteAnomalyDetectorResponse :: Int -> DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch: newDeleteDashboards :: DeleteDashboards
+ Amazonka.CloudWatch: newDeleteDashboardsResponse :: Int -> DeleteDashboardsResponse
+ Amazonka.CloudWatch: newDeleteInsightRules :: DeleteInsightRules
+ Amazonka.CloudWatch: newDeleteInsightRulesResponse :: Int -> DeleteInsightRulesResponse
+ Amazonka.CloudWatch: newDeleteMetricStream :: Text -> DeleteMetricStream
+ Amazonka.CloudWatch: newDeleteMetricStreamResponse :: Int -> DeleteMetricStreamResponse
+ Amazonka.CloudWatch: newDescribeAlarmHistory :: DescribeAlarmHistory
+ Amazonka.CloudWatch: newDescribeAlarmHistoryResponse :: Int -> DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch: newDescribeAlarms :: DescribeAlarms
+ Amazonka.CloudWatch: newDescribeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
+ Amazonka.CloudWatch: newDescribeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch: newDescribeAlarmsResponse :: Int -> DescribeAlarmsResponse
+ Amazonka.CloudWatch: newDescribeAnomalyDetectors :: DescribeAnomalyDetectors
+ Amazonka.CloudWatch: newDescribeAnomalyDetectorsResponse :: Int -> DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch: newDescribeInsightRules :: DescribeInsightRules
+ Amazonka.CloudWatch: newDescribeInsightRulesResponse :: Int -> DescribeInsightRulesResponse
+ Amazonka.CloudWatch: newDimension :: Text -> Text -> Dimension
+ Amazonka.CloudWatch: newDimensionFilter :: Text -> DimensionFilter
+ Amazonka.CloudWatch: newDisableAlarmActions :: DisableAlarmActions
+ Amazonka.CloudWatch: newDisableAlarmActionsResponse :: DisableAlarmActionsResponse
+ Amazonka.CloudWatch: newDisableInsightRules :: DisableInsightRules
+ Amazonka.CloudWatch: newDisableInsightRulesResponse :: Int -> DisableInsightRulesResponse
+ Amazonka.CloudWatch: newEnableAlarmActions :: EnableAlarmActions
+ Amazonka.CloudWatch: newEnableAlarmActionsResponse :: EnableAlarmActionsResponse
+ Amazonka.CloudWatch: newEnableInsightRules :: EnableInsightRules
+ Amazonka.CloudWatch: newEnableInsightRulesResponse :: Int -> EnableInsightRulesResponse
+ Amazonka.CloudWatch: newGetDashboard :: Text -> GetDashboard
+ Amazonka.CloudWatch: newGetDashboardResponse :: Int -> GetDashboardResponse
+ Amazonka.CloudWatch: newGetInsightRuleReport :: Text -> UTCTime -> UTCTime -> Natural -> GetInsightRuleReport
+ Amazonka.CloudWatch: newGetInsightRuleReportResponse :: Int -> GetInsightRuleReportResponse
+ Amazonka.CloudWatch: newGetMetricData :: UTCTime -> UTCTime -> GetMetricData
+ Amazonka.CloudWatch: newGetMetricDataResponse :: Int -> GetMetricDataResponse
+ Amazonka.CloudWatch: newGetMetricStatistics :: Text -> Text -> UTCTime -> UTCTime -> Natural -> GetMetricStatistics
+ Amazonka.CloudWatch: newGetMetricStatisticsResponse :: Int -> GetMetricStatisticsResponse
+ Amazonka.CloudWatch: newGetMetricStream :: Text -> GetMetricStream
+ Amazonka.CloudWatch: newGetMetricStreamResponse :: Int -> GetMetricStreamResponse
+ Amazonka.CloudWatch: newGetMetricWidgetImage :: Text -> GetMetricWidgetImage
+ Amazonka.CloudWatch: newGetMetricWidgetImageResponse :: Int -> GetMetricWidgetImageResponse
+ Amazonka.CloudWatch: newInsightRule :: Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch: newInsightRuleContributor :: Double -> InsightRuleContributor
+ Amazonka.CloudWatch: newInsightRuleContributorDatapoint :: UTCTime -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch: newInsightRuleMetricDatapoint :: UTCTime -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch: newLabelOptions :: LabelOptions
+ Amazonka.CloudWatch: newListDashboards :: ListDashboards
+ Amazonka.CloudWatch: newListDashboardsResponse :: Int -> ListDashboardsResponse
+ Amazonka.CloudWatch: newListManagedInsightRules :: Text -> ListManagedInsightRules
+ Amazonka.CloudWatch: newListManagedInsightRulesResponse :: Int -> ListManagedInsightRulesResponse
+ Amazonka.CloudWatch: newListMetricStreams :: ListMetricStreams
+ Amazonka.CloudWatch: newListMetricStreamsResponse :: Int -> ListMetricStreamsResponse
+ Amazonka.CloudWatch: newListMetrics :: ListMetrics
+ Amazonka.CloudWatch: newListMetricsResponse :: Int -> ListMetricsResponse
+ Amazonka.CloudWatch: newListTagsForResource :: Text -> ListTagsForResource
+ Amazonka.CloudWatch: newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
+ Amazonka.CloudWatch: newManagedRule :: Text -> Text -> ManagedRule
+ Amazonka.CloudWatch: newManagedRuleDescription :: ManagedRuleDescription
+ Amazonka.CloudWatch: newManagedRuleState :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch: newMessageData :: MessageData
+ Amazonka.CloudWatch: newMetric :: Metric
+ Amazonka.CloudWatch: newMetricAlarm :: MetricAlarm
+ Amazonka.CloudWatch: newMetricDataQuery :: Text -> MetricDataQuery
+ Amazonka.CloudWatch: newMetricDataResult :: MetricDataResult
+ Amazonka.CloudWatch: newMetricDatum :: Text -> MetricDatum
+ Amazonka.CloudWatch: newMetricMathAnomalyDetector :: MetricMathAnomalyDetector
+ Amazonka.CloudWatch: newMetricStat :: Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch: newMetricStreamEntry :: MetricStreamEntry
+ Amazonka.CloudWatch: newMetricStreamFilter :: MetricStreamFilter
+ Amazonka.CloudWatch: newMetricStreamStatisticsConfiguration :: MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch: newMetricStreamStatisticsMetric :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch: newPartialFailure :: PartialFailure
+ Amazonka.CloudWatch: newPutAnomalyDetector :: PutAnomalyDetector
+ Amazonka.CloudWatch: newPutAnomalyDetectorResponse :: Int -> PutAnomalyDetectorResponse
+ Amazonka.CloudWatch: newPutCompositeAlarm :: Text -> Text -> PutCompositeAlarm
+ Amazonka.CloudWatch: newPutCompositeAlarmResponse :: PutCompositeAlarmResponse
+ Amazonka.CloudWatch: newPutDashboard :: Text -> Text -> PutDashboard
+ Amazonka.CloudWatch: newPutDashboardResponse :: Int -> PutDashboardResponse
+ Amazonka.CloudWatch: newPutInsightRule :: Text -> Text -> PutInsightRule
+ Amazonka.CloudWatch: newPutInsightRuleResponse :: Int -> PutInsightRuleResponse
+ Amazonka.CloudWatch: newPutManagedInsightRules :: PutManagedInsightRules
+ Amazonka.CloudWatch: newPutManagedInsightRulesResponse :: Int -> PutManagedInsightRulesResponse
+ Amazonka.CloudWatch: newPutMetricAlarm :: Text -> Natural -> ComparisonOperator -> PutMetricAlarm
+ Amazonka.CloudWatch: newPutMetricAlarmResponse :: PutMetricAlarmResponse
+ Amazonka.CloudWatch: newPutMetricData :: Text -> PutMetricData
+ Amazonka.CloudWatch: newPutMetricDataResponse :: PutMetricDataResponse
+ Amazonka.CloudWatch: newPutMetricStream :: Text -> Text -> Text -> MetricStreamOutputFormat -> PutMetricStream
+ Amazonka.CloudWatch: newPutMetricStreamResponse :: Int -> PutMetricStreamResponse
+ Amazonka.CloudWatch: newRange :: UTCTime -> UTCTime -> Range
+ Amazonka.CloudWatch: newSetAlarmState :: Text -> StateValue -> Text -> SetAlarmState
+ Amazonka.CloudWatch: newSetAlarmStateResponse :: SetAlarmStateResponse
+ Amazonka.CloudWatch: newSingleMetricAnomalyDetector :: SingleMetricAnomalyDetector
+ Amazonka.CloudWatch: newStartMetricStreams :: StartMetricStreams
+ Amazonka.CloudWatch: newStartMetricStreamsResponse :: Int -> StartMetricStreamsResponse
+ Amazonka.CloudWatch: newStatisticSet :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch: newStopMetricStreams :: StopMetricStreams
+ Amazonka.CloudWatch: newStopMetricStreamsResponse :: Int -> StopMetricStreamsResponse
+ Amazonka.CloudWatch: newTag :: Text -> Text -> Tag
+ Amazonka.CloudWatch: newTagResource :: Text -> TagResource
+ Amazonka.CloudWatch: newTagResourceResponse :: Int -> TagResourceResponse
+ Amazonka.CloudWatch: newUntagResource :: Text -> UntagResource
+ Amazonka.CloudWatch: newUntagResourceResponse :: Int -> UntagResourceResponse
+ Amazonka.CloudWatch: newtype ActionsSuppressedBy
+ Amazonka.CloudWatch: newtype AlarmType
+ Amazonka.CloudWatch: newtype AnomalyDetectorStateValue
+ Amazonka.CloudWatch: newtype AnomalyDetectorType
+ Amazonka.CloudWatch: newtype ComparisonOperator
+ Amazonka.CloudWatch: newtype EvaluationState
+ Amazonka.CloudWatch: newtype HistoryItemType
+ Amazonka.CloudWatch: newtype MetricStreamOutputFormat
+ Amazonka.CloudWatch: newtype RecentlyActive
+ Amazonka.CloudWatch: newtype ScanBy
+ Amazonka.CloudWatch: newtype StandardUnit
+ Amazonka.CloudWatch: newtype StateValue
+ Amazonka.CloudWatch: newtype Statistic
+ Amazonka.CloudWatch: newtype StatusCode
+ Amazonka.CloudWatch: pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy
+ Amazonka.CloudWatch: pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch: pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch: pattern AlarmType_CompositeAlarm :: AlarmType
+ Amazonka.CloudWatch: pattern AlarmType_MetricAlarm :: AlarmType
+ Amazonka.CloudWatch: pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch: pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch: pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch: pattern AnomalyDetectorType_METRIC_MATH :: AnomalyDetectorType
+ Amazonka.CloudWatch: pattern AnomalyDetectorType_SINGLE_METRIC :: AnomalyDetectorType
+ Amazonka.CloudWatch: pattern ComparisonOperator_GreaterThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_GreaterThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_GreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_LessThanLowerThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_LessThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern ComparisonOperator_LessThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch: pattern EvaluationState_PARTIAL_DATA :: EvaluationState
+ Amazonka.CloudWatch: pattern HistoryItemType_Action :: HistoryItemType
+ Amazonka.CloudWatch: pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType
+ Amazonka.CloudWatch: pattern HistoryItemType_StateUpdate :: HistoryItemType
+ Amazonka.CloudWatch: pattern MetricStreamOutputFormat_Json :: MetricStreamOutputFormat
+ Amazonka.CloudWatch: pattern MetricStreamOutputFormat_Opentelemetry0_7 :: MetricStreamOutputFormat
+ Amazonka.CloudWatch: pattern RecentlyActive_PT3H :: RecentlyActive
+ Amazonka.CloudWatch: pattern ScanBy_TimestampAscending :: ScanBy
+ Amazonka.CloudWatch: pattern ScanBy_TimestampDescending :: ScanBy
+ Amazonka.CloudWatch: pattern StandardUnit_Bits :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Bits_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Bytes :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Bytes_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Count :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Count_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Gigabits :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Gigabits_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Gigabytes :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Gigabytes_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Kilobits :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Kilobits_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Kilobytes :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Kilobytes_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Megabits :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Megabits_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Megabytes :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Megabytes_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Microseconds :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Milliseconds :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_None :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Percent :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Seconds :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Terabits :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Terabits_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Terabytes :: StandardUnit
+ Amazonka.CloudWatch: pattern StandardUnit_Terabytes_Second :: StandardUnit
+ Amazonka.CloudWatch: pattern StateValue_ALARM :: StateValue
+ Amazonka.CloudWatch: pattern StateValue_INSUFFICIENT_DATA :: StateValue
+ Amazonka.CloudWatch: pattern StateValue_OK :: StateValue
+ Amazonka.CloudWatch: pattern Statistic_Average :: Statistic
+ Amazonka.CloudWatch: pattern Statistic_Maximum :: Statistic
+ Amazonka.CloudWatch: pattern Statistic_Minimum :: Statistic
+ Amazonka.CloudWatch: pattern Statistic_SampleCount :: Statistic
+ Amazonka.CloudWatch: pattern Statistic_Sum :: Statistic
+ Amazonka.CloudWatch: pattern StatusCode_Complete :: StatusCode
+ Amazonka.CloudWatch: pattern StatusCode_Forbidden :: StatusCode
+ Amazonka.CloudWatch: pattern StatusCode_InternalError :: StatusCode
+ Amazonka.CloudWatch: pattern StatusCode_PartialData :: StatusCode
+ Amazonka.CloudWatch.DeleteAlarms: DeleteAlarms' :: [Text] -> DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: DeleteAlarmsResponse' :: DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: [$sel:alarmNames:DeleteAlarms'] :: DeleteAlarms -> [Text]
+ Amazonka.CloudWatch.DeleteAlarms: data DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: data DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: deleteAlarms_alarmNames :: Lens' DeleteAlarms [Text]
+ Amazonka.CloudWatch.DeleteAlarms: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Read.Read Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Read.Read Amazonka.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Show.Show Amazonka.CloudWatch.DeleteAlarms.DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: instance GHC.Show.Show Amazonka.CloudWatch.DeleteAlarms.DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAlarms: newDeleteAlarms :: DeleteAlarms
+ Amazonka.CloudWatch.DeleteAlarms: newDeleteAlarmsResponse :: DeleteAlarmsResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: DeleteAnomalyDetector' :: Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: DeleteAnomalyDetectorResponse' :: Int -> DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:dimensions:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:httpStatus:DeleteAnomalyDetectorResponse'] :: DeleteAnomalyDetectorResponse -> Int
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:metricMathAnomalyDetector:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe MetricMathAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:metricName:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:namespace:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:singleMetricAnomalyDetector:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: [$sel:stat:DeleteAnomalyDetector'] :: DeleteAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.DeleteAnomalyDetector: data DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: data DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetectorResponse_httpStatus :: Lens' DeleteAnomalyDetectorResponse Int
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_dimensions :: Lens' DeleteAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_metricMathAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_metricName :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_namespace :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_singleMetricAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.DeleteAnomalyDetector: deleteAnomalyDetector_stat :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.DeleteAnomalyDetector.DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteAnomalyDetector: newDeleteAnomalyDetector :: DeleteAnomalyDetector
+ Amazonka.CloudWatch.DeleteAnomalyDetector: newDeleteAnomalyDetectorResponse :: Int -> DeleteAnomalyDetectorResponse
+ Amazonka.CloudWatch.DeleteDashboards: DeleteDashboards' :: [Text] -> DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: DeleteDashboardsResponse' :: Int -> DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: [$sel:dashboardNames:DeleteDashboards'] :: DeleteDashboards -> [Text]
+ Amazonka.CloudWatch.DeleteDashboards: [$sel:httpStatus:DeleteDashboardsResponse'] :: DeleteDashboardsResponse -> Int
+ Amazonka.CloudWatch.DeleteDashboards: data DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: data DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: deleteDashboardsResponse_httpStatus :: Lens' DeleteDashboardsResponse Int
+ Amazonka.CloudWatch.DeleteDashboards: deleteDashboards_dashboardNames :: Lens' DeleteDashboards [Text]
+ Amazonka.CloudWatch.DeleteDashboards: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Read.Read Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Read.Read Amazonka.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Show.Show Amazonka.CloudWatch.DeleteDashboards.DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: instance GHC.Show.Show Amazonka.CloudWatch.DeleteDashboards.DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteDashboards: newDeleteDashboards :: DeleteDashboards
+ Amazonka.CloudWatch.DeleteDashboards: newDeleteDashboardsResponse :: Int -> DeleteDashboardsResponse
+ Amazonka.CloudWatch.DeleteInsightRules: DeleteInsightRules' :: [Text] -> DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: DeleteInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: [$sel:failures:DeleteInsightRulesResponse'] :: DeleteInsightRulesResponse -> Maybe [PartialFailure]
+ Amazonka.CloudWatch.DeleteInsightRules: [$sel:httpStatus:DeleteInsightRulesResponse'] :: DeleteInsightRulesResponse -> Int
+ Amazonka.CloudWatch.DeleteInsightRules: [$sel:ruleNames:DeleteInsightRules'] :: DeleteInsightRules -> [Text]
+ Amazonka.CloudWatch.DeleteInsightRules: data DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: data DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: deleteInsightRulesResponse_failures :: Lens' DeleteInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.DeleteInsightRules: deleteInsightRulesResponse_httpStatus :: Lens' DeleteInsightRulesResponse Int
+ Amazonka.CloudWatch.DeleteInsightRules: deleteInsightRules_ruleNames :: Lens' DeleteInsightRules [Text]
+ Amazonka.CloudWatch.DeleteInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DeleteInsightRules.DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteInsightRules: newDeleteInsightRules :: DeleteInsightRules
+ Amazonka.CloudWatch.DeleteInsightRules: newDeleteInsightRulesResponse :: Int -> DeleteInsightRulesResponse
+ Amazonka.CloudWatch.DeleteMetricStream: DeleteMetricStream' :: Text -> DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: DeleteMetricStreamResponse' :: Int -> DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: [$sel:httpStatus:DeleteMetricStreamResponse'] :: DeleteMetricStreamResponse -> Int
+ Amazonka.CloudWatch.DeleteMetricStream: [$sel:name:DeleteMetricStream'] :: DeleteMetricStream -> Text
+ Amazonka.CloudWatch.DeleteMetricStream: data DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: data DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: deleteMetricStreamResponse_httpStatus :: Lens' DeleteMetricStreamResponse Int
+ Amazonka.CloudWatch.DeleteMetricStream: deleteMetricStream_name :: Lens' DeleteMetricStream Text
+ Amazonka.CloudWatch.DeleteMetricStream: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.DeleteMetricStream.DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DeleteMetricStream: newDeleteMetricStream :: Text -> DeleteMetricStream
+ Amazonka.CloudWatch.DeleteMetricStream: newDeleteMetricStreamResponse :: Int -> DeleteMetricStreamResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: DescribeAlarmHistory' :: Maybe Text -> Maybe [AlarmType] -> Maybe ISO8601 -> Maybe HistoryItemType -> Maybe Natural -> Maybe Text -> Maybe ScanBy -> Maybe ISO8601 -> DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: DescribeAlarmHistoryResponse' :: Maybe [AlarmHistoryItem] -> Maybe Text -> Int -> DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:alarmHistoryItems:DescribeAlarmHistoryResponse'] :: DescribeAlarmHistoryResponse -> Maybe [AlarmHistoryItem]
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:alarmName:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:alarmTypes:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe [AlarmType]
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:endDate:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe ISO8601
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:historyItemType:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe HistoryItemType
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:httpStatus:DescribeAlarmHistoryResponse'] :: DescribeAlarmHistoryResponse -> Int
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:maxRecords:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe Natural
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:nextToken:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:nextToken:DescribeAlarmHistoryResponse'] :: DescribeAlarmHistoryResponse -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:scanBy:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe ScanBy
+ Amazonka.CloudWatch.DescribeAlarmHistory: [$sel:startDate:DescribeAlarmHistory'] :: DescribeAlarmHistory -> Maybe ISO8601
+ Amazonka.CloudWatch.DescribeAlarmHistory: data DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: data DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistoryResponse_alarmHistoryItems :: Lens' DescribeAlarmHistoryResponse (Maybe [AlarmHistoryItem])
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistoryResponse_httpStatus :: Lens' DescribeAlarmHistoryResponse Int
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistoryResponse_nextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_alarmName :: Lens' DescribeAlarmHistory (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_alarmTypes :: Lens' DescribeAlarmHistory (Maybe [AlarmType])
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_endDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_historyItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_maxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_nextToken :: Lens' DescribeAlarmHistory (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_scanBy :: Lens' DescribeAlarmHistory (Maybe ScanBy)
+ Amazonka.CloudWatch.DescribeAlarmHistory: describeAlarmHistory_startDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarmHistory.DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarmHistory: newDescribeAlarmHistory :: DescribeAlarmHistory
+ Amazonka.CloudWatch.DescribeAlarmHistory: newDescribeAlarmHistoryResponse :: Int -> DescribeAlarmHistoryResponse
+ Amazonka.CloudWatch.DescribeAlarms: DescribeAlarms' :: Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe [AlarmType] -> Maybe Text -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe StateValue -> DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: DescribeAlarmsResponse' :: Maybe [CompositeAlarm] -> Maybe [MetricAlarm] -> Maybe Text -> Int -> DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:actionPrefix:DescribeAlarms'] :: DescribeAlarms -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:alarmNamePrefix:DescribeAlarms'] :: DescribeAlarms -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:alarmNames:DescribeAlarms'] :: DescribeAlarms -> Maybe [Text]
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:alarmTypes:DescribeAlarms'] :: DescribeAlarms -> Maybe [AlarmType]
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:childrenOfAlarmName:DescribeAlarms'] :: DescribeAlarms -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:compositeAlarms:DescribeAlarmsResponse'] :: DescribeAlarmsResponse -> Maybe [CompositeAlarm]
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:httpStatus:DescribeAlarmsResponse'] :: DescribeAlarmsResponse -> Int
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:maxRecords:DescribeAlarms'] :: DescribeAlarms -> Maybe Natural
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:metricAlarms:DescribeAlarmsResponse'] :: DescribeAlarmsResponse -> Maybe [MetricAlarm]
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:nextToken:DescribeAlarms'] :: DescribeAlarms -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:nextToken:DescribeAlarmsResponse'] :: DescribeAlarmsResponse -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:parentsOfAlarmName:DescribeAlarms'] :: DescribeAlarms -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarms: [$sel:stateValue:DescribeAlarms'] :: DescribeAlarms -> Maybe StateValue
+ Amazonka.CloudWatch.DescribeAlarms: data DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: data DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarmsResponse_compositeAlarms :: Lens' DescribeAlarmsResponse (Maybe [CompositeAlarm])
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarmsResponse_httpStatus :: Lens' DescribeAlarmsResponse Int
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarmsResponse_metricAlarms :: Lens' DescribeAlarmsResponse (Maybe [MetricAlarm])
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarmsResponse_nextToken :: Lens' DescribeAlarmsResponse (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_actionPrefix :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_alarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_alarmNames :: Lens' DescribeAlarms (Maybe [Text])
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_alarmTypes :: Lens' DescribeAlarms (Maybe [AlarmType])
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_childrenOfAlarmName :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_maxRecords :: Lens' DescribeAlarms (Maybe Natural)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_nextToken :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_parentsOfAlarmName :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarms: describeAlarms_stateValue :: Lens' DescribeAlarms (Maybe StateValue)
+ Amazonka.CloudWatch.DescribeAlarms: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarms.DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarms.DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarms: newDescribeAlarms :: DescribeAlarms
+ Amazonka.CloudWatch.DescribeAlarms: newDescribeAlarmsResponse :: Int -> DescribeAlarmsResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: DescribeAlarmsForMetric' :: Maybe [Dimension] -> Maybe Text -> Maybe Natural -> Maybe Statistic -> Maybe StandardUnit -> Text -> Text -> DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: DescribeAlarmsForMetricResponse' :: Maybe [MetricAlarm] -> Int -> DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:dimensions:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Maybe [Dimension]
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:extendedStatistic:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Maybe Text
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:httpStatus:DescribeAlarmsForMetricResponse'] :: DescribeAlarmsForMetricResponse -> Int
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:metricAlarms:DescribeAlarmsForMetricResponse'] :: DescribeAlarmsForMetricResponse -> Maybe [MetricAlarm]
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:metricName:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Text
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:namespace:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Text
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:period:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Maybe Natural
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:statistic:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Maybe Statistic
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: [$sel:unit:DescribeAlarmsForMetric'] :: DescribeAlarmsForMetric -> Maybe StandardUnit
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: data DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: data DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetricResponse_httpStatus :: Lens' DescribeAlarmsForMetricResponse Int
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetricResponse_metricAlarms :: Lens' DescribeAlarmsForMetricResponse (Maybe [MetricAlarm])
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_dimensions :: Lens' DescribeAlarmsForMetric (Maybe [Dimension])
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_extendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text)
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_metricName :: Lens' DescribeAlarmsForMetric Text
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_namespace :: Lens' DescribeAlarmsForMetric Text
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_period :: Lens' DescribeAlarmsForMetric (Maybe Natural)
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_statistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: describeAlarmsForMetric_unit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAlarmsForMetric.DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: newDescribeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
+ Amazonka.CloudWatch.DescribeAlarmsForMetric: newDescribeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: DescribeAnomalyDetectors' :: Maybe [AnomalyDetectorType] -> Maybe [Dimension] -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe Text -> DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: DescribeAnomalyDetectorsResponse' :: Maybe [AnomalyDetector] -> Maybe Text -> Int -> DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:anomalyDetectorTypes:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe [AnomalyDetectorType]
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:anomalyDetectors:DescribeAnomalyDetectorsResponse'] :: DescribeAnomalyDetectorsResponse -> Maybe [AnomalyDetector]
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:dimensions:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe [Dimension]
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:httpStatus:DescribeAnomalyDetectorsResponse'] :: DescribeAnomalyDetectorsResponse -> Int
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:maxResults:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe Natural
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:metricName:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe Text
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:namespace:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe Text
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:nextToken:DescribeAnomalyDetectors'] :: DescribeAnomalyDetectors -> Maybe Text
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: [$sel:nextToken:DescribeAnomalyDetectorsResponse'] :: DescribeAnomalyDetectorsResponse -> Maybe Text
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: data DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: data DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectorsResponse_anomalyDetectors :: Lens' DescribeAnomalyDetectorsResponse (Maybe [AnomalyDetector])
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectorsResponse_httpStatus :: Lens' DescribeAnomalyDetectorsResponse Int
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectorsResponse_nextToken :: Lens' DescribeAnomalyDetectorsResponse (Maybe Text)
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_anomalyDetectorTypes :: Lens' DescribeAnomalyDetectors (Maybe [AnomalyDetectorType])
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_dimensions :: Lens' DescribeAnomalyDetectors (Maybe [Dimension])
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_maxResults :: Lens' DescribeAnomalyDetectors (Maybe Natural)
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_metricName :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_namespace :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: describeAnomalyDetectors_nextToken :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Read.Read Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: instance GHC.Show.Show Amazonka.CloudWatch.DescribeAnomalyDetectors.DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: newDescribeAnomalyDetectors :: DescribeAnomalyDetectors
+ Amazonka.CloudWatch.DescribeAnomalyDetectors: newDescribeAnomalyDetectorsResponse :: Int -> DescribeAnomalyDetectorsResponse
+ Amazonka.CloudWatch.DescribeInsightRules: DescribeInsightRules' :: Maybe Natural -> Maybe Text -> DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: DescribeInsightRulesResponse' :: Maybe [InsightRule] -> Maybe Text -> Int -> DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: [$sel:httpStatus:DescribeInsightRulesResponse'] :: DescribeInsightRulesResponse -> Int
+ Amazonka.CloudWatch.DescribeInsightRules: [$sel:insightRules:DescribeInsightRulesResponse'] :: DescribeInsightRulesResponse -> Maybe [InsightRule]
+ Amazonka.CloudWatch.DescribeInsightRules: [$sel:maxResults:DescribeInsightRules'] :: DescribeInsightRules -> Maybe Natural
+ Amazonka.CloudWatch.DescribeInsightRules: [$sel:nextToken:DescribeInsightRules'] :: DescribeInsightRules -> Maybe Text
+ Amazonka.CloudWatch.DescribeInsightRules: [$sel:nextToken:DescribeInsightRulesResponse'] :: DescribeInsightRulesResponse -> Maybe Text
+ Amazonka.CloudWatch.DescribeInsightRules: data DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: data DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: describeInsightRulesResponse_httpStatus :: Lens' DescribeInsightRulesResponse Int
+ Amazonka.CloudWatch.DescribeInsightRules: describeInsightRulesResponse_insightRules :: Lens' DescribeInsightRulesResponse (Maybe [InsightRule])
+ Amazonka.CloudWatch.DescribeInsightRules: describeInsightRulesResponse_nextToken :: Lens' DescribeInsightRulesResponse (Maybe Text)
+ Amazonka.CloudWatch.DescribeInsightRules: describeInsightRules_maxResults :: Lens' DescribeInsightRules (Maybe Natural)
+ Amazonka.CloudWatch.DescribeInsightRules: describeInsightRules_nextToken :: Lens' DescribeInsightRules (Maybe Text)
+ Amazonka.CloudWatch.DescribeInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DescribeInsightRules.DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DescribeInsightRules: newDescribeInsightRules :: DescribeInsightRules
+ Amazonka.CloudWatch.DescribeInsightRules: newDescribeInsightRulesResponse :: Int -> DescribeInsightRulesResponse
+ Amazonka.CloudWatch.DisableAlarmActions: DisableAlarmActions' :: [Text] -> DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: DisableAlarmActionsResponse' :: DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: [$sel:alarmNames:DisableAlarmActions'] :: DisableAlarmActions -> [Text]
+ Amazonka.CloudWatch.DisableAlarmActions: data DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: data DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: disableAlarmActions_alarmNames :: Lens' DisableAlarmActions [Text]
+ Amazonka.CloudWatch.DisableAlarmActions: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Classes.Eq Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Classes.Eq Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Generics.Generic Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Generics.Generic Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Read.Read Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Read.Read Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Show.Show Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: instance GHC.Show.Show Amazonka.CloudWatch.DisableAlarmActions.DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableAlarmActions: newDisableAlarmActions :: DisableAlarmActions
+ Amazonka.CloudWatch.DisableAlarmActions: newDisableAlarmActionsResponse :: DisableAlarmActionsResponse
+ Amazonka.CloudWatch.DisableInsightRules: DisableInsightRules' :: [Text] -> DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: DisableInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: [$sel:failures:DisableInsightRulesResponse'] :: DisableInsightRulesResponse -> Maybe [PartialFailure]
+ Amazonka.CloudWatch.DisableInsightRules: [$sel:httpStatus:DisableInsightRulesResponse'] :: DisableInsightRulesResponse -> Int
+ Amazonka.CloudWatch.DisableInsightRules: [$sel:ruleNames:DisableInsightRules'] :: DisableInsightRules -> [Text]
+ Amazonka.CloudWatch.DisableInsightRules: data DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: data DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: disableInsightRulesResponse_failures :: Lens' DisableInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.DisableInsightRules: disableInsightRulesResponse_httpStatus :: Lens' DisableInsightRulesResponse Int
+ Amazonka.CloudWatch.DisableInsightRules: disableInsightRules_ruleNames :: Lens' DisableInsightRules [Text]
+ Amazonka.CloudWatch.DisableInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.DisableInsightRules.DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.DisableInsightRules.DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.DisableInsightRules.DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.DisableInsightRules.DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DisableInsightRules.DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.DisableInsightRules.DisableInsightRulesResponse
+ Amazonka.CloudWatch.DisableInsightRules: newDisableInsightRules :: DisableInsightRules
+ Amazonka.CloudWatch.DisableInsightRules: newDisableInsightRulesResponse :: Int -> DisableInsightRulesResponse
+ Amazonka.CloudWatch.EnableAlarmActions: EnableAlarmActions' :: [Text] -> EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: EnableAlarmActionsResponse' :: EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: [$sel:alarmNames:EnableAlarmActions'] :: EnableAlarmActions -> [Text]
+ Amazonka.CloudWatch.EnableAlarmActions: data EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: data EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: enableAlarmActions_alarmNames :: Lens' EnableAlarmActions [Text]
+ Amazonka.CloudWatch.EnableAlarmActions: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance Control.DeepSeq.NFData Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance Control.DeepSeq.NFData Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Classes.Eq Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Classes.Eq Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Generics.Generic Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Generics.Generic Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Read.Read Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Read.Read Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Show.Show Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: instance GHC.Show.Show Amazonka.CloudWatch.EnableAlarmActions.EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableAlarmActions: newEnableAlarmActions :: EnableAlarmActions
+ Amazonka.CloudWatch.EnableAlarmActions: newEnableAlarmActionsResponse :: EnableAlarmActionsResponse
+ Amazonka.CloudWatch.EnableInsightRules: EnableInsightRules' :: [Text] -> EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: EnableInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: [$sel:failures:EnableInsightRulesResponse'] :: EnableInsightRulesResponse -> Maybe [PartialFailure]
+ Amazonka.CloudWatch.EnableInsightRules: [$sel:httpStatus:EnableInsightRulesResponse'] :: EnableInsightRulesResponse -> Int
+ Amazonka.CloudWatch.EnableInsightRules: [$sel:ruleNames:EnableInsightRules'] :: EnableInsightRules -> [Text]
+ Amazonka.CloudWatch.EnableInsightRules: data EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: data EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: enableInsightRulesResponse_failures :: Lens' EnableInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.EnableInsightRules: enableInsightRulesResponse_httpStatus :: Lens' EnableInsightRulesResponse Int
+ Amazonka.CloudWatch.EnableInsightRules: enableInsightRules_ruleNames :: Lens' EnableInsightRules [Text]
+ Amazonka.CloudWatch.EnableInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.EnableInsightRules.EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.EnableInsightRules.EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.EnableInsightRules.EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.EnableInsightRules.EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.EnableInsightRules.EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.EnableInsightRules.EnableInsightRulesResponse
+ Amazonka.CloudWatch.EnableInsightRules: newEnableInsightRules :: EnableInsightRules
+ Amazonka.CloudWatch.EnableInsightRules: newEnableInsightRulesResponse :: Int -> EnableInsightRulesResponse
+ Amazonka.CloudWatch.GetDashboard: GetDashboard' :: Text -> GetDashboard
+ Amazonka.CloudWatch.GetDashboard: GetDashboardResponse' :: Maybe Text -> Maybe Text -> Maybe Text -> Int -> GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: [$sel:dashboardArn:GetDashboardResponse'] :: GetDashboardResponse -> Maybe Text
+ Amazonka.CloudWatch.GetDashboard: [$sel:dashboardBody:GetDashboardResponse'] :: GetDashboardResponse -> Maybe Text
+ Amazonka.CloudWatch.GetDashboard: [$sel:dashboardName:GetDashboard'] :: GetDashboard -> Text
+ Amazonka.CloudWatch.GetDashboard: [$sel:dashboardName:GetDashboardResponse'] :: GetDashboardResponse -> Maybe Text
+ Amazonka.CloudWatch.GetDashboard: [$sel:httpStatus:GetDashboardResponse'] :: GetDashboardResponse -> Int
+ Amazonka.CloudWatch.GetDashboard: data GetDashboard
+ Amazonka.CloudWatch.GetDashboard: data GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: getDashboardResponse_dashboardArn :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.GetDashboard: getDashboardResponse_dashboardBody :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.GetDashboard: getDashboardResponse_dashboardName :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.GetDashboard: getDashboardResponse_httpStatus :: Lens' GetDashboardResponse Int
+ Amazonka.CloudWatch.GetDashboard: getDashboard_dashboardName :: Lens' GetDashboard Text
+ Amazonka.CloudWatch.GetDashboard: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetDashboard.GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Classes.Eq Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Classes.Eq Amazonka.CloudWatch.GetDashboard.GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Generics.Generic Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Generics.Generic Amazonka.CloudWatch.GetDashboard.GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Read.Read Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Read.Read Amazonka.CloudWatch.GetDashboard.GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Show.Show Amazonka.CloudWatch.GetDashboard.GetDashboard
+ Amazonka.CloudWatch.GetDashboard: instance GHC.Show.Show Amazonka.CloudWatch.GetDashboard.GetDashboardResponse
+ Amazonka.CloudWatch.GetDashboard: newGetDashboard :: Text -> GetDashboard
+ Amazonka.CloudWatch.GetDashboard: newGetDashboardResponse :: Int -> GetDashboardResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: GetInsightRuleReport' :: Maybe Int -> Maybe [Text] -> Maybe Text -> Text -> ISO8601 -> ISO8601 -> Natural -> GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: GetInsightRuleReportResponse' :: Maybe Double -> Maybe Text -> Maybe Integer -> Maybe [InsightRuleContributor] -> Maybe [Text] -> Maybe [InsightRuleMetricDatapoint] -> Int -> GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:aggregateValue:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe Double
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:aggregationStatistic:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe Text
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:approximateUniqueCount:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe Integer
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:contributors:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe [InsightRuleContributor]
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:endTime:GetInsightRuleReport'] :: GetInsightRuleReport -> ISO8601
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:httpStatus:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Int
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:keyLabels:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe [Text]
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:maxContributorCount:GetInsightRuleReport'] :: GetInsightRuleReport -> Maybe Int
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:metricDatapoints:GetInsightRuleReportResponse'] :: GetInsightRuleReportResponse -> Maybe [InsightRuleMetricDatapoint]
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:metrics:GetInsightRuleReport'] :: GetInsightRuleReport -> Maybe [Text]
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:orderBy:GetInsightRuleReport'] :: GetInsightRuleReport -> Maybe Text
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:period:GetInsightRuleReport'] :: GetInsightRuleReport -> Natural
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:ruleName:GetInsightRuleReport'] :: GetInsightRuleReport -> Text
+ Amazonka.CloudWatch.GetInsightRuleReport: [$sel:startTime:GetInsightRuleReport'] :: GetInsightRuleReport -> ISO8601
+ Amazonka.CloudWatch.GetInsightRuleReport: data GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: data GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_aggregateValue :: Lens' GetInsightRuleReportResponse (Maybe Double)
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_aggregationStatistic :: Lens' GetInsightRuleReportResponse (Maybe Text)
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_approximateUniqueCount :: Lens' GetInsightRuleReportResponse (Maybe Integer)
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_contributors :: Lens' GetInsightRuleReportResponse (Maybe [InsightRuleContributor])
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_httpStatus :: Lens' GetInsightRuleReportResponse Int
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_keyLabels :: Lens' GetInsightRuleReportResponse (Maybe [Text])
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReportResponse_metricDatapoints :: Lens' GetInsightRuleReportResponse (Maybe [InsightRuleMetricDatapoint])
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_endTime :: Lens' GetInsightRuleReport UTCTime
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_maxContributorCount :: Lens' GetInsightRuleReport (Maybe Int)
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_metrics :: Lens' GetInsightRuleReport (Maybe [Text])
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_orderBy :: Lens' GetInsightRuleReport (Maybe Text)
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_period :: Lens' GetInsightRuleReport Natural
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_ruleName :: Lens' GetInsightRuleReport Text
+ Amazonka.CloudWatch.GetInsightRuleReport: getInsightRuleReport_startTime :: Lens' GetInsightRuleReport UTCTime
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Classes.Eq Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Classes.Eq Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Generics.Generic Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Generics.Generic Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Read.Read Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Read.Read Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Show.Show Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: instance GHC.Show.Show Amazonka.CloudWatch.GetInsightRuleReport.GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetInsightRuleReport: newGetInsightRuleReport :: Text -> UTCTime -> UTCTime -> Natural -> GetInsightRuleReport
+ Amazonka.CloudWatch.GetInsightRuleReport: newGetInsightRuleReportResponse :: Int -> GetInsightRuleReportResponse
+ Amazonka.CloudWatch.GetMetricData: GetMetricData' :: Maybe LabelOptions -> Maybe Int -> Maybe Text -> Maybe ScanBy -> [MetricDataQuery] -> ISO8601 -> ISO8601 -> GetMetricData
+ Amazonka.CloudWatch.GetMetricData: GetMetricDataResponse' :: Maybe [MessageData] -> Maybe [MetricDataResult] -> Maybe Text -> Int -> GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: [$sel:endTime:GetMetricData'] :: GetMetricData -> ISO8601
+ Amazonka.CloudWatch.GetMetricData: [$sel:httpStatus:GetMetricDataResponse'] :: GetMetricDataResponse -> Int
+ Amazonka.CloudWatch.GetMetricData: [$sel:labelOptions:GetMetricData'] :: GetMetricData -> Maybe LabelOptions
+ Amazonka.CloudWatch.GetMetricData: [$sel:maxDatapoints:GetMetricData'] :: GetMetricData -> Maybe Int
+ Amazonka.CloudWatch.GetMetricData: [$sel:messages:GetMetricDataResponse'] :: GetMetricDataResponse -> Maybe [MessageData]
+ Amazonka.CloudWatch.GetMetricData: [$sel:metricDataQueries:GetMetricData'] :: GetMetricData -> [MetricDataQuery]
+ Amazonka.CloudWatch.GetMetricData: [$sel:metricDataResults:GetMetricDataResponse'] :: GetMetricDataResponse -> Maybe [MetricDataResult]
+ Amazonka.CloudWatch.GetMetricData: [$sel:nextToken:GetMetricData'] :: GetMetricData -> Maybe Text
+ Amazonka.CloudWatch.GetMetricData: [$sel:nextToken:GetMetricDataResponse'] :: GetMetricDataResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricData: [$sel:scanBy:GetMetricData'] :: GetMetricData -> Maybe ScanBy
+ Amazonka.CloudWatch.GetMetricData: [$sel:startTime:GetMetricData'] :: GetMetricData -> ISO8601
+ Amazonka.CloudWatch.GetMetricData: data GetMetricData
+ Amazonka.CloudWatch.GetMetricData: data GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: getMetricDataResponse_httpStatus :: Lens' GetMetricDataResponse Int
+ Amazonka.CloudWatch.GetMetricData: getMetricDataResponse_messages :: Lens' GetMetricDataResponse (Maybe [MessageData])
+ Amazonka.CloudWatch.GetMetricData: getMetricDataResponse_metricDataResults :: Lens' GetMetricDataResponse (Maybe [MetricDataResult])
+ Amazonka.CloudWatch.GetMetricData: getMetricDataResponse_nextToken :: Lens' GetMetricDataResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricData: getMetricData_endTime :: Lens' GetMetricData UTCTime
+ Amazonka.CloudWatch.GetMetricData: getMetricData_labelOptions :: Lens' GetMetricData (Maybe LabelOptions)
+ Amazonka.CloudWatch.GetMetricData: getMetricData_maxDatapoints :: Lens' GetMetricData (Maybe Int)
+ Amazonka.CloudWatch.GetMetricData: getMetricData_metricDataQueries :: Lens' GetMetricData [MetricDataQuery]
+ Amazonka.CloudWatch.GetMetricData: getMetricData_nextToken :: Lens' GetMetricData (Maybe Text)
+ Amazonka.CloudWatch.GetMetricData: getMetricData_scanBy :: Lens' GetMetricData (Maybe ScanBy)
+ Amazonka.CloudWatch.GetMetricData: getMetricData_startTime :: Lens' GetMetricData UTCTime
+ Amazonka.CloudWatch.GetMetricData: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricData.GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricData.GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricData.GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricData.GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricData.GetMetricData
+ Amazonka.CloudWatch.GetMetricData: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricData.GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricData: newGetMetricData :: UTCTime -> UTCTime -> GetMetricData
+ Amazonka.CloudWatch.GetMetricData: newGetMetricDataResponse :: Int -> GetMetricDataResponse
+ Amazonka.CloudWatch.GetMetricStatistics: GetMetricStatistics' :: Maybe [Dimension] -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Statistic) -> Maybe StandardUnit -> Text -> Text -> ISO8601 -> ISO8601 -> Natural -> GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: GetMetricStatisticsResponse' :: Maybe [Datapoint] -> Maybe Text -> Int -> GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:datapoints:GetMetricStatisticsResponse'] :: GetMetricStatisticsResponse -> Maybe [Datapoint]
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:dimensions:GetMetricStatistics'] :: GetMetricStatistics -> Maybe [Dimension]
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:endTime:GetMetricStatistics'] :: GetMetricStatistics -> ISO8601
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:extendedStatistics:GetMetricStatistics'] :: GetMetricStatistics -> Maybe (NonEmpty Text)
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:httpStatus:GetMetricStatisticsResponse'] :: GetMetricStatisticsResponse -> Int
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:label:GetMetricStatisticsResponse'] :: GetMetricStatisticsResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:metricName:GetMetricStatistics'] :: GetMetricStatistics -> Text
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:namespace:GetMetricStatistics'] :: GetMetricStatistics -> Text
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:period:GetMetricStatistics'] :: GetMetricStatistics -> Natural
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:startTime:GetMetricStatistics'] :: GetMetricStatistics -> ISO8601
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:statistics:GetMetricStatistics'] :: GetMetricStatistics -> Maybe (NonEmpty Statistic)
+ Amazonka.CloudWatch.GetMetricStatistics: [$sel:unit:GetMetricStatistics'] :: GetMetricStatistics -> Maybe StandardUnit
+ Amazonka.CloudWatch.GetMetricStatistics: data GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: data GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatisticsResponse_datapoints :: Lens' GetMetricStatisticsResponse (Maybe [Datapoint])
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatisticsResponse_httpStatus :: Lens' GetMetricStatisticsResponse Int
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatisticsResponse_label :: Lens' GetMetricStatisticsResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_dimensions :: Lens' GetMetricStatistics (Maybe [Dimension])
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_endTime :: Lens' GetMetricStatistics UTCTime
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_extendedStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Text))
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_metricName :: Lens' GetMetricStatistics Text
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_namespace :: Lens' GetMetricStatistics Text
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_period :: Lens' GetMetricStatistics Natural
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_startTime :: Lens' GetMetricStatistics UTCTime
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_statistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Statistic))
+ Amazonka.CloudWatch.GetMetricStatistics: getMetricStatistics_unit :: Lens' GetMetricStatistics (Maybe StandardUnit)
+ Amazonka.CloudWatch.GetMetricStatistics: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricStatistics.GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStatistics: newGetMetricStatistics :: Text -> Text -> UTCTime -> UTCTime -> Natural -> GetMetricStatistics
+ Amazonka.CloudWatch.GetMetricStatistics: newGetMetricStatisticsResponse :: Int -> GetMetricStatisticsResponse
+ Amazonka.CloudWatch.GetMetricStream: GetMetricStream' :: Text -> GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: GetMetricStreamResponse' :: Maybe Text -> Maybe ISO8601 -> Maybe [MetricStreamFilter] -> Maybe Text -> Maybe [MetricStreamFilter] -> Maybe ISO8601 -> Maybe Text -> Maybe MetricStreamOutputFormat -> Maybe Text -> Maybe Text -> Maybe [MetricStreamStatisticsConfiguration] -> Int -> GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: [$sel:arn:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:creationDate:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe ISO8601
+ Amazonka.CloudWatch.GetMetricStream: [$sel:excludeFilters:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe [MetricStreamFilter]
+ Amazonka.CloudWatch.GetMetricStream: [$sel:firehoseArn:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:httpStatus:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Int
+ Amazonka.CloudWatch.GetMetricStream: [$sel:includeFilters:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe [MetricStreamFilter]
+ Amazonka.CloudWatch.GetMetricStream: [$sel:lastUpdateDate:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe ISO8601
+ Amazonka.CloudWatch.GetMetricStream: [$sel:name:GetMetricStream'] :: GetMetricStream -> Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:name:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:outputFormat:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe MetricStreamOutputFormat
+ Amazonka.CloudWatch.GetMetricStream: [$sel:roleArn:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:state:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.GetMetricStream: [$sel:statisticsConfigurations:GetMetricStreamResponse'] :: GetMetricStreamResponse -> Maybe [MetricStreamStatisticsConfiguration]
+ Amazonka.CloudWatch.GetMetricStream: data GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: data GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_arn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_creationDate :: Lens' GetMetricStreamResponse (Maybe UTCTime)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_excludeFilters :: Lens' GetMetricStreamResponse (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_firehoseArn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_httpStatus :: Lens' GetMetricStreamResponse Int
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_includeFilters :: Lens' GetMetricStreamResponse (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_lastUpdateDate :: Lens' GetMetricStreamResponse (Maybe UTCTime)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_name :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_outputFormat :: Lens' GetMetricStreamResponse (Maybe MetricStreamOutputFormat)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_roleArn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_state :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.GetMetricStream: getMetricStreamResponse_statisticsConfigurations :: Lens' GetMetricStreamResponse (Maybe [MetricStreamStatisticsConfiguration])
+ Amazonka.CloudWatch.GetMetricStream: getMetricStream_name :: Lens' GetMetricStream Text
+ Amazonka.CloudWatch.GetMetricStream: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricStream.GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricStream.GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricStream.GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricStream.GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricStream.GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricStream.GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricStream: newGetMetricStream :: Text -> GetMetricStream
+ Amazonka.CloudWatch.GetMetricStream: newGetMetricStreamResponse :: Int -> GetMetricStreamResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: GetMetricWidgetImage' :: Maybe Text -> Text -> GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: GetMetricWidgetImageResponse' :: Maybe Base64 -> Int -> GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: [$sel:httpStatus:GetMetricWidgetImageResponse'] :: GetMetricWidgetImageResponse -> Int
+ Amazonka.CloudWatch.GetMetricWidgetImage: [$sel:metricWidget:GetMetricWidgetImage'] :: GetMetricWidgetImage -> Text
+ Amazonka.CloudWatch.GetMetricWidgetImage: [$sel:metricWidgetImage:GetMetricWidgetImageResponse'] :: GetMetricWidgetImageResponse -> Maybe Base64
+ Amazonka.CloudWatch.GetMetricWidgetImage: [$sel:outputFormat:GetMetricWidgetImage'] :: GetMetricWidgetImage -> Maybe Text
+ Amazonka.CloudWatch.GetMetricWidgetImage: data GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: data GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: getMetricWidgetImageResponse_httpStatus :: Lens' GetMetricWidgetImageResponse Int
+ Amazonka.CloudWatch.GetMetricWidgetImage: getMetricWidgetImageResponse_metricWidgetImage :: Lens' GetMetricWidgetImageResponse (Maybe ByteString)
+ Amazonka.CloudWatch.GetMetricWidgetImage: getMetricWidgetImage_metricWidget :: Lens' GetMetricWidgetImage Text
+ Amazonka.CloudWatch.GetMetricWidgetImage: getMetricWidgetImage_outputFormat :: Lens' GetMetricWidgetImage (Maybe Text)
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Control.DeepSeq.NFData Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Classes.Eq Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Generics.Generic Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Read.Read Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: instance GHC.Show.Show Amazonka.CloudWatch.GetMetricWidgetImage.GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.GetMetricWidgetImage: newGetMetricWidgetImage :: Text -> GetMetricWidgetImage
+ Amazonka.CloudWatch.GetMetricWidgetImage: newGetMetricWidgetImageResponse :: Int -> GetMetricWidgetImageResponse
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType)
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_historyItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Lens: alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range])
+ Amazonka.CloudWatch.Lens: anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text)
+ Amazonka.CloudWatch.Lens: anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration)
+ Amazonka.CloudWatch.Lens: anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: anomalyDetector_metricMathAnomalyDetector :: Lens' AnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.Lens: anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: anomalyDetector_singleMetricAnomalyDetector :: Lens' AnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.Lens: anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsSuppressedBy :: Lens' CompositeAlarm (Maybe ActionsSuppressedBy)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsSuppressedReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsSuppressor :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsSuppressorExtensionPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Lens: compositeAlarm_actionsSuppressorWaitPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmDescription :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmName :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: compositeAlarm_stateTransitionedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: compositeAlarm_stateValue :: Lens' CompositeAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Lens: dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: dashboardEntry_dashboardName :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer)
+ Amazonka.CloudWatch.Lens: dashboardValidationMessage_dataPath :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Lens: dashboardValidationMessage_message :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Lens: datapoint_average :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double))
+ Amazonka.CloudWatch.Lens: datapoint_maximum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: datapoint_minimum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: datapoint_sampleCount :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: datapoint_sum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: datapoint_unit :: Lens' Datapoint (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: deleteAlarms_alarmNames :: Lens' DeleteAlarms [Text]
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetectorResponse_httpStatus :: Lens' DeleteAnomalyDetectorResponse Int
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_dimensions :: Lens' DeleteAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_metricMathAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_metricName :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_namespace :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_singleMetricAnomalyDetector :: Lens' DeleteAnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.Lens: deleteAnomalyDetector_stat :: Lens' DeleteAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: deleteDashboardsResponse_httpStatus :: Lens' DeleteDashboardsResponse Int
+ Amazonka.CloudWatch.Lens: deleteDashboards_dashboardNames :: Lens' DeleteDashboards [Text]
+ Amazonka.CloudWatch.Lens: deleteInsightRulesResponse_failures :: Lens' DeleteInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.Lens: deleteInsightRulesResponse_httpStatus :: Lens' DeleteInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: deleteInsightRules_ruleNames :: Lens' DeleteInsightRules [Text]
+ Amazonka.CloudWatch.Lens: deleteMetricStreamResponse_httpStatus :: Lens' DeleteMetricStreamResponse Int
+ Amazonka.CloudWatch.Lens: deleteMetricStream_name :: Lens' DeleteMetricStream Text
+ Amazonka.CloudWatch.Lens: describeAlarmHistoryResponse_alarmHistoryItems :: Lens' DescribeAlarmHistoryResponse (Maybe [AlarmHistoryItem])
+ Amazonka.CloudWatch.Lens: describeAlarmHistoryResponse_httpStatus :: Lens' DescribeAlarmHistoryResponse Int
+ Amazonka.CloudWatch.Lens: describeAlarmHistoryResponse_nextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_alarmName :: Lens' DescribeAlarmHistory (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_alarmTypes :: Lens' DescribeAlarmHistory (Maybe [AlarmType])
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_endDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_historyItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_maxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_nextToken :: Lens' DescribeAlarmHistory (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_scanBy :: Lens' DescribeAlarmHistory (Maybe ScanBy)
+ Amazonka.CloudWatch.Lens: describeAlarmHistory_startDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetricResponse_httpStatus :: Lens' DescribeAlarmsForMetricResponse Int
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetricResponse_metricAlarms :: Lens' DescribeAlarmsForMetricResponse (Maybe [MetricAlarm])
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_dimensions :: Lens' DescribeAlarmsForMetric (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_extendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_metricName :: Lens' DescribeAlarmsForMetric Text
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_namespace :: Lens' DescribeAlarmsForMetric Text
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_period :: Lens' DescribeAlarmsForMetric (Maybe Natural)
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_statistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
+ Amazonka.CloudWatch.Lens: describeAlarmsForMetric_unit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: describeAlarmsResponse_compositeAlarms :: Lens' DescribeAlarmsResponse (Maybe [CompositeAlarm])
+ Amazonka.CloudWatch.Lens: describeAlarmsResponse_httpStatus :: Lens' DescribeAlarmsResponse Int
+ Amazonka.CloudWatch.Lens: describeAlarmsResponse_metricAlarms :: Lens' DescribeAlarmsResponse (Maybe [MetricAlarm])
+ Amazonka.CloudWatch.Lens: describeAlarmsResponse_nextToken :: Lens' DescribeAlarmsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_actionPrefix :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_alarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_alarmNames :: Lens' DescribeAlarms (Maybe [Text])
+ Amazonka.CloudWatch.Lens: describeAlarms_alarmTypes :: Lens' DescribeAlarms (Maybe [AlarmType])
+ Amazonka.CloudWatch.Lens: describeAlarms_childrenOfAlarmName :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_maxRecords :: Lens' DescribeAlarms (Maybe Natural)
+ Amazonka.CloudWatch.Lens: describeAlarms_nextToken :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_parentsOfAlarmName :: Lens' DescribeAlarms (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAlarms_stateValue :: Lens' DescribeAlarms (Maybe StateValue)
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectorsResponse_anomalyDetectors :: Lens' DescribeAnomalyDetectorsResponse (Maybe [AnomalyDetector])
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectorsResponse_httpStatus :: Lens' DescribeAnomalyDetectorsResponse Int
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectorsResponse_nextToken :: Lens' DescribeAnomalyDetectorsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_anomalyDetectorTypes :: Lens' DescribeAnomalyDetectors (Maybe [AnomalyDetectorType])
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_dimensions :: Lens' DescribeAnomalyDetectors (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_maxResults :: Lens' DescribeAnomalyDetectors (Maybe Natural)
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_metricName :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_namespace :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeAnomalyDetectors_nextToken :: Lens' DescribeAnomalyDetectors (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeInsightRulesResponse_httpStatus :: Lens' DescribeInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: describeInsightRulesResponse_insightRules :: Lens' DescribeInsightRulesResponse (Maybe [InsightRule])
+ Amazonka.CloudWatch.Lens: describeInsightRulesResponse_nextToken :: Lens' DescribeInsightRulesResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: describeInsightRules_maxResults :: Lens' DescribeInsightRules (Maybe Natural)
+ Amazonka.CloudWatch.Lens: describeInsightRules_nextToken :: Lens' DescribeInsightRules (Maybe Text)
+ Amazonka.CloudWatch.Lens: dimensionFilter_name :: Lens' DimensionFilter Text
+ Amazonka.CloudWatch.Lens: dimensionFilter_value :: Lens' DimensionFilter (Maybe Text)
+ Amazonka.CloudWatch.Lens: dimension_name :: Lens' Dimension Text
+ Amazonka.CloudWatch.Lens: dimension_value :: Lens' Dimension Text
+ Amazonka.CloudWatch.Lens: disableAlarmActions_alarmNames :: Lens' DisableAlarmActions [Text]
+ Amazonka.CloudWatch.Lens: disableInsightRulesResponse_failures :: Lens' DisableInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.Lens: disableInsightRulesResponse_httpStatus :: Lens' DisableInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: disableInsightRules_ruleNames :: Lens' DisableInsightRules [Text]
+ Amazonka.CloudWatch.Lens: enableAlarmActions_alarmNames :: Lens' EnableAlarmActions [Text]
+ Amazonka.CloudWatch.Lens: enableInsightRulesResponse_failures :: Lens' EnableInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.Lens: enableInsightRulesResponse_httpStatus :: Lens' EnableInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: enableInsightRules_ruleNames :: Lens' EnableInsightRules [Text]
+ Amazonka.CloudWatch.Lens: getDashboardResponse_dashboardArn :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getDashboardResponse_dashboardBody :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getDashboardResponse_dashboardName :: Lens' GetDashboardResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getDashboardResponse_httpStatus :: Lens' GetDashboardResponse Int
+ Amazonka.CloudWatch.Lens: getDashboard_dashboardName :: Lens' GetDashboard Text
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_aggregateValue :: Lens' GetInsightRuleReportResponse (Maybe Double)
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_aggregationStatistic :: Lens' GetInsightRuleReportResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_approximateUniqueCount :: Lens' GetInsightRuleReportResponse (Maybe Integer)
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_contributors :: Lens' GetInsightRuleReportResponse (Maybe [InsightRuleContributor])
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_httpStatus :: Lens' GetInsightRuleReportResponse Int
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_keyLabels :: Lens' GetInsightRuleReportResponse (Maybe [Text])
+ Amazonka.CloudWatch.Lens: getInsightRuleReportResponse_metricDatapoints :: Lens' GetInsightRuleReportResponse (Maybe [InsightRuleMetricDatapoint])
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_endTime :: Lens' GetInsightRuleReport UTCTime
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_maxContributorCount :: Lens' GetInsightRuleReport (Maybe Int)
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_metrics :: Lens' GetInsightRuleReport (Maybe [Text])
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_orderBy :: Lens' GetInsightRuleReport (Maybe Text)
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_period :: Lens' GetInsightRuleReport Natural
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_ruleName :: Lens' GetInsightRuleReport Text
+ Amazonka.CloudWatch.Lens: getInsightRuleReport_startTime :: Lens' GetInsightRuleReport UTCTime
+ Amazonka.CloudWatch.Lens: getMetricDataResponse_httpStatus :: Lens' GetMetricDataResponse Int
+ Amazonka.CloudWatch.Lens: getMetricDataResponse_messages :: Lens' GetMetricDataResponse (Maybe [MessageData])
+ Amazonka.CloudWatch.Lens: getMetricDataResponse_metricDataResults :: Lens' GetMetricDataResponse (Maybe [MetricDataResult])
+ Amazonka.CloudWatch.Lens: getMetricDataResponse_nextToken :: Lens' GetMetricDataResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricData_endTime :: Lens' GetMetricData UTCTime
+ Amazonka.CloudWatch.Lens: getMetricData_labelOptions :: Lens' GetMetricData (Maybe LabelOptions)
+ Amazonka.CloudWatch.Lens: getMetricData_maxDatapoints :: Lens' GetMetricData (Maybe Int)
+ Amazonka.CloudWatch.Lens: getMetricData_metricDataQueries :: Lens' GetMetricData [MetricDataQuery]
+ Amazonka.CloudWatch.Lens: getMetricData_nextToken :: Lens' GetMetricData (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricData_scanBy :: Lens' GetMetricData (Maybe ScanBy)
+ Amazonka.CloudWatch.Lens: getMetricData_startTime :: Lens' GetMetricData UTCTime
+ Amazonka.CloudWatch.Lens: getMetricStatisticsResponse_datapoints :: Lens' GetMetricStatisticsResponse (Maybe [Datapoint])
+ Amazonka.CloudWatch.Lens: getMetricStatisticsResponse_httpStatus :: Lens' GetMetricStatisticsResponse Int
+ Amazonka.CloudWatch.Lens: getMetricStatisticsResponse_label :: Lens' GetMetricStatisticsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStatistics_dimensions :: Lens' GetMetricStatistics (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: getMetricStatistics_endTime :: Lens' GetMetricStatistics UTCTime
+ Amazonka.CloudWatch.Lens: getMetricStatistics_extendedStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Text))
+ Amazonka.CloudWatch.Lens: getMetricStatistics_metricName :: Lens' GetMetricStatistics Text
+ Amazonka.CloudWatch.Lens: getMetricStatistics_namespace :: Lens' GetMetricStatistics Text
+ Amazonka.CloudWatch.Lens: getMetricStatistics_period :: Lens' GetMetricStatistics Natural
+ Amazonka.CloudWatch.Lens: getMetricStatistics_startTime :: Lens' GetMetricStatistics UTCTime
+ Amazonka.CloudWatch.Lens: getMetricStatistics_statistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Statistic))
+ Amazonka.CloudWatch.Lens: getMetricStatistics_unit :: Lens' GetMetricStatistics (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_arn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_creationDate :: Lens' GetMetricStreamResponse (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_excludeFilters :: Lens' GetMetricStreamResponse (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_firehoseArn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_httpStatus :: Lens' GetMetricStreamResponse Int
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_includeFilters :: Lens' GetMetricStreamResponse (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_lastUpdateDate :: Lens' GetMetricStreamResponse (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_name :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_outputFormat :: Lens' GetMetricStreamResponse (Maybe MetricStreamOutputFormat)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_roleArn :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_state :: Lens' GetMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: getMetricStreamResponse_statisticsConfigurations :: Lens' GetMetricStreamResponse (Maybe [MetricStreamStatisticsConfiguration])
+ Amazonka.CloudWatch.Lens: getMetricStream_name :: Lens' GetMetricStream Text
+ Amazonka.CloudWatch.Lens: getMetricWidgetImageResponse_httpStatus :: Lens' GetMetricWidgetImageResponse Int
+ Amazonka.CloudWatch.Lens: getMetricWidgetImageResponse_metricWidgetImage :: Lens' GetMetricWidgetImageResponse (Maybe ByteString)
+ Amazonka.CloudWatch.Lens: getMetricWidgetImage_metricWidget :: Lens' GetMetricWidgetImage Text
+ Amazonka.CloudWatch.Lens: getMetricWidgetImage_outputFormat :: Lens' GetMetricWidgetImage (Maybe Text)
+ Amazonka.CloudWatch.Lens: insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double
+ Amazonka.CloudWatch.Lens: insightRuleContributorDatapoint_timestamp :: Lens' InsightRuleContributorDatapoint UTCTime
+ Amazonka.CloudWatch.Lens: insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double
+ Amazonka.CloudWatch.Lens: insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint]
+ Amazonka.CloudWatch.Lens: insightRuleContributor_keys :: Lens' InsightRuleContributor [Text]
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime
+ Amazonka.CloudWatch.Lens: insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Lens: insightRule_definition :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Lens: insightRule_managedRule :: Lens' InsightRule (Maybe Bool)
+ Amazonka.CloudWatch.Lens: insightRule_name :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Lens: insightRule_schema :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Lens: insightRule_state :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Lens: labelOptions_timezone :: Lens' LabelOptions (Maybe Text)
+ Amazonka.CloudWatch.Lens: listDashboardsResponse_dashboardEntries :: Lens' ListDashboardsResponse (Maybe [DashboardEntry])
+ Amazonka.CloudWatch.Lens: listDashboardsResponse_httpStatus :: Lens' ListDashboardsResponse Int
+ Amazonka.CloudWatch.Lens: listDashboardsResponse_nextToken :: Lens' ListDashboardsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: listDashboards_dashboardNamePrefix :: Lens' ListDashboards (Maybe Text)
+ Amazonka.CloudWatch.Lens: listDashboards_nextToken :: Lens' ListDashboards (Maybe Text)
+ Amazonka.CloudWatch.Lens: listManagedInsightRulesResponse_httpStatus :: Lens' ListManagedInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: listManagedInsightRulesResponse_managedRules :: Lens' ListManagedInsightRulesResponse (Maybe [ManagedRuleDescription])
+ Amazonka.CloudWatch.Lens: listManagedInsightRulesResponse_nextToken :: Lens' ListManagedInsightRulesResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: listManagedInsightRules_maxResults :: Lens' ListManagedInsightRules (Maybe Natural)
+ Amazonka.CloudWatch.Lens: listManagedInsightRules_nextToken :: Lens' ListManagedInsightRules (Maybe Text)
+ Amazonka.CloudWatch.Lens: listManagedInsightRules_resourceARN :: Lens' ListManagedInsightRules Text
+ Amazonka.CloudWatch.Lens: listMetricStreamsResponse_entries :: Lens' ListMetricStreamsResponse (Maybe [MetricStreamEntry])
+ Amazonka.CloudWatch.Lens: listMetricStreamsResponse_httpStatus :: Lens' ListMetricStreamsResponse Int
+ Amazonka.CloudWatch.Lens: listMetricStreamsResponse_nextToken :: Lens' ListMetricStreamsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetricStreams_maxResults :: Lens' ListMetricStreams (Maybe Natural)
+ Amazonka.CloudWatch.Lens: listMetricStreams_nextToken :: Lens' ListMetricStreams (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetricsResponse_httpStatus :: Lens' ListMetricsResponse Int
+ Amazonka.CloudWatch.Lens: listMetricsResponse_metrics :: Lens' ListMetricsResponse (Maybe [Metric])
+ Amazonka.CloudWatch.Lens: listMetricsResponse_nextToken :: Lens' ListMetricsResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetricsResponse_owningAccounts :: Lens' ListMetricsResponse (Maybe [Text])
+ Amazonka.CloudWatch.Lens: listMetrics_dimensions :: Lens' ListMetrics (Maybe [DimensionFilter])
+ Amazonka.CloudWatch.Lens: listMetrics_includeLinkedAccounts :: Lens' ListMetrics (Maybe Bool)
+ Amazonka.CloudWatch.Lens: listMetrics_metricName :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetrics_namespace :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetrics_nextToken :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetrics_owningAccount :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.Lens: listMetrics_recentlyActive :: Lens' ListMetrics (Maybe RecentlyActive)
+ Amazonka.CloudWatch.Lens: listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
+ Amazonka.CloudWatch.Lens: listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: listTagsForResource_resourceARN :: Lens' ListTagsForResource Text
+ Amazonka.CloudWatch.Lens: managedRuleDescription_resourceARN :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Lens: managedRuleDescription_ruleState :: Lens' ManagedRuleDescription (Maybe ManagedRuleState)
+ Amazonka.CloudWatch.Lens: managedRuleDescription_templateName :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Lens: managedRuleState_ruleName :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Lens: managedRuleState_state :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Lens: managedRule_resourceARN :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Lens: managedRule_tags :: Lens' ManagedRule (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: managedRule_templateName :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Lens: messageData_code :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Lens: messageData_value :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Lens: metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_alarmName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
+ Amazonka.CloudWatch.Lens: metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Lens: metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Lens: metricAlarm_evaluationState :: Lens' MetricAlarm (Maybe EvaluationState)
+ Amazonka.CloudWatch.Lens: metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Lens: metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: metricAlarm_period :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Lens: metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_stateTransitionedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Lens: metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic)
+ Amazonka.CloudWatch.Lens: metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double)
+ Amazonka.CloudWatch.Lens: metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricDataQuery_id :: Lens' MetricDataQuery Text
+ Amazonka.CloudWatch.Lens: metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat)
+ Amazonka.CloudWatch.Lens: metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural)
+ Amazonka.CloudWatch.Lens: metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool)
+ Amazonka.CloudWatch.Lens: metricDataResult_id :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricDataResult_label :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData])
+ Amazonka.CloudWatch.Lens: metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode)
+ Amazonka.CloudWatch.Lens: metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime])
+ Amazonka.CloudWatch.Lens: metricDataResult_values :: Lens' MetricDataResult (Maybe [Double])
+ Amazonka.CloudWatch.Lens: metricDatum_counts :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Lens: metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: metricDatum_metricName :: Lens' MetricDatum Text
+ Amazonka.CloudWatch.Lens: metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet)
+ Amazonka.CloudWatch.Lens: metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural)
+ Amazonka.CloudWatch.Lens: metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: metricDatum_value :: Lens' MetricDatum (Maybe Double)
+ Amazonka.CloudWatch.Lens: metricDatum_values :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Lens: metricMathAnomalyDetector_metricDataQueries :: Lens' MetricMathAnomalyDetector (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Lens: metricStat_metric :: Lens' MetricStat Metric
+ Amazonka.CloudWatch.Lens: metricStat_period :: Lens' MetricStat Natural
+ Amazonka.CloudWatch.Lens: metricStat_stat :: Lens' MetricStat Text
+ Amazonka.CloudWatch.Lens: metricStat_unit :: Lens' MetricStat (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat)
+ Amazonka.CloudWatch.Lens: metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text)
+ Amazonka.CloudWatch.Lens: metricStreamStatisticsConfiguration_additionalStatistics :: Lens' MetricStreamStatisticsConfiguration [Text]
+ Amazonka.CloudWatch.Lens: metricStreamStatisticsConfiguration_includeMetrics :: Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric]
+ Amazonka.CloudWatch.Lens: metricStreamStatisticsMetric_metricName :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Lens: metricStreamStatisticsMetric_namespace :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Lens: metric_dimensions :: Lens' Metric (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: metric_metricName :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Lens: metric_namespace :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Lens: partialFailure_exceptionType :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Lens: partialFailure_failureCode :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Lens: partialFailure_failureDescription :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Lens: partialFailure_failureResource :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Lens: putAnomalyDetectorResponse_httpStatus :: Lens' PutAnomalyDetectorResponse Int
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_configuration :: Lens' PutAnomalyDetector (Maybe AnomalyDetectorConfiguration)
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_dimensions :: Lens' PutAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_metricMathAnomalyDetector :: Lens' PutAnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_metricName :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_namespace :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_singleMetricAnomalyDetector :: Lens' PutAnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.Lens: putAnomalyDetector_stat :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_actionsEnabled :: Lens' PutCompositeAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_actionsSuppressor :: Lens' PutCompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_actionsSuppressorExtensionPeriod :: Lens' PutCompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_actionsSuppressorWaitPeriod :: Lens' PutCompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_alarmActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_alarmDescription :: Lens' PutCompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_alarmName :: Lens' PutCompositeAlarm Text
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_alarmRule :: Lens' PutCompositeAlarm Text
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_insufficientDataActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_oKActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putCompositeAlarm_tags :: Lens' PutCompositeAlarm (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: putDashboardResponse_dashboardValidationMessages :: Lens' PutDashboardResponse (Maybe [DashboardValidationMessage])
+ Amazonka.CloudWatch.Lens: putDashboardResponse_httpStatus :: Lens' PutDashboardResponse Int
+ Amazonka.CloudWatch.Lens: putDashboard_dashboardBody :: Lens' PutDashboard Text
+ Amazonka.CloudWatch.Lens: putDashboard_dashboardName :: Lens' PutDashboard Text
+ Amazonka.CloudWatch.Lens: putInsightRuleResponse_httpStatus :: Lens' PutInsightRuleResponse Int
+ Amazonka.CloudWatch.Lens: putInsightRule_ruleDefinition :: Lens' PutInsightRule Text
+ Amazonka.CloudWatch.Lens: putInsightRule_ruleName :: Lens' PutInsightRule Text
+ Amazonka.CloudWatch.Lens: putInsightRule_ruleState :: Lens' PutInsightRule (Maybe Text)
+ Amazonka.CloudWatch.Lens: putInsightRule_tags :: Lens' PutInsightRule (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: putManagedInsightRulesResponse_failures :: Lens' PutManagedInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.Lens: putManagedInsightRulesResponse_httpStatus :: Lens' PutManagedInsightRulesResponse Int
+ Amazonka.CloudWatch.Lens: putManagedInsightRules_managedRules :: Lens' PutManagedInsightRules [ManagedRule]
+ Amazonka.CloudWatch.Lens: putMetricAlarm_actionsEnabled :: Lens' PutMetricAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_alarmActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_alarmDescription :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_alarmName :: Lens' PutMetricAlarm Text
+ Amazonka.CloudWatch.Lens: putMetricAlarm_comparisonOperator :: Lens' PutMetricAlarm ComparisonOperator
+ Amazonka.CloudWatch.Lens: putMetricAlarm_datapointsToAlarm :: Lens' PutMetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_dimensions :: Lens' PutMetricAlarm (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_evaluateLowSampleCountPercentile :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_evaluationPeriods :: Lens' PutMetricAlarm Natural
+ Amazonka.CloudWatch.Lens: putMetricAlarm_extendedStatistic :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_insufficientDataActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_metricName :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_metrics :: Lens' PutMetricAlarm (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_namespace :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_oKActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_period :: Lens' PutMetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_statistic :: Lens' PutMetricAlarm (Maybe Statistic)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_tags :: Lens' PutMetricAlarm (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: putMetricAlarm_threshold :: Lens' PutMetricAlarm (Maybe Double)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_thresholdMetricId :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_treatMissingData :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricAlarm_unit :: Lens' PutMetricAlarm (Maybe StandardUnit)
+ Amazonka.CloudWatch.Lens: putMetricData_metricData :: Lens' PutMetricData [MetricDatum]
+ Amazonka.CloudWatch.Lens: putMetricData_namespace :: Lens' PutMetricData Text
+ Amazonka.CloudWatch.Lens: putMetricStreamResponse_arn :: Lens' PutMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.Lens: putMetricStreamResponse_httpStatus :: Lens' PutMetricStreamResponse Int
+ Amazonka.CloudWatch.Lens: putMetricStream_excludeFilters :: Lens' PutMetricStream (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.Lens: putMetricStream_firehoseArn :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.Lens: putMetricStream_includeFilters :: Lens' PutMetricStream (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.Lens: putMetricStream_name :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.Lens: putMetricStream_outputFormat :: Lens' PutMetricStream MetricStreamOutputFormat
+ Amazonka.CloudWatch.Lens: putMetricStream_roleArn :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.Lens: putMetricStream_statisticsConfigurations :: Lens' PutMetricStream (Maybe [MetricStreamStatisticsConfiguration])
+ Amazonka.CloudWatch.Lens: putMetricStream_tags :: Lens' PutMetricStream (Maybe [Tag])
+ Amazonka.CloudWatch.Lens: range_endTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Lens: range_startTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Lens: setAlarmState_alarmName :: Lens' SetAlarmState Text
+ Amazonka.CloudWatch.Lens: setAlarmState_stateReason :: Lens' SetAlarmState Text
+ Amazonka.CloudWatch.Lens: setAlarmState_stateReasonData :: Lens' SetAlarmState (Maybe Text)
+ Amazonka.CloudWatch.Lens: setAlarmState_stateValue :: Lens' SetAlarmState StateValue
+ Amazonka.CloudWatch.Lens: singleMetricAnomalyDetector_dimensions :: Lens' SingleMetricAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Lens: singleMetricAnomalyDetector_metricName :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: singleMetricAnomalyDetector_namespace :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: singleMetricAnomalyDetector_stat :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Lens: startMetricStreamsResponse_httpStatus :: Lens' StartMetricStreamsResponse Int
+ Amazonka.CloudWatch.Lens: startMetricStreams_names :: Lens' StartMetricStreams [Text]
+ Amazonka.CloudWatch.Lens: statisticSet_maximum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Lens: statisticSet_minimum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Lens: statisticSet_sampleCount :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Lens: statisticSet_sum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Lens: stopMetricStreamsResponse_httpStatus :: Lens' StopMetricStreamsResponse Int
+ Amazonka.CloudWatch.Lens: stopMetricStreams_names :: Lens' StopMetricStreams [Text]
+ Amazonka.CloudWatch.Lens: tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
+ Amazonka.CloudWatch.Lens: tagResource_resourceARN :: Lens' TagResource Text
+ Amazonka.CloudWatch.Lens: tagResource_tags :: Lens' TagResource [Tag]
+ Amazonka.CloudWatch.Lens: tag_key :: Lens' Tag Text
+ Amazonka.CloudWatch.Lens: tag_value :: Lens' Tag Text
+ Amazonka.CloudWatch.Lens: untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
+ Amazonka.CloudWatch.Lens: untagResource_resourceARN :: Lens' UntagResource Text
+ Amazonka.CloudWatch.Lens: untagResource_tagKeys :: Lens' UntagResource [Text]
+ Amazonka.CloudWatch.ListDashboards: ListDashboards' :: Maybe Text -> Maybe Text -> ListDashboards
+ Amazonka.CloudWatch.ListDashboards: ListDashboardsResponse' :: Maybe [DashboardEntry] -> Maybe Text -> Int -> ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: [$sel:dashboardEntries:ListDashboardsResponse'] :: ListDashboardsResponse -> Maybe [DashboardEntry]
+ Amazonka.CloudWatch.ListDashboards: [$sel:dashboardNamePrefix:ListDashboards'] :: ListDashboards -> Maybe Text
+ Amazonka.CloudWatch.ListDashboards: [$sel:httpStatus:ListDashboardsResponse'] :: ListDashboardsResponse -> Int
+ Amazonka.CloudWatch.ListDashboards: [$sel:nextToken:ListDashboards'] :: ListDashboards -> Maybe Text
+ Amazonka.CloudWatch.ListDashboards: [$sel:nextToken:ListDashboardsResponse'] :: ListDashboardsResponse -> Maybe Text
+ Amazonka.CloudWatch.ListDashboards: data ListDashboards
+ Amazonka.CloudWatch.ListDashboards: data ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListDashboards.ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Classes.Eq Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Classes.Eq Amazonka.CloudWatch.ListDashboards.ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Generics.Generic Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Generics.Generic Amazonka.CloudWatch.ListDashboards.ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Read.Read Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Read.Read Amazonka.CloudWatch.ListDashboards.ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Show.Show Amazonka.CloudWatch.ListDashboards.ListDashboards
+ Amazonka.CloudWatch.ListDashboards: instance GHC.Show.Show Amazonka.CloudWatch.ListDashboards.ListDashboardsResponse
+ Amazonka.CloudWatch.ListDashboards: listDashboardsResponse_dashboardEntries :: Lens' ListDashboardsResponse (Maybe [DashboardEntry])
+ Amazonka.CloudWatch.ListDashboards: listDashboardsResponse_httpStatus :: Lens' ListDashboardsResponse Int
+ Amazonka.CloudWatch.ListDashboards: listDashboardsResponse_nextToken :: Lens' ListDashboardsResponse (Maybe Text)
+ Amazonka.CloudWatch.ListDashboards: listDashboards_dashboardNamePrefix :: Lens' ListDashboards (Maybe Text)
+ Amazonka.CloudWatch.ListDashboards: listDashboards_nextToken :: Lens' ListDashboards (Maybe Text)
+ Amazonka.CloudWatch.ListDashboards: newListDashboards :: ListDashboards
+ Amazonka.CloudWatch.ListDashboards: newListDashboardsResponse :: Int -> ListDashboardsResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: ListManagedInsightRules' :: Maybe Natural -> Maybe Text -> Text -> ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: ListManagedInsightRulesResponse' :: Maybe [ManagedRuleDescription] -> Maybe Text -> Int -> ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:httpStatus:ListManagedInsightRulesResponse'] :: ListManagedInsightRulesResponse -> Int
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:managedRules:ListManagedInsightRulesResponse'] :: ListManagedInsightRulesResponse -> Maybe [ManagedRuleDescription]
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:maxResults:ListManagedInsightRules'] :: ListManagedInsightRules -> Maybe Natural
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:nextToken:ListManagedInsightRules'] :: ListManagedInsightRules -> Maybe Text
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:nextToken:ListManagedInsightRulesResponse'] :: ListManagedInsightRulesResponse -> Maybe Text
+ Amazonka.CloudWatch.ListManagedInsightRules: [$sel:resourceARN:ListManagedInsightRules'] :: ListManagedInsightRules -> Text
+ Amazonka.CloudWatch.ListManagedInsightRules: data ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: data ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.ListManagedInsightRules.ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRulesResponse_httpStatus :: Lens' ListManagedInsightRulesResponse Int
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRulesResponse_managedRules :: Lens' ListManagedInsightRulesResponse (Maybe [ManagedRuleDescription])
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRulesResponse_nextToken :: Lens' ListManagedInsightRulesResponse (Maybe Text)
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRules_maxResults :: Lens' ListManagedInsightRules (Maybe Natural)
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRules_nextToken :: Lens' ListManagedInsightRules (Maybe Text)
+ Amazonka.CloudWatch.ListManagedInsightRules: listManagedInsightRules_resourceARN :: Lens' ListManagedInsightRules Text
+ Amazonka.CloudWatch.ListManagedInsightRules: newListManagedInsightRules :: Text -> ListManagedInsightRules
+ Amazonka.CloudWatch.ListManagedInsightRules: newListManagedInsightRulesResponse :: Int -> ListManagedInsightRulesResponse
+ Amazonka.CloudWatch.ListMetricStreams: ListMetricStreams' :: Maybe Natural -> Maybe Text -> ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: ListMetricStreamsResponse' :: Maybe [MetricStreamEntry] -> Maybe Text -> Int -> ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: [$sel:entries:ListMetricStreamsResponse'] :: ListMetricStreamsResponse -> Maybe [MetricStreamEntry]
+ Amazonka.CloudWatch.ListMetricStreams: [$sel:httpStatus:ListMetricStreamsResponse'] :: ListMetricStreamsResponse -> Int
+ Amazonka.CloudWatch.ListMetricStreams: [$sel:maxResults:ListMetricStreams'] :: ListMetricStreams -> Maybe Natural
+ Amazonka.CloudWatch.ListMetricStreams: [$sel:nextToken:ListMetricStreams'] :: ListMetricStreams -> Maybe Text
+ Amazonka.CloudWatch.ListMetricStreams: [$sel:nextToken:ListMetricStreamsResponse'] :: ListMetricStreamsResponse -> Maybe Text
+ Amazonka.CloudWatch.ListMetricStreams: data ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: data ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListMetricStreams.ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.ListMetricStreams.ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.ListMetricStreams.ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.ListMetricStreams.ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.ListMetricStreams.ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.ListMetricStreams.ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetricStreams: listMetricStreamsResponse_entries :: Lens' ListMetricStreamsResponse (Maybe [MetricStreamEntry])
+ Amazonka.CloudWatch.ListMetricStreams: listMetricStreamsResponse_httpStatus :: Lens' ListMetricStreamsResponse Int
+ Amazonka.CloudWatch.ListMetricStreams: listMetricStreamsResponse_nextToken :: Lens' ListMetricStreamsResponse (Maybe Text)
+ Amazonka.CloudWatch.ListMetricStreams: listMetricStreams_maxResults :: Lens' ListMetricStreams (Maybe Natural)
+ Amazonka.CloudWatch.ListMetricStreams: listMetricStreams_nextToken :: Lens' ListMetricStreams (Maybe Text)
+ Amazonka.CloudWatch.ListMetricStreams: newListMetricStreams :: ListMetricStreams
+ Amazonka.CloudWatch.ListMetricStreams: newListMetricStreamsResponse :: Int -> ListMetricStreamsResponse
+ Amazonka.CloudWatch.ListMetrics: ListMetrics' :: Maybe [DimensionFilter] -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe RecentlyActive -> ListMetrics
+ Amazonka.CloudWatch.ListMetrics: ListMetricsResponse' :: Maybe [Metric] -> Maybe Text -> Maybe [Text] -> Int -> ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: [$sel:dimensions:ListMetrics'] :: ListMetrics -> Maybe [DimensionFilter]
+ Amazonka.CloudWatch.ListMetrics: [$sel:httpStatus:ListMetricsResponse'] :: ListMetricsResponse -> Int
+ Amazonka.CloudWatch.ListMetrics: [$sel:includeLinkedAccounts:ListMetrics'] :: ListMetrics -> Maybe Bool
+ Amazonka.CloudWatch.ListMetrics: [$sel:metricName:ListMetrics'] :: ListMetrics -> Maybe Text
+ Amazonka.CloudWatch.ListMetrics: [$sel:metrics:ListMetricsResponse'] :: ListMetricsResponse -> Maybe [Metric]
+ Amazonka.CloudWatch.ListMetrics: [$sel:namespace:ListMetrics'] :: ListMetrics -> Maybe Text
+ Amazonka.CloudWatch.ListMetrics: [$sel:nextToken:ListMetrics'] :: ListMetrics -> Maybe Text
+ Amazonka.CloudWatch.ListMetrics: [$sel:nextToken:ListMetricsResponse'] :: ListMetricsResponse -> Maybe Text
+ Amazonka.CloudWatch.ListMetrics: [$sel:owningAccount:ListMetrics'] :: ListMetrics -> Maybe Text
+ Amazonka.CloudWatch.ListMetrics: [$sel:owningAccounts:ListMetricsResponse'] :: ListMetricsResponse -> Maybe [Text]
+ Amazonka.CloudWatch.ListMetrics: [$sel:recentlyActive:ListMetrics'] :: ListMetrics -> Maybe RecentlyActive
+ Amazonka.CloudWatch.ListMetrics: data ListMetrics
+ Amazonka.CloudWatch.ListMetrics: data ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Amazonka.Pager.AWSPager Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListMetrics.ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Classes.Eq Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Classes.Eq Amazonka.CloudWatch.ListMetrics.ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Generics.Generic Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Generics.Generic Amazonka.CloudWatch.ListMetrics.ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Read.Read Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Read.Read Amazonka.CloudWatch.ListMetrics.ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Show.Show Amazonka.CloudWatch.ListMetrics.ListMetrics
+ Amazonka.CloudWatch.ListMetrics: instance GHC.Show.Show Amazonka.CloudWatch.ListMetrics.ListMetricsResponse
+ Amazonka.CloudWatch.ListMetrics: listMetricsResponse_httpStatus :: Lens' ListMetricsResponse Int
+ Amazonka.CloudWatch.ListMetrics: listMetricsResponse_metrics :: Lens' ListMetricsResponse (Maybe [Metric])
+ Amazonka.CloudWatch.ListMetrics: listMetricsResponse_nextToken :: Lens' ListMetricsResponse (Maybe Text)
+ Amazonka.CloudWatch.ListMetrics: listMetricsResponse_owningAccounts :: Lens' ListMetricsResponse (Maybe [Text])
+ Amazonka.CloudWatch.ListMetrics: listMetrics_dimensions :: Lens' ListMetrics (Maybe [DimensionFilter])
+ Amazonka.CloudWatch.ListMetrics: listMetrics_includeLinkedAccounts :: Lens' ListMetrics (Maybe Bool)
+ Amazonka.CloudWatch.ListMetrics: listMetrics_metricName :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.ListMetrics: listMetrics_namespace :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.ListMetrics: listMetrics_nextToken :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.ListMetrics: listMetrics_owningAccount :: Lens' ListMetrics (Maybe Text)
+ Amazonka.CloudWatch.ListMetrics: listMetrics_recentlyActive :: Lens' ListMetrics (Maybe RecentlyActive)
+ Amazonka.CloudWatch.ListMetrics: newListMetrics :: ListMetrics
+ Amazonka.CloudWatch.ListMetrics: newListMetricsResponse :: Int -> ListMetricsResponse
+ Amazonka.CloudWatch.ListTagsForResource: ListTagsForResource' :: Text -> ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: ListTagsForResourceResponse' :: Maybe [Tag] -> Int -> ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: [$sel:httpStatus:ListTagsForResourceResponse'] :: ListTagsForResourceResponse -> Int
+ Amazonka.CloudWatch.ListTagsForResource: [$sel:resourceARN:ListTagsForResource'] :: ListTagsForResource -> Text
+ Amazonka.CloudWatch.ListTagsForResource: [$sel:tags:ListTagsForResourceResponse'] :: ListTagsForResourceResponse -> Maybe [Tag]
+ Amazonka.CloudWatch.ListTagsForResource: data ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: data ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.ListTagsForResource.ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Classes.Eq Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Classes.Eq Amazonka.CloudWatch.ListTagsForResource.ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Generics.Generic Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Generics.Generic Amazonka.CloudWatch.ListTagsForResource.ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Read.Read Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Read.Read Amazonka.CloudWatch.ListTagsForResource.ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Show.Show Amazonka.CloudWatch.ListTagsForResource.ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: instance GHC.Show.Show Amazonka.CloudWatch.ListTagsForResource.ListTagsForResourceResponse
+ Amazonka.CloudWatch.ListTagsForResource: listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
+ Amazonka.CloudWatch.ListTagsForResource: listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
+ Amazonka.CloudWatch.ListTagsForResource: listTagsForResource_resourceARN :: Lens' ListTagsForResource Text
+ Amazonka.CloudWatch.ListTagsForResource: newListTagsForResource :: Text -> ListTagsForResource
+ Amazonka.CloudWatch.ListTagsForResource: newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: PutAnomalyDetector' :: Maybe AnomalyDetectorConfiguration -> Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: PutAnomalyDetectorResponse' :: Int -> PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:configuration:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:dimensions:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:httpStatus:PutAnomalyDetectorResponse'] :: PutAnomalyDetectorResponse -> Int
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:metricMathAnomalyDetector:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe MetricMathAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:metricName:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:namespace:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:singleMetricAnomalyDetector:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: [$sel:stat:PutAnomalyDetector'] :: PutAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.PutAnomalyDetector: data PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: data PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.PutAnomalyDetector.PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: newPutAnomalyDetector :: PutAnomalyDetector
+ Amazonka.CloudWatch.PutAnomalyDetector: newPutAnomalyDetectorResponse :: Int -> PutAnomalyDetectorResponse
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetectorResponse_httpStatus :: Lens' PutAnomalyDetectorResponse Int
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_configuration :: Lens' PutAnomalyDetector (Maybe AnomalyDetectorConfiguration)
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_dimensions :: Lens' PutAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_metricMathAnomalyDetector :: Lens' PutAnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_metricName :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_namespace :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_singleMetricAnomalyDetector :: Lens' PutAnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.PutAnomalyDetector: putAnomalyDetector_stat :: Lens' PutAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.PutCompositeAlarm: PutCompositeAlarm' :: Maybe Bool -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe [Text] -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe [Tag] -> Text -> Text -> PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: PutCompositeAlarmResponse' :: PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:actionsEnabled:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe Bool
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:actionsSuppressor:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:actionsSuppressorExtensionPeriod:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:actionsSuppressorWaitPeriod:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:alarmActions:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:alarmDescription:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:alarmName:PutCompositeAlarm'] :: PutCompositeAlarm -> Text
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:alarmRule:PutCompositeAlarm'] :: PutCompositeAlarm -> Text
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:insufficientDataActions:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:oKActions:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutCompositeAlarm: [$sel:tags:PutCompositeAlarm'] :: PutCompositeAlarm -> Maybe [Tag]
+ Amazonka.CloudWatch.PutCompositeAlarm: data PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: data PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Read.Read Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Read.Read Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Show.Show Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: instance GHC.Show.Show Amazonka.CloudWatch.PutCompositeAlarm.PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: newPutCompositeAlarm :: Text -> Text -> PutCompositeAlarm
+ Amazonka.CloudWatch.PutCompositeAlarm: newPutCompositeAlarmResponse :: PutCompositeAlarmResponse
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_actionsEnabled :: Lens' PutCompositeAlarm (Maybe Bool)
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_actionsSuppressor :: Lens' PutCompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_actionsSuppressorExtensionPeriod :: Lens' PutCompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_actionsSuppressorWaitPeriod :: Lens' PutCompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_alarmActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_alarmDescription :: Lens' PutCompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_alarmName :: Lens' PutCompositeAlarm Text
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_alarmRule :: Lens' PutCompositeAlarm Text
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_insufficientDataActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_oKActions :: Lens' PutCompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutCompositeAlarm: putCompositeAlarm_tags :: Lens' PutCompositeAlarm (Maybe [Tag])
+ Amazonka.CloudWatch.PutDashboard: PutDashboard' :: Text -> Text -> PutDashboard
+ Amazonka.CloudWatch.PutDashboard: PutDashboardResponse' :: Maybe [DashboardValidationMessage] -> Int -> PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: [$sel:dashboardBody:PutDashboard'] :: PutDashboard -> Text
+ Amazonka.CloudWatch.PutDashboard: [$sel:dashboardName:PutDashboard'] :: PutDashboard -> Text
+ Amazonka.CloudWatch.PutDashboard: [$sel:dashboardValidationMessages:PutDashboardResponse'] :: PutDashboardResponse -> Maybe [DashboardValidationMessage]
+ Amazonka.CloudWatch.PutDashboard: [$sel:httpStatus:PutDashboardResponse'] :: PutDashboardResponse -> Int
+ Amazonka.CloudWatch.PutDashboard: data PutDashboard
+ Amazonka.CloudWatch.PutDashboard: data PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutDashboard.PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Classes.Eq Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Classes.Eq Amazonka.CloudWatch.PutDashboard.PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Generics.Generic Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Generics.Generic Amazonka.CloudWatch.PutDashboard.PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Read.Read Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Read.Read Amazonka.CloudWatch.PutDashboard.PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Show.Show Amazonka.CloudWatch.PutDashboard.PutDashboard
+ Amazonka.CloudWatch.PutDashboard: instance GHC.Show.Show Amazonka.CloudWatch.PutDashboard.PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: newPutDashboard :: Text -> Text -> PutDashboard
+ Amazonka.CloudWatch.PutDashboard: newPutDashboardResponse :: Int -> PutDashboardResponse
+ Amazonka.CloudWatch.PutDashboard: putDashboardResponse_dashboardValidationMessages :: Lens' PutDashboardResponse (Maybe [DashboardValidationMessage])
+ Amazonka.CloudWatch.PutDashboard: putDashboardResponse_httpStatus :: Lens' PutDashboardResponse Int
+ Amazonka.CloudWatch.PutDashboard: putDashboard_dashboardBody :: Lens' PutDashboard Text
+ Amazonka.CloudWatch.PutDashboard: putDashboard_dashboardName :: Lens' PutDashboard Text
+ Amazonka.CloudWatch.PutInsightRule: PutInsightRule' :: Maybe Text -> Maybe [Tag] -> Text -> Text -> PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: PutInsightRuleResponse' :: Int -> PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: [$sel:httpStatus:PutInsightRuleResponse'] :: PutInsightRuleResponse -> Int
+ Amazonka.CloudWatch.PutInsightRule: [$sel:ruleDefinition:PutInsightRule'] :: PutInsightRule -> Text
+ Amazonka.CloudWatch.PutInsightRule: [$sel:ruleName:PutInsightRule'] :: PutInsightRule -> Text
+ Amazonka.CloudWatch.PutInsightRule: [$sel:ruleState:PutInsightRule'] :: PutInsightRule -> Maybe Text
+ Amazonka.CloudWatch.PutInsightRule: [$sel:tags:PutInsightRule'] :: PutInsightRule -> Maybe [Tag]
+ Amazonka.CloudWatch.PutInsightRule: data PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: data PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutInsightRule.PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Classes.Eq Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Classes.Eq Amazonka.CloudWatch.PutInsightRule.PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Generics.Generic Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Generics.Generic Amazonka.CloudWatch.PutInsightRule.PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Read.Read Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Read.Read Amazonka.CloudWatch.PutInsightRule.PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Show.Show Amazonka.CloudWatch.PutInsightRule.PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: instance GHC.Show.Show Amazonka.CloudWatch.PutInsightRule.PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: newPutInsightRule :: Text -> Text -> PutInsightRule
+ Amazonka.CloudWatch.PutInsightRule: newPutInsightRuleResponse :: Int -> PutInsightRuleResponse
+ Amazonka.CloudWatch.PutInsightRule: putInsightRuleResponse_httpStatus :: Lens' PutInsightRuleResponse Int
+ Amazonka.CloudWatch.PutInsightRule: putInsightRule_ruleDefinition :: Lens' PutInsightRule Text
+ Amazonka.CloudWatch.PutInsightRule: putInsightRule_ruleName :: Lens' PutInsightRule Text
+ Amazonka.CloudWatch.PutInsightRule: putInsightRule_ruleState :: Lens' PutInsightRule (Maybe Text)
+ Amazonka.CloudWatch.PutInsightRule: putInsightRule_tags :: Lens' PutInsightRule (Maybe [Tag])
+ Amazonka.CloudWatch.PutManagedInsightRules: PutManagedInsightRules' :: [ManagedRule] -> PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: PutManagedInsightRulesResponse' :: Maybe [PartialFailure] -> Int -> PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: [$sel:failures:PutManagedInsightRulesResponse'] :: PutManagedInsightRulesResponse -> Maybe [PartialFailure]
+ Amazonka.CloudWatch.PutManagedInsightRules: [$sel:httpStatus:PutManagedInsightRulesResponse'] :: PutManagedInsightRulesResponse -> Int
+ Amazonka.CloudWatch.PutManagedInsightRules: [$sel:managedRules:PutManagedInsightRules'] :: PutManagedInsightRules -> [ManagedRule]
+ Amazonka.CloudWatch.PutManagedInsightRules: data PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: data PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Classes.Eq Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Generics.Generic Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Read.Read Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: instance GHC.Show.Show Amazonka.CloudWatch.PutManagedInsightRules.PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: newPutManagedInsightRules :: PutManagedInsightRules
+ Amazonka.CloudWatch.PutManagedInsightRules: newPutManagedInsightRulesResponse :: Int -> PutManagedInsightRulesResponse
+ Amazonka.CloudWatch.PutManagedInsightRules: putManagedInsightRulesResponse_failures :: Lens' PutManagedInsightRulesResponse (Maybe [PartialFailure])
+ Amazonka.CloudWatch.PutManagedInsightRules: putManagedInsightRulesResponse_httpStatus :: Lens' PutManagedInsightRulesResponse Int
+ Amazonka.CloudWatch.PutManagedInsightRules: putManagedInsightRules_managedRules :: Lens' PutManagedInsightRules [ManagedRule]
+ Amazonka.CloudWatch.PutMetricAlarm: PutMetricAlarm' :: Maybe Bool -> Maybe [Text] -> Maybe Text -> Maybe Natural -> Maybe [Dimension] -> Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe Text -> Maybe [MetricDataQuery] -> Maybe Text -> Maybe [Text] -> Maybe Natural -> Maybe Statistic -> Maybe [Tag] -> Maybe Double -> Maybe Text -> Maybe Text -> Maybe StandardUnit -> Text -> Natural -> ComparisonOperator -> PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: PutMetricAlarmResponse' :: PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:actionsEnabled:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Bool
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:alarmActions:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:alarmDescription:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:alarmName:PutMetricAlarm'] :: PutMetricAlarm -> Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:comparisonOperator:PutMetricAlarm'] :: PutMetricAlarm -> ComparisonOperator
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:datapointsToAlarm:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:dimensions:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [Dimension]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:evaluateLowSampleCountPercentile:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:evaluationPeriods:PutMetricAlarm'] :: PutMetricAlarm -> Natural
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:extendedStatistic:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:insufficientDataActions:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:metricName:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:metrics:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [MetricDataQuery]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:namespace:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:oKActions:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:period:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:statistic:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Statistic
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:tags:PutMetricAlarm'] :: PutMetricAlarm -> Maybe [Tag]
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:threshold:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Double
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:thresholdMetricId:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:treatMissingData:PutMetricAlarm'] :: PutMetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.PutMetricAlarm: [$sel:unit:PutMetricAlarm'] :: PutMetricAlarm -> Maybe StandardUnit
+ Amazonka.CloudWatch.PutMetricAlarm: data PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: data PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricAlarm.PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: newPutMetricAlarm :: Text -> Natural -> ComparisonOperator -> PutMetricAlarm
+ Amazonka.CloudWatch.PutMetricAlarm: newPutMetricAlarmResponse :: PutMetricAlarmResponse
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_actionsEnabled :: Lens' PutMetricAlarm (Maybe Bool)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_alarmActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_alarmDescription :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_alarmName :: Lens' PutMetricAlarm Text
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_comparisonOperator :: Lens' PutMetricAlarm ComparisonOperator
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_datapointsToAlarm :: Lens' PutMetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_dimensions :: Lens' PutMetricAlarm (Maybe [Dimension])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_evaluateLowSampleCountPercentile :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_evaluationPeriods :: Lens' PutMetricAlarm Natural
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_extendedStatistic :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_insufficientDataActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_metricName :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_metrics :: Lens' PutMetricAlarm (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_namespace :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_oKActions :: Lens' PutMetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_period :: Lens' PutMetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_statistic :: Lens' PutMetricAlarm (Maybe Statistic)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_tags :: Lens' PutMetricAlarm (Maybe [Tag])
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_threshold :: Lens' PutMetricAlarm (Maybe Double)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_thresholdMetricId :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_treatMissingData :: Lens' PutMetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.PutMetricAlarm: putMetricAlarm_unit :: Lens' PutMetricAlarm (Maybe StandardUnit)
+ Amazonka.CloudWatch.PutMetricData: PutMetricData' :: Text -> [MetricDatum] -> PutMetricData
+ Amazonka.CloudWatch.PutMetricData: PutMetricDataResponse' :: PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: [$sel:metricData:PutMetricData'] :: PutMetricData -> [MetricDatum]
+ Amazonka.CloudWatch.PutMetricData: [$sel:namespace:PutMetricData'] :: PutMetricData -> Text
+ Amazonka.CloudWatch.PutMetricData: data PutMetricData
+ Amazonka.CloudWatch.PutMetricData: data PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricData.PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricData.PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricData.PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricData.PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricData.PutMetricData
+ Amazonka.CloudWatch.PutMetricData: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricData.PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: newPutMetricData :: Text -> PutMetricData
+ Amazonka.CloudWatch.PutMetricData: newPutMetricDataResponse :: PutMetricDataResponse
+ Amazonka.CloudWatch.PutMetricData: putMetricData_metricData :: Lens' PutMetricData [MetricDatum]
+ Amazonka.CloudWatch.PutMetricData: putMetricData_namespace :: Lens' PutMetricData Text
+ Amazonka.CloudWatch.PutMetricStream: PutMetricStream' :: Maybe [MetricStreamFilter] -> Maybe [MetricStreamFilter] -> Maybe [MetricStreamStatisticsConfiguration] -> Maybe [Tag] -> Text -> Text -> Text -> MetricStreamOutputFormat -> PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: PutMetricStreamResponse' :: Maybe Text -> Int -> PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: [$sel:arn:PutMetricStreamResponse'] :: PutMetricStreamResponse -> Maybe Text
+ Amazonka.CloudWatch.PutMetricStream: [$sel:excludeFilters:PutMetricStream'] :: PutMetricStream -> Maybe [MetricStreamFilter]
+ Amazonka.CloudWatch.PutMetricStream: [$sel:firehoseArn:PutMetricStream'] :: PutMetricStream -> Text
+ Amazonka.CloudWatch.PutMetricStream: [$sel:httpStatus:PutMetricStreamResponse'] :: PutMetricStreamResponse -> Int
+ Amazonka.CloudWatch.PutMetricStream: [$sel:includeFilters:PutMetricStream'] :: PutMetricStream -> Maybe [MetricStreamFilter]
+ Amazonka.CloudWatch.PutMetricStream: [$sel:name:PutMetricStream'] :: PutMetricStream -> Text
+ Amazonka.CloudWatch.PutMetricStream: [$sel:outputFormat:PutMetricStream'] :: PutMetricStream -> MetricStreamOutputFormat
+ Amazonka.CloudWatch.PutMetricStream: [$sel:roleArn:PutMetricStream'] :: PutMetricStream -> Text
+ Amazonka.CloudWatch.PutMetricStream: [$sel:statisticsConfigurations:PutMetricStream'] :: PutMetricStream -> Maybe [MetricStreamStatisticsConfiguration]
+ Amazonka.CloudWatch.PutMetricStream: [$sel:tags:PutMetricStream'] :: PutMetricStream -> Maybe [Tag]
+ Amazonka.CloudWatch.PutMetricStream: data PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: data PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance Control.DeepSeq.NFData Amazonka.CloudWatch.PutMetricStream.PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Classes.Eq Amazonka.CloudWatch.PutMetricStream.PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Generics.Generic Amazonka.CloudWatch.PutMetricStream.PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Read.Read Amazonka.CloudWatch.PutMetricStream.PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricStream.PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: instance GHC.Show.Show Amazonka.CloudWatch.PutMetricStream.PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: newPutMetricStream :: Text -> Text -> Text -> MetricStreamOutputFormat -> PutMetricStream
+ Amazonka.CloudWatch.PutMetricStream: newPutMetricStreamResponse :: Int -> PutMetricStreamResponse
+ Amazonka.CloudWatch.PutMetricStream: putMetricStreamResponse_arn :: Lens' PutMetricStreamResponse (Maybe Text)
+ Amazonka.CloudWatch.PutMetricStream: putMetricStreamResponse_httpStatus :: Lens' PutMetricStreamResponse Int
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_excludeFilters :: Lens' PutMetricStream (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_firehoseArn :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_includeFilters :: Lens' PutMetricStream (Maybe [MetricStreamFilter])
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_name :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_outputFormat :: Lens' PutMetricStream MetricStreamOutputFormat
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_roleArn :: Lens' PutMetricStream Text
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_statisticsConfigurations :: Lens' PutMetricStream (Maybe [MetricStreamStatisticsConfiguration])
+ Amazonka.CloudWatch.PutMetricStream: putMetricStream_tags :: Lens' PutMetricStream (Maybe [Tag])
+ Amazonka.CloudWatch.SetAlarmState: SetAlarmState' :: Maybe Text -> Text -> StateValue -> Text -> SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: SetAlarmStateResponse' :: SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: [$sel:alarmName:SetAlarmState'] :: SetAlarmState -> Text
+ Amazonka.CloudWatch.SetAlarmState: [$sel:stateReason:SetAlarmState'] :: SetAlarmState -> Text
+ Amazonka.CloudWatch.SetAlarmState: [$sel:stateReasonData:SetAlarmState'] :: SetAlarmState -> Maybe Text
+ Amazonka.CloudWatch.SetAlarmState: [$sel:stateValue:SetAlarmState'] :: SetAlarmState -> StateValue
+ Amazonka.CloudWatch.SetAlarmState: data SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: data SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance Control.DeepSeq.NFData Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance Control.DeepSeq.NFData Amazonka.CloudWatch.SetAlarmState.SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Classes.Eq Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Classes.Eq Amazonka.CloudWatch.SetAlarmState.SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Generics.Generic Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Generics.Generic Amazonka.CloudWatch.SetAlarmState.SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Read.Read Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Read.Read Amazonka.CloudWatch.SetAlarmState.SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Show.Show Amazonka.CloudWatch.SetAlarmState.SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: instance GHC.Show.Show Amazonka.CloudWatch.SetAlarmState.SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: newSetAlarmState :: Text -> StateValue -> Text -> SetAlarmState
+ Amazonka.CloudWatch.SetAlarmState: newSetAlarmStateResponse :: SetAlarmStateResponse
+ Amazonka.CloudWatch.SetAlarmState: setAlarmState_alarmName :: Lens' SetAlarmState Text
+ Amazonka.CloudWatch.SetAlarmState: setAlarmState_stateReason :: Lens' SetAlarmState Text
+ Amazonka.CloudWatch.SetAlarmState: setAlarmState_stateReasonData :: Lens' SetAlarmState (Maybe Text)
+ Amazonka.CloudWatch.SetAlarmState: setAlarmState_stateValue :: Lens' SetAlarmState StateValue
+ Amazonka.CloudWatch.StartMetricStreams: StartMetricStreams' :: [Text] -> StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: StartMetricStreamsResponse' :: Int -> StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: [$sel:httpStatus:StartMetricStreamsResponse'] :: StartMetricStreamsResponse -> Int
+ Amazonka.CloudWatch.StartMetricStreams: [$sel:names:StartMetricStreams'] :: StartMetricStreams -> [Text]
+ Amazonka.CloudWatch.StartMetricStreams: data StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: data StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.StartMetricStreams.StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.StartMetricStreams.StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.StartMetricStreams.StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.StartMetricStreams.StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.StartMetricStreams.StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.StartMetricStreams.StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: newStartMetricStreams :: StartMetricStreams
+ Amazonka.CloudWatch.StartMetricStreams: newStartMetricStreamsResponse :: Int -> StartMetricStreamsResponse
+ Amazonka.CloudWatch.StartMetricStreams: startMetricStreamsResponse_httpStatus :: Lens' StartMetricStreamsResponse Int
+ Amazonka.CloudWatch.StartMetricStreams: startMetricStreams_names :: Lens' StartMetricStreams [Text]
+ Amazonka.CloudWatch.StopMetricStreams: StopMetricStreams' :: [Text] -> StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: StopMetricStreamsResponse' :: Int -> StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: [$sel:httpStatus:StopMetricStreamsResponse'] :: StopMetricStreamsResponse -> Int
+ Amazonka.CloudWatch.StopMetricStreams: [$sel:names:StopMetricStreams'] :: StopMetricStreams -> [Text]
+ Amazonka.CloudWatch.StopMetricStreams: data StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: data StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance Control.DeepSeq.NFData Amazonka.CloudWatch.StopMetricStreams.StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Classes.Eq Amazonka.CloudWatch.StopMetricStreams.StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Generics.Generic Amazonka.CloudWatch.StopMetricStreams.StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Read.Read Amazonka.CloudWatch.StopMetricStreams.StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.StopMetricStreams.StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: instance GHC.Show.Show Amazonka.CloudWatch.StopMetricStreams.StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: newStopMetricStreams :: StopMetricStreams
+ Amazonka.CloudWatch.StopMetricStreams: newStopMetricStreamsResponse :: Int -> StopMetricStreamsResponse
+ Amazonka.CloudWatch.StopMetricStreams: stopMetricStreamsResponse_httpStatus :: Lens' StopMetricStreamsResponse Int
+ Amazonka.CloudWatch.StopMetricStreams: stopMetricStreams_names :: Lens' StopMetricStreams [Text]
+ Amazonka.CloudWatch.TagResource: TagResource' :: Text -> [Tag] -> TagResource
+ Amazonka.CloudWatch.TagResource: TagResourceResponse' :: Int -> TagResourceResponse
+ Amazonka.CloudWatch.TagResource: [$sel:httpStatus:TagResourceResponse'] :: TagResourceResponse -> Int
+ Amazonka.CloudWatch.TagResource: [$sel:resourceARN:TagResource'] :: TagResource -> Text
+ Amazonka.CloudWatch.TagResource: [$sel:tags:TagResource'] :: TagResource -> [Tag]
+ Amazonka.CloudWatch.TagResource: data TagResource
+ Amazonka.CloudWatch.TagResource: data TagResourceResponse
+ Amazonka.CloudWatch.TagResource: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.TagResource.TagResourceResponse
+ Amazonka.CloudWatch.TagResource: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance GHC.Classes.Eq Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance GHC.Classes.Eq Amazonka.CloudWatch.TagResource.TagResourceResponse
+ Amazonka.CloudWatch.TagResource: instance GHC.Generics.Generic Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance GHC.Generics.Generic Amazonka.CloudWatch.TagResource.TagResourceResponse
+ Amazonka.CloudWatch.TagResource: instance GHC.Read.Read Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance GHC.Read.Read Amazonka.CloudWatch.TagResource.TagResourceResponse
+ Amazonka.CloudWatch.TagResource: instance GHC.Show.Show Amazonka.CloudWatch.TagResource.TagResource
+ Amazonka.CloudWatch.TagResource: instance GHC.Show.Show Amazonka.CloudWatch.TagResource.TagResourceResponse
+ Amazonka.CloudWatch.TagResource: newTagResource :: Text -> TagResource
+ Amazonka.CloudWatch.TagResource: newTagResourceResponse :: Int -> TagResourceResponse
+ Amazonka.CloudWatch.TagResource: tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
+ Amazonka.CloudWatch.TagResource: tagResource_resourceARN :: Lens' TagResource Text
+ Amazonka.CloudWatch.TagResource: tagResource_tags :: Lens' TagResource [Tag]
+ Amazonka.CloudWatch.Types: ActionsSuppressedBy' :: Text -> ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: AlarmHistoryItem' :: Maybe Text -> Maybe AlarmType -> Maybe Text -> Maybe HistoryItemType -> Maybe Text -> Maybe ISO8601 -> AlarmHistoryItem
+ Amazonka.CloudWatch.Types: AlarmType' :: Text -> AlarmType
+ Amazonka.CloudWatch.Types: AnomalyDetector' :: Maybe AnomalyDetectorConfiguration -> Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> Maybe AnomalyDetectorStateValue -> AnomalyDetector
+ Amazonka.CloudWatch.Types: AnomalyDetectorConfiguration' :: Maybe [Range] -> Maybe Text -> AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types: AnomalyDetectorStateValue' :: Text -> AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: AnomalyDetectorType' :: Text -> AnomalyDetectorType
+ Amazonka.CloudWatch.Types: ComparisonOperator' :: Text -> ComparisonOperator
+ Amazonka.CloudWatch.Types: CompositeAlarm' :: Maybe Bool -> Maybe ActionsSuppressedBy -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> CompositeAlarm
+ Amazonka.CloudWatch.Types: DashboardEntry' :: Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe Integer -> DashboardEntry
+ Amazonka.CloudWatch.Types: DashboardValidationMessage' :: Maybe Text -> Maybe Text -> DashboardValidationMessage
+ Amazonka.CloudWatch.Types: Datapoint' :: Maybe Double -> Maybe (HashMap Text Double) -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe ISO8601 -> Maybe StandardUnit -> Datapoint
+ Amazonka.CloudWatch.Types: Dimension' :: Text -> Text -> Dimension
+ Amazonka.CloudWatch.Types: DimensionFilter' :: Maybe Text -> Text -> DimensionFilter
+ Amazonka.CloudWatch.Types: EvaluationState' :: Text -> EvaluationState
+ Amazonka.CloudWatch.Types: HistoryItemType' :: Text -> HistoryItemType
+ Amazonka.CloudWatch.Types: InsightRule' :: Maybe Bool -> Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch.Types: InsightRuleContributor' :: [Text] -> Double -> [InsightRuleContributorDatapoint] -> InsightRuleContributor
+ Amazonka.CloudWatch.Types: InsightRuleContributorDatapoint' :: ISO8601 -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types: InsightRuleMetricDatapoint' :: Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> ISO8601 -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types: LabelOptions' :: Maybe Text -> LabelOptions
+ Amazonka.CloudWatch.Types: ManagedRule' :: Maybe [Tag] -> Text -> Text -> ManagedRule
+ Amazonka.CloudWatch.Types: ManagedRuleDescription' :: Maybe Text -> Maybe ManagedRuleState -> Maybe Text -> ManagedRuleDescription
+ Amazonka.CloudWatch.Types: ManagedRuleState' :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch.Types: MessageData' :: Maybe Text -> Maybe Text -> MessageData
+ Amazonka.CloudWatch.Types: Metric' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Metric
+ Amazonka.CloudWatch.Types: MetricAlarm' :: Maybe Bool -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe ComparisonOperator -> Maybe Natural -> Maybe [Dimension] -> Maybe Text -> Maybe Natural -> Maybe EvaluationState -> Maybe Text -> Maybe [Text] -> Maybe Text -> Maybe [MetricDataQuery] -> Maybe Text -> Maybe [Text] -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> Maybe Statistic -> Maybe Double -> Maybe Text -> Maybe Text -> Maybe StandardUnit -> MetricAlarm
+ Amazonka.CloudWatch.Types: MetricDataQuery' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe MetricStat -> Maybe Natural -> Maybe Bool -> Text -> MetricDataQuery
+ Amazonka.CloudWatch.Types: MetricDataResult' :: Maybe Text -> Maybe Text -> Maybe [MessageData] -> Maybe StatusCode -> Maybe [ISO8601] -> Maybe [Double] -> MetricDataResult
+ Amazonka.CloudWatch.Types: MetricDatum' :: Maybe [Double] -> Maybe [Dimension] -> Maybe StatisticSet -> Maybe Natural -> Maybe ISO8601 -> Maybe StandardUnit -> Maybe Double -> Maybe [Double] -> Text -> MetricDatum
+ Amazonka.CloudWatch.Types: MetricMathAnomalyDetector' :: Maybe [MetricDataQuery] -> MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types: MetricStat' :: Maybe StandardUnit -> Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch.Types: MetricStreamEntry' :: Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe MetricStreamOutputFormat -> Maybe Text -> MetricStreamEntry
+ Amazonka.CloudWatch.Types: MetricStreamFilter' :: Maybe Text -> MetricStreamFilter
+ Amazonka.CloudWatch.Types: MetricStreamOutputFormat' :: Text -> MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types: MetricStreamStatisticsConfiguration' :: [MetricStreamStatisticsMetric] -> [Text] -> MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types: MetricStreamStatisticsMetric' :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types: PartialFailure' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> PartialFailure
+ Amazonka.CloudWatch.Types: Range' :: ISO8601 -> ISO8601 -> Range
+ Amazonka.CloudWatch.Types: RecentlyActive' :: Text -> RecentlyActive
+ Amazonka.CloudWatch.Types: ScanBy' :: Text -> ScanBy
+ Amazonka.CloudWatch.Types: SingleMetricAnomalyDetector' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Maybe Text -> SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types: StandardUnit' :: Text -> StandardUnit
+ Amazonka.CloudWatch.Types: StateValue' :: Text -> StateValue
+ Amazonka.CloudWatch.Types: Statistic' :: Text -> Statistic
+ Amazonka.CloudWatch.Types: StatisticSet' :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch.Types: StatusCode' :: Text -> StatusCode
+ Amazonka.CloudWatch.Types: Tag' :: Text -> Text -> Tag
+ Amazonka.CloudWatch.Types: [$sel:accountId:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:actionsEnabled:CompositeAlarm'] :: CompositeAlarm -> Maybe Bool
+ Amazonka.CloudWatch.Types: [$sel:actionsEnabled:MetricAlarm'] :: MetricAlarm -> Maybe Bool
+ Amazonka.CloudWatch.Types: [$sel:actionsSuppressedBy:CompositeAlarm'] :: CompositeAlarm -> Maybe ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: [$sel:actionsSuppressedReason:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:actionsSuppressor:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:actionsSuppressorExtensionPeriod:CompositeAlarm'] :: CompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.Types: [$sel:actionsSuppressorWaitPeriod:CompositeAlarm'] :: CompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.Types: [$sel:additionalStatistics:MetricStreamStatisticsConfiguration'] :: MetricStreamStatisticsConfiguration -> [Text]
+ Amazonka.CloudWatch.Types: [$sel:alarmActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:alarmActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:alarmArn:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmArn:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmConfigurationUpdatedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:alarmConfigurationUpdatedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:alarmDescription:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmDescription:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmName:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmName:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmName:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmRule:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:alarmType:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe AlarmType
+ Amazonka.CloudWatch.Types: [$sel:approximateAggregateValue:InsightRuleContributor'] :: InsightRuleContributor -> Double
+ Amazonka.CloudWatch.Types: [$sel:approximateValue:InsightRuleContributorDatapoint'] :: InsightRuleContributorDatapoint -> Double
+ Amazonka.CloudWatch.Types: [$sel:arn:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:average:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:average:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:code:MessageData'] :: MessageData -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:comparisonOperator:MetricAlarm'] :: MetricAlarm -> Maybe ComparisonOperator
+ Amazonka.CloudWatch.Types: [$sel:configuration:AnomalyDetector'] :: AnomalyDetector -> Maybe AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types: [$sel:counts:MetricDatum'] :: MetricDatum -> Maybe [Double]
+ Amazonka.CloudWatch.Types: [$sel:creationDate:MetricStreamEntry'] :: MetricStreamEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:dashboardArn:DashboardEntry'] :: DashboardEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:dashboardName:DashboardEntry'] :: DashboardEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:dataPath:DashboardValidationMessage'] :: DashboardValidationMessage -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:datapoints:InsightRuleContributor'] :: InsightRuleContributor -> [InsightRuleContributorDatapoint]
+ Amazonka.CloudWatch.Types: [$sel:datapointsToAlarm:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types: [$sel:definition:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:dimensions:AnomalyDetector'] :: AnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types: [$sel:dimensions:Metric'] :: Metric -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types: [$sel:dimensions:MetricAlarm'] :: MetricAlarm -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types: [$sel:dimensions:MetricDatum'] :: MetricDatum -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types: [$sel:dimensions:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types: [$sel:endTime:Range'] :: Range -> ISO8601
+ Amazonka.CloudWatch.Types: [$sel:evaluateLowSampleCountPercentile:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:evaluationPeriods:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types: [$sel:evaluationState:MetricAlarm'] :: MetricAlarm -> Maybe EvaluationState
+ Amazonka.CloudWatch.Types: [$sel:exceptionType:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:excludedTimeRanges:AnomalyDetectorConfiguration'] :: AnomalyDetectorConfiguration -> Maybe [Range]
+ Amazonka.CloudWatch.Types: [$sel:expression:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:extendedStatistic:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:extendedStatistics:Datapoint'] :: Datapoint -> Maybe (HashMap Text Double)
+ Amazonka.CloudWatch.Types: [$sel:failureCode:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:failureDescription:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:failureResource:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:firehoseArn:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:historyData:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:historyItemType:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe HistoryItemType
+ Amazonka.CloudWatch.Types: [$sel:historySummary:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:id:MetricDataQuery'] :: MetricDataQuery -> Text
+ Amazonka.CloudWatch.Types: [$sel:id:MetricDataResult'] :: MetricDataResult -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:includeMetrics:MetricStreamStatisticsConfiguration'] :: MetricStreamStatisticsConfiguration -> [MetricStreamStatisticsMetric]
+ Amazonka.CloudWatch.Types: [$sel:insufficientDataActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:insufficientDataActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:key:Tag'] :: Tag -> Text
+ Amazonka.CloudWatch.Types: [$sel:keys:InsightRuleContributor'] :: InsightRuleContributor -> [Text]
+ Amazonka.CloudWatch.Types: [$sel:label:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:label:MetricDataResult'] :: MetricDataResult -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:lastModified:DashboardEntry'] :: DashboardEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:lastUpdateDate:MetricStreamEntry'] :: MetricStreamEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:managedRule:InsightRule'] :: InsightRule -> Maybe Bool
+ Amazonka.CloudWatch.Types: [$sel:maxContributorValue:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:maximum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:maximum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:maximum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types: [$sel:message:DashboardValidationMessage'] :: DashboardValidationMessage -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:messages:MetricDataResult'] :: MetricDataResult -> Maybe [MessageData]
+ Amazonka.CloudWatch.Types: [$sel:metric:MetricStat'] :: MetricStat -> Metric
+ Amazonka.CloudWatch.Types: [$sel:metricDataQueries:MetricMathAnomalyDetector'] :: MetricMathAnomalyDetector -> Maybe [MetricDataQuery]
+ Amazonka.CloudWatch.Types: [$sel:metricMathAnomalyDetector:AnomalyDetector'] :: AnomalyDetector -> Maybe MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types: [$sel:metricName:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:metricName:Metric'] :: Metric -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:metricName:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:metricName:MetricDatum'] :: MetricDatum -> Text
+ Amazonka.CloudWatch.Types: [$sel:metricName:MetricStreamStatisticsMetric'] :: MetricStreamStatisticsMetric -> Text
+ Amazonka.CloudWatch.Types: [$sel:metricName:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:metricStat:MetricDataQuery'] :: MetricDataQuery -> Maybe MetricStat
+ Amazonka.CloudWatch.Types: [$sel:metricTimezone:AnomalyDetectorConfiguration'] :: AnomalyDetectorConfiguration -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:metrics:MetricAlarm'] :: MetricAlarm -> Maybe [MetricDataQuery]
+ Amazonka.CloudWatch.Types: [$sel:minimum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:minimum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:minimum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types: [$sel:name:Dimension'] :: Dimension -> Text
+ Amazonka.CloudWatch.Types: [$sel:name:DimensionFilter'] :: DimensionFilter -> Text
+ Amazonka.CloudWatch.Types: [$sel:name:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:name:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:Metric'] :: Metric -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:MetricStreamFilter'] :: MetricStreamFilter -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:MetricStreamStatisticsMetric'] :: MetricStreamStatisticsMetric -> Text
+ Amazonka.CloudWatch.Types: [$sel:namespace:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:oKActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:oKActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types: [$sel:outputFormat:MetricStreamEntry'] :: MetricStreamEntry -> Maybe MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types: [$sel:period:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types: [$sel:period:MetricDataQuery'] :: MetricDataQuery -> Maybe Natural
+ Amazonka.CloudWatch.Types: [$sel:period:MetricStat'] :: MetricStat -> Natural
+ Amazonka.CloudWatch.Types: [$sel:resourceARN:ManagedRule'] :: ManagedRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:resourceARN:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:returnData:MetricDataQuery'] :: MetricDataQuery -> Maybe Bool
+ Amazonka.CloudWatch.Types: [$sel:ruleName:ManagedRuleState'] :: ManagedRuleState -> Text
+ Amazonka.CloudWatch.Types: [$sel:ruleState:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe ManagedRuleState
+ Amazonka.CloudWatch.Types: [$sel:sampleCount:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:sampleCount:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:sampleCount:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types: [$sel:schema:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:singleMetricAnomalyDetector:AnomalyDetector'] :: AnomalyDetector -> Maybe SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types: [$sel:size:DashboardEntry'] :: DashboardEntry -> Maybe Integer
+ Amazonka.CloudWatch.Types: [$sel:startTime:Range'] :: Range -> ISO8601
+ Amazonka.CloudWatch.Types: [$sel:stat:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stat:MetricStat'] :: MetricStat -> Text
+ Amazonka.CloudWatch.Types: [$sel:stat:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:state:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:state:ManagedRuleState'] :: ManagedRuleState -> Text
+ Amazonka.CloudWatch.Types: [$sel:state:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stateReason:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stateReason:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stateReasonData:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stateReasonData:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:stateTransitionedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:stateTransitionedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:stateUpdatedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:stateUpdatedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:stateValue:AnomalyDetector'] :: AnomalyDetector -> Maybe AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: [$sel:stateValue:CompositeAlarm'] :: CompositeAlarm -> Maybe StateValue
+ Amazonka.CloudWatch.Types: [$sel:stateValue:MetricAlarm'] :: MetricAlarm -> Maybe StateValue
+ Amazonka.CloudWatch.Types: [$sel:statistic:MetricAlarm'] :: MetricAlarm -> Maybe Statistic
+ Amazonka.CloudWatch.Types: [$sel:statisticValues:MetricDatum'] :: MetricDatum -> Maybe StatisticSet
+ Amazonka.CloudWatch.Types: [$sel:statusCode:MetricDataResult'] :: MetricDataResult -> Maybe StatusCode
+ Amazonka.CloudWatch.Types: [$sel:storageResolution:MetricDatum'] :: MetricDatum -> Maybe Natural
+ Amazonka.CloudWatch.Types: [$sel:sum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:sum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:sum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types: [$sel:tags:ManagedRule'] :: ManagedRule -> Maybe [Tag]
+ Amazonka.CloudWatch.Types: [$sel:templateName:ManagedRule'] :: ManagedRule -> Text
+ Amazonka.CloudWatch.Types: [$sel:templateName:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:threshold:MetricAlarm'] :: MetricAlarm -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:thresholdMetricId:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:timestamp:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:timestamp:Datapoint'] :: Datapoint -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:timestamp:InsightRuleContributorDatapoint'] :: InsightRuleContributorDatapoint -> ISO8601
+ Amazonka.CloudWatch.Types: [$sel:timestamp:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> ISO8601
+ Amazonka.CloudWatch.Types: [$sel:timestamp:MetricDatum'] :: MetricDatum -> Maybe ISO8601
+ Amazonka.CloudWatch.Types: [$sel:timestamps:MetricDataResult'] :: MetricDataResult -> Maybe [ISO8601]
+ Amazonka.CloudWatch.Types: [$sel:timezone:LabelOptions'] :: LabelOptions -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:treatMissingData:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:uniqueContributors:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:unit:Datapoint'] :: Datapoint -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types: [$sel:unit:MetricAlarm'] :: MetricAlarm -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types: [$sel:unit:MetricDatum'] :: MetricDatum -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types: [$sel:unit:MetricStat'] :: MetricStat -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types: [$sel:value:Dimension'] :: Dimension -> Text
+ Amazonka.CloudWatch.Types: [$sel:value:DimensionFilter'] :: DimensionFilter -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:value:MessageData'] :: MessageData -> Maybe Text
+ Amazonka.CloudWatch.Types: [$sel:value:MetricDatum'] :: MetricDatum -> Maybe Double
+ Amazonka.CloudWatch.Types: [$sel:value:Tag'] :: Tag -> Text
+ Amazonka.CloudWatch.Types: [$sel:values:MetricDataResult'] :: MetricDataResult -> Maybe [Double]
+ Amazonka.CloudWatch.Types: [$sel:values:MetricDatum'] :: MetricDatum -> Maybe [Double]
+ Amazonka.CloudWatch.Types: [fromActionsSuppressedBy] :: ActionsSuppressedBy -> Text
+ Amazonka.CloudWatch.Types: [fromAlarmType] :: AlarmType -> Text
+ Amazonka.CloudWatch.Types: [fromAnomalyDetectorStateValue] :: AnomalyDetectorStateValue -> Text
+ Amazonka.CloudWatch.Types: [fromAnomalyDetectorType] :: AnomalyDetectorType -> Text
+ Amazonka.CloudWatch.Types: [fromComparisonOperator] :: ComparisonOperator -> Text
+ Amazonka.CloudWatch.Types: [fromEvaluationState] :: EvaluationState -> Text
+ Amazonka.CloudWatch.Types: [fromHistoryItemType] :: HistoryItemType -> Text
+ Amazonka.CloudWatch.Types: [fromMetricStreamOutputFormat] :: MetricStreamOutputFormat -> Text
+ Amazonka.CloudWatch.Types: [fromRecentlyActive] :: RecentlyActive -> Text
+ Amazonka.CloudWatch.Types: [fromScanBy] :: ScanBy -> Text
+ Amazonka.CloudWatch.Types: [fromStandardUnit] :: StandardUnit -> Text
+ Amazonka.CloudWatch.Types: [fromStateValue] :: StateValue -> Text
+ Amazonka.CloudWatch.Types: [fromStatistic] :: Statistic -> Text
+ Amazonka.CloudWatch.Types: [fromStatusCode] :: StatusCode -> Text
+ Amazonka.CloudWatch.Types: _ConcurrentModificationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _DashboardInvalidInputError :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _DashboardNotFoundError :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _InternalServiceFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _InvalidFormatFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _InvalidNextToken :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _InvalidParameterCombinationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _InvalidParameterValueException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _LimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _LimitExceededFault :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _MissingRequiredParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _ResourceNotFound :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: _ResourceNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudWatch.Types: alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types: alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType)
+ Amazonka.CloudWatch.Types: alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types: alarmHistoryItem_historyItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
+ Amazonka.CloudWatch.Types: alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types: alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range])
+ Amazonka.CloudWatch.Types: anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text)
+ Amazonka.CloudWatch.Types: anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration)
+ Amazonka.CloudWatch.Types: anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Types: anomalyDetector_metricMathAnomalyDetector :: Lens' AnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.Types: anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: anomalyDetector_singleMetricAnomalyDetector :: Lens' AnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.Types: anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsSuppressedBy :: Lens' CompositeAlarm (Maybe ActionsSuppressedBy)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsSuppressedReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsSuppressor :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsSuppressorExtensionPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Types: compositeAlarm_actionsSuppressorWaitPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmDescription :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmName :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: compositeAlarm_stateTransitionedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: compositeAlarm_stateValue :: Lens' CompositeAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Types: dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: dashboardEntry_dashboardName :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer)
+ Amazonka.CloudWatch.Types: dashboardValidationMessage_dataPath :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Types: dashboardValidationMessage_message :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Types: data AlarmHistoryItem
+ Amazonka.CloudWatch.Types: data AnomalyDetector
+ Amazonka.CloudWatch.Types: data AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types: data CompositeAlarm
+ Amazonka.CloudWatch.Types: data DashboardEntry
+ Amazonka.CloudWatch.Types: data DashboardValidationMessage
+ Amazonka.CloudWatch.Types: data Datapoint
+ Amazonka.CloudWatch.Types: data Dimension
+ Amazonka.CloudWatch.Types: data DimensionFilter
+ Amazonka.CloudWatch.Types: data InsightRule
+ Amazonka.CloudWatch.Types: data InsightRuleContributor
+ Amazonka.CloudWatch.Types: data InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types: data InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types: data LabelOptions
+ Amazonka.CloudWatch.Types: data ManagedRule
+ Amazonka.CloudWatch.Types: data ManagedRuleDescription
+ Amazonka.CloudWatch.Types: data ManagedRuleState
+ Amazonka.CloudWatch.Types: data MessageData
+ Amazonka.CloudWatch.Types: data Metric
+ Amazonka.CloudWatch.Types: data MetricAlarm
+ Amazonka.CloudWatch.Types: data MetricDataQuery
+ Amazonka.CloudWatch.Types: data MetricDataResult
+ Amazonka.CloudWatch.Types: data MetricDatum
+ Amazonka.CloudWatch.Types: data MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types: data MetricStat
+ Amazonka.CloudWatch.Types: data MetricStreamEntry
+ Amazonka.CloudWatch.Types: data MetricStreamFilter
+ Amazonka.CloudWatch.Types: data MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types: data MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types: data PartialFailure
+ Amazonka.CloudWatch.Types: data Range
+ Amazonka.CloudWatch.Types: data SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types: data StatisticSet
+ Amazonka.CloudWatch.Types: data Tag
+ Amazonka.CloudWatch.Types: datapoint_average :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double))
+ Amazonka.CloudWatch.Types: datapoint_maximum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: datapoint_minimum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: datapoint_sampleCount :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: datapoint_sum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: datapoint_unit :: Lens' Datapoint (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types: defaultService :: Service
+ Amazonka.CloudWatch.Types: dimensionFilter_name :: Lens' DimensionFilter Text
+ Amazonka.CloudWatch.Types: dimensionFilter_value :: Lens' DimensionFilter (Maybe Text)
+ Amazonka.CloudWatch.Types: dimension_name :: Lens' Dimension Text
+ Amazonka.CloudWatch.Types: dimension_value :: Lens' Dimension Text
+ Amazonka.CloudWatch.Types: insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double
+ Amazonka.CloudWatch.Types: insightRuleContributorDatapoint_timestamp :: Lens' InsightRuleContributorDatapoint UTCTime
+ Amazonka.CloudWatch.Types: insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double
+ Amazonka.CloudWatch.Types: insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint]
+ Amazonka.CloudWatch.Types: insightRuleContributor_keys :: Lens' InsightRuleContributor [Text]
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime
+ Amazonka.CloudWatch.Types: insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types: insightRule_definition :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types: insightRule_managedRule :: Lens' InsightRule (Maybe Bool)
+ Amazonka.CloudWatch.Types: insightRule_name :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types: insightRule_schema :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types: insightRule_state :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types: labelOptions_timezone :: Lens' LabelOptions (Maybe Text)
+ Amazonka.CloudWatch.Types: managedRuleDescription_resourceARN :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Types: managedRuleDescription_ruleState :: Lens' ManagedRuleDescription (Maybe ManagedRuleState)
+ Amazonka.CloudWatch.Types: managedRuleDescription_templateName :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Types: managedRuleState_ruleName :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Types: managedRuleState_state :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Types: managedRule_resourceARN :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Types: managedRule_tags :: Lens' ManagedRule (Maybe [Tag])
+ Amazonka.CloudWatch.Types: managedRule_templateName :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Types: messageData_code :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Types: messageData_value :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Types: metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_alarmName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
+ Amazonka.CloudWatch.Types: metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types: metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension])
+ Amazonka.CloudWatch.Types: metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types: metricAlarm_evaluationState :: Lens' MetricAlarm (Maybe EvaluationState)
+ Amazonka.CloudWatch.Types: metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Types: metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types: metricAlarm_period :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types: metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_stateTransitionedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Types: metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic)
+ Amazonka.CloudWatch.Types: metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double)
+ Amazonka.CloudWatch.Types: metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types: metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types: metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types: metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types: metricDataQuery_id :: Lens' MetricDataQuery Text
+ Amazonka.CloudWatch.Types: metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types: metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat)
+ Amazonka.CloudWatch.Types: metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural)
+ Amazonka.CloudWatch.Types: metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool)
+ Amazonka.CloudWatch.Types: metricDataResult_id :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Types: metricDataResult_label :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Types: metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData])
+ Amazonka.CloudWatch.Types: metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode)
+ Amazonka.CloudWatch.Types: metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime])
+ Amazonka.CloudWatch.Types: metricDataResult_values :: Lens' MetricDataResult (Maybe [Double])
+ Amazonka.CloudWatch.Types: metricDatum_counts :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Types: metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension])
+ Amazonka.CloudWatch.Types: metricDatum_metricName :: Lens' MetricDatum Text
+ Amazonka.CloudWatch.Types: metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet)
+ Amazonka.CloudWatch.Types: metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural)
+ Amazonka.CloudWatch.Types: metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types: metricDatum_value :: Lens' MetricDatum (Maybe Double)
+ Amazonka.CloudWatch.Types: metricDatum_values :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Types: metricMathAnomalyDetector_metricDataQueries :: Lens' MetricMathAnomalyDetector (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Types: metricStat_metric :: Lens' MetricStat Metric
+ Amazonka.CloudWatch.Types: metricStat_period :: Lens' MetricStat Natural
+ Amazonka.CloudWatch.Types: metricStat_stat :: Lens' MetricStat Text
+ Amazonka.CloudWatch.Types: metricStat_unit :: Lens' MetricStat (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types: metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types: metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat)
+ Amazonka.CloudWatch.Types: metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types: metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text)
+ Amazonka.CloudWatch.Types: metricStreamStatisticsConfiguration_additionalStatistics :: Lens' MetricStreamStatisticsConfiguration [Text]
+ Amazonka.CloudWatch.Types: metricStreamStatisticsConfiguration_includeMetrics :: Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric]
+ Amazonka.CloudWatch.Types: metricStreamStatisticsMetric_metricName :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Types: metricStreamStatisticsMetric_namespace :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Types: metric_dimensions :: Lens' Metric (Maybe [Dimension])
+ Amazonka.CloudWatch.Types: metric_metricName :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Types: metric_namespace :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Types: newAlarmHistoryItem :: AlarmHistoryItem
+ Amazonka.CloudWatch.Types: newAnomalyDetector :: AnomalyDetector
+ Amazonka.CloudWatch.Types: newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types: newCompositeAlarm :: CompositeAlarm
+ Amazonka.CloudWatch.Types: newDashboardEntry :: DashboardEntry
+ Amazonka.CloudWatch.Types: newDashboardValidationMessage :: DashboardValidationMessage
+ Amazonka.CloudWatch.Types: newDatapoint :: Datapoint
+ Amazonka.CloudWatch.Types: newDimension :: Text -> Text -> Dimension
+ Amazonka.CloudWatch.Types: newDimensionFilter :: Text -> DimensionFilter
+ Amazonka.CloudWatch.Types: newInsightRule :: Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch.Types: newInsightRuleContributor :: Double -> InsightRuleContributor
+ Amazonka.CloudWatch.Types: newInsightRuleContributorDatapoint :: UTCTime -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types: newInsightRuleMetricDatapoint :: UTCTime -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types: newLabelOptions :: LabelOptions
+ Amazonka.CloudWatch.Types: newManagedRule :: Text -> Text -> ManagedRule
+ Amazonka.CloudWatch.Types: newManagedRuleDescription :: ManagedRuleDescription
+ Amazonka.CloudWatch.Types: newManagedRuleState :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch.Types: newMessageData :: MessageData
+ Amazonka.CloudWatch.Types: newMetric :: Metric
+ Amazonka.CloudWatch.Types: newMetricAlarm :: MetricAlarm
+ Amazonka.CloudWatch.Types: newMetricDataQuery :: Text -> MetricDataQuery
+ Amazonka.CloudWatch.Types: newMetricDataResult :: MetricDataResult
+ Amazonka.CloudWatch.Types: newMetricDatum :: Text -> MetricDatum
+ Amazonka.CloudWatch.Types: newMetricMathAnomalyDetector :: MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types: newMetricStat :: Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch.Types: newMetricStreamEntry :: MetricStreamEntry
+ Amazonka.CloudWatch.Types: newMetricStreamFilter :: MetricStreamFilter
+ Amazonka.CloudWatch.Types: newMetricStreamStatisticsConfiguration :: MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types: newMetricStreamStatisticsMetric :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types: newPartialFailure :: PartialFailure
+ Amazonka.CloudWatch.Types: newRange :: UTCTime -> UTCTime -> Range
+ Amazonka.CloudWatch.Types: newSingleMetricAnomalyDetector :: SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types: newStatisticSet :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch.Types: newTag :: Text -> Text -> Tag
+ Amazonka.CloudWatch.Types: newtype ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: newtype AlarmType
+ Amazonka.CloudWatch.Types: newtype AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: newtype AnomalyDetectorType
+ Amazonka.CloudWatch.Types: newtype ComparisonOperator
+ Amazonka.CloudWatch.Types: newtype EvaluationState
+ Amazonka.CloudWatch.Types: newtype HistoryItemType
+ Amazonka.CloudWatch.Types: newtype MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types: newtype RecentlyActive
+ Amazonka.CloudWatch.Types: newtype ScanBy
+ Amazonka.CloudWatch.Types: newtype StandardUnit
+ Amazonka.CloudWatch.Types: newtype StateValue
+ Amazonka.CloudWatch.Types: newtype Statistic
+ Amazonka.CloudWatch.Types: newtype StatusCode
+ Amazonka.CloudWatch.Types: partialFailure_exceptionType :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types: partialFailure_failureCode :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types: partialFailure_failureDescription :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types: partialFailure_failureResource :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types: pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types: pattern AlarmType_CompositeAlarm :: AlarmType
+ Amazonka.CloudWatch.Types: pattern AlarmType_MetricAlarm :: AlarmType
+ Amazonka.CloudWatch.Types: pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types: pattern AnomalyDetectorType_METRIC_MATH :: AnomalyDetectorType
+ Amazonka.CloudWatch.Types: pattern AnomalyDetectorType_SINGLE_METRIC :: AnomalyDetectorType
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_GreaterThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_GreaterThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_GreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_LessThanLowerThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_LessThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern ComparisonOperator_LessThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types: pattern EvaluationState_PARTIAL_DATA :: EvaluationState
+ Amazonka.CloudWatch.Types: pattern HistoryItemType_Action :: HistoryItemType
+ Amazonka.CloudWatch.Types: pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType
+ Amazonka.CloudWatch.Types: pattern HistoryItemType_StateUpdate :: HistoryItemType
+ Amazonka.CloudWatch.Types: pattern MetricStreamOutputFormat_Json :: MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types: pattern MetricStreamOutputFormat_Opentelemetry0_7 :: MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types: pattern RecentlyActive_PT3H :: RecentlyActive
+ Amazonka.CloudWatch.Types: pattern ScanBy_TimestampAscending :: ScanBy
+ Amazonka.CloudWatch.Types: pattern ScanBy_TimestampDescending :: ScanBy
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Bits :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Bits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Bytes :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Bytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Count :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Count_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Gigabits :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Gigabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Gigabytes :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Gigabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Kilobits :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Kilobits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Kilobytes :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Kilobytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Megabits :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Megabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Megabytes :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Megabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Microseconds :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Milliseconds :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_None :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Percent :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Seconds :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Terabits :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Terabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Terabytes :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StandardUnit_Terabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types: pattern StateValue_ALARM :: StateValue
+ Amazonka.CloudWatch.Types: pattern StateValue_INSUFFICIENT_DATA :: StateValue
+ Amazonka.CloudWatch.Types: pattern StateValue_OK :: StateValue
+ Amazonka.CloudWatch.Types: pattern Statistic_Average :: Statistic
+ Amazonka.CloudWatch.Types: pattern Statistic_Maximum :: Statistic
+ Amazonka.CloudWatch.Types: pattern Statistic_Minimum :: Statistic
+ Amazonka.CloudWatch.Types: pattern Statistic_SampleCount :: Statistic
+ Amazonka.CloudWatch.Types: pattern Statistic_Sum :: Statistic
+ Amazonka.CloudWatch.Types: pattern StatusCode_Complete :: StatusCode
+ Amazonka.CloudWatch.Types: pattern StatusCode_Forbidden :: StatusCode
+ Amazonka.CloudWatch.Types: pattern StatusCode_InternalError :: StatusCode
+ Amazonka.CloudWatch.Types: pattern StatusCode_PartialData :: StatusCode
+ Amazonka.CloudWatch.Types: range_endTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Types: range_startTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Types: singleMetricAnomalyDetector_dimensions :: Lens' SingleMetricAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Types: singleMetricAnomalyDetector_metricName :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: singleMetricAnomalyDetector_namespace :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: singleMetricAnomalyDetector_stat :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types: statisticSet_maximum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types: statisticSet_minimum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types: statisticSet_sampleCount :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types: statisticSet_sum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types: tag_key :: Lens' Tag Text
+ Amazonka.CloudWatch.Types: tag_value :: Lens' Tag Text
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: ActionsSuppressedBy' :: Text -> ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: [fromActionsSuppressedBy] :: ActionsSuppressedBy -> Text
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance GHC.Read.Read Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: instance GHC.Show.Show Amazonka.CloudWatch.Types.ActionsSuppressedBy.ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: newtype ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.ActionsSuppressedBy: pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: AlarmHistoryItem' :: Maybe Text -> Maybe AlarmType -> Maybe Text -> Maybe HistoryItemType -> Maybe Text -> Maybe ISO8601 -> AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:alarmName:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:alarmType:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe AlarmType
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:historyData:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:historyItemType:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe HistoryItemType
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:historySummary:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe Text
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: [$sel:timestamp:AlarmHistoryItem'] :: AlarmHistoryItem -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_alarmName :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_alarmType :: Lens' AlarmHistoryItem (Maybe AlarmType)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_historyData :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_historyItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_historySummary :: Lens' AlarmHistoryItem (Maybe Text)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: alarmHistoryItem_timestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: data AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance GHC.Read.Read Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: instance GHC.Show.Show Amazonka.CloudWatch.Types.AlarmHistoryItem.AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmHistoryItem: newAlarmHistoryItem :: AlarmHistoryItem
+ Amazonka.CloudWatch.Types.AlarmType: AlarmType' :: Text -> AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: [fromAlarmType] :: AlarmType -> Text
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance GHC.Read.Read Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: instance GHC.Show.Show Amazonka.CloudWatch.Types.AlarmType.AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: newtype AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: pattern AlarmType_CompositeAlarm :: AlarmType
+ Amazonka.CloudWatch.Types.AlarmType: pattern AlarmType_MetricAlarm :: AlarmType
+ Amazonka.CloudWatch.Types.AnomalyDetector: AnomalyDetector' :: Maybe AnomalyDetectorConfiguration -> Maybe [Dimension] -> Maybe MetricMathAnomalyDetector -> Maybe Text -> Maybe Text -> Maybe SingleMetricAnomalyDetector -> Maybe Text -> Maybe AnomalyDetectorStateValue -> AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:configuration:AnomalyDetector'] :: AnomalyDetector -> Maybe AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:dimensions:AnomalyDetector'] :: AnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:metricMathAnomalyDetector:AnomalyDetector'] :: AnomalyDetector -> Maybe MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:metricName:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:namespace:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:singleMetricAnomalyDetector:AnomalyDetector'] :: AnomalyDetector -> Maybe SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:stat:AnomalyDetector'] :: AnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.AnomalyDetector: [$sel:stateValue:AnomalyDetector'] :: AnomalyDetector -> Maybe AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_configuration :: Lens' AnomalyDetector (Maybe AnomalyDetectorConfiguration)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_dimensions :: Lens' AnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_metricMathAnomalyDetector :: Lens' AnomalyDetector (Maybe MetricMathAnomalyDetector)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_metricName :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_namespace :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_singleMetricAnomalyDetector :: Lens' AnomalyDetector (Maybe SingleMetricAnomalyDetector)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_stat :: Lens' AnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.AnomalyDetector: anomalyDetector_stateValue :: Lens' AnomalyDetector (Maybe AnomalyDetectorStateValue)
+ Amazonka.CloudWatch.Types.AnomalyDetector: data AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.Types.AnomalyDetector.AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetector: newAnomalyDetector :: AnomalyDetector
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: AnomalyDetectorConfiguration' :: Maybe [Range] -> Maybe Text -> AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: [$sel:excludedTimeRanges:AnomalyDetectorConfiguration'] :: AnomalyDetectorConfiguration -> Maybe [Range]
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: [$sel:metricTimezone:AnomalyDetectorConfiguration'] :: AnomalyDetectorConfiguration -> Maybe Text
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: anomalyDetectorConfiguration_excludedTimeRanges :: Lens' AnomalyDetectorConfiguration (Maybe [Range])
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: anomalyDetectorConfiguration_metricTimezone :: Lens' AnomalyDetectorConfiguration (Maybe Text)
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: data AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance GHC.Read.Read Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: instance GHC.Show.Show Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration.AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration: newAnomalyDetectorConfiguration :: AnomalyDetectorConfiguration
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: AnomalyDetectorStateValue' :: Text -> AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: [fromAnomalyDetectorStateValue] :: AnomalyDetectorStateValue -> Text
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance GHC.Read.Read Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: instance GHC.Show.Show Amazonka.CloudWatch.Types.AnomalyDetectorStateValue.AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: newtype AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue: pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: AnomalyDetectorType' :: Text -> AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: [fromAnomalyDetectorType] :: AnomalyDetectorType -> Text
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance GHC.Read.Read Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: instance GHC.Show.Show Amazonka.CloudWatch.Types.AnomalyDetectorType.AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: newtype AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: pattern AnomalyDetectorType_METRIC_MATH :: AnomalyDetectorType
+ Amazonka.CloudWatch.Types.AnomalyDetectorType: pattern AnomalyDetectorType_SINGLE_METRIC :: AnomalyDetectorType
+ Amazonka.CloudWatch.Types.ComparisonOperator: ComparisonOperator' :: Text -> ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: [fromComparisonOperator] :: ComparisonOperator -> Text
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance GHC.Read.Read Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: instance GHC.Show.Show Amazonka.CloudWatch.Types.ComparisonOperator.ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: newtype ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_GreaterThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_GreaterThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_GreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_LessThanLowerThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_LessThanOrEqualToThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.ComparisonOperator: pattern ComparisonOperator_LessThanThreshold :: ComparisonOperator
+ Amazonka.CloudWatch.Types.CompositeAlarm: CompositeAlarm' :: Maybe Bool -> Maybe ActionsSuppressedBy -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Text] -> Maybe [Text] -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsEnabled:CompositeAlarm'] :: CompositeAlarm -> Maybe Bool
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsSuppressedBy:CompositeAlarm'] :: CompositeAlarm -> Maybe ActionsSuppressedBy
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsSuppressedReason:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsSuppressor:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsSuppressorExtensionPeriod:CompositeAlarm'] :: CompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:actionsSuppressorWaitPeriod:CompositeAlarm'] :: CompositeAlarm -> Maybe Int
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmArn:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmConfigurationUpdatedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmDescription:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmName:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:alarmRule:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:insufficientDataActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:oKActions:CompositeAlarm'] :: CompositeAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:stateReason:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:stateReasonData:CompositeAlarm'] :: CompositeAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:stateTransitionedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:stateUpdatedTimestamp:CompositeAlarm'] :: CompositeAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.CompositeAlarm: [$sel:stateValue:CompositeAlarm'] :: CompositeAlarm -> Maybe StateValue
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsEnabled :: Lens' CompositeAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsSuppressedBy :: Lens' CompositeAlarm (Maybe ActionsSuppressedBy)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsSuppressedReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsSuppressor :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsSuppressorExtensionPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_actionsSuppressorWaitPeriod :: Lens' CompositeAlarm (Maybe Int)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmArn :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmDescription :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmName :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_alarmRule :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_insufficientDataActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_oKActions :: Lens' CompositeAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_stateReason :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_stateReasonData :: Lens' CompositeAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_stateTransitionedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_stateUpdatedTimestamp :: Lens' CompositeAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.CompositeAlarm: compositeAlarm_stateValue :: Lens' CompositeAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Types.CompositeAlarm: data CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance GHC.Read.Read Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: instance GHC.Show.Show Amazonka.CloudWatch.Types.CompositeAlarm.CompositeAlarm
+ Amazonka.CloudWatch.Types.CompositeAlarm: newCompositeAlarm :: CompositeAlarm
+ Amazonka.CloudWatch.Types.DashboardEntry: DashboardEntry' :: Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe Integer -> DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: [$sel:dashboardArn:DashboardEntry'] :: DashboardEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.DashboardEntry: [$sel:dashboardName:DashboardEntry'] :: DashboardEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.DashboardEntry: [$sel:lastModified:DashboardEntry'] :: DashboardEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.DashboardEntry: [$sel:size:DashboardEntry'] :: DashboardEntry -> Maybe Integer
+ Amazonka.CloudWatch.Types.DashboardEntry: dashboardEntry_dashboardArn :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.DashboardEntry: dashboardEntry_dashboardName :: Lens' DashboardEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.DashboardEntry: dashboardEntry_lastModified :: Lens' DashboardEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.DashboardEntry: dashboardEntry_size :: Lens' DashboardEntry (Maybe Integer)
+ Amazonka.CloudWatch.Types.DashboardEntry: data DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance GHC.Read.Read Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: instance GHC.Show.Show Amazonka.CloudWatch.Types.DashboardEntry.DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardEntry: newDashboardEntry :: DashboardEntry
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: DashboardValidationMessage' :: Maybe Text -> Maybe Text -> DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: [$sel:dataPath:DashboardValidationMessage'] :: DashboardValidationMessage -> Maybe Text
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: [$sel:message:DashboardValidationMessage'] :: DashboardValidationMessage -> Maybe Text
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: dashboardValidationMessage_dataPath :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: dashboardValidationMessage_message :: Lens' DashboardValidationMessage (Maybe Text)
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: data DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance GHC.Read.Read Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: instance GHC.Show.Show Amazonka.CloudWatch.Types.DashboardValidationMessage.DashboardValidationMessage
+ Amazonka.CloudWatch.Types.DashboardValidationMessage: newDashboardValidationMessage :: DashboardValidationMessage
+ Amazonka.CloudWatch.Types.Datapoint: Datapoint' :: Maybe Double -> Maybe (HashMap Text Double) -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe ISO8601 -> Maybe StandardUnit -> Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:average:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:extendedStatistics:Datapoint'] :: Datapoint -> Maybe (HashMap Text Double)
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:maximum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:minimum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:sampleCount:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:sum:Datapoint'] :: Datapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:timestamp:Datapoint'] :: Datapoint -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.Datapoint: [$sel:unit:Datapoint'] :: Datapoint -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types.Datapoint: data Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_average :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_extendedStatistics :: Lens' Datapoint (Maybe (HashMap Text Double))
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_maximum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_minimum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_sampleCount :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_sum :: Lens' Datapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_timestamp :: Lens' Datapoint (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.Datapoint: datapoint_unit :: Lens' Datapoint (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types.Datapoint: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance GHC.Read.Read Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: instance GHC.Show.Show Amazonka.CloudWatch.Types.Datapoint.Datapoint
+ Amazonka.CloudWatch.Types.Datapoint: newDatapoint :: Datapoint
+ Amazonka.CloudWatch.Types.Dimension: Dimension' :: Text -> Text -> Dimension
+ Amazonka.CloudWatch.Types.Dimension: [$sel:name:Dimension'] :: Dimension -> Text
+ Amazonka.CloudWatch.Types.Dimension: [$sel:value:Dimension'] :: Dimension -> Text
+ Amazonka.CloudWatch.Types.Dimension: data Dimension
+ Amazonka.CloudWatch.Types.Dimension: dimension_name :: Lens' Dimension Text
+ Amazonka.CloudWatch.Types.Dimension: dimension_value :: Lens' Dimension Text
+ Amazonka.CloudWatch.Types.Dimension: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance GHC.Read.Read Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: instance GHC.Show.Show Amazonka.CloudWatch.Types.Dimension.Dimension
+ Amazonka.CloudWatch.Types.Dimension: newDimension :: Text -> Text -> Dimension
+ Amazonka.CloudWatch.Types.DimensionFilter: DimensionFilter' :: Maybe Text -> Text -> DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: [$sel:name:DimensionFilter'] :: DimensionFilter -> Text
+ Amazonka.CloudWatch.Types.DimensionFilter: [$sel:value:DimensionFilter'] :: DimensionFilter -> Maybe Text
+ Amazonka.CloudWatch.Types.DimensionFilter: data DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: dimensionFilter_name :: Lens' DimensionFilter Text
+ Amazonka.CloudWatch.Types.DimensionFilter: dimensionFilter_value :: Lens' DimensionFilter (Maybe Text)
+ Amazonka.CloudWatch.Types.DimensionFilter: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance GHC.Read.Read Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: instance GHC.Show.Show Amazonka.CloudWatch.Types.DimensionFilter.DimensionFilter
+ Amazonka.CloudWatch.Types.DimensionFilter: newDimensionFilter :: Text -> DimensionFilter
+ Amazonka.CloudWatch.Types.EvaluationState: EvaluationState' :: Text -> EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: [fromEvaluationState] :: EvaluationState -> Text
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance GHC.Read.Read Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: instance GHC.Show.Show Amazonka.CloudWatch.Types.EvaluationState.EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: newtype EvaluationState
+ Amazonka.CloudWatch.Types.EvaluationState: pattern EvaluationState_PARTIAL_DATA :: EvaluationState
+ Amazonka.CloudWatch.Types.HistoryItemType: HistoryItemType' :: Text -> HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: [fromHistoryItemType] :: HistoryItemType -> Text
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance GHC.Read.Read Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: instance GHC.Show.Show Amazonka.CloudWatch.Types.HistoryItemType.HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: newtype HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: pattern HistoryItemType_Action :: HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType
+ Amazonka.CloudWatch.Types.HistoryItemType: pattern HistoryItemType_StateUpdate :: HistoryItemType
+ Amazonka.CloudWatch.Types.InsightRule: InsightRule' :: Maybe Bool -> Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: [$sel:definition:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types.InsightRule: [$sel:managedRule:InsightRule'] :: InsightRule -> Maybe Bool
+ Amazonka.CloudWatch.Types.InsightRule: [$sel:name:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types.InsightRule: [$sel:schema:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types.InsightRule: [$sel:state:InsightRule'] :: InsightRule -> Text
+ Amazonka.CloudWatch.Types.InsightRule: data InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: insightRule_definition :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types.InsightRule: insightRule_managedRule :: Lens' InsightRule (Maybe Bool)
+ Amazonka.CloudWatch.Types.InsightRule: insightRule_name :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types.InsightRule: insightRule_schema :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types.InsightRule: insightRule_state :: Lens' InsightRule Text
+ Amazonka.CloudWatch.Types.InsightRule: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance GHC.Read.Read Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: instance GHC.Show.Show Amazonka.CloudWatch.Types.InsightRule.InsightRule
+ Amazonka.CloudWatch.Types.InsightRule: newInsightRule :: Text -> Text -> Text -> Text -> InsightRule
+ Amazonka.CloudWatch.Types.InsightRuleContributor: InsightRuleContributor' :: [Text] -> Double -> [InsightRuleContributorDatapoint] -> InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: [$sel:approximateAggregateValue:InsightRuleContributor'] :: InsightRuleContributor -> Double
+ Amazonka.CloudWatch.Types.InsightRuleContributor: [$sel:datapoints:InsightRuleContributor'] :: InsightRuleContributor -> [InsightRuleContributorDatapoint]
+ Amazonka.CloudWatch.Types.InsightRuleContributor: [$sel:keys:InsightRuleContributor'] :: InsightRuleContributor -> [Text]
+ Amazonka.CloudWatch.Types.InsightRuleContributor: data InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: insightRuleContributor_approximateAggregateValue :: Lens' InsightRuleContributor Double
+ Amazonka.CloudWatch.Types.InsightRuleContributor: insightRuleContributor_datapoints :: Lens' InsightRuleContributor [InsightRuleContributorDatapoint]
+ Amazonka.CloudWatch.Types.InsightRuleContributor: insightRuleContributor_keys :: Lens' InsightRuleContributor [Text]
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance GHC.Read.Read Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: instance GHC.Show.Show Amazonka.CloudWatch.Types.InsightRuleContributor.InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributor: newInsightRuleContributor :: Double -> InsightRuleContributor
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: InsightRuleContributorDatapoint' :: ISO8601 -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: [$sel:approximateValue:InsightRuleContributorDatapoint'] :: InsightRuleContributorDatapoint -> Double
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: [$sel:timestamp:InsightRuleContributorDatapoint'] :: InsightRuleContributorDatapoint -> ISO8601
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: data InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: insightRuleContributorDatapoint_approximateValue :: Lens' InsightRuleContributorDatapoint Double
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: insightRuleContributorDatapoint_timestamp :: Lens' InsightRuleContributorDatapoint UTCTime
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance GHC.Read.Read Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: instance GHC.Show.Show Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint.InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint: newInsightRuleContributorDatapoint :: UTCTime -> Double -> InsightRuleContributorDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: InsightRuleMetricDatapoint' :: Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> Maybe Double -> ISO8601 -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:average:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:maxContributorValue:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:maximum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:minimum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:sampleCount:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:sum:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:timestamp:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> ISO8601
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: [$sel:uniqueContributors:InsightRuleMetricDatapoint'] :: InsightRuleMetricDatapoint -> Maybe Double
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: data InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_average :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_maxContributorValue :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_maximum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_minimum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_sampleCount :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_sum :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_timestamp :: Lens' InsightRuleMetricDatapoint UTCTime
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: insightRuleMetricDatapoint_uniqueContributors :: Lens' InsightRuleMetricDatapoint (Maybe Double)
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance GHC.Read.Read Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: instance GHC.Show.Show Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint.InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint: newInsightRuleMetricDatapoint :: UTCTime -> InsightRuleMetricDatapoint
+ Amazonka.CloudWatch.Types.LabelOptions: LabelOptions' :: Maybe Text -> LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: [$sel:timezone:LabelOptions'] :: LabelOptions -> Maybe Text
+ Amazonka.CloudWatch.Types.LabelOptions: data LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance GHC.Read.Read Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: instance GHC.Show.Show Amazonka.CloudWatch.Types.LabelOptions.LabelOptions
+ Amazonka.CloudWatch.Types.LabelOptions: labelOptions_timezone :: Lens' LabelOptions (Maybe Text)
+ Amazonka.CloudWatch.Types.LabelOptions: newLabelOptions :: LabelOptions
+ Amazonka.CloudWatch.Types.ManagedRule: ManagedRule' :: Maybe [Tag] -> Text -> Text -> ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: [$sel:resourceARN:ManagedRule'] :: ManagedRule -> Text
+ Amazonka.CloudWatch.Types.ManagedRule: [$sel:tags:ManagedRule'] :: ManagedRule -> Maybe [Tag]
+ Amazonka.CloudWatch.Types.ManagedRule: [$sel:templateName:ManagedRule'] :: ManagedRule -> Text
+ Amazonka.CloudWatch.Types.ManagedRule: data ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance GHC.Read.Read Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: instance GHC.Show.Show Amazonka.CloudWatch.Types.ManagedRule.ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRule: managedRule_resourceARN :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Types.ManagedRule: managedRule_tags :: Lens' ManagedRule (Maybe [Tag])
+ Amazonka.CloudWatch.Types.ManagedRule: managedRule_templateName :: Lens' ManagedRule Text
+ Amazonka.CloudWatch.Types.ManagedRule: newManagedRule :: Text -> Text -> ManagedRule
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: ManagedRuleDescription' :: Maybe Text -> Maybe ManagedRuleState -> Maybe Text -> ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: [$sel:resourceARN:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe Text
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: [$sel:ruleState:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: [$sel:templateName:ManagedRuleDescription'] :: ManagedRuleDescription -> Maybe Text
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: data ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance GHC.Read.Read Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: instance GHC.Show.Show Amazonka.CloudWatch.Types.ManagedRuleDescription.ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: managedRuleDescription_resourceARN :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: managedRuleDescription_ruleState :: Lens' ManagedRuleDescription (Maybe ManagedRuleState)
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: managedRuleDescription_templateName :: Lens' ManagedRuleDescription (Maybe Text)
+ Amazonka.CloudWatch.Types.ManagedRuleDescription: newManagedRuleDescription :: ManagedRuleDescription
+ Amazonka.CloudWatch.Types.ManagedRuleState: ManagedRuleState' :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: [$sel:ruleName:ManagedRuleState'] :: ManagedRuleState -> Text
+ Amazonka.CloudWatch.Types.ManagedRuleState: [$sel:state:ManagedRuleState'] :: ManagedRuleState -> Text
+ Amazonka.CloudWatch.Types.ManagedRuleState: data ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance GHC.Read.Read Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: instance GHC.Show.Show Amazonka.CloudWatch.Types.ManagedRuleState.ManagedRuleState
+ Amazonka.CloudWatch.Types.ManagedRuleState: managedRuleState_ruleName :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Types.ManagedRuleState: managedRuleState_state :: Lens' ManagedRuleState Text
+ Amazonka.CloudWatch.Types.ManagedRuleState: newManagedRuleState :: Text -> Text -> ManagedRuleState
+ Amazonka.CloudWatch.Types.MessageData: MessageData' :: Maybe Text -> Maybe Text -> MessageData
+ Amazonka.CloudWatch.Types.MessageData: [$sel:code:MessageData'] :: MessageData -> Maybe Text
+ Amazonka.CloudWatch.Types.MessageData: [$sel:value:MessageData'] :: MessageData -> Maybe Text
+ Amazonka.CloudWatch.Types.MessageData: data MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance GHC.Read.Read Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: instance GHC.Show.Show Amazonka.CloudWatch.Types.MessageData.MessageData
+ Amazonka.CloudWatch.Types.MessageData: messageData_code :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Types.MessageData: messageData_value :: Lens' MessageData (Maybe Text)
+ Amazonka.CloudWatch.Types.MessageData: newMessageData :: MessageData
+ Amazonka.CloudWatch.Types.Metric: Metric' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Metric
+ Amazonka.CloudWatch.Types.Metric: [$sel:dimensions:Metric'] :: Metric -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types.Metric: [$sel:metricName:Metric'] :: Metric -> Maybe Text
+ Amazonka.CloudWatch.Types.Metric: [$sel:namespace:Metric'] :: Metric -> Maybe Text
+ Amazonka.CloudWatch.Types.Metric: data Metric
+ Amazonka.CloudWatch.Types.Metric: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance GHC.Read.Read Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: instance GHC.Show.Show Amazonka.CloudWatch.Types.Metric.Metric
+ Amazonka.CloudWatch.Types.Metric: metric_dimensions :: Lens' Metric (Maybe [Dimension])
+ Amazonka.CloudWatch.Types.Metric: metric_metricName :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Types.Metric: metric_namespace :: Lens' Metric (Maybe Text)
+ Amazonka.CloudWatch.Types.Metric: newMetric :: Metric
+ Amazonka.CloudWatch.Types.MetricAlarm: MetricAlarm' :: Maybe Bool -> Maybe [Text] -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe Text -> Maybe ComparisonOperator -> Maybe Natural -> Maybe [Dimension] -> Maybe Text -> Maybe Natural -> Maybe EvaluationState -> Maybe Text -> Maybe [Text] -> Maybe Text -> Maybe [MetricDataQuery] -> Maybe Text -> Maybe [Text] -> Maybe Natural -> Maybe Text -> Maybe Text -> Maybe ISO8601 -> Maybe ISO8601 -> Maybe StateValue -> Maybe Statistic -> Maybe Double -> Maybe Text -> Maybe Text -> Maybe StandardUnit -> MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:actionsEnabled:MetricAlarm'] :: MetricAlarm -> Maybe Bool
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:alarmActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:alarmArn:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:alarmConfigurationUpdatedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:alarmDescription:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:alarmName:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:comparisonOperator:MetricAlarm'] :: MetricAlarm -> Maybe ComparisonOperator
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:datapointsToAlarm:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:dimensions:MetricAlarm'] :: MetricAlarm -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:evaluateLowSampleCountPercentile:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:evaluationPeriods:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:evaluationState:MetricAlarm'] :: MetricAlarm -> Maybe EvaluationState
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:extendedStatistic:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:insufficientDataActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:metricName:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:metrics:MetricAlarm'] :: MetricAlarm -> Maybe [MetricDataQuery]
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:namespace:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:oKActions:MetricAlarm'] :: MetricAlarm -> Maybe [Text]
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:period:MetricAlarm'] :: MetricAlarm -> Maybe Natural
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:stateReason:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:stateReasonData:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:stateTransitionedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:stateUpdatedTimestamp:MetricAlarm'] :: MetricAlarm -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:stateValue:MetricAlarm'] :: MetricAlarm -> Maybe StateValue
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:statistic:MetricAlarm'] :: MetricAlarm -> Maybe Statistic
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:threshold:MetricAlarm'] :: MetricAlarm -> Maybe Double
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:thresholdMetricId:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:treatMissingData:MetricAlarm'] :: MetricAlarm -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricAlarm: [$sel:unit:MetricAlarm'] :: MetricAlarm -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types.MetricAlarm: data MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricAlarm.MetricAlarm
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_actionsEnabled :: Lens' MetricAlarm (Maybe Bool)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_alarmActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_alarmArn :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_alarmDescription :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_alarmName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_comparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_datapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_dimensions :: Lens' MetricAlarm (Maybe [Dimension])
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_evaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_evaluationPeriods :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_evaluationState :: Lens' MetricAlarm (Maybe EvaluationState)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_extendedStatistic :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_insufficientDataActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_metricName :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_metrics :: Lens' MetricAlarm (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_namespace :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_oKActions :: Lens' MetricAlarm (Maybe [Text])
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_period :: Lens' MetricAlarm (Maybe Natural)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_stateReason :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_stateReasonData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_stateTransitionedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_stateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_stateValue :: Lens' MetricAlarm (Maybe StateValue)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_statistic :: Lens' MetricAlarm (Maybe Statistic)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_threshold :: Lens' MetricAlarm (Maybe Double)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_thresholdMetricId :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_treatMissingData :: Lens' MetricAlarm (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricAlarm: metricAlarm_unit :: Lens' MetricAlarm (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types.MetricAlarm: newMetricAlarm :: MetricAlarm
+ Amazonka.CloudWatch.Types.MetricDataQuery: MetricDataQuery' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe MetricStat -> Maybe Natural -> Maybe Bool -> Text -> MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:accountId:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:expression:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:id:MetricDataQuery'] :: MetricDataQuery -> Text
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:label:MetricDataQuery'] :: MetricDataQuery -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:metricStat:MetricDataQuery'] :: MetricDataQuery -> Maybe MetricStat
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:period:MetricDataQuery'] :: MetricDataQuery -> Maybe Natural
+ Amazonka.CloudWatch.Types.MetricDataQuery: [$sel:returnData:MetricDataQuery'] :: MetricDataQuery -> Maybe Bool
+ Amazonka.CloudWatch.Types.MetricDataQuery: data MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricDataQuery.MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_accountId :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_expression :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_id :: Lens' MetricDataQuery Text
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_label :: Lens' MetricDataQuery (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_metricStat :: Lens' MetricDataQuery (Maybe MetricStat)
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_period :: Lens' MetricDataQuery (Maybe Natural)
+ Amazonka.CloudWatch.Types.MetricDataQuery: metricDataQuery_returnData :: Lens' MetricDataQuery (Maybe Bool)
+ Amazonka.CloudWatch.Types.MetricDataQuery: newMetricDataQuery :: Text -> MetricDataQuery
+ Amazonka.CloudWatch.Types.MetricDataResult: MetricDataResult' :: Maybe Text -> Maybe Text -> Maybe [MessageData] -> Maybe StatusCode -> Maybe [ISO8601] -> Maybe [Double] -> MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:id:MetricDataResult'] :: MetricDataResult -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:label:MetricDataResult'] :: MetricDataResult -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:messages:MetricDataResult'] :: MetricDataResult -> Maybe [MessageData]
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:statusCode:MetricDataResult'] :: MetricDataResult -> Maybe StatusCode
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:timestamps:MetricDataResult'] :: MetricDataResult -> Maybe [ISO8601]
+ Amazonka.CloudWatch.Types.MetricDataResult: [$sel:values:MetricDataResult'] :: MetricDataResult -> Maybe [Double]
+ Amazonka.CloudWatch.Types.MetricDataResult: data MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricDataResult.MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_id :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_label :: Lens' MetricDataResult (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData])
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode)
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime])
+ Amazonka.CloudWatch.Types.MetricDataResult: metricDataResult_values :: Lens' MetricDataResult (Maybe [Double])
+ Amazonka.CloudWatch.Types.MetricDataResult: newMetricDataResult :: MetricDataResult
+ Amazonka.CloudWatch.Types.MetricDatum: MetricDatum' :: Maybe [Double] -> Maybe [Dimension] -> Maybe StatisticSet -> Maybe Natural -> Maybe ISO8601 -> Maybe StandardUnit -> Maybe Double -> Maybe [Double] -> Text -> MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:counts:MetricDatum'] :: MetricDatum -> Maybe [Double]
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:dimensions:MetricDatum'] :: MetricDatum -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:metricName:MetricDatum'] :: MetricDatum -> Text
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:statisticValues:MetricDatum'] :: MetricDatum -> Maybe StatisticSet
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:storageResolution:MetricDatum'] :: MetricDatum -> Maybe Natural
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:timestamp:MetricDatum'] :: MetricDatum -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:unit:MetricDatum'] :: MetricDatum -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:value:MetricDatum'] :: MetricDatum -> Maybe Double
+ Amazonka.CloudWatch.Types.MetricDatum: [$sel:values:MetricDatum'] :: MetricDatum -> Maybe [Double]
+ Amazonka.CloudWatch.Types.MetricDatum: data MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricDatum.MetricDatum
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_counts :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_dimensions :: Lens' MetricDatum (Maybe [Dimension])
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_metricName :: Lens' MetricDatum Text
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_statisticValues :: Lens' MetricDatum (Maybe StatisticSet)
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_storageResolution :: Lens' MetricDatum (Maybe Natural)
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_timestamp :: Lens' MetricDatum (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_unit :: Lens' MetricDatum (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_value :: Lens' MetricDatum (Maybe Double)
+ Amazonka.CloudWatch.Types.MetricDatum: metricDatum_values :: Lens' MetricDatum (Maybe [Double])
+ Amazonka.CloudWatch.Types.MetricDatum: newMetricDatum :: Text -> MetricDatum
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: MetricMathAnomalyDetector' :: Maybe [MetricDataQuery] -> MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: [$sel:metricDataQueries:MetricMathAnomalyDetector'] :: MetricMathAnomalyDetector -> Maybe [MetricDataQuery]
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: data MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricMathAnomalyDetector.MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: metricMathAnomalyDetector_metricDataQueries :: Lens' MetricMathAnomalyDetector (Maybe [MetricDataQuery])
+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector: newMetricMathAnomalyDetector :: MetricMathAnomalyDetector
+ Amazonka.CloudWatch.Types.MetricStat: MetricStat' :: Maybe StandardUnit -> Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: [$sel:metric:MetricStat'] :: MetricStat -> Metric
+ Amazonka.CloudWatch.Types.MetricStat: [$sel:period:MetricStat'] :: MetricStat -> Natural
+ Amazonka.CloudWatch.Types.MetricStat: [$sel:stat:MetricStat'] :: MetricStat -> Text
+ Amazonka.CloudWatch.Types.MetricStat: [$sel:unit:MetricStat'] :: MetricStat -> Maybe StandardUnit
+ Amazonka.CloudWatch.Types.MetricStat: data MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStat.MetricStat
+ Amazonka.CloudWatch.Types.MetricStat: metricStat_metric :: Lens' MetricStat Metric
+ Amazonka.CloudWatch.Types.MetricStat: metricStat_period :: Lens' MetricStat Natural
+ Amazonka.CloudWatch.Types.MetricStat: metricStat_stat :: Lens' MetricStat Text
+ Amazonka.CloudWatch.Types.MetricStat: metricStat_unit :: Lens' MetricStat (Maybe StandardUnit)
+ Amazonka.CloudWatch.Types.MetricStat: newMetricStat :: Metric -> Natural -> Text -> MetricStat
+ Amazonka.CloudWatch.Types.MetricStreamEntry: MetricStreamEntry' :: Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe ISO8601 -> Maybe Text -> Maybe MetricStreamOutputFormat -> Maybe Text -> MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:arn:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:creationDate:MetricStreamEntry'] :: MetricStreamEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:firehoseArn:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:lastUpdateDate:MetricStreamEntry'] :: MetricStreamEntry -> Maybe ISO8601
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:name:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:outputFormat:MetricStreamEntry'] :: MetricStreamEntry -> Maybe MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamEntry: [$sel:state:MetricStreamEntry'] :: MetricStreamEntry -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricStreamEntry: data MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStreamEntry.MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_arn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_creationDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_firehoseArn :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_lastUpdateDate :: Lens' MetricStreamEntry (Maybe UTCTime)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_name :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_outputFormat :: Lens' MetricStreamEntry (Maybe MetricStreamOutputFormat)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: metricStreamEntry_state :: Lens' MetricStreamEntry (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricStreamEntry: newMetricStreamEntry :: MetricStreamEntry
+ Amazonka.CloudWatch.Types.MetricStreamFilter: MetricStreamFilter' :: Maybe Text -> MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: [$sel:namespace:MetricStreamFilter'] :: MetricStreamFilter -> Maybe Text
+ Amazonka.CloudWatch.Types.MetricStreamFilter: data MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStreamFilter.MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamFilter: metricStreamFilter_namespace :: Lens' MetricStreamFilter (Maybe Text)
+ Amazonka.CloudWatch.Types.MetricStreamFilter: newMetricStreamFilter :: MetricStreamFilter
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: MetricStreamOutputFormat' :: Text -> MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: [fromMetricStreamOutputFormat] :: MetricStreamOutputFormat -> Text
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStreamOutputFormat.MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: newtype MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: pattern MetricStreamOutputFormat_Json :: MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat: pattern MetricStreamOutputFormat_Opentelemetry0_7 :: MetricStreamOutputFormat
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: MetricStreamStatisticsConfiguration' :: [MetricStreamStatisticsMetric] -> [Text] -> MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: [$sel:additionalStatistics:MetricStreamStatisticsConfiguration'] :: MetricStreamStatisticsConfiguration -> [Text]
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: [$sel:includeMetrics:MetricStreamStatisticsConfiguration'] :: MetricStreamStatisticsConfiguration -> [MetricStreamStatisticsMetric]
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: data MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration.MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: metricStreamStatisticsConfiguration_additionalStatistics :: Lens' MetricStreamStatisticsConfiguration [Text]
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: metricStreamStatisticsConfiguration_includeMetrics :: Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric]
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration: newMetricStreamStatisticsConfiguration :: MetricStreamStatisticsConfiguration
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: MetricStreamStatisticsMetric' :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: [$sel:metricName:MetricStreamStatisticsMetric'] :: MetricStreamStatisticsMetric -> Text
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: [$sel:namespace:MetricStreamStatisticsMetric'] :: MetricStreamStatisticsMetric -> Text
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: data MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance GHC.Read.Read Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: instance GHC.Show.Show Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric.MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: metricStreamStatisticsMetric_metricName :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: metricStreamStatisticsMetric_namespace :: Lens' MetricStreamStatisticsMetric Text
+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric: newMetricStreamStatisticsMetric :: Text -> Text -> MetricStreamStatisticsMetric
+ Amazonka.CloudWatch.Types.PartialFailure: PartialFailure' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: [$sel:exceptionType:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types.PartialFailure: [$sel:failureCode:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types.PartialFailure: [$sel:failureDescription:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types.PartialFailure: [$sel:failureResource:PartialFailure'] :: PartialFailure -> Maybe Text
+ Amazonka.CloudWatch.Types.PartialFailure: data PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance GHC.Read.Read Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: instance GHC.Show.Show Amazonka.CloudWatch.Types.PartialFailure.PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: newPartialFailure :: PartialFailure
+ Amazonka.CloudWatch.Types.PartialFailure: partialFailure_exceptionType :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types.PartialFailure: partialFailure_failureCode :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types.PartialFailure: partialFailure_failureDescription :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types.PartialFailure: partialFailure_failureResource :: Lens' PartialFailure (Maybe Text)
+ Amazonka.CloudWatch.Types.Range: Range' :: ISO8601 -> ISO8601 -> Range
+ Amazonka.CloudWatch.Types.Range: [$sel:endTime:Range'] :: Range -> ISO8601
+ Amazonka.CloudWatch.Types.Range: [$sel:startTime:Range'] :: Range -> ISO8601
+ Amazonka.CloudWatch.Types.Range: data Range
+ Amazonka.CloudWatch.Types.Range: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance GHC.Read.Read Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: instance GHC.Show.Show Amazonka.CloudWatch.Types.Range.Range
+ Amazonka.CloudWatch.Types.Range: newRange :: UTCTime -> UTCTime -> Range
+ Amazonka.CloudWatch.Types.Range: range_endTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Types.Range: range_startTime :: Lens' Range UTCTime
+ Amazonka.CloudWatch.Types.RecentlyActive: RecentlyActive' :: Text -> RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: [fromRecentlyActive] :: RecentlyActive -> Text
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance GHC.Read.Read Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: instance GHC.Show.Show Amazonka.CloudWatch.Types.RecentlyActive.RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: newtype RecentlyActive
+ Amazonka.CloudWatch.Types.RecentlyActive: pattern RecentlyActive_PT3H :: RecentlyActive
+ Amazonka.CloudWatch.Types.ScanBy: ScanBy' :: Text -> ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: [fromScanBy] :: ScanBy -> Text
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance GHC.Read.Read Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: instance GHC.Show.Show Amazonka.CloudWatch.Types.ScanBy.ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: newtype ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: pattern ScanBy_TimestampAscending :: ScanBy
+ Amazonka.CloudWatch.Types.ScanBy: pattern ScanBy_TimestampDescending :: ScanBy
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: SingleMetricAnomalyDetector' :: Maybe [Dimension] -> Maybe Text -> Maybe Text -> Maybe Text -> SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: [$sel:dimensions:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe [Dimension]
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: [$sel:metricName:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: [$sel:namespace:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: [$sel:stat:SingleMetricAnomalyDetector'] :: SingleMetricAnomalyDetector -> Maybe Text
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: data SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance GHC.Read.Read Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: instance GHC.Show.Show Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector.SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: newSingleMetricAnomalyDetector :: SingleMetricAnomalyDetector
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: singleMetricAnomalyDetector_dimensions :: Lens' SingleMetricAnomalyDetector (Maybe [Dimension])
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: singleMetricAnomalyDetector_metricName :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: singleMetricAnomalyDetector_namespace :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector: singleMetricAnomalyDetector_stat :: Lens' SingleMetricAnomalyDetector (Maybe Text)
+ Amazonka.CloudWatch.Types.StandardUnit: StandardUnit' :: Text -> StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: [fromStandardUnit] :: StandardUnit -> Text
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance GHC.Read.Read Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: instance GHC.Show.Show Amazonka.CloudWatch.Types.StandardUnit.StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: newtype StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Bits :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Bits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Bytes :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Bytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Count :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Count_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Gigabits :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Gigabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Gigabytes :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Gigabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Kilobits :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Kilobits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Kilobytes :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Kilobytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Megabits :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Megabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Megabytes :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Megabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Microseconds :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Milliseconds :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_None :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Percent :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Seconds :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Terabits :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Terabits_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Terabytes :: StandardUnit
+ Amazonka.CloudWatch.Types.StandardUnit: pattern StandardUnit_Terabytes_Second :: StandardUnit
+ Amazonka.CloudWatch.Types.StateValue: StateValue' :: Text -> StateValue
+ Amazonka.CloudWatch.Types.StateValue: [fromStateValue] :: StateValue -> Text
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance GHC.Read.Read Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: instance GHC.Show.Show Amazonka.CloudWatch.Types.StateValue.StateValue
+ Amazonka.CloudWatch.Types.StateValue: newtype StateValue
+ Amazonka.CloudWatch.Types.StateValue: pattern StateValue_ALARM :: StateValue
+ Amazonka.CloudWatch.Types.StateValue: pattern StateValue_INSUFFICIENT_DATA :: StateValue
+ Amazonka.CloudWatch.Types.StateValue: pattern StateValue_OK :: StateValue
+ Amazonka.CloudWatch.Types.Statistic: Statistic' :: Text -> Statistic
+ Amazonka.CloudWatch.Types.Statistic: [fromStatistic] :: Statistic -> Text
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance GHC.Read.Read Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: instance GHC.Show.Show Amazonka.CloudWatch.Types.Statistic.Statistic
+ Amazonka.CloudWatch.Types.Statistic: newtype Statistic
+ Amazonka.CloudWatch.Types.Statistic: pattern Statistic_Average :: Statistic
+ Amazonka.CloudWatch.Types.Statistic: pattern Statistic_Maximum :: Statistic
+ Amazonka.CloudWatch.Types.Statistic: pattern Statistic_Minimum :: Statistic
+ Amazonka.CloudWatch.Types.Statistic: pattern Statistic_SampleCount :: Statistic
+ Amazonka.CloudWatch.Types.Statistic: pattern Statistic_Sum :: Statistic
+ Amazonka.CloudWatch.Types.StatisticSet: StatisticSet' :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: [$sel:maximum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types.StatisticSet: [$sel:minimum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types.StatisticSet: [$sel:sampleCount:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types.StatisticSet: [$sel:sum:StatisticSet'] :: StatisticSet -> Double
+ Amazonka.CloudWatch.Types.StatisticSet: data StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance GHC.Read.Read Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: instance GHC.Show.Show Amazonka.CloudWatch.Types.StatisticSet.StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: newStatisticSet :: Double -> Double -> Double -> Double -> StatisticSet
+ Amazonka.CloudWatch.Types.StatisticSet: statisticSet_maximum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types.StatisticSet: statisticSet_minimum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types.StatisticSet: statisticSet_sampleCount :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types.StatisticSet: statisticSet_sum :: Lens' StatisticSet Double
+ Amazonka.CloudWatch.Types.StatusCode: StatusCode' :: Text -> StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: [fromStatusCode] :: StatusCode -> Text
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.Log.ToLog Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.Text.FromText Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.Text.ToText Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Amazonka.Data.XML.ToXML Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance GHC.Classes.Ord Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance GHC.Read.Read Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: instance GHC.Show.Show Amazonka.CloudWatch.Types.StatusCode.StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: newtype StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: pattern StatusCode_Complete :: StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: pattern StatusCode_Forbidden :: StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: pattern StatusCode_InternalError :: StatusCode
+ Amazonka.CloudWatch.Types.StatusCode: pattern StatusCode_PartialData :: StatusCode
+ Amazonka.CloudWatch.Types.Tag: Tag' :: Text -> Text -> Tag
+ Amazonka.CloudWatch.Types.Tag: [$sel:key:Tag'] :: Tag -> Text
+ Amazonka.CloudWatch.Types.Tag: [$sel:value:Tag'] :: Tag -> Text
+ Amazonka.CloudWatch.Types.Tag: data Tag
+ Amazonka.CloudWatch.Types.Tag: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance Amazonka.Data.XML.FromXML Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance Control.DeepSeq.NFData Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance GHC.Classes.Eq Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance GHC.Generics.Generic Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance GHC.Read.Read Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: instance GHC.Show.Show Amazonka.CloudWatch.Types.Tag.Tag
+ Amazonka.CloudWatch.Types.Tag: newTag :: Text -> Text -> Tag
+ Amazonka.CloudWatch.Types.Tag: tag_key :: Lens' Tag Text
+ Amazonka.CloudWatch.Types.Tag: tag_value :: Lens' Tag Text
+ Amazonka.CloudWatch.UntagResource: UntagResource' :: Text -> [Text] -> UntagResource
+ Amazonka.CloudWatch.UntagResource: UntagResourceResponse' :: Int -> UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: [$sel:httpStatus:UntagResourceResponse'] :: UntagResourceResponse -> Int
+ Amazonka.CloudWatch.UntagResource: [$sel:resourceARN:UntagResource'] :: UntagResource -> Text
+ Amazonka.CloudWatch.UntagResource: [$sel:tagKeys:UntagResource'] :: UntagResource -> [Text]
+ Amazonka.CloudWatch.UntagResource: data UntagResource
+ Amazonka.CloudWatch.UntagResource: data UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance Amazonka.Data.Path.ToPath Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance Amazonka.Data.Query.ToQuery Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance Amazonka.Types.AWSRequest Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance Control.DeepSeq.NFData Amazonka.CloudWatch.UntagResource.UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: instance Data.Hashable.Class.Hashable Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance GHC.Classes.Eq Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance GHC.Classes.Eq Amazonka.CloudWatch.UntagResource.UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: instance GHC.Generics.Generic Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance GHC.Generics.Generic Amazonka.CloudWatch.UntagResource.UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: instance GHC.Read.Read Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance GHC.Read.Read Amazonka.CloudWatch.UntagResource.UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: instance GHC.Show.Show Amazonka.CloudWatch.UntagResource.UntagResource
+ Amazonka.CloudWatch.UntagResource: instance GHC.Show.Show Amazonka.CloudWatch.UntagResource.UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: newUntagResource :: Text -> UntagResource
+ Amazonka.CloudWatch.UntagResource: newUntagResourceResponse :: Int -> UntagResourceResponse
+ Amazonka.CloudWatch.UntagResource: untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
+ Amazonka.CloudWatch.UntagResource: untagResource_resourceARN :: Lens' UntagResource Text
+ Amazonka.CloudWatch.UntagResource: untagResource_tagKeys :: Lens' UntagResource [Text]
+ Amazonka.CloudWatch.Waiters: newAlarmExists :: Wait DescribeAlarms
+ Amazonka.CloudWatch.Waiters: newCompositeAlarmExists :: Wait DescribeAlarms
Files
- README.md +3/−4
- Setup.hs +0/−2
- amazonka-cloudwatch.cabal +158/−90
- fixture/DeleteAlarms.yaml +10/−0
- fixture/DeleteAnomalyDetector.yaml +10/−0
- fixture/DeleteAnomalyDetectorResponse.proto +0/−0
- fixture/DeleteInsightRules.yaml +10/−0
- fixture/DeleteInsightRulesResponse.proto +0/−0
- fixture/DeleteMetricStream.yaml +10/−0
- fixture/DeleteMetricStreamResponse.proto +0/−0
- fixture/DescribeAlarmHistory.yaml +10/−0
- fixture/DescribeAlarms.yaml +10/−0
- fixture/DescribeAlarmsForMetric.yaml +10/−0
- fixture/DescribeAnomalyDetectors.yaml +10/−0
- fixture/DescribeAnomalyDetectorsResponse.proto +0/−0
- fixture/DescribeInsightRules.yaml +10/−0
- fixture/DescribeInsightRulesResponse.proto +0/−0
- fixture/DisableAlarmActions.yaml +10/−0
- fixture/DisableInsightRules.yaml +10/−0
- fixture/DisableInsightRulesResponse.proto +0/−0
- fixture/EnableAlarmActions.yaml +10/−0
- fixture/EnableInsightRules.yaml +10/−0
- fixture/EnableInsightRulesResponse.proto +0/−0
- fixture/GetInsightRuleReport.yaml +10/−0
- fixture/GetInsightRuleReportResponse.proto +0/−0
- fixture/GetMetricStatistics.yaml +10/−0
- fixture/GetMetricStream.yaml +10/−0
- fixture/GetMetricStreamResponse.proto +0/−0
- fixture/GetMetricWidgetImage.yaml +10/−0
- fixture/GetMetricWidgetImageResponse.proto +0/−0
- fixture/ListManagedInsightRules.yaml +10/−0
- fixture/ListManagedInsightRulesResponse.proto +0/−0
- fixture/ListMetricStreams.yaml +10/−0
- fixture/ListMetricStreamsResponse.proto +0/−0
- fixture/ListMetrics.yaml +10/−0
- fixture/ListTagsForResource.yaml +10/−0
- fixture/ListTagsForResourceResponse.proto +0/−0
- fixture/PutAnomalyDetector.yaml +10/−0
- fixture/PutAnomalyDetectorResponse.proto +0/−0
- fixture/PutCompositeAlarm.yaml +10/−0
- fixture/PutCompositeAlarmResponse.proto +0/−0
- fixture/PutInsightRule.yaml +10/−0
- fixture/PutInsightRuleResponse.proto +0/−0
- fixture/PutManagedInsightRules.yaml +10/−0
- fixture/PutManagedInsightRulesResponse.proto +0/−0
- fixture/PutMetricAlarm.yaml +10/−0
- fixture/PutMetricData.yaml +10/−0
- fixture/PutMetricStream.yaml +10/−0
- fixture/PutMetricStreamResponse.proto +0/−0
- fixture/SetAlarmState.yaml +10/−0
- fixture/StartMetricStreams.yaml +10/−0
- fixture/StartMetricStreamsResponse.proto +0/−0
- fixture/StopMetricStreams.yaml +10/−0
- fixture/StopMetricStreamsResponse.proto +0/−0
- fixture/TagResource.yaml +10/−0
- fixture/TagResourceResponse.proto +0/−0
- fixture/UntagResource.yaml +10/−0
- fixture/UntagResourceResponse.proto +0/−0
- gen/Amazonka/CloudWatch.hs +566/−0
- gen/Amazonka/CloudWatch/DeleteAlarms.hs +137/−0
- gen/Amazonka/CloudWatch/DeleteAnomalyDetector.hs +325/−0
- gen/Amazonka/CloudWatch/DeleteDashboards.hs +147/−0
- gen/Amazonka/CloudWatch/DeleteInsightRules.hs +173/−0
- gen/Amazonka/CloudWatch/DeleteMetricStream.hs +145/−0
- gen/Amazonka/CloudWatch/DescribeAlarmHistory.hs +321/−0
- gen/Amazonka/CloudWatch/DescribeAlarms.hs +459/−0
- gen/Amazonka/CloudWatch/DescribeAlarmsForMetric.hs +269/−0
- gen/Amazonka/CloudWatch/DescribeAnomalyDetectors.hs +322/−0
- gen/Amazonka/CloudWatch/DescribeInsightRules.hs +200/−0
- gen/Amazonka/CloudWatch/DisableAlarmActions.hs +122/−0
- gen/Amazonka/CloudWatch/DisableInsightRules.hs +170/−0
- gen/Amazonka/CloudWatch/EnableAlarmActions.hs +120/−0
- gen/Amazonka/CloudWatch/EnableInsightRules.hs +170/−0
- gen/Amazonka/CloudWatch/GetDashboard.hs +192/−0
- gen/Amazonka/CloudWatch/GetInsightRuleReport.hs +485/−0
- gen/Amazonka/CloudWatch/GetMetricData.hs +547/−0
- gen/Amazonka/CloudWatch/GetMetricStatistics.hs +578/−0
- gen/Amazonka/CloudWatch/GetMetricStream.hs +327/−0
- gen/Amazonka/CloudWatch/GetMetricWidgetImage.hs +320/−0
- gen/Amazonka/CloudWatch/Lens.hs +643/−0
- gen/Amazonka/CloudWatch/ListDashboards.hs +230/−0
- gen/Amazonka/CloudWatch/ListManagedInsightRules.hs +223/−0
- gen/Amazonka/CloudWatch/ListMetricStreams.hs +197/−0
- gen/Amazonka/CloudWatch/ListMetrics.hs +390/−0
- gen/Amazonka/CloudWatch/ListTagsForResource.hs +196/−0
- gen/Amazonka/CloudWatch/PutAnomalyDetector.hs +349/−0
- gen/Amazonka/CloudWatch/PutCompositeAlarm.hs +588/−0
- gen/Amazonka/CloudWatch/PutDashboard.hs +248/−0
- gen/Amazonka/CloudWatch/PutInsightRule.hs +244/−0
- gen/Amazonka/CloudWatch/PutManagedInsightRules.hs +175/−0
- gen/Amazonka/CloudWatch/PutMetricAlarm.hs +1014/−0
- gen/Amazonka/CloudWatch/PutMetricData.hs +203/−0
- gen/Amazonka/CloudWatch/PutMetricStream.hs +462/−0
- gen/Amazonka/CloudWatch/SetAlarmState.hs +207/−0
- gen/Amazonka/CloudWatch/StartMetricStreams.hs +155/−0
- gen/Amazonka/CloudWatch/StopMetricStreams.hs +155/−0
- gen/Amazonka/CloudWatch/TagResource.hs +203/−0
- gen/Amazonka/CloudWatch/Types.hs +610/−0
- gen/Amazonka/CloudWatch/Types/ActionsSuppressedBy.hs +76/−0
- gen/Amazonka/CloudWatch/Types/AlarmHistoryItem.hs +130/−0
- gen/Amazonka/CloudWatch/Types/AlarmType.hs +71/−0
- gen/Amazonka/CloudWatch/Types/AnomalyDetector.hs +172/−0
- gen/Amazonka/CloudWatch/Types/AnomalyDetectorConfiguration.hs +129/−0
- gen/Amazonka/CloudWatch/Types/AnomalyDetectorStateValue.hs +76/−0
- gen/Amazonka/CloudWatch/Types/AnomalyDetectorType.hs +71/−0
- gen/Amazonka/CloudWatch/Types/ComparisonOperator.hs +96/−0
- gen/Amazonka/CloudWatch/Types/CompositeAlarm.hs +386/−0
- gen/Amazonka/CloudWatch/Types/DashboardEntry.hs +110/−0
- gen/Amazonka/CloudWatch/Types/DashboardValidationMessage.hs +81/−0
- gen/Amazonka/CloudWatch/Types/Datapoint.hs +161/−0
- gen/Amazonka/CloudWatch/Types/Dimension.hs +101/−0
- gen/Amazonka/CloudWatch/Types/DimensionFilter.hs +80/−0
- gen/Amazonka/CloudWatch/Types/EvaluationState.hs +66/−0
- gen/Amazonka/CloudWatch/Types/HistoryItemType.hs +76/−0
- gen/Amazonka/CloudWatch/Types/InsightRule.hs +145/−0
- gen/Amazonka/CloudWatch/Types/InsightRuleContributor.hs +121/−0
- gen/Amazonka/CloudWatch/Types/InsightRuleContributorDatapoint.hs +100/−0
- gen/Amazonka/CloudWatch/Types/InsightRuleMetricDatapoint.hs +243/−0
- gen/Amazonka/CloudWatch/Types/LabelOptions.hs +82/−0
- gen/Amazonka/CloudWatch/Types/ManagedRule.hs +134/−0
- gen/Amazonka/CloudWatch/Types/ManagedRuleDescription.hs +107/−0
- gen/Amazonka/CloudWatch/Types/ManagedRuleState.hs +87/−0
- gen/Amazonka/CloudWatch/Types/MessageData.hs +86/−0
- gen/Amazonka/CloudWatch/Types/Metric.hs +107/−0
- gen/Amazonka/CloudWatch/Types/MetricAlarm.hs +531/−0
- gen/Amazonka/CloudWatch/Types/MetricDataQuery.hs +340/−0
- gen/Amazonka/CloudWatch/Types/MetricDataResult.hs +175/−0
- gen/Amazonka/CloudWatch/Types/MetricDatum.hs +282/−0
- gen/Amazonka/CloudWatch/Types/MetricMathAnomalyDetector.hs +106/−0
- gen/Amazonka/CloudWatch/Types/MetricStat.hs +212/−0
- gen/Amazonka/CloudWatch/Types/MetricStreamEntry.hs +154/−0
- gen/Amazonka/CloudWatch/Types/MetricStreamFilter.hs +69/−0
- gen/Amazonka/CloudWatch/Types/MetricStreamOutputFormat.hs +71/−0
- gen/Amazonka/CloudWatch/Types/MetricStreamStatisticsConfiguration.hs +166/−0
- gen/Amazonka/CloudWatch/Types/MetricStreamStatisticsMetric.hs +98/−0
- gen/Amazonka/CloudWatch/Types/PartialFailure.hs +106/−0
- gen/Amazonka/CloudWatch/Types/Range.hs +98/−0
- gen/Amazonka/CloudWatch/Types/RecentlyActive.hs +66/−0
- gen/Amazonka/CloudWatch/Types/ScanBy.hs +68/−0
- gen/Amazonka/CloudWatch/Types/SingleMetricAnomalyDetector.hs +122/−0
- gen/Amazonka/CloudWatch/Types/StandardUnit.hs +196/−0
- gen/Amazonka/CloudWatch/Types/StateValue.hs +76/−0
- gen/Amazonka/CloudWatch/Types/Statistic.hs +86/−0
- gen/Amazonka/CloudWatch/Types/StatisticSet.hs +117/−0
- gen/Amazonka/CloudWatch/Types/StatusCode.hs +81/−0
- gen/Amazonka/CloudWatch/Types/Tag.hs +88/−0
- gen/Amazonka/CloudWatch/UntagResource.hs +189/−0
- gen/Amazonka/CloudWatch/Waiters.hs +67/−0
- gen/Network/AWS/CloudWatch.hs +0/−322
- gen/Network/AWS/CloudWatch/DeleteAlarms.hs +0/−99
- gen/Network/AWS/CloudWatch/DeleteDashboards.hs +0/−114
- gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs +0/−203
- gen/Network/AWS/CloudWatch/DescribeAlarms.hs +0/−201
- gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs +0/−192
- gen/Network/AWS/CloudWatch/DisableAlarmActions.hs +0/−100
- gen/Network/AWS/CloudWatch/EnableAlarmActions.hs +0/−100
- gen/Network/AWS/CloudWatch/GetDashboard.hs +0/−149
- gen/Network/AWS/CloudWatch/GetMetricData.hs +0/−194
- gen/Network/AWS/CloudWatch/GetMetricStatistics.hs +0/−258
- gen/Network/AWS/CloudWatch/ListDashboards.hs +0/−157
- gen/Network/AWS/CloudWatch/ListMetrics.hs +0/−185
- gen/Network/AWS/CloudWatch/PutDashboard.hs +0/−146
- gen/Network/AWS/CloudWatch/PutMetricAlarm.hs +0/−320
- gen/Network/AWS/CloudWatch/PutMetricData.hs +0/−126
- gen/Network/AWS/CloudWatch/SetAlarmState.hs +0/−135
- gen/Network/AWS/CloudWatch/Types.hs +0/−310
- gen/Network/AWS/CloudWatch/Types/Product.hs +0/−1116
- gen/Network/AWS/CloudWatch/Types/Sum.hs +0/−305
- gen/Network/AWS/CloudWatch/Waiters.hs +0/−34
- test/Main.hs +11/−9
- test/Test/AWS/CloudWatch.hs +0/−26
- test/Test/AWS/CloudWatch/Internal.hs +0/−16
- test/Test/AWS/Gen/CloudWatch.hs +0/−327
- test/Test/Amazonka/CloudWatch.hs +20/−0
- test/Test/Amazonka/CloudWatch/Internal.hs +8/−0
- test/Test/Amazonka/Gen/CloudWatch.hs +798/−0
README.md view
@@ -7,9 +7,8 @@ ## Version--`1.6.1`-+ +`2.0` - Derived from API version @2010-08-01@ of the AWS service descriptions, licensed under Apache 2.0. ## Description @@ -26,7 +25,7 @@ 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.CloudWatch](http://hackage.haskell.org/package/amazonka-cloudwatch/docs/Network-AWS-CloudWatch.html)+See [Amazonka.CloudWatch](http://hackage.haskell.org/package/amazonka-cloudwatch/docs/Amazonka-CloudWatch.html) or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
amazonka-cloudwatch.cabal view
@@ -1,101 +1,169 @@-name: amazonka-cloudwatch-version: 1.6.1-synopsis: Amazon CloudWatch SDK.-homepage: https://github.com/brendanhay/amazonka-bug-reports: https://github.com/brendanhay/amazonka/issues-license: MPL-2.0-license-file: LICENSE-author: Brendan Hay-maintainer: Brendan Hay <brendan.g.hay+amazonka@gmail.com>-copyright: Copyright (c) 2013-2018 Brendan Hay-category: Network, AWS, Cloud, Distributed Computing-build-type: Simple-cabal-version: >= 1.10-extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep+cabal-version: 2.2+name: amazonka-cloudwatch+version: 2.0+synopsis: Amazon CloudWatch SDK.+homepage: https://github.com/brendanhay/amazonka+bug-reports: https://github.com/brendanhay/amazonka/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+amazonka@gmail.com>, Jack Kelly <jack@jackkelly.name>++copyright: Copyright (c) 2013-2023 Brendan Hay+category: AWS+build-type: Simple+extra-source-files:+ fixture/*.proto+ fixture/*.yaml+ README.md+ src/.gitkeep+ description:- 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, sending requests,- and receiving responses.- .- 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.CloudWatch" or <https://aws.amazon.com/documentation/ the AWS documentation>- to get started.+ Derived from API version @2010-08-01@ of the AWS service descriptions, licensed under Apache 2.0.+ .+ 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, sending requests, and receiving responses.+ .+ It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+ .+ Generated lenses can be found in "Amazonka.CloudWatch.Lens" and are+ suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Amazonka.CloudWatch" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started. source-repository head- type: git- location: git://github.com/brendanhay/amazonka.git- subdir: amazonka-cloudwatch+ type: git+ location: git://github.com/brendanhay/amazonka.git+ subdir: amazonka-cloudwatch library- default-language: Haskell2010- hs-source-dirs: src gen-- ghc-options:- -Wall- -fwarn-incomplete-uni-patterns- -fwarn-incomplete-record-updates- -funbox-strict-fields-- exposed-modules:- Network.AWS.CloudWatch- , Network.AWS.CloudWatch.DeleteAlarms- , Network.AWS.CloudWatch.DeleteDashboards- , Network.AWS.CloudWatch.DescribeAlarmHistory- , Network.AWS.CloudWatch.DescribeAlarms- , Network.AWS.CloudWatch.DescribeAlarmsForMetric- , Network.AWS.CloudWatch.DisableAlarmActions- , Network.AWS.CloudWatch.EnableAlarmActions- , Network.AWS.CloudWatch.GetDashboard- , Network.AWS.CloudWatch.GetMetricData- , Network.AWS.CloudWatch.GetMetricStatistics- , Network.AWS.CloudWatch.ListDashboards- , Network.AWS.CloudWatch.ListMetrics- , Network.AWS.CloudWatch.PutDashboard- , Network.AWS.CloudWatch.PutMetricAlarm- , Network.AWS.CloudWatch.PutMetricData- , Network.AWS.CloudWatch.SetAlarmState- , Network.AWS.CloudWatch.Types- , Network.AWS.CloudWatch.Waiters+ default-language: Haskell2010+ hs-source-dirs: src gen+ ghc-options:+ -Wall -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates -funbox-strict-fields - other-modules:- Network.AWS.CloudWatch.Types.Product- , Network.AWS.CloudWatch.Types.Sum+ exposed-modules:+ Amazonka.CloudWatch+ Amazonka.CloudWatch.DeleteAlarms+ Amazonka.CloudWatch.DeleteAnomalyDetector+ Amazonka.CloudWatch.DeleteDashboards+ Amazonka.CloudWatch.DeleteInsightRules+ Amazonka.CloudWatch.DeleteMetricStream+ Amazonka.CloudWatch.DescribeAlarmHistory+ Amazonka.CloudWatch.DescribeAlarms+ Amazonka.CloudWatch.DescribeAlarmsForMetric+ Amazonka.CloudWatch.DescribeAnomalyDetectors+ Amazonka.CloudWatch.DescribeInsightRules+ Amazonka.CloudWatch.DisableAlarmActions+ Amazonka.CloudWatch.DisableInsightRules+ Amazonka.CloudWatch.EnableAlarmActions+ Amazonka.CloudWatch.EnableInsightRules+ Amazonka.CloudWatch.GetDashboard+ Amazonka.CloudWatch.GetInsightRuleReport+ Amazonka.CloudWatch.GetMetricData+ Amazonka.CloudWatch.GetMetricStatistics+ Amazonka.CloudWatch.GetMetricStream+ Amazonka.CloudWatch.GetMetricWidgetImage+ Amazonka.CloudWatch.Lens+ Amazonka.CloudWatch.ListDashboards+ Amazonka.CloudWatch.ListManagedInsightRules+ Amazonka.CloudWatch.ListMetrics+ Amazonka.CloudWatch.ListMetricStreams+ Amazonka.CloudWatch.ListTagsForResource+ Amazonka.CloudWatch.PutAnomalyDetector+ Amazonka.CloudWatch.PutCompositeAlarm+ Amazonka.CloudWatch.PutDashboard+ Amazonka.CloudWatch.PutInsightRule+ Amazonka.CloudWatch.PutManagedInsightRules+ Amazonka.CloudWatch.PutMetricAlarm+ Amazonka.CloudWatch.PutMetricData+ Amazonka.CloudWatch.PutMetricStream+ Amazonka.CloudWatch.SetAlarmState+ Amazonka.CloudWatch.StartMetricStreams+ Amazonka.CloudWatch.StopMetricStreams+ Amazonka.CloudWatch.TagResource+ Amazonka.CloudWatch.Types+ Amazonka.CloudWatch.Types.ActionsSuppressedBy+ Amazonka.CloudWatch.Types.AlarmHistoryItem+ Amazonka.CloudWatch.Types.AlarmType+ Amazonka.CloudWatch.Types.AnomalyDetector+ Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration+ Amazonka.CloudWatch.Types.AnomalyDetectorStateValue+ Amazonka.CloudWatch.Types.AnomalyDetectorType+ Amazonka.CloudWatch.Types.ComparisonOperator+ Amazonka.CloudWatch.Types.CompositeAlarm+ Amazonka.CloudWatch.Types.DashboardEntry+ Amazonka.CloudWatch.Types.DashboardValidationMessage+ Amazonka.CloudWatch.Types.Datapoint+ Amazonka.CloudWatch.Types.Dimension+ Amazonka.CloudWatch.Types.DimensionFilter+ Amazonka.CloudWatch.Types.EvaluationState+ Amazonka.CloudWatch.Types.HistoryItemType+ Amazonka.CloudWatch.Types.InsightRule+ Amazonka.CloudWatch.Types.InsightRuleContributor+ Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint+ Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint+ Amazonka.CloudWatch.Types.LabelOptions+ Amazonka.CloudWatch.Types.ManagedRule+ Amazonka.CloudWatch.Types.ManagedRuleDescription+ Amazonka.CloudWatch.Types.ManagedRuleState+ Amazonka.CloudWatch.Types.MessageData+ Amazonka.CloudWatch.Types.Metric+ Amazonka.CloudWatch.Types.MetricAlarm+ Amazonka.CloudWatch.Types.MetricDataQuery+ Amazonka.CloudWatch.Types.MetricDataResult+ Amazonka.CloudWatch.Types.MetricDatum+ Amazonka.CloudWatch.Types.MetricMathAnomalyDetector+ Amazonka.CloudWatch.Types.MetricStat+ Amazonka.CloudWatch.Types.MetricStreamEntry+ Amazonka.CloudWatch.Types.MetricStreamFilter+ Amazonka.CloudWatch.Types.MetricStreamOutputFormat+ Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration+ Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric+ Amazonka.CloudWatch.Types.PartialFailure+ Amazonka.CloudWatch.Types.Range+ Amazonka.CloudWatch.Types.RecentlyActive+ Amazonka.CloudWatch.Types.ScanBy+ Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector+ Amazonka.CloudWatch.Types.StandardUnit+ Amazonka.CloudWatch.Types.StateValue+ Amazonka.CloudWatch.Types.Statistic+ Amazonka.CloudWatch.Types.StatisticSet+ Amazonka.CloudWatch.Types.StatusCode+ Amazonka.CloudWatch.Types.Tag+ Amazonka.CloudWatch.UntagResource+ Amazonka.CloudWatch.Waiters - build-depends:- amazonka-core == 1.6.1.*- , base >= 4.7 && < 5+ build-depends:+ , amazonka-core >=2.0 && <2.1+ , base >=4.12 && <5 test-suite amazonka-cloudwatch-test- type: exitcode-stdio-1.0- default-language: Haskell2010- hs-source-dirs: test- main-is: Main.hs-- ghc-options: -Wall -threaded+ type: exitcode-stdio-1.0+ default-language: Haskell2010+ hs-source-dirs: test+ main-is: Main.hs+ ghc-options: -Wall -threaded - -- This section is encoded by the template and any modules added by- -- hand outside these namespaces will not correctly be added to the- -- distribution package.- other-modules:- Test.AWS.CloudWatch- , Test.AWS.Gen.CloudWatch- , Test.AWS.CloudWatch.Internal+ -- This section is encoded by the template and any modules added by+ -- hand outside these namespaces will not correctly be added to the+ -- distribution package.+ other-modules:+ Test.Amazonka.CloudWatch+ Test.Amazonka.CloudWatch.Internal+ Test.Amazonka.Gen.CloudWatch - build-depends:- amazonka-core == 1.6.1.*- , amazonka-test == 1.6.1.*- , amazonka-cloudwatch- , base- , bytestring- , tasty- , tasty-hunit- , text- , time- , unordered-containers+ build-depends:+ , amazonka-cloudwatch+ , amazonka-core >=2.0 && <2.1+ , amazonka-test >=2.0 && <2.1+ , base+ , bytestring+ , case-insensitive+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
fixture/DeleteAlarms.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DeleteAnomalyDetector.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DeleteAnomalyDetectorResponse.proto view
+ fixture/DeleteInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DeleteInsightRulesResponse.proto view
+ fixture/DeleteMetricStream.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DeleteMetricStreamResponse.proto view
fixture/DescribeAlarmHistory.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
fixture/DescribeAlarms.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
fixture/DescribeAlarmsForMetric.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeAnomalyDetectors.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeAnomalyDetectorsResponse.proto view
+ fixture/DescribeInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeInsightRulesResponse.proto view
fixture/DisableAlarmActions.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DisableInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DisableInsightRulesResponse.proto view
fixture/EnableAlarmActions.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/EnableInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/EnableInsightRulesResponse.proto view
+ fixture/GetInsightRuleReport.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/GetInsightRuleReportResponse.proto view
fixture/GetMetricStatistics.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/GetMetricStream.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/GetMetricStreamResponse.proto view
+ fixture/GetMetricWidgetImage.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/GetMetricWidgetImageResponse.proto view
+ fixture/ListManagedInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/ListManagedInsightRulesResponse.proto view
+ fixture/ListMetricStreams.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/ListMetricStreamsResponse.proto view
fixture/ListMetrics.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/ListTagsForResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/ListTagsForResourceResponse.proto view
+ fixture/PutAnomalyDetector.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutAnomalyDetectorResponse.proto view
+ fixture/PutCompositeAlarm.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutCompositeAlarmResponse.proto view
+ fixture/PutInsightRule.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutInsightRuleResponse.proto view
+ fixture/PutManagedInsightRules.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutManagedInsightRulesResponse.proto view
fixture/PutMetricAlarm.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
fixture/PutMetricData.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutMetricStream.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutMetricStreamResponse.proto view
fixture/SetAlarmState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/StartMetricStreams.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/StartMetricStreamsResponse.proto view
+ fixture/StopMetricStreams.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/StopMetricStreamsResponse.proto view
+ fixture/TagResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/TagResourceResponse.proto view
+ fixture/UntagResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/monitoring/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: monitoring.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/UntagResourceResponse.proto view
+ gen/Amazonka/CloudWatch.hs view
@@ -0,0 +1,566 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Amazonka.CloudWatch+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2010-08-01@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- Amazon CloudWatch monitors your Amazon Web Services (Amazon Web+-- Services) resources and the applications you run on Amazon Web Services+-- 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 change 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 EC2 instances. 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 Amazon Web+-- Services, you can monitor your own custom metrics. With CloudWatch, you+-- gain system-wide visibility into resource utilization, application+-- performance, and operational health.+module Amazonka.CloudWatch+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ -- $errors++ -- ** ConcurrentModificationException+ _ConcurrentModificationException,++ -- ** DashboardInvalidInputError+ _DashboardInvalidInputError,++ -- ** DashboardNotFoundError+ _DashboardNotFoundError,++ -- ** InternalServiceFault+ _InternalServiceFault,++ -- ** InvalidFormatFault+ _InvalidFormatFault,++ -- ** InvalidNextToken+ _InvalidNextToken,++ -- ** InvalidParameterCombinationException+ _InvalidParameterCombinationException,++ -- ** InvalidParameterValueException+ _InvalidParameterValueException,++ -- ** LimitExceededException+ _LimitExceededException,++ -- ** LimitExceededFault+ _LimitExceededFault,++ -- ** MissingRequiredParameterException+ _MissingRequiredParameterException,++ -- ** ResourceNotFound+ _ResourceNotFound,++ -- ** ResourceNotFoundException+ _ResourceNotFoundException,++ -- * Waiters+ -- $waiters++ -- ** AlarmExists+ newAlarmExists,++ -- ** CompositeAlarmExists+ newCompositeAlarmExists,++ -- * Operations+ -- $operations++ -- ** DeleteAlarms+ DeleteAlarms (DeleteAlarms'),+ newDeleteAlarms,+ DeleteAlarmsResponse (DeleteAlarmsResponse'),+ newDeleteAlarmsResponse,++ -- ** DeleteAnomalyDetector+ DeleteAnomalyDetector (DeleteAnomalyDetector'),+ newDeleteAnomalyDetector,+ DeleteAnomalyDetectorResponse (DeleteAnomalyDetectorResponse'),+ newDeleteAnomalyDetectorResponse,++ -- ** DeleteDashboards+ DeleteDashboards (DeleteDashboards'),+ newDeleteDashboards,+ DeleteDashboardsResponse (DeleteDashboardsResponse'),+ newDeleteDashboardsResponse,++ -- ** DeleteInsightRules+ DeleteInsightRules (DeleteInsightRules'),+ newDeleteInsightRules,+ DeleteInsightRulesResponse (DeleteInsightRulesResponse'),+ newDeleteInsightRulesResponse,++ -- ** DeleteMetricStream+ DeleteMetricStream (DeleteMetricStream'),+ newDeleteMetricStream,+ DeleteMetricStreamResponse (DeleteMetricStreamResponse'),+ newDeleteMetricStreamResponse,++ -- ** DescribeAlarmHistory (Paginated)+ DescribeAlarmHistory (DescribeAlarmHistory'),+ newDescribeAlarmHistory,+ DescribeAlarmHistoryResponse (DescribeAlarmHistoryResponse'),+ newDescribeAlarmHistoryResponse,++ -- ** DescribeAlarms (Paginated)+ DescribeAlarms (DescribeAlarms'),+ newDescribeAlarms,+ DescribeAlarmsResponse (DescribeAlarmsResponse'),+ newDescribeAlarmsResponse,++ -- ** DescribeAlarmsForMetric+ DescribeAlarmsForMetric (DescribeAlarmsForMetric'),+ newDescribeAlarmsForMetric,+ DescribeAlarmsForMetricResponse (DescribeAlarmsForMetricResponse'),+ newDescribeAlarmsForMetricResponse,++ -- ** DescribeAnomalyDetectors (Paginated)+ DescribeAnomalyDetectors (DescribeAnomalyDetectors'),+ newDescribeAnomalyDetectors,+ DescribeAnomalyDetectorsResponse (DescribeAnomalyDetectorsResponse'),+ newDescribeAnomalyDetectorsResponse,++ -- ** DescribeInsightRules+ DescribeInsightRules (DescribeInsightRules'),+ newDescribeInsightRules,+ DescribeInsightRulesResponse (DescribeInsightRulesResponse'),+ newDescribeInsightRulesResponse,++ -- ** DisableAlarmActions+ DisableAlarmActions (DisableAlarmActions'),+ newDisableAlarmActions,+ DisableAlarmActionsResponse (DisableAlarmActionsResponse'),+ newDisableAlarmActionsResponse,++ -- ** DisableInsightRules+ DisableInsightRules (DisableInsightRules'),+ newDisableInsightRules,+ DisableInsightRulesResponse (DisableInsightRulesResponse'),+ newDisableInsightRulesResponse,++ -- ** EnableAlarmActions+ EnableAlarmActions (EnableAlarmActions'),+ newEnableAlarmActions,+ EnableAlarmActionsResponse (EnableAlarmActionsResponse'),+ newEnableAlarmActionsResponse,++ -- ** EnableInsightRules+ EnableInsightRules (EnableInsightRules'),+ newEnableInsightRules,+ EnableInsightRulesResponse (EnableInsightRulesResponse'),+ newEnableInsightRulesResponse,++ -- ** GetDashboard+ GetDashboard (GetDashboard'),+ newGetDashboard,+ GetDashboardResponse (GetDashboardResponse'),+ newGetDashboardResponse,++ -- ** GetInsightRuleReport+ GetInsightRuleReport (GetInsightRuleReport'),+ newGetInsightRuleReport,+ GetInsightRuleReportResponse (GetInsightRuleReportResponse'),+ newGetInsightRuleReportResponse,++ -- ** GetMetricData (Paginated)+ GetMetricData (GetMetricData'),+ newGetMetricData,+ GetMetricDataResponse (GetMetricDataResponse'),+ newGetMetricDataResponse,++ -- ** GetMetricStatistics+ GetMetricStatistics (GetMetricStatistics'),+ newGetMetricStatistics,+ GetMetricStatisticsResponse (GetMetricStatisticsResponse'),+ newGetMetricStatisticsResponse,++ -- ** GetMetricStream+ GetMetricStream (GetMetricStream'),+ newGetMetricStream,+ GetMetricStreamResponse (GetMetricStreamResponse'),+ newGetMetricStreamResponse,++ -- ** GetMetricWidgetImage+ GetMetricWidgetImage (GetMetricWidgetImage'),+ newGetMetricWidgetImage,+ GetMetricWidgetImageResponse (GetMetricWidgetImageResponse'),+ newGetMetricWidgetImageResponse,++ -- ** ListDashboards (Paginated)+ ListDashboards (ListDashboards'),+ newListDashboards,+ ListDashboardsResponse (ListDashboardsResponse'),+ newListDashboardsResponse,++ -- ** ListManagedInsightRules+ ListManagedInsightRules (ListManagedInsightRules'),+ newListManagedInsightRules,+ ListManagedInsightRulesResponse (ListManagedInsightRulesResponse'),+ newListManagedInsightRulesResponse,++ -- ** ListMetricStreams+ ListMetricStreams (ListMetricStreams'),+ newListMetricStreams,+ ListMetricStreamsResponse (ListMetricStreamsResponse'),+ newListMetricStreamsResponse,++ -- ** ListMetrics (Paginated)+ ListMetrics (ListMetrics'),+ newListMetrics,+ ListMetricsResponse (ListMetricsResponse'),+ newListMetricsResponse,++ -- ** ListTagsForResource+ ListTagsForResource (ListTagsForResource'),+ newListTagsForResource,+ ListTagsForResourceResponse (ListTagsForResourceResponse'),+ newListTagsForResourceResponse,++ -- ** PutAnomalyDetector+ PutAnomalyDetector (PutAnomalyDetector'),+ newPutAnomalyDetector,+ PutAnomalyDetectorResponse (PutAnomalyDetectorResponse'),+ newPutAnomalyDetectorResponse,++ -- ** PutCompositeAlarm+ PutCompositeAlarm (PutCompositeAlarm'),+ newPutCompositeAlarm,+ PutCompositeAlarmResponse (PutCompositeAlarmResponse'),+ newPutCompositeAlarmResponse,++ -- ** PutDashboard+ PutDashboard (PutDashboard'),+ newPutDashboard,+ PutDashboardResponse (PutDashboardResponse'),+ newPutDashboardResponse,++ -- ** PutInsightRule+ PutInsightRule (PutInsightRule'),+ newPutInsightRule,+ PutInsightRuleResponse (PutInsightRuleResponse'),+ newPutInsightRuleResponse,++ -- ** PutManagedInsightRules+ PutManagedInsightRules (PutManagedInsightRules'),+ newPutManagedInsightRules,+ PutManagedInsightRulesResponse (PutManagedInsightRulesResponse'),+ newPutManagedInsightRulesResponse,++ -- ** PutMetricAlarm+ PutMetricAlarm (PutMetricAlarm'),+ newPutMetricAlarm,+ PutMetricAlarmResponse (PutMetricAlarmResponse'),+ newPutMetricAlarmResponse,++ -- ** PutMetricData+ PutMetricData (PutMetricData'),+ newPutMetricData,+ PutMetricDataResponse (PutMetricDataResponse'),+ newPutMetricDataResponse,++ -- ** PutMetricStream+ PutMetricStream (PutMetricStream'),+ newPutMetricStream,+ PutMetricStreamResponse (PutMetricStreamResponse'),+ newPutMetricStreamResponse,++ -- ** SetAlarmState+ SetAlarmState (SetAlarmState'),+ newSetAlarmState,+ SetAlarmStateResponse (SetAlarmStateResponse'),+ newSetAlarmStateResponse,++ -- ** StartMetricStreams+ StartMetricStreams (StartMetricStreams'),+ newStartMetricStreams,+ StartMetricStreamsResponse (StartMetricStreamsResponse'),+ newStartMetricStreamsResponse,++ -- ** StopMetricStreams+ StopMetricStreams (StopMetricStreams'),+ newStopMetricStreams,+ StopMetricStreamsResponse (StopMetricStreamsResponse'),+ newStopMetricStreamsResponse,++ -- ** TagResource+ TagResource (TagResource'),+ newTagResource,+ TagResourceResponse (TagResourceResponse'),+ newTagResourceResponse,++ -- ** UntagResource+ UntagResource (UntagResource'),+ newUntagResource,+ UntagResourceResponse (UntagResourceResponse'),+ newUntagResourceResponse,++ -- * Types++ -- ** ActionsSuppressedBy+ ActionsSuppressedBy (..),++ -- ** AlarmType+ AlarmType (..),++ -- ** AnomalyDetectorStateValue+ AnomalyDetectorStateValue (..),++ -- ** AnomalyDetectorType+ AnomalyDetectorType (..),++ -- ** ComparisonOperator+ ComparisonOperator (..),++ -- ** EvaluationState+ EvaluationState (..),++ -- ** HistoryItemType+ HistoryItemType (..),++ -- ** MetricStreamOutputFormat+ MetricStreamOutputFormat (..),++ -- ** RecentlyActive+ RecentlyActive (..),++ -- ** ScanBy+ ScanBy (..),++ -- ** StandardUnit+ StandardUnit (..),++ -- ** StateValue+ StateValue (..),++ -- ** Statistic+ Statistic (..),++ -- ** StatusCode+ StatusCode (..),++ -- ** AlarmHistoryItem+ AlarmHistoryItem (AlarmHistoryItem'),+ newAlarmHistoryItem,++ -- ** AnomalyDetector+ AnomalyDetector (AnomalyDetector'),+ newAnomalyDetector,++ -- ** AnomalyDetectorConfiguration+ AnomalyDetectorConfiguration (AnomalyDetectorConfiguration'),+ newAnomalyDetectorConfiguration,++ -- ** CompositeAlarm+ CompositeAlarm (CompositeAlarm'),+ newCompositeAlarm,++ -- ** DashboardEntry+ DashboardEntry (DashboardEntry'),+ newDashboardEntry,++ -- ** DashboardValidationMessage+ DashboardValidationMessage (DashboardValidationMessage'),+ newDashboardValidationMessage,++ -- ** Datapoint+ Datapoint (Datapoint'),+ newDatapoint,++ -- ** Dimension+ Dimension (Dimension'),+ newDimension,++ -- ** DimensionFilter+ DimensionFilter (DimensionFilter'),+ newDimensionFilter,++ -- ** InsightRule+ InsightRule (InsightRule'),+ newInsightRule,++ -- ** InsightRuleContributor+ InsightRuleContributor (InsightRuleContributor'),+ newInsightRuleContributor,++ -- ** InsightRuleContributorDatapoint+ InsightRuleContributorDatapoint (InsightRuleContributorDatapoint'),+ newInsightRuleContributorDatapoint,++ -- ** InsightRuleMetricDatapoint+ InsightRuleMetricDatapoint (InsightRuleMetricDatapoint'),+ newInsightRuleMetricDatapoint,++ -- ** LabelOptions+ LabelOptions (LabelOptions'),+ newLabelOptions,++ -- ** ManagedRule+ ManagedRule (ManagedRule'),+ newManagedRule,++ -- ** ManagedRuleDescription+ ManagedRuleDescription (ManagedRuleDescription'),+ newManagedRuleDescription,++ -- ** ManagedRuleState+ ManagedRuleState (ManagedRuleState'),+ newManagedRuleState,++ -- ** MessageData+ MessageData (MessageData'),+ newMessageData,++ -- ** Metric+ Metric (Metric'),+ newMetric,++ -- ** MetricAlarm+ MetricAlarm (MetricAlarm'),+ newMetricAlarm,++ -- ** MetricDataQuery+ MetricDataQuery (MetricDataQuery'),+ newMetricDataQuery,++ -- ** MetricDataResult+ MetricDataResult (MetricDataResult'),+ newMetricDataResult,++ -- ** MetricDatum+ MetricDatum (MetricDatum'),+ newMetricDatum,++ -- ** MetricMathAnomalyDetector+ MetricMathAnomalyDetector (MetricMathAnomalyDetector'),+ newMetricMathAnomalyDetector,++ -- ** MetricStat+ MetricStat (MetricStat'),+ newMetricStat,++ -- ** MetricStreamEntry+ MetricStreamEntry (MetricStreamEntry'),+ newMetricStreamEntry,++ -- ** MetricStreamFilter+ MetricStreamFilter (MetricStreamFilter'),+ newMetricStreamFilter,++ -- ** MetricStreamStatisticsConfiguration+ MetricStreamStatisticsConfiguration (MetricStreamStatisticsConfiguration'),+ newMetricStreamStatisticsConfiguration,++ -- ** MetricStreamStatisticsMetric+ MetricStreamStatisticsMetric (MetricStreamStatisticsMetric'),+ newMetricStreamStatisticsMetric,++ -- ** PartialFailure+ PartialFailure (PartialFailure'),+ newPartialFailure,++ -- ** Range+ Range (Range'),+ newRange,++ -- ** SingleMetricAnomalyDetector+ SingleMetricAnomalyDetector (SingleMetricAnomalyDetector'),+ newSingleMetricAnomalyDetector,++ -- ** StatisticSet+ StatisticSet (StatisticSet'),+ newStatisticSet,++ -- ** Tag+ Tag (Tag'),+ newTag,+ )+where++import Amazonka.CloudWatch.DeleteAlarms+import Amazonka.CloudWatch.DeleteAnomalyDetector+import Amazonka.CloudWatch.DeleteDashboards+import Amazonka.CloudWatch.DeleteInsightRules+import Amazonka.CloudWatch.DeleteMetricStream+import Amazonka.CloudWatch.DescribeAlarmHistory+import Amazonka.CloudWatch.DescribeAlarms+import Amazonka.CloudWatch.DescribeAlarmsForMetric+import Amazonka.CloudWatch.DescribeAnomalyDetectors+import Amazonka.CloudWatch.DescribeInsightRules+import Amazonka.CloudWatch.DisableAlarmActions+import Amazonka.CloudWatch.DisableInsightRules+import Amazonka.CloudWatch.EnableAlarmActions+import Amazonka.CloudWatch.EnableInsightRules+import Amazonka.CloudWatch.GetDashboard+import Amazonka.CloudWatch.GetInsightRuleReport+import Amazonka.CloudWatch.GetMetricData+import Amazonka.CloudWatch.GetMetricStatistics+import Amazonka.CloudWatch.GetMetricStream+import Amazonka.CloudWatch.GetMetricWidgetImage+import Amazonka.CloudWatch.Lens+import Amazonka.CloudWatch.ListDashboards+import Amazonka.CloudWatch.ListManagedInsightRules+import Amazonka.CloudWatch.ListMetricStreams+import Amazonka.CloudWatch.ListMetrics+import Amazonka.CloudWatch.ListTagsForResource+import Amazonka.CloudWatch.PutAnomalyDetector+import Amazonka.CloudWatch.PutCompositeAlarm+import Amazonka.CloudWatch.PutDashboard+import Amazonka.CloudWatch.PutInsightRule+import Amazonka.CloudWatch.PutManagedInsightRules+import Amazonka.CloudWatch.PutMetricAlarm+import Amazonka.CloudWatch.PutMetricData+import Amazonka.CloudWatch.PutMetricStream+import Amazonka.CloudWatch.SetAlarmState+import Amazonka.CloudWatch.StartMetricStreams+import Amazonka.CloudWatch.StopMetricStreams+import Amazonka.CloudWatch.TagResource+import Amazonka.CloudWatch.Types+import Amazonka.CloudWatch.UntagResource+import Amazonka.CloudWatch.Waiters++-- $errors+-- Error matchers are designed for use with the functions provided by+-- <http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+-- This allows catching (and rethrowing) service specific errors returned+-- by 'CloudWatch'.++-- $operations+-- Some AWS operations return results that are incomplete and require subsequent+-- requests in order to obtain the entire result set. The process of sending+-- subsequent requests to continue where a previous request left off is called+-- pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+-- 1000 objects at a time, and you must send subsequent requests with the+-- appropriate Marker in order to retrieve the next page of results.+--+-- Operations that have an 'AWSPager' instance can transparently perform subsequent+-- requests, correctly setting Markers and other request facets to iterate through+-- the entire result set of a truncated API operation. Operations which support+-- this have an additional note in the documentation.+--+-- Many operations have the ability to filter results on the server side. See the+-- individual operation parameters for details.++-- $waiters+-- Waiters poll by repeatedly sending a request until some remote success condition+-- configured by the 'Wait' specification is fulfilled. The 'Wait' specification+-- determines how many attempts should be made, in addition to delay and retry strategies.
+ gen/Amazonka/CloudWatch/DeleteAlarms.hs view
@@ -0,0 +1,137 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DeleteAlarms+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes the specified alarms. You can delete up to 100 alarms in one+-- operation. However, this total can include no more than one composite+-- alarm. For example, you could delete 99 metric alarms and one composite+-- alarms with one operation, but you can\'t delete two composite alarms+-- with one operation.+--+-- In the event of an error, no alarms are deleted.+--+-- It is possible to create a loop or cycle of composite alarms, where+-- composite alarm A depends on composite alarm B, and composite alarm B+-- also depends on composite alarm A. In this scenario, you can\'t delete+-- any composite alarm that is part of the cycle because there is always+-- still a composite alarm that depends on that alarm that you want to+-- delete.+--+-- To get out of such a situation, you must break the cycle by changing the+-- rule of one of the composite alarms in the cycle to remove a dependency+-- that creates the cycle. The simplest change to make to break a cycle is+-- to change the @AlarmRule@ of one of the alarms to @false@.+--+-- Additionally, the evaluation of composite alarms stops if CloudWatch+-- detects a cycle in the evaluation path.+module Amazonka.CloudWatch.DeleteAlarms+ ( -- * Creating a Request+ DeleteAlarms (..),+ newDeleteAlarms,++ -- * Request Lenses+ deleteAlarms_alarmNames,++ -- * Destructuring the Response+ DeleteAlarmsResponse (..),+ newDeleteAlarmsResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteAlarms' smart constructor.+data DeleteAlarms = DeleteAlarms'+ { -- | The alarms to be deleted.+ alarmNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteAlarms' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmNames', 'deleteAlarms_alarmNames' - The alarms to be deleted.+newDeleteAlarms ::+ DeleteAlarms+newDeleteAlarms =+ DeleteAlarms' {alarmNames = Prelude.mempty}++-- | The alarms to be deleted.+deleteAlarms_alarmNames :: Lens.Lens' DeleteAlarms [Prelude.Text]+deleteAlarms_alarmNames = Lens.lens (\DeleteAlarms' {alarmNames} -> alarmNames) (\s@DeleteAlarms' {} a -> s {alarmNames = a} :: DeleteAlarms) Prelude.. Lens.coerced++instance Core.AWSRequest DeleteAlarms where+ type AWSResponse DeleteAlarms = DeleteAlarmsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response = Response.receiveNull DeleteAlarmsResponse'++instance Prelude.Hashable DeleteAlarms where+ hashWithSalt _salt DeleteAlarms' {..} =+ _salt `Prelude.hashWithSalt` alarmNames++instance Prelude.NFData DeleteAlarms where+ rnf DeleteAlarms' {..} = Prelude.rnf alarmNames++instance Data.ToHeaders DeleteAlarms where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DeleteAlarms where+ toPath = Prelude.const "/"++instance Data.ToQuery DeleteAlarms where+ toQuery DeleteAlarms' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DeleteAlarms" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "AlarmNames"+ Data.=: Data.toQueryList "member" alarmNames+ ]++-- | /See:/ 'newDeleteAlarmsResponse' smart constructor.+data DeleteAlarmsResponse = DeleteAlarmsResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteAlarmsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newDeleteAlarmsResponse ::+ DeleteAlarmsResponse+newDeleteAlarmsResponse = DeleteAlarmsResponse'++instance Prelude.NFData DeleteAlarmsResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/DeleteAnomalyDetector.hs view
@@ -0,0 +1,325 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DeleteAnomalyDetector+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes the specified anomaly detection model from your account. For+-- more information about how to delete an anomaly detection model, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model Deleting an anomaly detection model>+-- in the /CloudWatch User Guide/.+module Amazonka.CloudWatch.DeleteAnomalyDetector+ ( -- * Creating a Request+ DeleteAnomalyDetector (..),+ newDeleteAnomalyDetector,++ -- * Request Lenses+ deleteAnomalyDetector_dimensions,+ deleteAnomalyDetector_metricMathAnomalyDetector,+ deleteAnomalyDetector_metricName,+ deleteAnomalyDetector_namespace,+ deleteAnomalyDetector_singleMetricAnomalyDetector,+ deleteAnomalyDetector_stat,++ -- * Destructuring the Response+ DeleteAnomalyDetectorResponse (..),+ newDeleteAnomalyDetectorResponse,++ -- * Response Lenses+ deleteAnomalyDetectorResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteAnomalyDetector' smart constructor.+data DeleteAnomalyDetector = DeleteAnomalyDetector'+ { -- | The metric dimensions associated with the anomaly detection model to+ -- delete.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The metric math anomaly detector to be deleted.+ --+ -- When using @MetricMathAnomalyDetector@, you cannot include following+ -- parameters in the same operation:+ --+ -- - @Dimensions@,+ --+ -- - @MetricName@+ --+ -- - @Namespace@+ --+ -- - @Stat@+ --+ -- - the @SingleMetricAnomalyDetector@ parameters of+ -- @DeleteAnomalyDetectorInput@+ --+ -- Instead, specify the metric math anomaly detector attributes as part of+ -- the @MetricMathAnomalyDetector@ property.+ metricMathAnomalyDetector :: Prelude.Maybe MetricMathAnomalyDetector,+ -- | The metric name associated with the anomaly detection model to delete.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The namespace associated with the anomaly detection model to delete.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | A single metric anomaly detector to be deleted.+ --+ -- When using @SingleMetricAnomalyDetector@, you cannot include the+ -- following parameters in the same operation:+ --+ -- - @Dimensions@,+ --+ -- - @MetricName@+ --+ -- - @Namespace@+ --+ -- - @Stat@+ --+ -- - the @MetricMathAnomalyDetector@ parameters of+ -- @DeleteAnomalyDetectorInput@+ --+ -- Instead, specify the single metric anomaly detector attributes as part+ -- of the @SingleMetricAnomalyDetector@ property.+ singleMetricAnomalyDetector :: Prelude.Maybe SingleMetricAnomalyDetector,+ -- | The statistic associated with the anomaly detection model to delete.+ stat :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteAnomalyDetector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'deleteAnomalyDetector_dimensions' - The metric dimensions associated with the anomaly detection model to+-- delete.+--+-- 'metricMathAnomalyDetector', 'deleteAnomalyDetector_metricMathAnomalyDetector' - The metric math anomaly detector to be deleted.+--+-- When using @MetricMathAnomalyDetector@, you cannot include following+-- parameters in the same operation:+--+-- - @Dimensions@,+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @SingleMetricAnomalyDetector@ parameters of+-- @DeleteAnomalyDetectorInput@+--+-- Instead, specify the metric math anomaly detector attributes as part of+-- the @MetricMathAnomalyDetector@ property.+--+-- 'metricName', 'deleteAnomalyDetector_metricName' - The metric name associated with the anomaly detection model to delete.+--+-- 'namespace', 'deleteAnomalyDetector_namespace' - The namespace associated with the anomaly detection model to delete.+--+-- 'singleMetricAnomalyDetector', 'deleteAnomalyDetector_singleMetricAnomalyDetector' - A single metric anomaly detector to be deleted.+--+-- When using @SingleMetricAnomalyDetector@, you cannot include the+-- following parameters in the same operation:+--+-- - @Dimensions@,+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @MetricMathAnomalyDetector@ parameters of+-- @DeleteAnomalyDetectorInput@+--+-- Instead, specify the single metric anomaly detector attributes as part+-- of the @SingleMetricAnomalyDetector@ property.+--+-- 'stat', 'deleteAnomalyDetector_stat' - The statistic associated with the anomaly detection model to delete.+newDeleteAnomalyDetector ::+ DeleteAnomalyDetector+newDeleteAnomalyDetector =+ DeleteAnomalyDetector'+ { dimensions =+ Prelude.Nothing,+ metricMathAnomalyDetector = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ singleMetricAnomalyDetector = Prelude.Nothing,+ stat = Prelude.Nothing+ }++-- | The metric dimensions associated with the anomaly detection model to+-- delete.+deleteAnomalyDetector_dimensions :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe [Dimension])+deleteAnomalyDetector_dimensions = Lens.lens (\DeleteAnomalyDetector' {dimensions} -> dimensions) (\s@DeleteAnomalyDetector' {} a -> s {dimensions = a} :: DeleteAnomalyDetector) Prelude.. Lens.mapping Lens.coerced++-- | The metric math anomaly detector to be deleted.+--+-- When using @MetricMathAnomalyDetector@, you cannot include following+-- parameters in the same operation:+--+-- - @Dimensions@,+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @SingleMetricAnomalyDetector@ parameters of+-- @DeleteAnomalyDetectorInput@+--+-- Instead, specify the metric math anomaly detector attributes as part of+-- the @MetricMathAnomalyDetector@ property.+deleteAnomalyDetector_metricMathAnomalyDetector :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe MetricMathAnomalyDetector)+deleteAnomalyDetector_metricMathAnomalyDetector = Lens.lens (\DeleteAnomalyDetector' {metricMathAnomalyDetector} -> metricMathAnomalyDetector) (\s@DeleteAnomalyDetector' {} a -> s {metricMathAnomalyDetector = a} :: DeleteAnomalyDetector)++-- | The metric name associated with the anomaly detection model to delete.+deleteAnomalyDetector_metricName :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe Prelude.Text)+deleteAnomalyDetector_metricName = Lens.lens (\DeleteAnomalyDetector' {metricName} -> metricName) (\s@DeleteAnomalyDetector' {} a -> s {metricName = a} :: DeleteAnomalyDetector)++-- | The namespace associated with the anomaly detection model to delete.+deleteAnomalyDetector_namespace :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe Prelude.Text)+deleteAnomalyDetector_namespace = Lens.lens (\DeleteAnomalyDetector' {namespace} -> namespace) (\s@DeleteAnomalyDetector' {} a -> s {namespace = a} :: DeleteAnomalyDetector)++-- | A single metric anomaly detector to be deleted.+--+-- When using @SingleMetricAnomalyDetector@, you cannot include the+-- following parameters in the same operation:+--+-- - @Dimensions@,+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @MetricMathAnomalyDetector@ parameters of+-- @DeleteAnomalyDetectorInput@+--+-- Instead, specify the single metric anomaly detector attributes as part+-- of the @SingleMetricAnomalyDetector@ property.+deleteAnomalyDetector_singleMetricAnomalyDetector :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe SingleMetricAnomalyDetector)+deleteAnomalyDetector_singleMetricAnomalyDetector = Lens.lens (\DeleteAnomalyDetector' {singleMetricAnomalyDetector} -> singleMetricAnomalyDetector) (\s@DeleteAnomalyDetector' {} a -> s {singleMetricAnomalyDetector = a} :: DeleteAnomalyDetector)++-- | The statistic associated with the anomaly detection model to delete.+deleteAnomalyDetector_stat :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe Prelude.Text)+deleteAnomalyDetector_stat = Lens.lens (\DeleteAnomalyDetector' {stat} -> stat) (\s@DeleteAnomalyDetector' {} a -> s {stat = a} :: DeleteAnomalyDetector)++instance Core.AWSRequest DeleteAnomalyDetector where+ type+ AWSResponse DeleteAnomalyDetector =+ DeleteAnomalyDetectorResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DeleteAnomalyDetectorResult"+ ( \s h x ->+ DeleteAnomalyDetectorResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DeleteAnomalyDetector where+ hashWithSalt _salt DeleteAnomalyDetector' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` metricMathAnomalyDetector+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` singleMetricAnomalyDetector+ `Prelude.hashWithSalt` stat++instance Prelude.NFData DeleteAnomalyDetector where+ rnf DeleteAnomalyDetector' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf metricMathAnomalyDetector+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf singleMetricAnomalyDetector+ `Prelude.seq` Prelude.rnf stat++instance Data.ToHeaders DeleteAnomalyDetector where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DeleteAnomalyDetector where+ toPath = Prelude.const "/"++instance Data.ToQuery DeleteAnomalyDetector where+ toQuery DeleteAnomalyDetector' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DeleteAnomalyDetector" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "MetricMathAnomalyDetector"+ Data.=: metricMathAnomalyDetector,+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace,+ "SingleMetricAnomalyDetector"+ Data.=: singleMetricAnomalyDetector,+ "Stat" Data.=: stat+ ]++-- | /See:/ 'newDeleteAnomalyDetectorResponse' smart constructor.+data DeleteAnomalyDetectorResponse = DeleteAnomalyDetectorResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteAnomalyDetectorResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteAnomalyDetectorResponse_httpStatus' - The response's http status code.+newDeleteAnomalyDetectorResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteAnomalyDetectorResponse+newDeleteAnomalyDetectorResponse pHttpStatus_ =+ DeleteAnomalyDetectorResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+deleteAnomalyDetectorResponse_httpStatus :: Lens.Lens' DeleteAnomalyDetectorResponse Prelude.Int+deleteAnomalyDetectorResponse_httpStatus = Lens.lens (\DeleteAnomalyDetectorResponse' {httpStatus} -> httpStatus) (\s@DeleteAnomalyDetectorResponse' {} a -> s {httpStatus = a} :: DeleteAnomalyDetectorResponse)++instance Prelude.NFData DeleteAnomalyDetectorResponse where+ rnf DeleteAnomalyDetectorResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DeleteDashboards.hs view
@@ -0,0 +1,147 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DeleteDashboards+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes all dashboards that you specify. You can specify up to 100+-- dashboards to delete. If there is an error during this call, no+-- dashboards are deleted.+module Amazonka.CloudWatch.DeleteDashboards+ ( -- * Creating a Request+ DeleteDashboards (..),+ newDeleteDashboards,++ -- * Request Lenses+ deleteDashboards_dashboardNames,++ -- * Destructuring the Response+ DeleteDashboardsResponse (..),+ newDeleteDashboardsResponse,++ -- * Response Lenses+ deleteDashboardsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteDashboards' smart constructor.+data DeleteDashboards = DeleteDashboards'+ { -- | The dashboards to be deleted. This parameter is required.+ dashboardNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteDashboards' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardNames', 'deleteDashboards_dashboardNames' - The dashboards to be deleted. This parameter is required.+newDeleteDashboards ::+ DeleteDashboards+newDeleteDashboards =+ DeleteDashboards' {dashboardNames = Prelude.mempty}++-- | The dashboards to be deleted. This parameter is required.+deleteDashboards_dashboardNames :: Lens.Lens' DeleteDashboards [Prelude.Text]+deleteDashboards_dashboardNames = Lens.lens (\DeleteDashboards' {dashboardNames} -> dashboardNames) (\s@DeleteDashboards' {} a -> s {dashboardNames = a} :: DeleteDashboards) Prelude.. Lens.coerced++instance Core.AWSRequest DeleteDashboards where+ type+ AWSResponse DeleteDashboards =+ DeleteDashboardsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DeleteDashboardsResult"+ ( \s h x ->+ DeleteDashboardsResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DeleteDashboards where+ hashWithSalt _salt DeleteDashboards' {..} =+ _salt `Prelude.hashWithSalt` dashboardNames++instance Prelude.NFData DeleteDashboards where+ rnf DeleteDashboards' {..} =+ Prelude.rnf dashboardNames++instance Data.ToHeaders DeleteDashboards where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DeleteDashboards where+ toPath = Prelude.const "/"++instance Data.ToQuery DeleteDashboards where+ toQuery DeleteDashboards' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DeleteDashboards" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "DashboardNames"+ Data.=: Data.toQueryList "member" dashboardNames+ ]++-- | /See:/ 'newDeleteDashboardsResponse' smart constructor.+data DeleteDashboardsResponse = DeleteDashboardsResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteDashboardsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteDashboardsResponse_httpStatus' - The response's http status code.+newDeleteDashboardsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteDashboardsResponse+newDeleteDashboardsResponse pHttpStatus_ =+ DeleteDashboardsResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+deleteDashboardsResponse_httpStatus :: Lens.Lens' DeleteDashboardsResponse Prelude.Int+deleteDashboardsResponse_httpStatus = Lens.lens (\DeleteDashboardsResponse' {httpStatus} -> httpStatus) (\s@DeleteDashboardsResponse' {} a -> s {httpStatus = a} :: DeleteDashboardsResponse)++instance Prelude.NFData DeleteDashboardsResponse where+ rnf DeleteDashboardsResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DeleteInsightRules.hs view
@@ -0,0 +1,173 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DeleteInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes the specified Contributor Insights rules.+--+-- If you create a rule, delete it, and then re-create it with the same+-- name, historical data from the first time the rule was created might not+-- be available.+module Amazonka.CloudWatch.DeleteInsightRules+ ( -- * Creating a Request+ DeleteInsightRules (..),+ newDeleteInsightRules,++ -- * Request Lenses+ deleteInsightRules_ruleNames,++ -- * Destructuring the Response+ DeleteInsightRulesResponse (..),+ newDeleteInsightRulesResponse,++ -- * Response Lenses+ deleteInsightRulesResponse_failures,+ deleteInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteInsightRules' smart constructor.+data DeleteInsightRules = DeleteInsightRules'+ { -- | An array of the rule names to delete. If you need to find out the names+ -- of your rules, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+ ruleNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'ruleNames', 'deleteInsightRules_ruleNames' - An array of the rule names to delete. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+newDeleteInsightRules ::+ DeleteInsightRules+newDeleteInsightRules =+ DeleteInsightRules' {ruleNames = Prelude.mempty}++-- | An array of the rule names to delete. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+deleteInsightRules_ruleNames :: Lens.Lens' DeleteInsightRules [Prelude.Text]+deleteInsightRules_ruleNames = Lens.lens (\DeleteInsightRules' {ruleNames} -> ruleNames) (\s@DeleteInsightRules' {} a -> s {ruleNames = a} :: DeleteInsightRules) Prelude.. Lens.coerced++instance Core.AWSRequest DeleteInsightRules where+ type+ AWSResponse DeleteInsightRules =+ DeleteInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DeleteInsightRulesResult"+ ( \s h x ->+ DeleteInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "Failures"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DeleteInsightRules where+ hashWithSalt _salt DeleteInsightRules' {..} =+ _salt `Prelude.hashWithSalt` ruleNames++instance Prelude.NFData DeleteInsightRules where+ rnf DeleteInsightRules' {..} = Prelude.rnf ruleNames++instance Data.ToHeaders DeleteInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DeleteInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery DeleteInsightRules where+ toQuery DeleteInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DeleteInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "RuleNames"+ Data.=: Data.toQueryList "member" ruleNames+ ]++-- | /See:/ 'newDeleteInsightRulesResponse' smart constructor.+data DeleteInsightRulesResponse = DeleteInsightRulesResponse'+ { -- | An array listing the rules that could not be deleted. You cannot delete+ -- built-in rules.+ failures :: Prelude.Maybe [PartialFailure],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failures', 'deleteInsightRulesResponse_failures' - An array listing the rules that could not be deleted. You cannot delete+-- built-in rules.+--+-- 'httpStatus', 'deleteInsightRulesResponse_httpStatus' - The response's http status code.+newDeleteInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteInsightRulesResponse+newDeleteInsightRulesResponse pHttpStatus_ =+ DeleteInsightRulesResponse'+ { failures =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | An array listing the rules that could not be deleted. You cannot delete+-- built-in rules.+deleteInsightRulesResponse_failures :: Lens.Lens' DeleteInsightRulesResponse (Prelude.Maybe [PartialFailure])+deleteInsightRulesResponse_failures = Lens.lens (\DeleteInsightRulesResponse' {failures} -> failures) (\s@DeleteInsightRulesResponse' {} a -> s {failures = a} :: DeleteInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+deleteInsightRulesResponse_httpStatus :: Lens.Lens' DeleteInsightRulesResponse Prelude.Int+deleteInsightRulesResponse_httpStatus = Lens.lens (\DeleteInsightRulesResponse' {httpStatus} -> httpStatus) (\s@DeleteInsightRulesResponse' {} a -> s {httpStatus = a} :: DeleteInsightRulesResponse)++instance Prelude.NFData DeleteInsightRulesResponse where+ rnf DeleteInsightRulesResponse' {..} =+ Prelude.rnf failures+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DeleteMetricStream.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DeleteMetricStream+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes the metric stream that you specify.+module Amazonka.CloudWatch.DeleteMetricStream+ ( -- * Creating a Request+ DeleteMetricStream (..),+ newDeleteMetricStream,++ -- * Request Lenses+ deleteMetricStream_name,++ -- * Destructuring the Response+ DeleteMetricStreamResponse (..),+ newDeleteMetricStreamResponse,++ -- * Response Lenses+ deleteMetricStreamResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteMetricStream' smart constructor.+data DeleteMetricStream = DeleteMetricStream'+ { -- | The name of the metric stream to delete.+ name :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteMetricStream' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'deleteMetricStream_name' - The name of the metric stream to delete.+newDeleteMetricStream ::+ -- | 'name'+ Prelude.Text ->+ DeleteMetricStream+newDeleteMetricStream pName_ =+ DeleteMetricStream' {name = pName_}++-- | The name of the metric stream to delete.+deleteMetricStream_name :: Lens.Lens' DeleteMetricStream Prelude.Text+deleteMetricStream_name = Lens.lens (\DeleteMetricStream' {name} -> name) (\s@DeleteMetricStream' {} a -> s {name = a} :: DeleteMetricStream)++instance Core.AWSRequest DeleteMetricStream where+ type+ AWSResponse DeleteMetricStream =+ DeleteMetricStreamResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DeleteMetricStreamResult"+ ( \s h x ->+ DeleteMetricStreamResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DeleteMetricStream where+ hashWithSalt _salt DeleteMetricStream' {..} =+ _salt `Prelude.hashWithSalt` name++instance Prelude.NFData DeleteMetricStream where+ rnf DeleteMetricStream' {..} = Prelude.rnf name++instance Data.ToHeaders DeleteMetricStream where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DeleteMetricStream where+ toPath = Prelude.const "/"++instance Data.ToQuery DeleteMetricStream where+ toQuery DeleteMetricStream' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DeleteMetricStream" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Name" Data.=: name+ ]++-- | /See:/ 'newDeleteMetricStreamResponse' smart constructor.+data DeleteMetricStreamResponse = DeleteMetricStreamResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteMetricStreamResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteMetricStreamResponse_httpStatus' - The response's http status code.+newDeleteMetricStreamResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteMetricStreamResponse+newDeleteMetricStreamResponse pHttpStatus_ =+ DeleteMetricStreamResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+deleteMetricStreamResponse_httpStatus :: Lens.Lens' DeleteMetricStreamResponse Prelude.Int+deleteMetricStreamResponse_httpStatus = Lens.lens (\DeleteMetricStreamResponse' {httpStatus} -> httpStatus) (\s@DeleteMetricStreamResponse' {} a -> s {httpStatus = a} :: DeleteMetricStreamResponse)++instance Prelude.NFData DeleteMetricStreamResponse where+ rnf DeleteMetricStreamResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DescribeAlarmHistory.hs view
@@ -0,0 +1,321 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DescribeAlarmHistory+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the history for the specified alarm. You can filter the+-- results by date range or item type. If an alarm name is not specified,+-- the histories for either all metric alarms or all composite alarms are+-- returned.+--+-- CloudWatch retains the history of an alarm even if you delete the alarm.+--+-- To use this operation and return information about a composite alarm,+-- you must be signed on with the @cloudwatch:DescribeAlarmHistory@+-- permission that is scoped to @*@. You can\'t return information about+-- composite alarms if your @cloudwatch:DescribeAlarmHistory@ permission+-- has a narrower scope.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.DescribeAlarmHistory+ ( -- * Creating a Request+ DescribeAlarmHistory (..),+ newDescribeAlarmHistory,++ -- * Request Lenses+ describeAlarmHistory_alarmName,+ describeAlarmHistory_alarmTypes,+ describeAlarmHistory_endDate,+ describeAlarmHistory_historyItemType,+ describeAlarmHistory_maxRecords,+ describeAlarmHistory_nextToken,+ describeAlarmHistory_scanBy,+ describeAlarmHistory_startDate,++ -- * Destructuring the Response+ DescribeAlarmHistoryResponse (..),+ newDescribeAlarmHistoryResponse,++ -- * Response Lenses+ describeAlarmHistoryResponse_alarmHistoryItems,+ describeAlarmHistoryResponse_nextToken,+ describeAlarmHistoryResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeAlarmHistory' smart constructor.+data DescribeAlarmHistory = DescribeAlarmHistory'+ { -- | The name of the alarm.+ alarmName :: Prelude.Maybe Prelude.Text,+ -- | Use this parameter to specify whether you want the operation to return+ -- metric alarms or composite alarms. If you omit this parameter, only+ -- metric alarms are returned.+ alarmTypes :: Prelude.Maybe [AlarmType],+ -- | The ending date to retrieve alarm history.+ endDate :: Prelude.Maybe Data.ISO8601,+ -- | The type of alarm histories to retrieve.+ historyItemType :: Prelude.Maybe HistoryItemType,+ -- | The maximum number of alarm history records to retrieve.+ maxRecords :: Prelude.Maybe Prelude.Natural,+ -- | The token returned by a previous call to indicate that there is more+ -- data available.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | Specified whether to return the newest or oldest alarm history first.+ -- Specify @TimestampDescending@ to have the newest event history returned+ -- first, and specify @TimestampAscending@ to have the oldest history+ -- returned first.+ scanBy :: Prelude.Maybe ScanBy,+ -- | The starting date to retrieve alarm history.+ startDate :: Prelude.Maybe Data.ISO8601+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarmHistory' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmName', 'describeAlarmHistory_alarmName' - The name of the alarm.+--+-- 'alarmTypes', 'describeAlarmHistory_alarmTypes' - Use this parameter to specify whether you want the operation to return+-- metric alarms or composite alarms. If you omit this parameter, only+-- metric alarms are returned.+--+-- 'endDate', 'describeAlarmHistory_endDate' - The ending date to retrieve alarm history.+--+-- 'historyItemType', 'describeAlarmHistory_historyItemType' - The type of alarm histories to retrieve.+--+-- 'maxRecords', 'describeAlarmHistory_maxRecords' - The maximum number of alarm history records to retrieve.+--+-- 'nextToken', 'describeAlarmHistory_nextToken' - The token returned by a previous call to indicate that there is more+-- data available.+--+-- 'scanBy', 'describeAlarmHistory_scanBy' - Specified whether to return the newest or oldest alarm history first.+-- Specify @TimestampDescending@ to have the newest event history returned+-- first, and specify @TimestampAscending@ to have the oldest history+-- returned first.+--+-- 'startDate', 'describeAlarmHistory_startDate' - The starting date to retrieve alarm history.+newDescribeAlarmHistory ::+ DescribeAlarmHistory+newDescribeAlarmHistory =+ DescribeAlarmHistory'+ { alarmName = Prelude.Nothing,+ alarmTypes = Prelude.Nothing,+ endDate = Prelude.Nothing,+ historyItemType = Prelude.Nothing,+ maxRecords = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ scanBy = Prelude.Nothing,+ startDate = Prelude.Nothing+ }++-- | The name of the alarm.+describeAlarmHistory_alarmName :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe Prelude.Text)+describeAlarmHistory_alarmName = Lens.lens (\DescribeAlarmHistory' {alarmName} -> alarmName) (\s@DescribeAlarmHistory' {} a -> s {alarmName = a} :: DescribeAlarmHistory)++-- | Use this parameter to specify whether you want the operation to return+-- metric alarms or composite alarms. If you omit this parameter, only+-- metric alarms are returned.+describeAlarmHistory_alarmTypes :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe [AlarmType])+describeAlarmHistory_alarmTypes = Lens.lens (\DescribeAlarmHistory' {alarmTypes} -> alarmTypes) (\s@DescribeAlarmHistory' {} a -> s {alarmTypes = a} :: DescribeAlarmHistory) Prelude.. Lens.mapping Lens.coerced++-- | The ending date to retrieve alarm history.+describeAlarmHistory_endDate :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe Prelude.UTCTime)+describeAlarmHistory_endDate = Lens.lens (\DescribeAlarmHistory' {endDate} -> endDate) (\s@DescribeAlarmHistory' {} a -> s {endDate = a} :: DescribeAlarmHistory) Prelude.. Lens.mapping Data._Time++-- | The type of alarm histories to retrieve.+describeAlarmHistory_historyItemType :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe HistoryItemType)+describeAlarmHistory_historyItemType = Lens.lens (\DescribeAlarmHistory' {historyItemType} -> historyItemType) (\s@DescribeAlarmHistory' {} a -> s {historyItemType = a} :: DescribeAlarmHistory)++-- | The maximum number of alarm history records to retrieve.+describeAlarmHistory_maxRecords :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe Prelude.Natural)+describeAlarmHistory_maxRecords = Lens.lens (\DescribeAlarmHistory' {maxRecords} -> maxRecords) (\s@DescribeAlarmHistory' {} a -> s {maxRecords = a} :: DescribeAlarmHistory)++-- | The token returned by a previous call to indicate that there is more+-- data available.+describeAlarmHistory_nextToken :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe Prelude.Text)+describeAlarmHistory_nextToken = Lens.lens (\DescribeAlarmHistory' {nextToken} -> nextToken) (\s@DescribeAlarmHistory' {} a -> s {nextToken = a} :: DescribeAlarmHistory)++-- | Specified whether to return the newest or oldest alarm history first.+-- Specify @TimestampDescending@ to have the newest event history returned+-- first, and specify @TimestampAscending@ to have the oldest history+-- returned first.+describeAlarmHistory_scanBy :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe ScanBy)+describeAlarmHistory_scanBy = Lens.lens (\DescribeAlarmHistory' {scanBy} -> scanBy) (\s@DescribeAlarmHistory' {} a -> s {scanBy = a} :: DescribeAlarmHistory)++-- | The starting date to retrieve alarm history.+describeAlarmHistory_startDate :: Lens.Lens' DescribeAlarmHistory (Prelude.Maybe Prelude.UTCTime)+describeAlarmHistory_startDate = Lens.lens (\DescribeAlarmHistory' {startDate} -> startDate) (\s@DescribeAlarmHistory' {} a -> s {startDate = a} :: DescribeAlarmHistory) Prelude.. Lens.mapping Data._Time++instance Core.AWSPager DescribeAlarmHistory where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? describeAlarmHistoryResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? describeAlarmHistoryResponse_alarmHistoryItems+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& describeAlarmHistory_nextToken+ Lens..~ rs+ Lens.^? describeAlarmHistoryResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest DescribeAlarmHistory where+ type+ AWSResponse DescribeAlarmHistory =+ DescribeAlarmHistoryResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DescribeAlarmHistoryResult"+ ( \s h x ->+ DescribeAlarmHistoryResponse'+ Prelude.<$> ( x+ Data..@? "AlarmHistoryItems"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DescribeAlarmHistory where+ hashWithSalt _salt DescribeAlarmHistory' {..} =+ _salt+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` alarmTypes+ `Prelude.hashWithSalt` endDate+ `Prelude.hashWithSalt` historyItemType+ `Prelude.hashWithSalt` maxRecords+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` scanBy+ `Prelude.hashWithSalt` startDate++instance Prelude.NFData DescribeAlarmHistory where+ rnf DescribeAlarmHistory' {..} =+ Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf alarmTypes+ `Prelude.seq` Prelude.rnf endDate+ `Prelude.seq` Prelude.rnf historyItemType+ `Prelude.seq` Prelude.rnf maxRecords+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf scanBy+ `Prelude.seq` Prelude.rnf startDate++instance Data.ToHeaders DescribeAlarmHistory where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DescribeAlarmHistory where+ toPath = Prelude.const "/"++instance Data.ToQuery DescribeAlarmHistory where+ toQuery DescribeAlarmHistory' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DescribeAlarmHistory" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "AlarmName" Data.=: alarmName,+ "AlarmTypes"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> alarmTypes),+ "EndDate" Data.=: endDate,+ "HistoryItemType" Data.=: historyItemType,+ "MaxRecords" Data.=: maxRecords,+ "NextToken" Data.=: nextToken,+ "ScanBy" Data.=: scanBy,+ "StartDate" Data.=: startDate+ ]++-- | /See:/ 'newDescribeAlarmHistoryResponse' smart constructor.+data DescribeAlarmHistoryResponse = DescribeAlarmHistoryResponse'+ { -- | The alarm histories, in JSON format.+ alarmHistoryItems :: Prelude.Maybe [AlarmHistoryItem],+ -- | The token that marks the start of the next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarmHistoryResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmHistoryItems', 'describeAlarmHistoryResponse_alarmHistoryItems' - The alarm histories, in JSON format.+--+-- 'nextToken', 'describeAlarmHistoryResponse_nextToken' - The token that marks the start of the next batch of returned results.+--+-- 'httpStatus', 'describeAlarmHistoryResponse_httpStatus' - The response's http status code.+newDescribeAlarmHistoryResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DescribeAlarmHistoryResponse+newDescribeAlarmHistoryResponse pHttpStatus_ =+ DescribeAlarmHistoryResponse'+ { alarmHistoryItems =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The alarm histories, in JSON format.+describeAlarmHistoryResponse_alarmHistoryItems :: Lens.Lens' DescribeAlarmHistoryResponse (Prelude.Maybe [AlarmHistoryItem])+describeAlarmHistoryResponse_alarmHistoryItems = Lens.lens (\DescribeAlarmHistoryResponse' {alarmHistoryItems} -> alarmHistoryItems) (\s@DescribeAlarmHistoryResponse' {} a -> s {alarmHistoryItems = a} :: DescribeAlarmHistoryResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token that marks the start of the next batch of returned results.+describeAlarmHistoryResponse_nextToken :: Lens.Lens' DescribeAlarmHistoryResponse (Prelude.Maybe Prelude.Text)+describeAlarmHistoryResponse_nextToken = Lens.lens (\DescribeAlarmHistoryResponse' {nextToken} -> nextToken) (\s@DescribeAlarmHistoryResponse' {} a -> s {nextToken = a} :: DescribeAlarmHistoryResponse)++-- | The response's http status code.+describeAlarmHistoryResponse_httpStatus :: Lens.Lens' DescribeAlarmHistoryResponse Prelude.Int+describeAlarmHistoryResponse_httpStatus = Lens.lens (\DescribeAlarmHistoryResponse' {httpStatus} -> httpStatus) (\s@DescribeAlarmHistoryResponse' {} a -> s {httpStatus = a} :: DescribeAlarmHistoryResponse)++instance Prelude.NFData DescribeAlarmHistoryResponse where+ rnf DescribeAlarmHistoryResponse' {..} =+ Prelude.rnf alarmHistoryItems+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DescribeAlarms.hs view
@@ -0,0 +1,459 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DescribeAlarms+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the specified alarms. You can filter the results by specifying+-- a prefix for the alarm name, the alarm state, or a prefix for any+-- action.+--+-- To use this operation and return information about composite alarms, you+-- must be signed on with the @cloudwatch:DescribeAlarms@ permission that+-- is scoped to @*@. You can\'t return information about composite alarms+-- if your @cloudwatch:DescribeAlarms@ permission has a narrower scope.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.DescribeAlarms+ ( -- * Creating a Request+ DescribeAlarms (..),+ newDescribeAlarms,++ -- * Request Lenses+ describeAlarms_actionPrefix,+ describeAlarms_alarmNamePrefix,+ describeAlarms_alarmNames,+ describeAlarms_alarmTypes,+ describeAlarms_childrenOfAlarmName,+ describeAlarms_maxRecords,+ describeAlarms_nextToken,+ describeAlarms_parentsOfAlarmName,+ describeAlarms_stateValue,++ -- * Destructuring the Response+ DescribeAlarmsResponse (..),+ newDescribeAlarmsResponse,++ -- * Response Lenses+ describeAlarmsResponse_compositeAlarms,+ describeAlarmsResponse_metricAlarms,+ describeAlarmsResponse_nextToken,+ describeAlarmsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeAlarms' smart constructor.+data DescribeAlarms = DescribeAlarms'+ { -- | Use this parameter to filter the results of the operation to only those+ -- alarms that use a certain alarm action. For example, you could specify+ -- the ARN of an SNS topic to find all alarms that send notifications to+ -- that topic.+ actionPrefix :: Prelude.Maybe Prelude.Text,+ -- | An alarm name prefix. If you specify this parameter, you receive+ -- information about all alarms that have names that start with this+ -- prefix.+ --+ -- If this parameter is specified, you cannot specify @AlarmNames@.+ alarmNamePrefix :: Prelude.Maybe Prelude.Text,+ -- | The names of the alarms to retrieve information about.+ alarmNames :: Prelude.Maybe [Prelude.Text],+ -- | Use this parameter to specify whether you want the operation to return+ -- metric alarms or composite alarms. If you omit this parameter, only+ -- metric alarms are returned.+ alarmTypes :: Prelude.Maybe [AlarmType],+ -- | If you use this parameter and specify the name of a composite alarm, the+ -- operation returns information about the \"children\" alarms of the alarm+ -- you specify. These are the metric alarms and composite alarms referenced+ -- in the @AlarmRule@ field of the composite alarm that you specify in+ -- @ChildrenOfAlarmName@. Information about the composite alarm that you+ -- name in @ChildrenOfAlarmName@ is not returned.+ --+ -- If you specify @ChildrenOfAlarmName@, you cannot specify any other+ -- parameters in the request except for @MaxRecords@ and @NextToken@. If+ -- you do so, you receive a validation error.+ --+ -- Only the @Alarm Name@, @ARN@, @StateValue@+ -- (OK\/ALARM\/INSUFFICIENT_DATA), and @StateUpdatedTimestamp@ information+ -- are returned by this operation when you use this parameter. To get+ -- complete information about these alarms, perform another+ -- @DescribeAlarms@ operation and specify the parent alarm names in the+ -- @AlarmNames@ parameter.+ childrenOfAlarmName :: Prelude.Maybe Prelude.Text,+ -- | The maximum number of alarm descriptions to retrieve.+ maxRecords :: Prelude.Maybe Prelude.Natural,+ -- | The token returned by a previous call to indicate that there is more+ -- data available.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | If you use this parameter and specify the name of a metric or composite+ -- alarm, the operation returns information about the \"parent\" alarms of+ -- the alarm you specify. These are the composite alarms that have+ -- @AlarmRule@ parameters that reference the alarm named in+ -- @ParentsOfAlarmName@. Information about the alarm that you specify in+ -- @ParentsOfAlarmName@ is not returned.+ --+ -- If you specify @ParentsOfAlarmName@, you cannot specify any other+ -- parameters in the request except for @MaxRecords@ and @NextToken@. If+ -- you do so, you receive a validation error.+ --+ -- Only the Alarm Name and ARN are returned by this operation when you use+ -- this parameter. To get complete information about these alarms, perform+ -- another @DescribeAlarms@ operation and specify the parent alarm names in+ -- the @AlarmNames@ parameter.+ parentsOfAlarmName :: Prelude.Maybe Prelude.Text,+ -- | Specify this parameter to receive information only about alarms that are+ -- currently in the state that you specify.+ stateValue :: Prelude.Maybe StateValue+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarms' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'actionPrefix', 'describeAlarms_actionPrefix' - Use this parameter to filter the results of the operation to only those+-- alarms that use a certain alarm action. For example, you could specify+-- the ARN of an SNS topic to find all alarms that send notifications to+-- that topic.+--+-- 'alarmNamePrefix', 'describeAlarms_alarmNamePrefix' - An alarm name prefix. If you specify this parameter, you receive+-- information about all alarms that have names that start with this+-- prefix.+--+-- If this parameter is specified, you cannot specify @AlarmNames@.+--+-- 'alarmNames', 'describeAlarms_alarmNames' - The names of the alarms to retrieve information about.+--+-- 'alarmTypes', 'describeAlarms_alarmTypes' - Use this parameter to specify whether you want the operation to return+-- metric alarms or composite alarms. If you omit this parameter, only+-- metric alarms are returned.+--+-- 'childrenOfAlarmName', 'describeAlarms_childrenOfAlarmName' - If you use this parameter and specify the name of a composite alarm, the+-- operation returns information about the \"children\" alarms of the alarm+-- you specify. These are the metric alarms and composite alarms referenced+-- in the @AlarmRule@ field of the composite alarm that you specify in+-- @ChildrenOfAlarmName@. Information about the composite alarm that you+-- name in @ChildrenOfAlarmName@ is not returned.+--+-- If you specify @ChildrenOfAlarmName@, you cannot specify any other+-- parameters in the request except for @MaxRecords@ and @NextToken@. If+-- you do so, you receive a validation error.+--+-- Only the @Alarm Name@, @ARN@, @StateValue@+-- (OK\/ALARM\/INSUFFICIENT_DATA), and @StateUpdatedTimestamp@ information+-- are returned by this operation when you use this parameter. To get+-- complete information about these alarms, perform another+-- @DescribeAlarms@ operation and specify the parent alarm names in the+-- @AlarmNames@ parameter.+--+-- 'maxRecords', 'describeAlarms_maxRecords' - The maximum number of alarm descriptions to retrieve.+--+-- 'nextToken', 'describeAlarms_nextToken' - The token returned by a previous call to indicate that there is more+-- data available.+--+-- 'parentsOfAlarmName', 'describeAlarms_parentsOfAlarmName' - If you use this parameter and specify the name of a metric or composite+-- alarm, the operation returns information about the \"parent\" alarms of+-- the alarm you specify. These are the composite alarms that have+-- @AlarmRule@ parameters that reference the alarm named in+-- @ParentsOfAlarmName@. Information about the alarm that you specify in+-- @ParentsOfAlarmName@ is not returned.+--+-- If you specify @ParentsOfAlarmName@, you cannot specify any other+-- parameters in the request except for @MaxRecords@ and @NextToken@. If+-- you do so, you receive a validation error.+--+-- Only the Alarm Name and ARN are returned by this operation when you use+-- this parameter. To get complete information about these alarms, perform+-- another @DescribeAlarms@ operation and specify the parent alarm names in+-- the @AlarmNames@ parameter.+--+-- 'stateValue', 'describeAlarms_stateValue' - Specify this parameter to receive information only about alarms that are+-- currently in the state that you specify.+newDescribeAlarms ::+ DescribeAlarms+newDescribeAlarms =+ DescribeAlarms'+ { actionPrefix = Prelude.Nothing,+ alarmNamePrefix = Prelude.Nothing,+ alarmNames = Prelude.Nothing,+ alarmTypes = Prelude.Nothing,+ childrenOfAlarmName = Prelude.Nothing,+ maxRecords = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ parentsOfAlarmName = Prelude.Nothing,+ stateValue = Prelude.Nothing+ }++-- | Use this parameter to filter the results of the operation to only those+-- alarms that use a certain alarm action. For example, you could specify+-- the ARN of an SNS topic to find all alarms that send notifications to+-- that topic.+describeAlarms_actionPrefix :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Text)+describeAlarms_actionPrefix = Lens.lens (\DescribeAlarms' {actionPrefix} -> actionPrefix) (\s@DescribeAlarms' {} a -> s {actionPrefix = a} :: DescribeAlarms)++-- | An alarm name prefix. If you specify this parameter, you receive+-- information about all alarms that have names that start with this+-- prefix.+--+-- If this parameter is specified, you cannot specify @AlarmNames@.+describeAlarms_alarmNamePrefix :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Text)+describeAlarms_alarmNamePrefix = Lens.lens (\DescribeAlarms' {alarmNamePrefix} -> alarmNamePrefix) (\s@DescribeAlarms' {} a -> s {alarmNamePrefix = a} :: DescribeAlarms)++-- | The names of the alarms to retrieve information about.+describeAlarms_alarmNames :: Lens.Lens' DescribeAlarms (Prelude.Maybe [Prelude.Text])+describeAlarms_alarmNames = Lens.lens (\DescribeAlarms' {alarmNames} -> alarmNames) (\s@DescribeAlarms' {} a -> s {alarmNames = a} :: DescribeAlarms) Prelude.. Lens.mapping Lens.coerced++-- | Use this parameter to specify whether you want the operation to return+-- metric alarms or composite alarms. If you omit this parameter, only+-- metric alarms are returned.+describeAlarms_alarmTypes :: Lens.Lens' DescribeAlarms (Prelude.Maybe [AlarmType])+describeAlarms_alarmTypes = Lens.lens (\DescribeAlarms' {alarmTypes} -> alarmTypes) (\s@DescribeAlarms' {} a -> s {alarmTypes = a} :: DescribeAlarms) Prelude.. Lens.mapping Lens.coerced++-- | If you use this parameter and specify the name of a composite alarm, the+-- operation returns information about the \"children\" alarms of the alarm+-- you specify. These are the metric alarms and composite alarms referenced+-- in the @AlarmRule@ field of the composite alarm that you specify in+-- @ChildrenOfAlarmName@. Information about the composite alarm that you+-- name in @ChildrenOfAlarmName@ is not returned.+--+-- If you specify @ChildrenOfAlarmName@, you cannot specify any other+-- parameters in the request except for @MaxRecords@ and @NextToken@. If+-- you do so, you receive a validation error.+--+-- Only the @Alarm Name@, @ARN@, @StateValue@+-- (OK\/ALARM\/INSUFFICIENT_DATA), and @StateUpdatedTimestamp@ information+-- are returned by this operation when you use this parameter. To get+-- complete information about these alarms, perform another+-- @DescribeAlarms@ operation and specify the parent alarm names in the+-- @AlarmNames@ parameter.+describeAlarms_childrenOfAlarmName :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Text)+describeAlarms_childrenOfAlarmName = Lens.lens (\DescribeAlarms' {childrenOfAlarmName} -> childrenOfAlarmName) (\s@DescribeAlarms' {} a -> s {childrenOfAlarmName = a} :: DescribeAlarms)++-- | The maximum number of alarm descriptions to retrieve.+describeAlarms_maxRecords :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Natural)+describeAlarms_maxRecords = Lens.lens (\DescribeAlarms' {maxRecords} -> maxRecords) (\s@DescribeAlarms' {} a -> s {maxRecords = a} :: DescribeAlarms)++-- | The token returned by a previous call to indicate that there is more+-- data available.+describeAlarms_nextToken :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Text)+describeAlarms_nextToken = Lens.lens (\DescribeAlarms' {nextToken} -> nextToken) (\s@DescribeAlarms' {} a -> s {nextToken = a} :: DescribeAlarms)++-- | If you use this parameter and specify the name of a metric or composite+-- alarm, the operation returns information about the \"parent\" alarms of+-- the alarm you specify. These are the composite alarms that have+-- @AlarmRule@ parameters that reference the alarm named in+-- @ParentsOfAlarmName@. Information about the alarm that you specify in+-- @ParentsOfAlarmName@ is not returned.+--+-- If you specify @ParentsOfAlarmName@, you cannot specify any other+-- parameters in the request except for @MaxRecords@ and @NextToken@. If+-- you do so, you receive a validation error.+--+-- Only the Alarm Name and ARN are returned by this operation when you use+-- this parameter. To get complete information about these alarms, perform+-- another @DescribeAlarms@ operation and specify the parent alarm names in+-- the @AlarmNames@ parameter.+describeAlarms_parentsOfAlarmName :: Lens.Lens' DescribeAlarms (Prelude.Maybe Prelude.Text)+describeAlarms_parentsOfAlarmName = Lens.lens (\DescribeAlarms' {parentsOfAlarmName} -> parentsOfAlarmName) (\s@DescribeAlarms' {} a -> s {parentsOfAlarmName = a} :: DescribeAlarms)++-- | Specify this parameter to receive information only about alarms that are+-- currently in the state that you specify.+describeAlarms_stateValue :: Lens.Lens' DescribeAlarms (Prelude.Maybe StateValue)+describeAlarms_stateValue = Lens.lens (\DescribeAlarms' {stateValue} -> stateValue) (\s@DescribeAlarms' {} a -> s {stateValue = a} :: DescribeAlarms)++instance Core.AWSPager DescribeAlarms where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? describeAlarmsResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? describeAlarmsResponse_metricAlarms+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? describeAlarmsResponse_compositeAlarms+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& describeAlarms_nextToken+ Lens..~ rs+ Lens.^? describeAlarmsResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest DescribeAlarms where+ type+ AWSResponse DescribeAlarms =+ DescribeAlarmsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DescribeAlarmsResult"+ ( \s h x ->+ DescribeAlarmsResponse'+ Prelude.<$> ( x+ Data..@? "CompositeAlarms"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "MetricAlarms"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DescribeAlarms where+ hashWithSalt _salt DescribeAlarms' {..} =+ _salt+ `Prelude.hashWithSalt` actionPrefix+ `Prelude.hashWithSalt` alarmNamePrefix+ `Prelude.hashWithSalt` alarmNames+ `Prelude.hashWithSalt` alarmTypes+ `Prelude.hashWithSalt` childrenOfAlarmName+ `Prelude.hashWithSalt` maxRecords+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` parentsOfAlarmName+ `Prelude.hashWithSalt` stateValue++instance Prelude.NFData DescribeAlarms where+ rnf DescribeAlarms' {..} =+ Prelude.rnf actionPrefix+ `Prelude.seq` Prelude.rnf alarmNamePrefix+ `Prelude.seq` Prelude.rnf alarmNames+ `Prelude.seq` Prelude.rnf alarmTypes+ `Prelude.seq` Prelude.rnf childrenOfAlarmName+ `Prelude.seq` Prelude.rnf maxRecords+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf parentsOfAlarmName+ `Prelude.seq` Prelude.rnf stateValue++instance Data.ToHeaders DescribeAlarms where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DescribeAlarms where+ toPath = Prelude.const "/"++instance Data.ToQuery DescribeAlarms where+ toQuery DescribeAlarms' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DescribeAlarms" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ActionPrefix" Data.=: actionPrefix,+ "AlarmNamePrefix" Data.=: alarmNamePrefix,+ "AlarmNames"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> alarmNames),+ "AlarmTypes"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> alarmTypes),+ "ChildrenOfAlarmName" Data.=: childrenOfAlarmName,+ "MaxRecords" Data.=: maxRecords,+ "NextToken" Data.=: nextToken,+ "ParentsOfAlarmName" Data.=: parentsOfAlarmName,+ "StateValue" Data.=: stateValue+ ]++-- | /See:/ 'newDescribeAlarmsResponse' smart constructor.+data DescribeAlarmsResponse = DescribeAlarmsResponse'+ { -- | The information about any composite alarms returned by the operation.+ compositeAlarms :: Prelude.Maybe [CompositeAlarm],+ -- | The information about any metric alarms returned by the operation.+ metricAlarms :: Prelude.Maybe [MetricAlarm],+ -- | The token that marks the start of the next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarmsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'compositeAlarms', 'describeAlarmsResponse_compositeAlarms' - The information about any composite alarms returned by the operation.+--+-- 'metricAlarms', 'describeAlarmsResponse_metricAlarms' - The information about any metric alarms returned by the operation.+--+-- 'nextToken', 'describeAlarmsResponse_nextToken' - The token that marks the start of the next batch of returned results.+--+-- 'httpStatus', 'describeAlarmsResponse_httpStatus' - The response's http status code.+newDescribeAlarmsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DescribeAlarmsResponse+newDescribeAlarmsResponse pHttpStatus_ =+ DescribeAlarmsResponse'+ { compositeAlarms =+ Prelude.Nothing,+ metricAlarms = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The information about any composite alarms returned by the operation.+describeAlarmsResponse_compositeAlarms :: Lens.Lens' DescribeAlarmsResponse (Prelude.Maybe [CompositeAlarm])+describeAlarmsResponse_compositeAlarms = Lens.lens (\DescribeAlarmsResponse' {compositeAlarms} -> compositeAlarms) (\s@DescribeAlarmsResponse' {} a -> s {compositeAlarms = a} :: DescribeAlarmsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The information about any metric alarms returned by the operation.+describeAlarmsResponse_metricAlarms :: Lens.Lens' DescribeAlarmsResponse (Prelude.Maybe [MetricAlarm])+describeAlarmsResponse_metricAlarms = Lens.lens (\DescribeAlarmsResponse' {metricAlarms} -> metricAlarms) (\s@DescribeAlarmsResponse' {} a -> s {metricAlarms = a} :: DescribeAlarmsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token that marks the start of the next batch of returned results.+describeAlarmsResponse_nextToken :: Lens.Lens' DescribeAlarmsResponse (Prelude.Maybe Prelude.Text)+describeAlarmsResponse_nextToken = Lens.lens (\DescribeAlarmsResponse' {nextToken} -> nextToken) (\s@DescribeAlarmsResponse' {} a -> s {nextToken = a} :: DescribeAlarmsResponse)++-- | The response's http status code.+describeAlarmsResponse_httpStatus :: Lens.Lens' DescribeAlarmsResponse Prelude.Int+describeAlarmsResponse_httpStatus = Lens.lens (\DescribeAlarmsResponse' {httpStatus} -> httpStatus) (\s@DescribeAlarmsResponse' {} a -> s {httpStatus = a} :: DescribeAlarmsResponse)++instance Prelude.NFData DescribeAlarmsResponse where+ rnf DescribeAlarmsResponse' {..} =+ Prelude.rnf compositeAlarms+ `Prelude.seq` Prelude.rnf metricAlarms+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DescribeAlarmsForMetric.hs view
@@ -0,0 +1,269 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DescribeAlarmsForMetric+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the alarms for the specified metric. To filter the results,+-- specify a statistic, period, or unit.+--+-- This operation retrieves only standard alarms that are based on the+-- specified metric. It does not return alarms based on math expressions+-- that use the specified metric, or composite alarms that use the+-- specified metric.+module Amazonka.CloudWatch.DescribeAlarmsForMetric+ ( -- * Creating a Request+ DescribeAlarmsForMetric (..),+ newDescribeAlarmsForMetric,++ -- * Request Lenses+ describeAlarmsForMetric_dimensions,+ describeAlarmsForMetric_extendedStatistic,+ describeAlarmsForMetric_period,+ describeAlarmsForMetric_statistic,+ describeAlarmsForMetric_unit,+ describeAlarmsForMetric_metricName,+ describeAlarmsForMetric_namespace,++ -- * Destructuring the Response+ DescribeAlarmsForMetricResponse (..),+ newDescribeAlarmsForMetricResponse,++ -- * Response Lenses+ describeAlarmsForMetricResponse_metricAlarms,+ describeAlarmsForMetricResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeAlarmsForMetric' smart constructor.+data DescribeAlarmsForMetric = DescribeAlarmsForMetric'+ { -- | The dimensions associated with the metric. If the metric has any+ -- associated dimensions, you must specify them in order for the call to+ -- succeed.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The percentile statistic for the metric. Specify a value between p0.0+ -- and p100.+ extendedStatistic :: Prelude.Maybe Prelude.Text,+ -- | The period, in seconds, over which the statistic is applied.+ period :: Prelude.Maybe Prelude.Natural,+ -- | The statistic for the metric, other than percentiles. For percentile+ -- statistics, use @ExtendedStatistics@.+ statistic :: Prelude.Maybe Statistic,+ -- | The unit for the metric.+ unit :: Prelude.Maybe StandardUnit,+ -- | The name of the metric.+ metricName :: Prelude.Text,+ -- | The namespace of the metric.+ namespace :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarmsForMetric' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'describeAlarmsForMetric_dimensions' - The dimensions associated with the metric. If the metric has any+-- associated dimensions, you must specify them in order for the call to+-- succeed.+--+-- 'extendedStatistic', 'describeAlarmsForMetric_extendedStatistic' - The percentile statistic for the metric. Specify a value between p0.0+-- and p100.+--+-- 'period', 'describeAlarmsForMetric_period' - The period, in seconds, over which the statistic is applied.+--+-- 'statistic', 'describeAlarmsForMetric_statistic' - The statistic for the metric, other than percentiles. For percentile+-- statistics, use @ExtendedStatistics@.+--+-- 'unit', 'describeAlarmsForMetric_unit' - The unit for the metric.+--+-- 'metricName', 'describeAlarmsForMetric_metricName' - The name of the metric.+--+-- 'namespace', 'describeAlarmsForMetric_namespace' - The namespace of the metric.+newDescribeAlarmsForMetric ::+ -- | 'metricName'+ Prelude.Text ->+ -- | 'namespace'+ Prelude.Text ->+ DescribeAlarmsForMetric+newDescribeAlarmsForMetric pMetricName_ pNamespace_ =+ DescribeAlarmsForMetric'+ { dimensions =+ Prelude.Nothing,+ extendedStatistic = Prelude.Nothing,+ period = Prelude.Nothing,+ statistic = Prelude.Nothing,+ unit = Prelude.Nothing,+ metricName = pMetricName_,+ namespace = pNamespace_+ }++-- | The dimensions associated with the metric. If the metric has any+-- associated dimensions, you must specify them in order for the call to+-- succeed.+describeAlarmsForMetric_dimensions :: Lens.Lens' DescribeAlarmsForMetric (Prelude.Maybe [Dimension])+describeAlarmsForMetric_dimensions = Lens.lens (\DescribeAlarmsForMetric' {dimensions} -> dimensions) (\s@DescribeAlarmsForMetric' {} a -> s {dimensions = a} :: DescribeAlarmsForMetric) Prelude.. Lens.mapping Lens.coerced++-- | The percentile statistic for the metric. Specify a value between p0.0+-- and p100.+describeAlarmsForMetric_extendedStatistic :: Lens.Lens' DescribeAlarmsForMetric (Prelude.Maybe Prelude.Text)+describeAlarmsForMetric_extendedStatistic = Lens.lens (\DescribeAlarmsForMetric' {extendedStatistic} -> extendedStatistic) (\s@DescribeAlarmsForMetric' {} a -> s {extendedStatistic = a} :: DescribeAlarmsForMetric)++-- | The period, in seconds, over which the statistic is applied.+describeAlarmsForMetric_period :: Lens.Lens' DescribeAlarmsForMetric (Prelude.Maybe Prelude.Natural)+describeAlarmsForMetric_period = Lens.lens (\DescribeAlarmsForMetric' {period} -> period) (\s@DescribeAlarmsForMetric' {} a -> s {period = a} :: DescribeAlarmsForMetric)++-- | The statistic for the metric, other than percentiles. For percentile+-- statistics, use @ExtendedStatistics@.+describeAlarmsForMetric_statistic :: Lens.Lens' DescribeAlarmsForMetric (Prelude.Maybe Statistic)+describeAlarmsForMetric_statistic = Lens.lens (\DescribeAlarmsForMetric' {statistic} -> statistic) (\s@DescribeAlarmsForMetric' {} a -> s {statistic = a} :: DescribeAlarmsForMetric)++-- | The unit for the metric.+describeAlarmsForMetric_unit :: Lens.Lens' DescribeAlarmsForMetric (Prelude.Maybe StandardUnit)+describeAlarmsForMetric_unit = Lens.lens (\DescribeAlarmsForMetric' {unit} -> unit) (\s@DescribeAlarmsForMetric' {} a -> s {unit = a} :: DescribeAlarmsForMetric)++-- | The name of the metric.+describeAlarmsForMetric_metricName :: Lens.Lens' DescribeAlarmsForMetric Prelude.Text+describeAlarmsForMetric_metricName = Lens.lens (\DescribeAlarmsForMetric' {metricName} -> metricName) (\s@DescribeAlarmsForMetric' {} a -> s {metricName = a} :: DescribeAlarmsForMetric)++-- | The namespace of the metric.+describeAlarmsForMetric_namespace :: Lens.Lens' DescribeAlarmsForMetric Prelude.Text+describeAlarmsForMetric_namespace = Lens.lens (\DescribeAlarmsForMetric' {namespace} -> namespace) (\s@DescribeAlarmsForMetric' {} a -> s {namespace = a} :: DescribeAlarmsForMetric)++instance Core.AWSRequest DescribeAlarmsForMetric where+ type+ AWSResponse DescribeAlarmsForMetric =+ DescribeAlarmsForMetricResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DescribeAlarmsForMetricResult"+ ( \s h x ->+ DescribeAlarmsForMetricResponse'+ Prelude.<$> ( x+ Data..@? "MetricAlarms"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DescribeAlarmsForMetric where+ hashWithSalt _salt DescribeAlarmsForMetric' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` extendedStatistic+ `Prelude.hashWithSalt` period+ `Prelude.hashWithSalt` statistic+ `Prelude.hashWithSalt` unit+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace++instance Prelude.NFData DescribeAlarmsForMetric where+ rnf DescribeAlarmsForMetric' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf extendedStatistic+ `Prelude.seq` Prelude.rnf period+ `Prelude.seq` Prelude.rnf statistic+ `Prelude.seq` Prelude.rnf unit+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace++instance Data.ToHeaders DescribeAlarmsForMetric where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DescribeAlarmsForMetric where+ toPath = Prelude.const "/"++instance Data.ToQuery DescribeAlarmsForMetric where+ toQuery DescribeAlarmsForMetric' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DescribeAlarmsForMetric" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "ExtendedStatistic" Data.=: extendedStatistic,+ "Period" Data.=: period,+ "Statistic" Data.=: statistic,+ "Unit" Data.=: unit,+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace+ ]++-- | /See:/ 'newDescribeAlarmsForMetricResponse' smart constructor.+data DescribeAlarmsForMetricResponse = DescribeAlarmsForMetricResponse'+ { -- | The information for each alarm with the specified metric.+ metricAlarms :: Prelude.Maybe [MetricAlarm],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAlarmsForMetricResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'metricAlarms', 'describeAlarmsForMetricResponse_metricAlarms' - The information for each alarm with the specified metric.+--+-- 'httpStatus', 'describeAlarmsForMetricResponse_httpStatus' - The response's http status code.+newDescribeAlarmsForMetricResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DescribeAlarmsForMetricResponse+newDescribeAlarmsForMetricResponse pHttpStatus_ =+ DescribeAlarmsForMetricResponse'+ { metricAlarms =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The information for each alarm with the specified metric.+describeAlarmsForMetricResponse_metricAlarms :: Lens.Lens' DescribeAlarmsForMetricResponse (Prelude.Maybe [MetricAlarm])+describeAlarmsForMetricResponse_metricAlarms = Lens.lens (\DescribeAlarmsForMetricResponse' {metricAlarms} -> metricAlarms) (\s@DescribeAlarmsForMetricResponse' {} a -> s {metricAlarms = a} :: DescribeAlarmsForMetricResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+describeAlarmsForMetricResponse_httpStatus :: Lens.Lens' DescribeAlarmsForMetricResponse Prelude.Int+describeAlarmsForMetricResponse_httpStatus = Lens.lens (\DescribeAlarmsForMetricResponse' {httpStatus} -> httpStatus) (\s@DescribeAlarmsForMetricResponse' {} a -> s {httpStatus = a} :: DescribeAlarmsForMetricResponse)++instance+ Prelude.NFData+ DescribeAlarmsForMetricResponse+ where+ rnf DescribeAlarmsForMetricResponse' {..} =+ Prelude.rnf metricAlarms+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DescribeAnomalyDetectors.hs view
@@ -0,0 +1,322 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DescribeAnomalyDetectors+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the anomaly detection models that you have created in your+-- account. For single metric anomaly detectors, you can list all of the+-- models in your account or filter the results to only the models that are+-- related to a certain namespace, metric name, or metric dimension. For+-- metric math anomaly detectors, you can list them by adding @METRIC_MATH@+-- to the @AnomalyDetectorTypes@ array. This will return all metric math+-- anomaly detectors in your account.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.DescribeAnomalyDetectors+ ( -- * Creating a Request+ DescribeAnomalyDetectors (..),+ newDescribeAnomalyDetectors,++ -- * Request Lenses+ describeAnomalyDetectors_anomalyDetectorTypes,+ describeAnomalyDetectors_dimensions,+ describeAnomalyDetectors_maxResults,+ describeAnomalyDetectors_metricName,+ describeAnomalyDetectors_namespace,+ describeAnomalyDetectors_nextToken,++ -- * Destructuring the Response+ DescribeAnomalyDetectorsResponse (..),+ newDescribeAnomalyDetectorsResponse,++ -- * Response Lenses+ describeAnomalyDetectorsResponse_anomalyDetectors,+ describeAnomalyDetectorsResponse_nextToken,+ describeAnomalyDetectorsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeAnomalyDetectors' smart constructor.+data DescribeAnomalyDetectors = DescribeAnomalyDetectors'+ { -- | The anomaly detector types to request when using+ -- @DescribeAnomalyDetectorsInput@. If empty, defaults to @SINGLE_METRIC@.+ anomalyDetectorTypes :: Prelude.Maybe [AnomalyDetectorType],+ -- | Limits the results to only the anomaly detection models that are+ -- associated with the specified metric dimensions. If there are multiple+ -- metrics that have these dimensions and have anomaly detection models+ -- associated, they\'re all returned.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The maximum number of results to return in one operation. The maximum+ -- value that you can specify is 100.+ --+ -- To retrieve the remaining results, make another call with the returned+ -- @NextToken@ value.+ maxResults :: Prelude.Maybe Prelude.Natural,+ -- | Limits the results to only the anomaly detection models that are+ -- associated with the specified metric name. If there are multiple metrics+ -- with this name in different namespaces that have anomaly detection+ -- models, they\'re all returned.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | Limits the results to only the anomaly detection models that are+ -- associated with the specified namespace.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | Use the token returned by the previous operation to request the next+ -- page of results.+ nextToken :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAnomalyDetectors' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'anomalyDetectorTypes', 'describeAnomalyDetectors_anomalyDetectorTypes' - The anomaly detector types to request when using+-- @DescribeAnomalyDetectorsInput@. If empty, defaults to @SINGLE_METRIC@.+--+-- 'dimensions', 'describeAnomalyDetectors_dimensions' - Limits the results to only the anomaly detection models that are+-- associated with the specified metric dimensions. If there are multiple+-- metrics that have these dimensions and have anomaly detection models+-- associated, they\'re all returned.+--+-- 'maxResults', 'describeAnomalyDetectors_maxResults' - The maximum number of results to return in one operation. The maximum+-- value that you can specify is 100.+--+-- To retrieve the remaining results, make another call with the returned+-- @NextToken@ value.+--+-- 'metricName', 'describeAnomalyDetectors_metricName' - Limits the results to only the anomaly detection models that are+-- associated with the specified metric name. If there are multiple metrics+-- with this name in different namespaces that have anomaly detection+-- models, they\'re all returned.+--+-- 'namespace', 'describeAnomalyDetectors_namespace' - Limits the results to only the anomaly detection models that are+-- associated with the specified namespace.+--+-- 'nextToken', 'describeAnomalyDetectors_nextToken' - Use the token returned by the previous operation to request the next+-- page of results.+newDescribeAnomalyDetectors ::+ DescribeAnomalyDetectors+newDescribeAnomalyDetectors =+ DescribeAnomalyDetectors'+ { anomalyDetectorTypes =+ Prelude.Nothing,+ dimensions = Prelude.Nothing,+ maxResults = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ nextToken = Prelude.Nothing+ }++-- | The anomaly detector types to request when using+-- @DescribeAnomalyDetectorsInput@. If empty, defaults to @SINGLE_METRIC@.+describeAnomalyDetectors_anomalyDetectorTypes :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe [AnomalyDetectorType])+describeAnomalyDetectors_anomalyDetectorTypes = Lens.lens (\DescribeAnomalyDetectors' {anomalyDetectorTypes} -> anomalyDetectorTypes) (\s@DescribeAnomalyDetectors' {} a -> s {anomalyDetectorTypes = a} :: DescribeAnomalyDetectors) Prelude.. Lens.mapping Lens.coerced++-- | Limits the results to only the anomaly detection models that are+-- associated with the specified metric dimensions. If there are multiple+-- metrics that have these dimensions and have anomaly detection models+-- associated, they\'re all returned.+describeAnomalyDetectors_dimensions :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe [Dimension])+describeAnomalyDetectors_dimensions = Lens.lens (\DescribeAnomalyDetectors' {dimensions} -> dimensions) (\s@DescribeAnomalyDetectors' {} a -> s {dimensions = a} :: DescribeAnomalyDetectors) Prelude.. Lens.mapping Lens.coerced++-- | The maximum number of results to return in one operation. The maximum+-- value that you can specify is 100.+--+-- To retrieve the remaining results, make another call with the returned+-- @NextToken@ value.+describeAnomalyDetectors_maxResults :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe Prelude.Natural)+describeAnomalyDetectors_maxResults = Lens.lens (\DescribeAnomalyDetectors' {maxResults} -> maxResults) (\s@DescribeAnomalyDetectors' {} a -> s {maxResults = a} :: DescribeAnomalyDetectors)++-- | Limits the results to only the anomaly detection models that are+-- associated with the specified metric name. If there are multiple metrics+-- with this name in different namespaces that have anomaly detection+-- models, they\'re all returned.+describeAnomalyDetectors_metricName :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe Prelude.Text)+describeAnomalyDetectors_metricName = Lens.lens (\DescribeAnomalyDetectors' {metricName} -> metricName) (\s@DescribeAnomalyDetectors' {} a -> s {metricName = a} :: DescribeAnomalyDetectors)++-- | Limits the results to only the anomaly detection models that are+-- associated with the specified namespace.+describeAnomalyDetectors_namespace :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe Prelude.Text)+describeAnomalyDetectors_namespace = Lens.lens (\DescribeAnomalyDetectors' {namespace} -> namespace) (\s@DescribeAnomalyDetectors' {} a -> s {namespace = a} :: DescribeAnomalyDetectors)++-- | Use the token returned by the previous operation to request the next+-- page of results.+describeAnomalyDetectors_nextToken :: Lens.Lens' DescribeAnomalyDetectors (Prelude.Maybe Prelude.Text)+describeAnomalyDetectors_nextToken = Lens.lens (\DescribeAnomalyDetectors' {nextToken} -> nextToken) (\s@DescribeAnomalyDetectors' {} a -> s {nextToken = a} :: DescribeAnomalyDetectors)++instance Core.AWSPager DescribeAnomalyDetectors where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? describeAnomalyDetectorsResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? describeAnomalyDetectorsResponse_anomalyDetectors+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& describeAnomalyDetectors_nextToken+ Lens..~ rs+ Lens.^? describeAnomalyDetectorsResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest DescribeAnomalyDetectors where+ type+ AWSResponse DescribeAnomalyDetectors =+ DescribeAnomalyDetectorsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DescribeAnomalyDetectorsResult"+ ( \s h x ->+ DescribeAnomalyDetectorsResponse'+ Prelude.<$> ( x+ Data..@? "AnomalyDetectors"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DescribeAnomalyDetectors where+ hashWithSalt _salt DescribeAnomalyDetectors' {..} =+ _salt+ `Prelude.hashWithSalt` anomalyDetectorTypes+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` maxResults+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` nextToken++instance Prelude.NFData DescribeAnomalyDetectors where+ rnf DescribeAnomalyDetectors' {..} =+ Prelude.rnf anomalyDetectorTypes+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf maxResults+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders DescribeAnomalyDetectors where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DescribeAnomalyDetectors where+ toPath = Prelude.const "/"++instance Data.ToQuery DescribeAnomalyDetectors where+ toQuery DescribeAnomalyDetectors' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DescribeAnomalyDetectors" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "AnomalyDetectorTypes"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> anomalyDetectorTypes+ ),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "MaxResults" Data.=: maxResults,+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace,+ "NextToken" Data.=: nextToken+ ]++-- | /See:/ 'newDescribeAnomalyDetectorsResponse' smart constructor.+data DescribeAnomalyDetectorsResponse = DescribeAnomalyDetectorsResponse'+ { -- | The list of anomaly detection models returned by the operation.+ anomalyDetectors :: Prelude.Maybe [AnomalyDetector],+ -- | A token that you can use in a subsequent operation to retrieve the next+ -- set of results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeAnomalyDetectorsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'anomalyDetectors', 'describeAnomalyDetectorsResponse_anomalyDetectors' - The list of anomaly detection models returned by the operation.+--+-- 'nextToken', 'describeAnomalyDetectorsResponse_nextToken' - A token that you can use in a subsequent operation to retrieve the next+-- set of results.+--+-- 'httpStatus', 'describeAnomalyDetectorsResponse_httpStatus' - The response's http status code.+newDescribeAnomalyDetectorsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DescribeAnomalyDetectorsResponse+newDescribeAnomalyDetectorsResponse pHttpStatus_ =+ DescribeAnomalyDetectorsResponse'+ { anomalyDetectors =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The list of anomaly detection models returned by the operation.+describeAnomalyDetectorsResponse_anomalyDetectors :: Lens.Lens' DescribeAnomalyDetectorsResponse (Prelude.Maybe [AnomalyDetector])+describeAnomalyDetectorsResponse_anomalyDetectors = Lens.lens (\DescribeAnomalyDetectorsResponse' {anomalyDetectors} -> anomalyDetectors) (\s@DescribeAnomalyDetectorsResponse' {} a -> s {anomalyDetectors = a} :: DescribeAnomalyDetectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token that you can use in a subsequent operation to retrieve the next+-- set of results.+describeAnomalyDetectorsResponse_nextToken :: Lens.Lens' DescribeAnomalyDetectorsResponse (Prelude.Maybe Prelude.Text)+describeAnomalyDetectorsResponse_nextToken = Lens.lens (\DescribeAnomalyDetectorsResponse' {nextToken} -> nextToken) (\s@DescribeAnomalyDetectorsResponse' {} a -> s {nextToken = a} :: DescribeAnomalyDetectorsResponse)++-- | The response's http status code.+describeAnomalyDetectorsResponse_httpStatus :: Lens.Lens' DescribeAnomalyDetectorsResponse Prelude.Int+describeAnomalyDetectorsResponse_httpStatus = Lens.lens (\DescribeAnomalyDetectorsResponse' {httpStatus} -> httpStatus) (\s@DescribeAnomalyDetectorsResponse' {} a -> s {httpStatus = a} :: DescribeAnomalyDetectorsResponse)++instance+ Prelude.NFData+ DescribeAnomalyDetectorsResponse+ where+ rnf DescribeAnomalyDetectorsResponse' {..} =+ Prelude.rnf anomalyDetectors+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DescribeInsightRules.hs view
@@ -0,0 +1,200 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DescribeInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of all the Contributor Insights rules in your account.+--+-- For more information about Contributor Insights, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html Using Contributor Insights to Analyze High-Cardinality Data>.+module Amazonka.CloudWatch.DescribeInsightRules+ ( -- * Creating a Request+ DescribeInsightRules (..),+ newDescribeInsightRules,++ -- * Request Lenses+ describeInsightRules_maxResults,+ describeInsightRules_nextToken,++ -- * Destructuring the Response+ DescribeInsightRulesResponse (..),+ newDescribeInsightRulesResponse,++ -- * Response Lenses+ describeInsightRulesResponse_insightRules,+ describeInsightRulesResponse_nextToken,+ describeInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeInsightRules' smart constructor.+data DescribeInsightRules = DescribeInsightRules'+ { -- | The maximum number of results to return in one operation. If you omit+ -- this parameter, the default of 500 is used.+ maxResults :: Prelude.Maybe Prelude.Natural,+ -- | Include this value, if it was returned by the previous operation, to get+ -- the next set of rules.+ nextToken :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'describeInsightRules_maxResults' - The maximum number of results to return in one operation. If you omit+-- this parameter, the default of 500 is used.+--+-- 'nextToken', 'describeInsightRules_nextToken' - Include this value, if it was returned by the previous operation, to get+-- the next set of rules.+newDescribeInsightRules ::+ DescribeInsightRules+newDescribeInsightRules =+ DescribeInsightRules'+ { maxResults = Prelude.Nothing,+ nextToken = Prelude.Nothing+ }++-- | The maximum number of results to return in one operation. If you omit+-- this parameter, the default of 500 is used.+describeInsightRules_maxResults :: Lens.Lens' DescribeInsightRules (Prelude.Maybe Prelude.Natural)+describeInsightRules_maxResults = Lens.lens (\DescribeInsightRules' {maxResults} -> maxResults) (\s@DescribeInsightRules' {} a -> s {maxResults = a} :: DescribeInsightRules)++-- | Include this value, if it was returned by the previous operation, to get+-- the next set of rules.+describeInsightRules_nextToken :: Lens.Lens' DescribeInsightRules (Prelude.Maybe Prelude.Text)+describeInsightRules_nextToken = Lens.lens (\DescribeInsightRules' {nextToken} -> nextToken) (\s@DescribeInsightRules' {} a -> s {nextToken = a} :: DescribeInsightRules)++instance Core.AWSRequest DescribeInsightRules where+ type+ AWSResponse DescribeInsightRules =+ DescribeInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DescribeInsightRulesResult"+ ( \s h x ->+ DescribeInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "InsightRules"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DescribeInsightRules where+ hashWithSalt _salt DescribeInsightRules' {..} =+ _salt+ `Prelude.hashWithSalt` maxResults+ `Prelude.hashWithSalt` nextToken++instance Prelude.NFData DescribeInsightRules where+ rnf DescribeInsightRules' {..} =+ Prelude.rnf maxResults+ `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders DescribeInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DescribeInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery DescribeInsightRules where+ toQuery DescribeInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DescribeInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "MaxResults" Data.=: maxResults,+ "NextToken" Data.=: nextToken+ ]++-- | /See:/ 'newDescribeInsightRulesResponse' smart constructor.+data DescribeInsightRulesResponse = DescribeInsightRulesResponse'+ { -- | The rules returned by the operation.+ insightRules :: Prelude.Maybe [InsightRule],+ -- | If this parameter is present, it is a token that marks the start of the+ -- next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'insightRules', 'describeInsightRulesResponse_insightRules' - The rules returned by the operation.+--+-- 'nextToken', 'describeInsightRulesResponse_nextToken' - If this parameter is present, it is a token that marks the start of the+-- next batch of returned results.+--+-- 'httpStatus', 'describeInsightRulesResponse_httpStatus' - The response's http status code.+newDescribeInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DescribeInsightRulesResponse+newDescribeInsightRulesResponse pHttpStatus_ =+ DescribeInsightRulesResponse'+ { insightRules =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The rules returned by the operation.+describeInsightRulesResponse_insightRules :: Lens.Lens' DescribeInsightRulesResponse (Prelude.Maybe [InsightRule])+describeInsightRulesResponse_insightRules = Lens.lens (\DescribeInsightRulesResponse' {insightRules} -> insightRules) (\s@DescribeInsightRulesResponse' {} a -> s {insightRules = a} :: DescribeInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | If this parameter is present, it is a token that marks the start of the+-- next batch of returned results.+describeInsightRulesResponse_nextToken :: Lens.Lens' DescribeInsightRulesResponse (Prelude.Maybe Prelude.Text)+describeInsightRulesResponse_nextToken = Lens.lens (\DescribeInsightRulesResponse' {nextToken} -> nextToken) (\s@DescribeInsightRulesResponse' {} a -> s {nextToken = a} :: DescribeInsightRulesResponse)++-- | The response's http status code.+describeInsightRulesResponse_httpStatus :: Lens.Lens' DescribeInsightRulesResponse Prelude.Int+describeInsightRulesResponse_httpStatus = Lens.lens (\DescribeInsightRulesResponse' {httpStatus} -> httpStatus) (\s@DescribeInsightRulesResponse' {} a -> s {httpStatus = a} :: DescribeInsightRulesResponse)++instance Prelude.NFData DescribeInsightRulesResponse where+ rnf DescribeInsightRulesResponse' {..} =+ Prelude.rnf insightRules+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/DisableAlarmActions.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DisableAlarmActions+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables the actions for the specified alarms. When an alarm\'s actions+-- are disabled, the alarm actions do not execute when the alarm state+-- changes.+module Amazonka.CloudWatch.DisableAlarmActions+ ( -- * Creating a Request+ DisableAlarmActions (..),+ newDisableAlarmActions,++ -- * Request Lenses+ disableAlarmActions_alarmNames,++ -- * Destructuring the Response+ DisableAlarmActionsResponse (..),+ newDisableAlarmActionsResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDisableAlarmActions' smart constructor.+data DisableAlarmActions = DisableAlarmActions'+ { -- | The names of the alarms.+ alarmNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisableAlarmActions' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmNames', 'disableAlarmActions_alarmNames' - The names of the alarms.+newDisableAlarmActions ::+ DisableAlarmActions+newDisableAlarmActions =+ DisableAlarmActions' {alarmNames = Prelude.mempty}++-- | The names of the alarms.+disableAlarmActions_alarmNames :: Lens.Lens' DisableAlarmActions [Prelude.Text]+disableAlarmActions_alarmNames = Lens.lens (\DisableAlarmActions' {alarmNames} -> alarmNames) (\s@DisableAlarmActions' {} a -> s {alarmNames = a} :: DisableAlarmActions) Prelude.. Lens.coerced++instance Core.AWSRequest DisableAlarmActions where+ type+ AWSResponse DisableAlarmActions =+ DisableAlarmActionsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull DisableAlarmActionsResponse'++instance Prelude.Hashable DisableAlarmActions where+ hashWithSalt _salt DisableAlarmActions' {..} =+ _salt `Prelude.hashWithSalt` alarmNames++instance Prelude.NFData DisableAlarmActions where+ rnf DisableAlarmActions' {..} = Prelude.rnf alarmNames++instance Data.ToHeaders DisableAlarmActions where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DisableAlarmActions where+ toPath = Prelude.const "/"++instance Data.ToQuery DisableAlarmActions where+ toQuery DisableAlarmActions' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DisableAlarmActions" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "AlarmNames"+ Data.=: Data.toQueryList "member" alarmNames+ ]++-- | /See:/ 'newDisableAlarmActionsResponse' smart constructor.+data DisableAlarmActionsResponse = DisableAlarmActionsResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisableAlarmActionsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newDisableAlarmActionsResponse ::+ DisableAlarmActionsResponse+newDisableAlarmActionsResponse =+ DisableAlarmActionsResponse'++instance Prelude.NFData DisableAlarmActionsResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/DisableInsightRules.hs view
@@ -0,0 +1,170 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.DisableInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables the specified Contributor Insights rules. When rules are+-- disabled, they do not analyze log groups and do not incur costs.+module Amazonka.CloudWatch.DisableInsightRules+ ( -- * Creating a Request+ DisableInsightRules (..),+ newDisableInsightRules,++ -- * Request Lenses+ disableInsightRules_ruleNames,++ -- * Destructuring the Response+ DisableInsightRulesResponse (..),+ newDisableInsightRulesResponse,++ -- * Response Lenses+ disableInsightRulesResponse_failures,+ disableInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDisableInsightRules' smart constructor.+data DisableInsightRules = DisableInsightRules'+ { -- | An array of the rule names to disable. If you need to find out the names+ -- of your rules, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+ ruleNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisableInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'ruleNames', 'disableInsightRules_ruleNames' - An array of the rule names to disable. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+newDisableInsightRules ::+ DisableInsightRules+newDisableInsightRules =+ DisableInsightRules' {ruleNames = Prelude.mempty}++-- | An array of the rule names to disable. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+disableInsightRules_ruleNames :: Lens.Lens' DisableInsightRules [Prelude.Text]+disableInsightRules_ruleNames = Lens.lens (\DisableInsightRules' {ruleNames} -> ruleNames) (\s@DisableInsightRules' {} a -> s {ruleNames = a} :: DisableInsightRules) Prelude.. Lens.coerced++instance Core.AWSRequest DisableInsightRules where+ type+ AWSResponse DisableInsightRules =+ DisableInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "DisableInsightRulesResult"+ ( \s h x ->+ DisableInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "Failures"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DisableInsightRules where+ hashWithSalt _salt DisableInsightRules' {..} =+ _salt `Prelude.hashWithSalt` ruleNames++instance Prelude.NFData DisableInsightRules where+ rnf DisableInsightRules' {..} = Prelude.rnf ruleNames++instance Data.ToHeaders DisableInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath DisableInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery DisableInsightRules where+ toQuery DisableInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("DisableInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "RuleNames"+ Data.=: Data.toQueryList "member" ruleNames+ ]++-- | /See:/ 'newDisableInsightRulesResponse' smart constructor.+data DisableInsightRulesResponse = DisableInsightRulesResponse'+ { -- | An array listing the rules that could not be disabled. You cannot+ -- disable built-in rules.+ failures :: Prelude.Maybe [PartialFailure],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisableInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failures', 'disableInsightRulesResponse_failures' - An array listing the rules that could not be disabled. You cannot+-- disable built-in rules.+--+-- 'httpStatus', 'disableInsightRulesResponse_httpStatus' - The response's http status code.+newDisableInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DisableInsightRulesResponse+newDisableInsightRulesResponse pHttpStatus_ =+ DisableInsightRulesResponse'+ { failures =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | An array listing the rules that could not be disabled. You cannot+-- disable built-in rules.+disableInsightRulesResponse_failures :: Lens.Lens' DisableInsightRulesResponse (Prelude.Maybe [PartialFailure])+disableInsightRulesResponse_failures = Lens.lens (\DisableInsightRulesResponse' {failures} -> failures) (\s@DisableInsightRulesResponse' {} a -> s {failures = a} :: DisableInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+disableInsightRulesResponse_httpStatus :: Lens.Lens' DisableInsightRulesResponse Prelude.Int+disableInsightRulesResponse_httpStatus = Lens.lens (\DisableInsightRulesResponse' {httpStatus} -> httpStatus) (\s@DisableInsightRulesResponse' {} a -> s {httpStatus = a} :: DisableInsightRulesResponse)++instance Prelude.NFData DisableInsightRulesResponse where+ rnf DisableInsightRulesResponse' {..} =+ Prelude.rnf failures+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/EnableAlarmActions.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.EnableAlarmActions+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Enables the actions for the specified alarms.+module Amazonka.CloudWatch.EnableAlarmActions+ ( -- * Creating a Request+ EnableAlarmActions (..),+ newEnableAlarmActions,++ -- * Request Lenses+ enableAlarmActions_alarmNames,++ -- * Destructuring the Response+ EnableAlarmActionsResponse (..),+ newEnableAlarmActionsResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newEnableAlarmActions' smart constructor.+data EnableAlarmActions = EnableAlarmActions'+ { -- | The names of the alarms.+ alarmNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EnableAlarmActions' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmNames', 'enableAlarmActions_alarmNames' - The names of the alarms.+newEnableAlarmActions ::+ EnableAlarmActions+newEnableAlarmActions =+ EnableAlarmActions' {alarmNames = Prelude.mempty}++-- | The names of the alarms.+enableAlarmActions_alarmNames :: Lens.Lens' EnableAlarmActions [Prelude.Text]+enableAlarmActions_alarmNames = Lens.lens (\EnableAlarmActions' {alarmNames} -> alarmNames) (\s@EnableAlarmActions' {} a -> s {alarmNames = a} :: EnableAlarmActions) Prelude.. Lens.coerced++instance Core.AWSRequest EnableAlarmActions where+ type+ AWSResponse EnableAlarmActions =+ EnableAlarmActionsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull EnableAlarmActionsResponse'++instance Prelude.Hashable EnableAlarmActions where+ hashWithSalt _salt EnableAlarmActions' {..} =+ _salt `Prelude.hashWithSalt` alarmNames++instance Prelude.NFData EnableAlarmActions where+ rnf EnableAlarmActions' {..} = Prelude.rnf alarmNames++instance Data.ToHeaders EnableAlarmActions where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath EnableAlarmActions where+ toPath = Prelude.const "/"++instance Data.ToQuery EnableAlarmActions where+ toQuery EnableAlarmActions' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("EnableAlarmActions" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "AlarmNames"+ Data.=: Data.toQueryList "member" alarmNames+ ]++-- | /See:/ 'newEnableAlarmActionsResponse' smart constructor.+data EnableAlarmActionsResponse = EnableAlarmActionsResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EnableAlarmActionsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newEnableAlarmActionsResponse ::+ EnableAlarmActionsResponse+newEnableAlarmActionsResponse =+ EnableAlarmActionsResponse'++instance Prelude.NFData EnableAlarmActionsResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/EnableInsightRules.hs view
@@ -0,0 +1,170 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.EnableInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Enables the specified Contributor Insights rules. When rules are+-- enabled, they immediately begin analyzing log data.+module Amazonka.CloudWatch.EnableInsightRules+ ( -- * Creating a Request+ EnableInsightRules (..),+ newEnableInsightRules,++ -- * Request Lenses+ enableInsightRules_ruleNames,++ -- * Destructuring the Response+ EnableInsightRulesResponse (..),+ newEnableInsightRulesResponse,++ -- * Response Lenses+ enableInsightRulesResponse_failures,+ enableInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newEnableInsightRules' smart constructor.+data EnableInsightRules = EnableInsightRules'+ { -- | An array of the rule names to enable. If you need to find out the names+ -- of your rules, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+ ruleNames :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EnableInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'ruleNames', 'enableInsightRules_ruleNames' - An array of the rule names to enable. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+newEnableInsightRules ::+ EnableInsightRules+newEnableInsightRules =+ EnableInsightRules' {ruleNames = Prelude.mempty}++-- | An array of the rule names to enable. If you need to find out the names+-- of your rules, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeInsightRules.html DescribeInsightRules>.+enableInsightRules_ruleNames :: Lens.Lens' EnableInsightRules [Prelude.Text]+enableInsightRules_ruleNames = Lens.lens (\EnableInsightRules' {ruleNames} -> ruleNames) (\s@EnableInsightRules' {} a -> s {ruleNames = a} :: EnableInsightRules) Prelude.. Lens.coerced++instance Core.AWSRequest EnableInsightRules where+ type+ AWSResponse EnableInsightRules =+ EnableInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "EnableInsightRulesResult"+ ( \s h x ->+ EnableInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "Failures"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable EnableInsightRules where+ hashWithSalt _salt EnableInsightRules' {..} =+ _salt `Prelude.hashWithSalt` ruleNames++instance Prelude.NFData EnableInsightRules where+ rnf EnableInsightRules' {..} = Prelude.rnf ruleNames++instance Data.ToHeaders EnableInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath EnableInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery EnableInsightRules where+ toQuery EnableInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("EnableInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "RuleNames"+ Data.=: Data.toQueryList "member" ruleNames+ ]++-- | /See:/ 'newEnableInsightRulesResponse' smart constructor.+data EnableInsightRulesResponse = EnableInsightRulesResponse'+ { -- | An array listing the rules that could not be enabled. You cannot disable+ -- or enable built-in rules.+ failures :: Prelude.Maybe [PartialFailure],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EnableInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failures', 'enableInsightRulesResponse_failures' - An array listing the rules that could not be enabled. You cannot disable+-- or enable built-in rules.+--+-- 'httpStatus', 'enableInsightRulesResponse_httpStatus' - The response's http status code.+newEnableInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ EnableInsightRulesResponse+newEnableInsightRulesResponse pHttpStatus_ =+ EnableInsightRulesResponse'+ { failures =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | An array listing the rules that could not be enabled. You cannot disable+-- or enable built-in rules.+enableInsightRulesResponse_failures :: Lens.Lens' EnableInsightRulesResponse (Prelude.Maybe [PartialFailure])+enableInsightRulesResponse_failures = Lens.lens (\EnableInsightRulesResponse' {failures} -> failures) (\s@EnableInsightRulesResponse' {} a -> s {failures = a} :: EnableInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+enableInsightRulesResponse_httpStatus :: Lens.Lens' EnableInsightRulesResponse Prelude.Int+enableInsightRulesResponse_httpStatus = Lens.lens (\EnableInsightRulesResponse' {httpStatus} -> httpStatus) (\s@EnableInsightRulesResponse' {} a -> s {httpStatus = a} :: EnableInsightRulesResponse)++instance Prelude.NFData EnableInsightRulesResponse where+ rnf EnableInsightRulesResponse' {..} =+ Prelude.rnf failures+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetDashboard.hs view
@@ -0,0 +1,192 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetDashboard+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Displays the details of the dashboard that you specify.+--+-- To copy an existing dashboard, use @GetDashboard@, and then use the data+-- returned within @DashboardBody@ as the template for the new dashboard+-- when you call @PutDashboard@ to create the copy.+module Amazonka.CloudWatch.GetDashboard+ ( -- * Creating a Request+ GetDashboard (..),+ newGetDashboard,++ -- * Request Lenses+ getDashboard_dashboardName,++ -- * Destructuring the Response+ GetDashboardResponse (..),+ newGetDashboardResponse,++ -- * Response Lenses+ getDashboardResponse_dashboardArn,+ getDashboardResponse_dashboardBody,+ getDashboardResponse_dashboardName,+ getDashboardResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetDashboard' smart constructor.+data GetDashboard = GetDashboard'+ { -- | The name of the dashboard to be described.+ dashboardName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetDashboard' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardName', 'getDashboard_dashboardName' - The name of the dashboard to be described.+newGetDashboard ::+ -- | 'dashboardName'+ Prelude.Text ->+ GetDashboard+newGetDashboard pDashboardName_ =+ GetDashboard' {dashboardName = pDashboardName_}++-- | The name of the dashboard to be described.+getDashboard_dashboardName :: Lens.Lens' GetDashboard Prelude.Text+getDashboard_dashboardName = Lens.lens (\GetDashboard' {dashboardName} -> dashboardName) (\s@GetDashboard' {} a -> s {dashboardName = a} :: GetDashboard)++instance Core.AWSRequest GetDashboard where+ type AWSResponse GetDashboard = GetDashboardResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetDashboardResult"+ ( \s h x ->+ GetDashboardResponse'+ Prelude.<$> (x Data..@? "DashboardArn")+ Prelude.<*> (x Data..@? "DashboardBody")+ Prelude.<*> (x Data..@? "DashboardName")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetDashboard where+ hashWithSalt _salt GetDashboard' {..} =+ _salt `Prelude.hashWithSalt` dashboardName++instance Prelude.NFData GetDashboard where+ rnf GetDashboard' {..} = Prelude.rnf dashboardName++instance Data.ToHeaders GetDashboard where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetDashboard where+ toPath = Prelude.const "/"++instance Data.ToQuery GetDashboard where+ toQuery GetDashboard' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetDashboard" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "DashboardName" Data.=: dashboardName+ ]++-- | /See:/ 'newGetDashboardResponse' smart constructor.+data GetDashboardResponse = GetDashboardResponse'+ { -- | The Amazon Resource Name (ARN) of the dashboard.+ dashboardArn :: Prelude.Maybe Prelude.Text,+ -- | The detailed information about the dashboard, including what widgets are+ -- included and their location on the dashboard. For more information about+ -- the @DashboardBody@ syntax, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+ dashboardBody :: Prelude.Maybe Prelude.Text,+ -- | The name of the dashboard.+ dashboardName :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetDashboardResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardArn', 'getDashboardResponse_dashboardArn' - The Amazon Resource Name (ARN) of the dashboard.+--+-- 'dashboardBody', 'getDashboardResponse_dashboardBody' - The detailed information about the dashboard, including what widgets are+-- included and their location on the dashboard. For more information about+-- the @DashboardBody@ syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+--+-- 'dashboardName', 'getDashboardResponse_dashboardName' - The name of the dashboard.+--+-- 'httpStatus', 'getDashboardResponse_httpStatus' - The response's http status code.+newGetDashboardResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetDashboardResponse+newGetDashboardResponse pHttpStatus_ =+ GetDashboardResponse'+ { dashboardArn =+ Prelude.Nothing,+ dashboardBody = Prelude.Nothing,+ dashboardName = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The Amazon Resource Name (ARN) of the dashboard.+getDashboardResponse_dashboardArn :: Lens.Lens' GetDashboardResponse (Prelude.Maybe Prelude.Text)+getDashboardResponse_dashboardArn = Lens.lens (\GetDashboardResponse' {dashboardArn} -> dashboardArn) (\s@GetDashboardResponse' {} a -> s {dashboardArn = a} :: GetDashboardResponse)++-- | The detailed information about the dashboard, including what widgets are+-- included and their location on the dashboard. For more information about+-- the @DashboardBody@ syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+getDashboardResponse_dashboardBody :: Lens.Lens' GetDashboardResponse (Prelude.Maybe Prelude.Text)+getDashboardResponse_dashboardBody = Lens.lens (\GetDashboardResponse' {dashboardBody} -> dashboardBody) (\s@GetDashboardResponse' {} a -> s {dashboardBody = a} :: GetDashboardResponse)++-- | The name of the dashboard.+getDashboardResponse_dashboardName :: Lens.Lens' GetDashboardResponse (Prelude.Maybe Prelude.Text)+getDashboardResponse_dashboardName = Lens.lens (\GetDashboardResponse' {dashboardName} -> dashboardName) (\s@GetDashboardResponse' {} a -> s {dashboardName = a} :: GetDashboardResponse)++-- | The response's http status code.+getDashboardResponse_httpStatus :: Lens.Lens' GetDashboardResponse Prelude.Int+getDashboardResponse_httpStatus = Lens.lens (\GetDashboardResponse' {httpStatus} -> httpStatus) (\s@GetDashboardResponse' {} a -> s {httpStatus = a} :: GetDashboardResponse)++instance Prelude.NFData GetDashboardResponse where+ rnf GetDashboardResponse' {..} =+ Prelude.rnf dashboardArn+ `Prelude.seq` Prelude.rnf dashboardBody+ `Prelude.seq` Prelude.rnf dashboardName+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetInsightRuleReport.hs view
@@ -0,0 +1,485 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetInsightRuleReport+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- This operation returns the time series data collected by a Contributor+-- Insights rule. The data includes the identity and number of contributors+-- to the log group.+--+-- You can also optionally return one or more statistics about each data+-- point in the time series. These statistics can include the following:+--+-- - @UniqueContributors@ -- the number of unique contributors for each+-- data point.+--+-- - @MaxContributorValue@ -- the value of the top contributor for each+-- data point. The identity of the contributor might change for each+-- data point in the graph.+--+-- If this rule aggregates by COUNT, the top contributor for each data+-- point is the contributor with the most occurrences in that period.+-- If the rule aggregates by SUM, the top contributor is the+-- contributor with the highest sum in the log field specified by the+-- rule\'s @Value@, during that period.+--+-- - @SampleCount@ -- the number of data points matched by the rule.+--+-- - @Sum@ -- the sum of the values from all contributors during the time+-- period represented by that data point.+--+-- - @Minimum@ -- the minimum value from a single observation during the+-- time period represented by that data point.+--+-- - @Maximum@ -- the maximum value from a single observation during the+-- time period represented by that data point.+--+-- - @Average@ -- the average value from all contributors during the time+-- period represented by that data point.+module Amazonka.CloudWatch.GetInsightRuleReport+ ( -- * Creating a Request+ GetInsightRuleReport (..),+ newGetInsightRuleReport,++ -- * Request Lenses+ getInsightRuleReport_maxContributorCount,+ getInsightRuleReport_metrics,+ getInsightRuleReport_orderBy,+ getInsightRuleReport_ruleName,+ getInsightRuleReport_startTime,+ getInsightRuleReport_endTime,+ getInsightRuleReport_period,++ -- * Destructuring the Response+ GetInsightRuleReportResponse (..),+ newGetInsightRuleReportResponse,++ -- * Response Lenses+ getInsightRuleReportResponse_aggregateValue,+ getInsightRuleReportResponse_aggregationStatistic,+ getInsightRuleReportResponse_approximateUniqueCount,+ getInsightRuleReportResponse_contributors,+ getInsightRuleReportResponse_keyLabels,+ getInsightRuleReportResponse_metricDatapoints,+ getInsightRuleReportResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetInsightRuleReport' smart constructor.+data GetInsightRuleReport = GetInsightRuleReport'+ { -- | The maximum number of contributors to include in the report. The range+ -- is 1 to 100. If you omit this, the default of 10 is used.+ maxContributorCount :: Prelude.Maybe Prelude.Int,+ -- | Specifies which metrics to use for aggregation of contributor values for+ -- the report. You can specify one or more of the following metrics:+ --+ -- - @UniqueContributors@ -- the number of unique contributors for each+ -- data point.+ --+ -- - @MaxContributorValue@ -- the value of the top contributor for each+ -- data point. The identity of the contributor might change for each+ -- data point in the graph.+ --+ -- If this rule aggregates by COUNT, the top contributor for each data+ -- point is the contributor with the most occurrences in that period.+ -- If the rule aggregates by SUM, the top contributor is the+ -- contributor with the highest sum in the log field specified by the+ -- rule\'s @Value@, during that period.+ --+ -- - @SampleCount@ -- the number of data points matched by the rule.+ --+ -- - @Sum@ -- the sum of the values from all contributors during the time+ -- period represented by that data point.+ --+ -- - @Minimum@ -- the minimum value from a single observation during the+ -- time period represented by that data point.+ --+ -- - @Maximum@ -- the maximum value from a single observation during the+ -- time period represented by that data point.+ --+ -- - @Average@ -- the average value from all contributors during the time+ -- period represented by that data point.+ metrics :: Prelude.Maybe [Prelude.Text],+ -- | Determines what statistic to use to rank the contributors. Valid values+ -- are SUM and MAXIMUM.+ orderBy :: Prelude.Maybe Prelude.Text,+ -- | The name of the rule that you want to see data from.+ ruleName :: Prelude.Text,+ -- | The start time of the data to use in the report. When used in a raw HTTP+ -- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+ -- @2019-07-01T23:59:59@.+ startTime :: Data.ISO8601,+ -- | The end time of the data to use in the report. When used in a raw HTTP+ -- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+ -- @2019-07-01T23:59:59@.+ endTime :: Data.ISO8601,+ -- | The period, in seconds, to use for the statistics in the+ -- @InsightRuleMetricDatapoint@ results.+ period :: Prelude.Natural+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetInsightRuleReport' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxContributorCount', 'getInsightRuleReport_maxContributorCount' - The maximum number of contributors to include in the report. The range+-- is 1 to 100. If you omit this, the default of 10 is used.+--+-- 'metrics', 'getInsightRuleReport_metrics' - Specifies which metrics to use for aggregation of contributor values for+-- the report. You can specify one or more of the following metrics:+--+-- - @UniqueContributors@ -- the number of unique contributors for each+-- data point.+--+-- - @MaxContributorValue@ -- the value of the top contributor for each+-- data point. The identity of the contributor might change for each+-- data point in the graph.+--+-- If this rule aggregates by COUNT, the top contributor for each data+-- point is the contributor with the most occurrences in that period.+-- If the rule aggregates by SUM, the top contributor is the+-- contributor with the highest sum in the log field specified by the+-- rule\'s @Value@, during that period.+--+-- - @SampleCount@ -- the number of data points matched by the rule.+--+-- - @Sum@ -- the sum of the values from all contributors during the time+-- period represented by that data point.+--+-- - @Minimum@ -- the minimum value from a single observation during the+-- time period represented by that data point.+--+-- - @Maximum@ -- the maximum value from a single observation during the+-- time period represented by that data point.+--+-- - @Average@ -- the average value from all contributors during the time+-- period represented by that data point.+--+-- 'orderBy', 'getInsightRuleReport_orderBy' - Determines what statistic to use to rank the contributors. Valid values+-- are SUM and MAXIMUM.+--+-- 'ruleName', 'getInsightRuleReport_ruleName' - The name of the rule that you want to see data from.+--+-- 'startTime', 'getInsightRuleReport_startTime' - The start time of the data to use in the report. When used in a raw HTTP+-- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+-- @2019-07-01T23:59:59@.+--+-- 'endTime', 'getInsightRuleReport_endTime' - The end time of the data to use in the report. When used in a raw HTTP+-- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+-- @2019-07-01T23:59:59@.+--+-- 'period', 'getInsightRuleReport_period' - The period, in seconds, to use for the statistics in the+-- @InsightRuleMetricDatapoint@ results.+newGetInsightRuleReport ::+ -- | 'ruleName'+ Prelude.Text ->+ -- | 'startTime'+ Prelude.UTCTime ->+ -- | 'endTime'+ Prelude.UTCTime ->+ -- | 'period'+ Prelude.Natural ->+ GetInsightRuleReport+newGetInsightRuleReport+ pRuleName_+ pStartTime_+ pEndTime_+ pPeriod_ =+ GetInsightRuleReport'+ { maxContributorCount =+ Prelude.Nothing,+ metrics = Prelude.Nothing,+ orderBy = Prelude.Nothing,+ ruleName = pRuleName_,+ startTime = Data._Time Lens.# pStartTime_,+ endTime = Data._Time Lens.# pEndTime_,+ period = pPeriod_+ }++-- | The maximum number of contributors to include in the report. The range+-- is 1 to 100. If you omit this, the default of 10 is used.+getInsightRuleReport_maxContributorCount :: Lens.Lens' GetInsightRuleReport (Prelude.Maybe Prelude.Int)+getInsightRuleReport_maxContributorCount = Lens.lens (\GetInsightRuleReport' {maxContributorCount} -> maxContributorCount) (\s@GetInsightRuleReport' {} a -> s {maxContributorCount = a} :: GetInsightRuleReport)++-- | Specifies which metrics to use for aggregation of contributor values for+-- the report. You can specify one or more of the following metrics:+--+-- - @UniqueContributors@ -- the number of unique contributors for each+-- data point.+--+-- - @MaxContributorValue@ -- the value of the top contributor for each+-- data point. The identity of the contributor might change for each+-- data point in the graph.+--+-- If this rule aggregates by COUNT, the top contributor for each data+-- point is the contributor with the most occurrences in that period.+-- If the rule aggregates by SUM, the top contributor is the+-- contributor with the highest sum in the log field specified by the+-- rule\'s @Value@, during that period.+--+-- - @SampleCount@ -- the number of data points matched by the rule.+--+-- - @Sum@ -- the sum of the values from all contributors during the time+-- period represented by that data point.+--+-- - @Minimum@ -- the minimum value from a single observation during the+-- time period represented by that data point.+--+-- - @Maximum@ -- the maximum value from a single observation during the+-- time period represented by that data point.+--+-- - @Average@ -- the average value from all contributors during the time+-- period represented by that data point.+getInsightRuleReport_metrics :: Lens.Lens' GetInsightRuleReport (Prelude.Maybe [Prelude.Text])+getInsightRuleReport_metrics = Lens.lens (\GetInsightRuleReport' {metrics} -> metrics) (\s@GetInsightRuleReport' {} a -> s {metrics = a} :: GetInsightRuleReport) Prelude.. Lens.mapping Lens.coerced++-- | Determines what statistic to use to rank the contributors. Valid values+-- are SUM and MAXIMUM.+getInsightRuleReport_orderBy :: Lens.Lens' GetInsightRuleReport (Prelude.Maybe Prelude.Text)+getInsightRuleReport_orderBy = Lens.lens (\GetInsightRuleReport' {orderBy} -> orderBy) (\s@GetInsightRuleReport' {} a -> s {orderBy = a} :: GetInsightRuleReport)++-- | The name of the rule that you want to see data from.+getInsightRuleReport_ruleName :: Lens.Lens' GetInsightRuleReport Prelude.Text+getInsightRuleReport_ruleName = Lens.lens (\GetInsightRuleReport' {ruleName} -> ruleName) (\s@GetInsightRuleReport' {} a -> s {ruleName = a} :: GetInsightRuleReport)++-- | The start time of the data to use in the report. When used in a raw HTTP+-- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+-- @2019-07-01T23:59:59@.+getInsightRuleReport_startTime :: Lens.Lens' GetInsightRuleReport Prelude.UTCTime+getInsightRuleReport_startTime = Lens.lens (\GetInsightRuleReport' {startTime} -> startTime) (\s@GetInsightRuleReport' {} a -> s {startTime = a} :: GetInsightRuleReport) Prelude.. Data._Time++-- | The end time of the data to use in the report. When used in a raw HTTP+-- Query API, it is formatted as @yyyy-MM-dd\'T\'HH:mm:ss@. For example,+-- @2019-07-01T23:59:59@.+getInsightRuleReport_endTime :: Lens.Lens' GetInsightRuleReport Prelude.UTCTime+getInsightRuleReport_endTime = Lens.lens (\GetInsightRuleReport' {endTime} -> endTime) (\s@GetInsightRuleReport' {} a -> s {endTime = a} :: GetInsightRuleReport) Prelude.. Data._Time++-- | The period, in seconds, to use for the statistics in the+-- @InsightRuleMetricDatapoint@ results.+getInsightRuleReport_period :: Lens.Lens' GetInsightRuleReport Prelude.Natural+getInsightRuleReport_period = Lens.lens (\GetInsightRuleReport' {period} -> period) (\s@GetInsightRuleReport' {} a -> s {period = a} :: GetInsightRuleReport)++instance Core.AWSRequest GetInsightRuleReport where+ type+ AWSResponse GetInsightRuleReport =+ GetInsightRuleReportResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetInsightRuleReportResult"+ ( \s h x ->+ GetInsightRuleReportResponse'+ Prelude.<$> (x Data..@? "AggregateValue")+ Prelude.<*> (x Data..@? "AggregationStatistic")+ Prelude.<*> (x Data..@? "ApproximateUniqueCount")+ Prelude.<*> ( x+ Data..@? "Contributors"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "KeyLabels"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "MetricDatapoints"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetInsightRuleReport where+ hashWithSalt _salt GetInsightRuleReport' {..} =+ _salt+ `Prelude.hashWithSalt` maxContributorCount+ `Prelude.hashWithSalt` metrics+ `Prelude.hashWithSalt` orderBy+ `Prelude.hashWithSalt` ruleName+ `Prelude.hashWithSalt` startTime+ `Prelude.hashWithSalt` endTime+ `Prelude.hashWithSalt` period++instance Prelude.NFData GetInsightRuleReport where+ rnf GetInsightRuleReport' {..} =+ Prelude.rnf maxContributorCount+ `Prelude.seq` Prelude.rnf metrics+ `Prelude.seq` Prelude.rnf orderBy+ `Prelude.seq` Prelude.rnf ruleName+ `Prelude.seq` Prelude.rnf startTime+ `Prelude.seq` Prelude.rnf endTime+ `Prelude.seq` Prelude.rnf period++instance Data.ToHeaders GetInsightRuleReport where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetInsightRuleReport where+ toPath = Prelude.const "/"++instance Data.ToQuery GetInsightRuleReport where+ toQuery GetInsightRuleReport' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetInsightRuleReport" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "MaxContributorCount" Data.=: maxContributorCount,+ "Metrics"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> metrics),+ "OrderBy" Data.=: orderBy,+ "RuleName" Data.=: ruleName,+ "StartTime" Data.=: startTime,+ "EndTime" Data.=: endTime,+ "Period" Data.=: period+ ]++-- | /See:/ 'newGetInsightRuleReportResponse' smart constructor.+data GetInsightRuleReportResponse = GetInsightRuleReportResponse'+ { -- | The sum of the values from all individual contributors that match the+ -- rule.+ aggregateValue :: Prelude.Maybe Prelude.Double,+ -- | Specifies whether this rule aggregates contributor data by COUNT or SUM.+ aggregationStatistic :: Prelude.Maybe Prelude.Text,+ -- | An approximate count of the unique contributors found by this rule in+ -- this time period.+ approximateUniqueCount :: Prelude.Maybe Prelude.Integer,+ -- | An array of the unique contributors found by this rule in this time+ -- period. If the rule contains multiple keys, each combination of values+ -- for the keys counts as a unique contributor.+ contributors :: Prelude.Maybe [InsightRuleContributor],+ -- | An array of the strings used as the keys for this rule. The keys are the+ -- dimensions used to classify contributors. If the rule contains more than+ -- one key, then each unique combination of values for the keys is counted+ -- as a unique contributor.+ keyLabels :: Prelude.Maybe [Prelude.Text],+ -- | A time series of metric data points that matches the time period in the+ -- rule request.+ metricDatapoints :: Prelude.Maybe [InsightRuleMetricDatapoint],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetInsightRuleReportResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'aggregateValue', 'getInsightRuleReportResponse_aggregateValue' - The sum of the values from all individual contributors that match the+-- rule.+--+-- 'aggregationStatistic', 'getInsightRuleReportResponse_aggregationStatistic' - Specifies whether this rule aggregates contributor data by COUNT or SUM.+--+-- 'approximateUniqueCount', 'getInsightRuleReportResponse_approximateUniqueCount' - An approximate count of the unique contributors found by this rule in+-- this time period.+--+-- 'contributors', 'getInsightRuleReportResponse_contributors' - An array of the unique contributors found by this rule in this time+-- period. If the rule contains multiple keys, each combination of values+-- for the keys counts as a unique contributor.+--+-- 'keyLabels', 'getInsightRuleReportResponse_keyLabels' - An array of the strings used as the keys for this rule. The keys are the+-- dimensions used to classify contributors. If the rule contains more than+-- one key, then each unique combination of values for the keys is counted+-- as a unique contributor.+--+-- 'metricDatapoints', 'getInsightRuleReportResponse_metricDatapoints' - A time series of metric data points that matches the time period in the+-- rule request.+--+-- 'httpStatus', 'getInsightRuleReportResponse_httpStatus' - The response's http status code.+newGetInsightRuleReportResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetInsightRuleReportResponse+newGetInsightRuleReportResponse pHttpStatus_ =+ GetInsightRuleReportResponse'+ { aggregateValue =+ Prelude.Nothing,+ aggregationStatistic = Prelude.Nothing,+ approximateUniqueCount = Prelude.Nothing,+ contributors = Prelude.Nothing,+ keyLabels = Prelude.Nothing,+ metricDatapoints = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The sum of the values from all individual contributors that match the+-- rule.+getInsightRuleReportResponse_aggregateValue :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe Prelude.Double)+getInsightRuleReportResponse_aggregateValue = Lens.lens (\GetInsightRuleReportResponse' {aggregateValue} -> aggregateValue) (\s@GetInsightRuleReportResponse' {} a -> s {aggregateValue = a} :: GetInsightRuleReportResponse)++-- | Specifies whether this rule aggregates contributor data by COUNT or SUM.+getInsightRuleReportResponse_aggregationStatistic :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe Prelude.Text)+getInsightRuleReportResponse_aggregationStatistic = Lens.lens (\GetInsightRuleReportResponse' {aggregationStatistic} -> aggregationStatistic) (\s@GetInsightRuleReportResponse' {} a -> s {aggregationStatistic = a} :: GetInsightRuleReportResponse)++-- | An approximate count of the unique contributors found by this rule in+-- this time period.+getInsightRuleReportResponse_approximateUniqueCount :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe Prelude.Integer)+getInsightRuleReportResponse_approximateUniqueCount = Lens.lens (\GetInsightRuleReportResponse' {approximateUniqueCount} -> approximateUniqueCount) (\s@GetInsightRuleReportResponse' {} a -> s {approximateUniqueCount = a} :: GetInsightRuleReportResponse)++-- | An array of the unique contributors found by this rule in this time+-- period. If the rule contains multiple keys, each combination of values+-- for the keys counts as a unique contributor.+getInsightRuleReportResponse_contributors :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe [InsightRuleContributor])+getInsightRuleReportResponse_contributors = Lens.lens (\GetInsightRuleReportResponse' {contributors} -> contributors) (\s@GetInsightRuleReportResponse' {} a -> s {contributors = a} :: GetInsightRuleReportResponse) Prelude.. Lens.mapping Lens.coerced++-- | An array of the strings used as the keys for this rule. The keys are the+-- dimensions used to classify contributors. If the rule contains more than+-- one key, then each unique combination of values for the keys is counted+-- as a unique contributor.+getInsightRuleReportResponse_keyLabels :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe [Prelude.Text])+getInsightRuleReportResponse_keyLabels = Lens.lens (\GetInsightRuleReportResponse' {keyLabels} -> keyLabels) (\s@GetInsightRuleReportResponse' {} a -> s {keyLabels = a} :: GetInsightRuleReportResponse) Prelude.. Lens.mapping Lens.coerced++-- | A time series of metric data points that matches the time period in the+-- rule request.+getInsightRuleReportResponse_metricDatapoints :: Lens.Lens' GetInsightRuleReportResponse (Prelude.Maybe [InsightRuleMetricDatapoint])+getInsightRuleReportResponse_metricDatapoints = Lens.lens (\GetInsightRuleReportResponse' {metricDatapoints} -> metricDatapoints) (\s@GetInsightRuleReportResponse' {} a -> s {metricDatapoints = a} :: GetInsightRuleReportResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+getInsightRuleReportResponse_httpStatus :: Lens.Lens' GetInsightRuleReportResponse Prelude.Int+getInsightRuleReportResponse_httpStatus = Lens.lens (\GetInsightRuleReportResponse' {httpStatus} -> httpStatus) (\s@GetInsightRuleReportResponse' {} a -> s {httpStatus = a} :: GetInsightRuleReportResponse)++instance Prelude.NFData GetInsightRuleReportResponse where+ rnf GetInsightRuleReportResponse' {..} =+ Prelude.rnf aggregateValue+ `Prelude.seq` Prelude.rnf aggregationStatistic+ `Prelude.seq` Prelude.rnf approximateUniqueCount+ `Prelude.seq` Prelude.rnf contributors+ `Prelude.seq` Prelude.rnf keyLabels+ `Prelude.seq` Prelude.rnf metricDatapoints+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetMetricData.hs view
@@ -0,0 +1,547 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetMetricData+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- You can use the @GetMetricData@ API to retrieve CloudWatch metric+-- values. The operation can also include a CloudWatch Metrics Insights+-- query, and one or more metric math functions.+--+-- A @GetMetricData@ operation that does not include a query can retrieve+-- as many as 500 different metrics in a single request, with a total of as+-- many as 100,800 data points. You can also optionally perform metric math+-- expressions on the values of the returned statistics, to create new time+-- series that represent new insights into your data. For example, using+-- Lambda metrics, you could divide the Errors metric by the Invocations+-- metric to get an error rate time series. For more information about+-- metric math expressions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions>+-- in the /Amazon CloudWatch User Guide/.+--+-- If you include a Metrics Insights query, each @GetMetricData@ operation+-- can include only one query. But the same @GetMetricData@ operation can+-- also retrieve other metrics. Metrics Insights queries can query only the+-- most recent three hours of metric data. For more information about+-- Metrics Insights, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html Query your metrics with CloudWatch Metrics Insights>.+--+-- Calls to the @GetMetricData@ API have a different pricing structure than+-- calls to @GetMetricStatistics@. For more information about pricing, see+-- <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing>.+--+-- Amazon CloudWatch retains metric data as follows:+--+-- - Data points with a period of less than 60 seconds are available for+-- 3 hours. These data points are high-resolution metrics and are+-- available only for custom metrics that have been defined with a+-- @StorageResolution@ of 1.+--+-- - Data points with a period of 60 seconds (1-minute) are available for+-- 15 days.+--+-- - Data points with a period of 300 seconds (5-minute) are available+-- for 63 days.+--+-- - Data points with a period of 3600 seconds (1 hour) are available for+-- 455 days (15 months).+--+-- Data points that are initially published with a shorter period are+-- aggregated together for long-term storage. For example, if you collect+-- data using a period of 1 minute, the data remains available for 15 days+-- with 1-minute resolution. After 15 days, this data is still available,+-- but is aggregated and retrievable only with a resolution of 5 minutes.+-- After 63 days, the data is further aggregated and is available with a+-- resolution of 1 hour.+--+-- If you omit @Unit@ in your request, all data that was collected with any+-- unit is returned, along with the corresponding units that were specified+-- when the data was reported to CloudWatch. If you specify a unit, the+-- operation returns only data that was collected with that unit specified.+-- If you specify a unit that does not match the data collected, the+-- results of the operation are null. CloudWatch does not perform unit+-- conversions.+--+-- __Using Metrics Insights queries with metric math__+--+-- You can\'t mix a Metric Insights query and metric math syntax in the+-- same expression, but you can reference results from a Metrics Insights+-- query within other Metric math expressions. A Metrics Insights query+-- without a __GROUP BY__ clause returns a single time-series (TS), and can+-- be used as input for a metric math expression that expects a single time+-- series. A Metrics Insights query with a __GROUP BY__ clause returns an+-- array of time-series (TS[]), and can be used as input for a metric math+-- expression that expects an array of time series.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.GetMetricData+ ( -- * Creating a Request+ GetMetricData (..),+ newGetMetricData,++ -- * Request Lenses+ getMetricData_labelOptions,+ getMetricData_maxDatapoints,+ getMetricData_nextToken,+ getMetricData_scanBy,+ getMetricData_metricDataQueries,+ getMetricData_startTime,+ getMetricData_endTime,++ -- * Destructuring the Response+ GetMetricDataResponse (..),+ newGetMetricDataResponse,++ -- * Response Lenses+ getMetricDataResponse_messages,+ getMetricDataResponse_metricDataResults,+ getMetricDataResponse_nextToken,+ getMetricDataResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetMetricData' smart constructor.+data GetMetricData = GetMetricData'+ { -- | This structure includes the @Timezone@ parameter, which you can use to+ -- specify your time zone so that the labels of returned data display the+ -- correct time for your time zone.+ labelOptions :: Prelude.Maybe LabelOptions,+ -- | The maximum number of data points the request should return before+ -- paginating. If you omit this, the default of 100,800 is used.+ maxDatapoints :: Prelude.Maybe Prelude.Int,+ -- | Include this value, if it was returned by the previous @GetMetricData@+ -- operation, to get the next set of data points.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The order in which data points should be returned. @TimestampDescending@+ -- returns the newest data first and paginates when the @MaxDatapoints@+ -- limit is reached. @TimestampAscending@ returns the oldest data first and+ -- paginates when the @MaxDatapoints@ limit is reached.+ scanBy :: Prelude.Maybe ScanBy,+ -- | The metric queries to be returned. A single @GetMetricData@ call can+ -- include as many as 500 @MetricDataQuery@ structures. Each of these+ -- structures can specify either a metric to retrieve, a Metrics Insights+ -- query, or a math expression to perform on retrieved data.+ metricDataQueries :: [MetricDataQuery],+ -- | The time stamp indicating the earliest data to be returned.+ --+ -- The value specified is inclusive; results include data points with the+ -- specified time stamp.+ --+ -- CloudWatch rounds the specified time stamp as follows:+ --+ -- - Start time less than 15 days ago - Round down to the nearest whole+ -- minute. For example, 12:32:34 is rounded down to 12:32:00.+ --+ -- - Start time between 15 and 63 days ago - Round down to the nearest+ -- 5-minute clock interval. For example, 12:32:34 is rounded down to+ -- 12:30:00.+ --+ -- - Start time greater than 63 days ago - Round down to the nearest+ -- 1-hour clock interval. For example, 12:32:34 is rounded down to+ -- 12:00:00.+ --+ -- If you set @Period@ to 5, 10, or 30, the start time of your request is+ -- rounded down to the nearest time that corresponds to even 5-, 10-, or+ -- 30-second divisions of a minute. For example, if you make a query at+ -- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+ -- your request is rounded down and you receive data from 01:05:10 to+ -- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+ -- data, using a period of 5 seconds, you receive data timestamped between+ -- 15:02:15 and 15:07:15.+ --+ -- For better performance, specify @StartTime@ and @EndTime@ values that+ -- align with the value of the metric\'s @Period@ and sync up with the+ -- beginning and end of an hour. For example, if the @Period@ of a metric+ -- is 5 minutes, specifying 12:05 or 12:30 as @StartTime@ can get a faster+ -- response from CloudWatch than setting 12:07 or 12:29 as the @StartTime@.+ startTime :: Data.ISO8601,+ -- | The time stamp indicating the latest data to be returned.+ --+ -- The value specified is exclusive; results include data points up to the+ -- specified time stamp.+ --+ -- For better performance, specify @StartTime@ and @EndTime@ values that+ -- align with the value of the metric\'s @Period@ and sync up with the+ -- beginning and end of an hour. For example, if the @Period@ of a metric+ -- is 5 minutes, specifying 12:05 or 12:30 as @EndTime@ can get a faster+ -- response from CloudWatch than setting 12:07 or 12:29 as the @EndTime@.+ endTime :: Data.ISO8601+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricData' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'labelOptions', 'getMetricData_labelOptions' - This structure includes the @Timezone@ parameter, which you can use to+-- specify your time zone so that the labels of returned data display the+-- correct time for your time zone.+--+-- 'maxDatapoints', 'getMetricData_maxDatapoints' - The maximum number of data points the request should return before+-- paginating. If you omit this, the default of 100,800 is used.+--+-- 'nextToken', 'getMetricData_nextToken' - Include this value, if it was returned by the previous @GetMetricData@+-- operation, to get the next set of data points.+--+-- 'scanBy', 'getMetricData_scanBy' - The order in which data points should be returned. @TimestampDescending@+-- returns the newest data first and paginates when the @MaxDatapoints@+-- limit is reached. @TimestampAscending@ returns the oldest data first and+-- paginates when the @MaxDatapoints@ limit is reached.+--+-- 'metricDataQueries', 'getMetricData_metricDataQueries' - The metric queries to be returned. A single @GetMetricData@ call can+-- include as many as 500 @MetricDataQuery@ structures. Each of these+-- structures can specify either a metric to retrieve, a Metrics Insights+-- query, or a math expression to perform on retrieved data.+--+-- 'startTime', 'getMetricData_startTime' - The time stamp indicating the earliest data to be returned.+--+-- The value specified is inclusive; results include data points with the+-- specified time stamp.+--+-- CloudWatch rounds the specified time stamp as follows:+--+-- - Start time less than 15 days ago - Round down to the nearest whole+-- minute. For example, 12:32:34 is rounded down to 12:32:00.+--+-- - Start time between 15 and 63 days ago - Round down to the nearest+-- 5-minute clock interval. For example, 12:32:34 is rounded down to+-- 12:30:00.+--+-- - Start time greater than 63 days ago - Round down to the nearest+-- 1-hour clock interval. For example, 12:32:34 is rounded down to+-- 12:00:00.+--+-- If you set @Period@ to 5, 10, or 30, the start time of your request is+-- rounded down to the nearest time that corresponds to even 5-, 10-, or+-- 30-second divisions of a minute. For example, if you make a query at+-- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+-- your request is rounded down and you receive data from 01:05:10 to+-- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+-- data, using a period of 5 seconds, you receive data timestamped between+-- 15:02:15 and 15:07:15.+--+-- For better performance, specify @StartTime@ and @EndTime@ values that+-- align with the value of the metric\'s @Period@ and sync up with the+-- beginning and end of an hour. For example, if the @Period@ of a metric+-- is 5 minutes, specifying 12:05 or 12:30 as @StartTime@ can get a faster+-- response from CloudWatch than setting 12:07 or 12:29 as the @StartTime@.+--+-- 'endTime', 'getMetricData_endTime' - The time stamp indicating the latest data to be returned.+--+-- The value specified is exclusive; results include data points up to the+-- specified time stamp.+--+-- For better performance, specify @StartTime@ and @EndTime@ values that+-- align with the value of the metric\'s @Period@ and sync up with the+-- beginning and end of an hour. For example, if the @Period@ of a metric+-- is 5 minutes, specifying 12:05 or 12:30 as @EndTime@ can get a faster+-- response from CloudWatch than setting 12:07 or 12:29 as the @EndTime@.+newGetMetricData ::+ -- | 'startTime'+ Prelude.UTCTime ->+ -- | 'endTime'+ Prelude.UTCTime ->+ GetMetricData+newGetMetricData pStartTime_ pEndTime_ =+ GetMetricData'+ { labelOptions = Prelude.Nothing,+ maxDatapoints = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ scanBy = Prelude.Nothing,+ metricDataQueries = Prelude.mempty,+ startTime = Data._Time Lens.# pStartTime_,+ endTime = Data._Time Lens.# pEndTime_+ }++-- | This structure includes the @Timezone@ parameter, which you can use to+-- specify your time zone so that the labels of returned data display the+-- correct time for your time zone.+getMetricData_labelOptions :: Lens.Lens' GetMetricData (Prelude.Maybe LabelOptions)+getMetricData_labelOptions = Lens.lens (\GetMetricData' {labelOptions} -> labelOptions) (\s@GetMetricData' {} a -> s {labelOptions = a} :: GetMetricData)++-- | The maximum number of data points the request should return before+-- paginating. If you omit this, the default of 100,800 is used.+getMetricData_maxDatapoints :: Lens.Lens' GetMetricData (Prelude.Maybe Prelude.Int)+getMetricData_maxDatapoints = Lens.lens (\GetMetricData' {maxDatapoints} -> maxDatapoints) (\s@GetMetricData' {} a -> s {maxDatapoints = a} :: GetMetricData)++-- | Include this value, if it was returned by the previous @GetMetricData@+-- operation, to get the next set of data points.+getMetricData_nextToken :: Lens.Lens' GetMetricData (Prelude.Maybe Prelude.Text)+getMetricData_nextToken = Lens.lens (\GetMetricData' {nextToken} -> nextToken) (\s@GetMetricData' {} a -> s {nextToken = a} :: GetMetricData)++-- | The order in which data points should be returned. @TimestampDescending@+-- returns the newest data first and paginates when the @MaxDatapoints@+-- limit is reached. @TimestampAscending@ returns the oldest data first and+-- paginates when the @MaxDatapoints@ limit is reached.+getMetricData_scanBy :: Lens.Lens' GetMetricData (Prelude.Maybe ScanBy)+getMetricData_scanBy = Lens.lens (\GetMetricData' {scanBy} -> scanBy) (\s@GetMetricData' {} a -> s {scanBy = a} :: GetMetricData)++-- | The metric queries to be returned. A single @GetMetricData@ call can+-- include as many as 500 @MetricDataQuery@ structures. Each of these+-- structures can specify either a metric to retrieve, a Metrics Insights+-- query, or a math expression to perform on retrieved data.+getMetricData_metricDataQueries :: Lens.Lens' GetMetricData [MetricDataQuery]+getMetricData_metricDataQueries = Lens.lens (\GetMetricData' {metricDataQueries} -> metricDataQueries) (\s@GetMetricData' {} a -> s {metricDataQueries = a} :: GetMetricData) Prelude.. Lens.coerced++-- | The time stamp indicating the earliest data to be returned.+--+-- The value specified is inclusive; results include data points with the+-- specified time stamp.+--+-- CloudWatch rounds the specified time stamp as follows:+--+-- - Start time less than 15 days ago - Round down to the nearest whole+-- minute. For example, 12:32:34 is rounded down to 12:32:00.+--+-- - Start time between 15 and 63 days ago - Round down to the nearest+-- 5-minute clock interval. For example, 12:32:34 is rounded down to+-- 12:30:00.+--+-- - Start time greater than 63 days ago - Round down to the nearest+-- 1-hour clock interval. For example, 12:32:34 is rounded down to+-- 12:00:00.+--+-- If you set @Period@ to 5, 10, or 30, the start time of your request is+-- rounded down to the nearest time that corresponds to even 5-, 10-, or+-- 30-second divisions of a minute. For example, if you make a query at+-- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+-- your request is rounded down and you receive data from 01:05:10 to+-- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+-- data, using a period of 5 seconds, you receive data timestamped between+-- 15:02:15 and 15:07:15.+--+-- For better performance, specify @StartTime@ and @EndTime@ values that+-- align with the value of the metric\'s @Period@ and sync up with the+-- beginning and end of an hour. For example, if the @Period@ of a metric+-- is 5 minutes, specifying 12:05 or 12:30 as @StartTime@ can get a faster+-- response from CloudWatch than setting 12:07 or 12:29 as the @StartTime@.+getMetricData_startTime :: Lens.Lens' GetMetricData Prelude.UTCTime+getMetricData_startTime = Lens.lens (\GetMetricData' {startTime} -> startTime) (\s@GetMetricData' {} a -> s {startTime = a} :: GetMetricData) Prelude.. Data._Time++-- | The time stamp indicating the latest data to be returned.+--+-- The value specified is exclusive; results include data points up to the+-- specified time stamp.+--+-- For better performance, specify @StartTime@ and @EndTime@ values that+-- align with the value of the metric\'s @Period@ and sync up with the+-- beginning and end of an hour. For example, if the @Period@ of a metric+-- is 5 minutes, specifying 12:05 or 12:30 as @EndTime@ can get a faster+-- response from CloudWatch than setting 12:07 or 12:29 as the @EndTime@.+getMetricData_endTime :: Lens.Lens' GetMetricData Prelude.UTCTime+getMetricData_endTime = Lens.lens (\GetMetricData' {endTime} -> endTime) (\s@GetMetricData' {} a -> s {endTime = a} :: GetMetricData) Prelude.. Data._Time++instance Core.AWSPager GetMetricData where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? getMetricDataResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? getMetricDataResponse_metricDataResults+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? getMetricDataResponse_messages+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& getMetricData_nextToken+ Lens..~ rs+ Lens.^? getMetricDataResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest GetMetricData where+ type+ AWSResponse GetMetricData =+ GetMetricDataResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetMetricDataResult"+ ( \s h x ->+ GetMetricDataResponse'+ Prelude.<$> ( x+ Data..@? "Messages"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "MetricDataResults"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetMetricData where+ hashWithSalt _salt GetMetricData' {..} =+ _salt+ `Prelude.hashWithSalt` labelOptions+ `Prelude.hashWithSalt` maxDatapoints+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` scanBy+ `Prelude.hashWithSalt` metricDataQueries+ `Prelude.hashWithSalt` startTime+ `Prelude.hashWithSalt` endTime++instance Prelude.NFData GetMetricData where+ rnf GetMetricData' {..} =+ Prelude.rnf labelOptions+ `Prelude.seq` Prelude.rnf maxDatapoints+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf scanBy+ `Prelude.seq` Prelude.rnf metricDataQueries+ `Prelude.seq` Prelude.rnf startTime+ `Prelude.seq` Prelude.rnf endTime++instance Data.ToHeaders GetMetricData where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetMetricData where+ toPath = Prelude.const "/"++instance Data.ToQuery GetMetricData where+ toQuery GetMetricData' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetMetricData" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "LabelOptions" Data.=: labelOptions,+ "MaxDatapoints" Data.=: maxDatapoints,+ "NextToken" Data.=: nextToken,+ "ScanBy" Data.=: scanBy,+ "MetricDataQueries"+ Data.=: Data.toQueryList "member" metricDataQueries,+ "StartTime" Data.=: startTime,+ "EndTime" Data.=: endTime+ ]++-- | /See:/ 'newGetMetricDataResponse' smart constructor.+data GetMetricDataResponse = GetMetricDataResponse'+ { -- | Contains a message about this @GetMetricData@ operation, if the+ -- operation results in such a message. An example of a message that might+ -- be returned is @Maximum number of allowed metrics exceeded@. If there is+ -- a message, as much of the operation as possible is still executed.+ --+ -- A message appears here only if it is related to the global+ -- @GetMetricData@ operation. Any message about a specific metric returned+ -- by the operation appears in the @MetricDataResult@ object returned for+ -- that metric.+ messages :: Prelude.Maybe [MessageData],+ -- | The metrics that are returned, including the metric name, namespace, and+ -- dimensions.+ metricDataResults :: Prelude.Maybe [MetricDataResult],+ -- | A token that marks the next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricDataResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'messages', 'getMetricDataResponse_messages' - Contains a message about this @GetMetricData@ operation, if the+-- operation results in such a message. An example of a message that might+-- be returned is @Maximum number of allowed metrics exceeded@. If there is+-- a message, as much of the operation as possible is still executed.+--+-- A message appears here only if it is related to the global+-- @GetMetricData@ operation. Any message about a specific metric returned+-- by the operation appears in the @MetricDataResult@ object returned for+-- that metric.+--+-- 'metricDataResults', 'getMetricDataResponse_metricDataResults' - The metrics that are returned, including the metric name, namespace, and+-- dimensions.+--+-- 'nextToken', 'getMetricDataResponse_nextToken' - A token that marks the next batch of returned results.+--+-- 'httpStatus', 'getMetricDataResponse_httpStatus' - The response's http status code.+newGetMetricDataResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetMetricDataResponse+newGetMetricDataResponse pHttpStatus_ =+ GetMetricDataResponse'+ { messages = Prelude.Nothing,+ metricDataResults = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | Contains a message about this @GetMetricData@ operation, if the+-- operation results in such a message. An example of a message that might+-- be returned is @Maximum number of allowed metrics exceeded@. If there is+-- a message, as much of the operation as possible is still executed.+--+-- A message appears here only if it is related to the global+-- @GetMetricData@ operation. Any message about a specific metric returned+-- by the operation appears in the @MetricDataResult@ object returned for+-- that metric.+getMetricDataResponse_messages :: Lens.Lens' GetMetricDataResponse (Prelude.Maybe [MessageData])+getMetricDataResponse_messages = Lens.lens (\GetMetricDataResponse' {messages} -> messages) (\s@GetMetricDataResponse' {} a -> s {messages = a} :: GetMetricDataResponse) Prelude.. Lens.mapping Lens.coerced++-- | The metrics that are returned, including the metric name, namespace, and+-- dimensions.+getMetricDataResponse_metricDataResults :: Lens.Lens' GetMetricDataResponse (Prelude.Maybe [MetricDataResult])+getMetricDataResponse_metricDataResults = Lens.lens (\GetMetricDataResponse' {metricDataResults} -> metricDataResults) (\s@GetMetricDataResponse' {} a -> s {metricDataResults = a} :: GetMetricDataResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token that marks the next batch of returned results.+getMetricDataResponse_nextToken :: Lens.Lens' GetMetricDataResponse (Prelude.Maybe Prelude.Text)+getMetricDataResponse_nextToken = Lens.lens (\GetMetricDataResponse' {nextToken} -> nextToken) (\s@GetMetricDataResponse' {} a -> s {nextToken = a} :: GetMetricDataResponse)++-- | The response's http status code.+getMetricDataResponse_httpStatus :: Lens.Lens' GetMetricDataResponse Prelude.Int+getMetricDataResponse_httpStatus = Lens.lens (\GetMetricDataResponse' {httpStatus} -> httpStatus) (\s@GetMetricDataResponse' {} a -> s {httpStatus = a} :: GetMetricDataResponse)++instance Prelude.NFData GetMetricDataResponse where+ rnf GetMetricDataResponse' {..} =+ Prelude.rnf messages+ `Prelude.seq` Prelude.rnf metricDataResults+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetMetricStatistics.hs view
@@ -0,0 +1,578 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetMetricStatistics+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets statistics for the specified metric.+--+-- The maximum number of data points returned from a single call is 1,440.+-- If you request more than 1,440 data points, CloudWatch returns an error.+-- To reduce the number of data points, you can narrow the specified time+-- range and make multiple requests across adjacent time ranges, or you can+-- increase the specified period. Data points are not returned in+-- chronological order.+--+-- CloudWatch aggregates data points based on the length of the period that+-- you specify. For example, if you request statistics with a one-hour+-- period, CloudWatch aggregates all data points with time stamps that fall+-- within each one-hour period. Therefore, the number of values aggregated+-- by CloudWatch is larger than the number of data points returned.+--+-- CloudWatch needs raw data points to calculate percentile statistics. If+-- you publish data using a statistic set instead, you can only retrieve+-- percentile statistics for this data if one of the following conditions+-- is true:+--+-- - The SampleCount value of the statistic set is 1.+--+-- - The Min and the Max values of the statistic set are equal.+--+-- Percentile statistics are not available for metrics when any of the+-- metric values are negative numbers.+--+-- Amazon CloudWatch retains metric data as follows:+--+-- - Data points with a period of less than 60 seconds are available for+-- 3 hours. These data points are high-resolution metrics and are+-- available only for custom metrics that have been defined with a+-- @StorageResolution@ of 1.+--+-- - Data points with a period of 60 seconds (1-minute) are available for+-- 15 days.+--+-- - Data points with a period of 300 seconds (5-minute) are available+-- for 63 days.+--+-- - Data points with a period of 3600 seconds (1 hour) are available for+-- 455 days (15 months).+--+-- Data points that are initially published with a shorter period are+-- aggregated together for long-term storage. For example, if you collect+-- data using a period of 1 minute, the data remains available for 15 days+-- with 1-minute resolution. After 15 days, this data is still available,+-- but is aggregated and retrievable only with a resolution of 5 minutes.+-- After 63 days, the data is further aggregated and is available with a+-- resolution of 1 hour.+--+-- CloudWatch started retaining 5-minute and 1-hour metric data as of July+-- 9, 2016.+--+-- For information about metrics and dimensions supported by Amazon Web+-- Services services, see the+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html Amazon CloudWatch Metrics and Dimensions Reference>+-- in the /Amazon CloudWatch User Guide/.+module Amazonka.CloudWatch.GetMetricStatistics+ ( -- * Creating a Request+ GetMetricStatistics (..),+ newGetMetricStatistics,++ -- * Request Lenses+ getMetricStatistics_dimensions,+ getMetricStatistics_extendedStatistics,+ getMetricStatistics_statistics,+ getMetricStatistics_unit,+ getMetricStatistics_namespace,+ getMetricStatistics_metricName,+ getMetricStatistics_startTime,+ getMetricStatistics_endTime,+ getMetricStatistics_period,++ -- * Destructuring the Response+ GetMetricStatisticsResponse (..),+ newGetMetricStatisticsResponse,++ -- * Response Lenses+ getMetricStatisticsResponse_datapoints,+ getMetricStatisticsResponse_label,+ getMetricStatisticsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetMetricStatistics' smart constructor.+data GetMetricStatistics = GetMetricStatistics'+ { -- | The dimensions. If the metric contains multiple dimensions, you must+ -- include a value for each dimension. CloudWatch treats each unique+ -- combination of dimensions as a separate metric. If a specific+ -- combination of dimensions was not published, you can\'t retrieve+ -- statistics for it. You must specify the same dimensions that were used+ -- when the metrics were created. For an example, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations Dimension Combinations>+ -- in the /Amazon CloudWatch User Guide/. For more information about+ -- specifying dimensions, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics>+ -- in the /Amazon CloudWatch User Guide/.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The percentile statistics. Specify values between p0.0 and p100. When+ -- calling @GetMetricStatistics@, you must specify either @Statistics@ or+ -- @ExtendedStatistics@, but not both. Percentile statistics are not+ -- available for metrics when any of the metric values are negative+ -- numbers.+ extendedStatistics :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+ -- | The metric statistics, other than percentile. For percentile statistics,+ -- use @ExtendedStatistics@. When calling @GetMetricStatistics@, you must+ -- specify either @Statistics@ or @ExtendedStatistics@, but not both.+ statistics :: Prelude.Maybe (Prelude.NonEmpty Statistic),+ -- | The unit for a given metric. If you omit @Unit@, all data that was+ -- collected with any unit is returned, along with the corresponding units+ -- that were specified when the data was reported to CloudWatch. If you+ -- specify a unit, the operation returns only data that was collected with+ -- that unit specified. If you specify a unit that does not match the data+ -- collected, the results of the operation are null. CloudWatch does not+ -- perform unit conversions.+ unit :: Prelude.Maybe StandardUnit,+ -- | The namespace of the metric, with or without spaces.+ namespace :: Prelude.Text,+ -- | The name of the metric, with or without spaces.+ metricName :: Prelude.Text,+ -- | The time stamp that determines the first data point to return. Start+ -- times are evaluated relative to the time that CloudWatch receives the+ -- request.+ --+ -- The value specified is inclusive; results include data points with the+ -- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+ -- 8601 UTC format (for example, 2016-10-03T23:00:00Z).+ --+ -- CloudWatch rounds the specified time stamp as follows:+ --+ -- - Start time less than 15 days ago - Round down to the nearest whole+ -- minute. For example, 12:32:34 is rounded down to 12:32:00.+ --+ -- - Start time between 15 and 63 days ago - Round down to the nearest+ -- 5-minute clock interval. For example, 12:32:34 is rounded down to+ -- 12:30:00.+ --+ -- - Start time greater than 63 days ago - Round down to the nearest+ -- 1-hour clock interval. For example, 12:32:34 is rounded down to+ -- 12:00:00.+ --+ -- If you set @Period@ to 5, 10, or 30, the start time of your request is+ -- rounded down to the nearest time that corresponds to even 5-, 10-, or+ -- 30-second divisions of a minute. For example, if you make a query at+ -- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+ -- your request is rounded down and you receive data from 01:05:10 to+ -- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+ -- data, using a period of 5 seconds, you receive data timestamped between+ -- 15:02:15 and 15:07:15.+ startTime :: Data.ISO8601,+ -- | The time stamp that determines the last data point to return.+ --+ -- The value specified is exclusive; results include data points up to the+ -- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+ -- 8601 UTC format (for example, 2016-10-10T23:00:00Z).+ endTime :: Data.ISO8601,+ -- | The granularity, in seconds, of the returned data points. For metrics+ -- with regular resolution, a period can be as short as one minute (60+ -- seconds) and must be a multiple of 60. For high-resolution metrics that+ -- are collected at intervals of less than one minute, the period can be 1,+ -- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+ -- metrics stored by a @PutMetricData@ call that includes a+ -- @StorageResolution@ of 1 second.+ --+ -- If the @StartTime@ parameter specifies a time stamp that is greater than+ -- 3 hours ago, you must specify the period as follows or no data points in+ -- that time range is returned:+ --+ -- - Start time between 3 hours and 15 days ago - Use a multiple of 60+ -- seconds (1 minute).+ --+ -- - Start time between 15 and 63 days ago - Use a multiple of 300+ -- seconds (5 minutes).+ --+ -- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+ -- (1 hour).+ period :: Prelude.Natural+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricStatistics' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'getMetricStatistics_dimensions' - The dimensions. If the metric contains multiple dimensions, you must+-- include a value for each dimension. CloudWatch treats each unique+-- combination of dimensions as a separate metric. If a specific+-- combination of dimensions was not published, you can\'t retrieve+-- statistics for it. You must specify the same dimensions that were used+-- when the metrics were created. For an example, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations Dimension Combinations>+-- in the /Amazon CloudWatch User Guide/. For more information about+-- specifying dimensions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics>+-- in the /Amazon CloudWatch User Guide/.+--+-- 'extendedStatistics', 'getMetricStatistics_extendedStatistics' - The percentile statistics. Specify values between p0.0 and p100. When+-- calling @GetMetricStatistics@, you must specify either @Statistics@ or+-- @ExtendedStatistics@, but not both. Percentile statistics are not+-- available for metrics when any of the metric values are negative+-- numbers.+--+-- 'statistics', 'getMetricStatistics_statistics' - The metric statistics, other than percentile. For percentile statistics,+-- use @ExtendedStatistics@. When calling @GetMetricStatistics@, you must+-- specify either @Statistics@ or @ExtendedStatistics@, but not both.+--+-- 'unit', 'getMetricStatistics_unit' - The unit for a given metric. If you omit @Unit@, all data that was+-- collected with any unit is returned, along with the corresponding units+-- that were specified when the data was reported to CloudWatch. If you+-- specify a unit, the operation returns only data that was collected with+-- that unit specified. If you specify a unit that does not match the data+-- collected, the results of the operation are null. CloudWatch does not+-- perform unit conversions.+--+-- 'namespace', 'getMetricStatistics_namespace' - The namespace of the metric, with or without spaces.+--+-- 'metricName', 'getMetricStatistics_metricName' - The name of the metric, with or without spaces.+--+-- 'startTime', 'getMetricStatistics_startTime' - The time stamp that determines the first data point to return. Start+-- times are evaluated relative to the time that CloudWatch receives the+-- request.+--+-- The value specified is inclusive; results include data points with the+-- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+-- 8601 UTC format (for example, 2016-10-03T23:00:00Z).+--+-- CloudWatch rounds the specified time stamp as follows:+--+-- - Start time less than 15 days ago - Round down to the nearest whole+-- minute. For example, 12:32:34 is rounded down to 12:32:00.+--+-- - Start time between 15 and 63 days ago - Round down to the nearest+-- 5-minute clock interval. For example, 12:32:34 is rounded down to+-- 12:30:00.+--+-- - Start time greater than 63 days ago - Round down to the nearest+-- 1-hour clock interval. For example, 12:32:34 is rounded down to+-- 12:00:00.+--+-- If you set @Period@ to 5, 10, or 30, the start time of your request is+-- rounded down to the nearest time that corresponds to even 5-, 10-, or+-- 30-second divisions of a minute. For example, if you make a query at+-- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+-- your request is rounded down and you receive data from 01:05:10 to+-- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+-- data, using a period of 5 seconds, you receive data timestamped between+-- 15:02:15 and 15:07:15.+--+-- 'endTime', 'getMetricStatistics_endTime' - The time stamp that determines the last data point to return.+--+-- The value specified is exclusive; results include data points up to the+-- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+-- 8601 UTC format (for example, 2016-10-10T23:00:00Z).+--+-- 'period', 'getMetricStatistics_period' - The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ call that includes a+-- @StorageResolution@ of 1 second.+--+-- If the @StartTime@ parameter specifies a time stamp that is greater than+-- 3 hours ago, you must specify the period as follows or no data points in+-- that time range is returned:+--+-- - Start time between 3 hours and 15 days ago - Use a multiple of 60+-- seconds (1 minute).+--+-- - Start time between 15 and 63 days ago - Use a multiple of 300+-- seconds (5 minutes).+--+-- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+-- (1 hour).+newGetMetricStatistics ::+ -- | 'namespace'+ Prelude.Text ->+ -- | 'metricName'+ Prelude.Text ->+ -- | 'startTime'+ Prelude.UTCTime ->+ -- | 'endTime'+ Prelude.UTCTime ->+ -- | 'period'+ Prelude.Natural ->+ GetMetricStatistics+newGetMetricStatistics+ pNamespace_+ pMetricName_+ pStartTime_+ pEndTime_+ pPeriod_ =+ GetMetricStatistics'+ { dimensions = Prelude.Nothing,+ extendedStatistics = Prelude.Nothing,+ statistics = Prelude.Nothing,+ unit = Prelude.Nothing,+ namespace = pNamespace_,+ metricName = pMetricName_,+ startTime = Data._Time Lens.# pStartTime_,+ endTime = Data._Time Lens.# pEndTime_,+ period = pPeriod_+ }++-- | The dimensions. If the metric contains multiple dimensions, you must+-- include a value for each dimension. CloudWatch treats each unique+-- combination of dimensions as a separate metric. If a specific+-- combination of dimensions was not published, you can\'t retrieve+-- statistics for it. You must specify the same dimensions that were used+-- when the metrics were created. For an example, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations Dimension Combinations>+-- in the /Amazon CloudWatch User Guide/. For more information about+-- specifying dimensions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics>+-- in the /Amazon CloudWatch User Guide/.+getMetricStatistics_dimensions :: Lens.Lens' GetMetricStatistics (Prelude.Maybe [Dimension])+getMetricStatistics_dimensions = Lens.lens (\GetMetricStatistics' {dimensions} -> dimensions) (\s@GetMetricStatistics' {} a -> s {dimensions = a} :: GetMetricStatistics) Prelude.. Lens.mapping Lens.coerced++-- | The percentile statistics. Specify values between p0.0 and p100. When+-- calling @GetMetricStatistics@, you must specify either @Statistics@ or+-- @ExtendedStatistics@, but not both. Percentile statistics are not+-- available for metrics when any of the metric values are negative+-- numbers.+getMetricStatistics_extendedStatistics :: Lens.Lens' GetMetricStatistics (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+getMetricStatistics_extendedStatistics = Lens.lens (\GetMetricStatistics' {extendedStatistics} -> extendedStatistics) (\s@GetMetricStatistics' {} a -> s {extendedStatistics = a} :: GetMetricStatistics) Prelude.. Lens.mapping Lens.coerced++-- | The metric statistics, other than percentile. For percentile statistics,+-- use @ExtendedStatistics@. When calling @GetMetricStatistics@, you must+-- specify either @Statistics@ or @ExtendedStatistics@, but not both.+getMetricStatistics_statistics :: Lens.Lens' GetMetricStatistics (Prelude.Maybe (Prelude.NonEmpty Statistic))+getMetricStatistics_statistics = Lens.lens (\GetMetricStatistics' {statistics} -> statistics) (\s@GetMetricStatistics' {} a -> s {statistics = a} :: GetMetricStatistics) Prelude.. Lens.mapping Lens.coerced++-- | The unit for a given metric. If you omit @Unit@, all data that was+-- collected with any unit is returned, along with the corresponding units+-- that were specified when the data was reported to CloudWatch. If you+-- specify a unit, the operation returns only data that was collected with+-- that unit specified. If you specify a unit that does not match the data+-- collected, the results of the operation are null. CloudWatch does not+-- perform unit conversions.+getMetricStatistics_unit :: Lens.Lens' GetMetricStatistics (Prelude.Maybe StandardUnit)+getMetricStatistics_unit = Lens.lens (\GetMetricStatistics' {unit} -> unit) (\s@GetMetricStatistics' {} a -> s {unit = a} :: GetMetricStatistics)++-- | The namespace of the metric, with or without spaces.+getMetricStatistics_namespace :: Lens.Lens' GetMetricStatistics Prelude.Text+getMetricStatistics_namespace = Lens.lens (\GetMetricStatistics' {namespace} -> namespace) (\s@GetMetricStatistics' {} a -> s {namespace = a} :: GetMetricStatistics)++-- | The name of the metric, with or without spaces.+getMetricStatistics_metricName :: Lens.Lens' GetMetricStatistics Prelude.Text+getMetricStatistics_metricName = Lens.lens (\GetMetricStatistics' {metricName} -> metricName) (\s@GetMetricStatistics' {} a -> s {metricName = a} :: GetMetricStatistics)++-- | The time stamp that determines the first data point to return. Start+-- times are evaluated relative to the time that CloudWatch receives the+-- request.+--+-- The value specified is inclusive; results include data points with the+-- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+-- 8601 UTC format (for example, 2016-10-03T23:00:00Z).+--+-- CloudWatch rounds the specified time stamp as follows:+--+-- - Start time less than 15 days ago - Round down to the nearest whole+-- minute. For example, 12:32:34 is rounded down to 12:32:00.+--+-- - Start time between 15 and 63 days ago - Round down to the nearest+-- 5-minute clock interval. For example, 12:32:34 is rounded down to+-- 12:30:00.+--+-- - Start time greater than 63 days ago - Round down to the nearest+-- 1-hour clock interval. For example, 12:32:34 is rounded down to+-- 12:00:00.+--+-- If you set @Period@ to 5, 10, or 30, the start time of your request is+-- rounded down to the nearest time that corresponds to even 5-, 10-, or+-- 30-second divisions of a minute. For example, if you make a query at+-- (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of+-- your request is rounded down and you receive data from 01:05:10 to+-- 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of+-- data, using a period of 5 seconds, you receive data timestamped between+-- 15:02:15 and 15:07:15.+getMetricStatistics_startTime :: Lens.Lens' GetMetricStatistics Prelude.UTCTime+getMetricStatistics_startTime = Lens.lens (\GetMetricStatistics' {startTime} -> startTime) (\s@GetMetricStatistics' {} a -> s {startTime = a} :: GetMetricStatistics) Prelude.. Data._Time++-- | The time stamp that determines the last data point to return.+--+-- The value specified is exclusive; results include data points up to the+-- specified time stamp. In a raw HTTP query, the time stamp must be in ISO+-- 8601 UTC format (for example, 2016-10-10T23:00:00Z).+getMetricStatistics_endTime :: Lens.Lens' GetMetricStatistics Prelude.UTCTime+getMetricStatistics_endTime = Lens.lens (\GetMetricStatistics' {endTime} -> endTime) (\s@GetMetricStatistics' {} a -> s {endTime = a} :: GetMetricStatistics) Prelude.. Data._Time++-- | The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ call that includes a+-- @StorageResolution@ of 1 second.+--+-- If the @StartTime@ parameter specifies a time stamp that is greater than+-- 3 hours ago, you must specify the period as follows or no data points in+-- that time range is returned:+--+-- - Start time between 3 hours and 15 days ago - Use a multiple of 60+-- seconds (1 minute).+--+-- - Start time between 15 and 63 days ago - Use a multiple of 300+-- seconds (5 minutes).+--+-- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+-- (1 hour).+getMetricStatistics_period :: Lens.Lens' GetMetricStatistics Prelude.Natural+getMetricStatistics_period = Lens.lens (\GetMetricStatistics' {period} -> period) (\s@GetMetricStatistics' {} a -> s {period = a} :: GetMetricStatistics)++instance Core.AWSRequest GetMetricStatistics where+ type+ AWSResponse GetMetricStatistics =+ GetMetricStatisticsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetMetricStatisticsResult"+ ( \s h x ->+ GetMetricStatisticsResponse'+ Prelude.<$> ( x+ Data..@? "Datapoints"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "Label")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetMetricStatistics where+ hashWithSalt _salt GetMetricStatistics' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` extendedStatistics+ `Prelude.hashWithSalt` statistics+ `Prelude.hashWithSalt` unit+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` startTime+ `Prelude.hashWithSalt` endTime+ `Prelude.hashWithSalt` period++instance Prelude.NFData GetMetricStatistics where+ rnf GetMetricStatistics' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf extendedStatistics+ `Prelude.seq` Prelude.rnf statistics+ `Prelude.seq` Prelude.rnf unit+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf startTime+ `Prelude.seq` Prelude.rnf endTime+ `Prelude.seq` Prelude.rnf period++instance Data.ToHeaders GetMetricStatistics where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetMetricStatistics where+ toPath = Prelude.const "/"++instance Data.ToQuery GetMetricStatistics where+ toQuery GetMetricStatistics' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetMetricStatistics" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "ExtendedStatistics"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> extendedStatistics+ ),+ "Statistics"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> statistics),+ "Unit" Data.=: unit,+ "Namespace" Data.=: namespace,+ "MetricName" Data.=: metricName,+ "StartTime" Data.=: startTime,+ "EndTime" Data.=: endTime,+ "Period" Data.=: period+ ]++-- | /See:/ 'newGetMetricStatisticsResponse' smart constructor.+data GetMetricStatisticsResponse = GetMetricStatisticsResponse'+ { -- | The data points for the specified metric.+ datapoints :: Prelude.Maybe [Datapoint],+ -- | A label for the specified metric.+ label :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricStatisticsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'datapoints', 'getMetricStatisticsResponse_datapoints' - The data points for the specified metric.+--+-- 'label', 'getMetricStatisticsResponse_label' - A label for the specified metric.+--+-- 'httpStatus', 'getMetricStatisticsResponse_httpStatus' - The response's http status code.+newGetMetricStatisticsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetMetricStatisticsResponse+newGetMetricStatisticsResponse pHttpStatus_ =+ GetMetricStatisticsResponse'+ { datapoints =+ Prelude.Nothing,+ label = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The data points for the specified metric.+getMetricStatisticsResponse_datapoints :: Lens.Lens' GetMetricStatisticsResponse (Prelude.Maybe [Datapoint])+getMetricStatisticsResponse_datapoints = Lens.lens (\GetMetricStatisticsResponse' {datapoints} -> datapoints) (\s@GetMetricStatisticsResponse' {} a -> s {datapoints = a} :: GetMetricStatisticsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A label for the specified metric.+getMetricStatisticsResponse_label :: Lens.Lens' GetMetricStatisticsResponse (Prelude.Maybe Prelude.Text)+getMetricStatisticsResponse_label = Lens.lens (\GetMetricStatisticsResponse' {label} -> label) (\s@GetMetricStatisticsResponse' {} a -> s {label = a} :: GetMetricStatisticsResponse)++-- | The response's http status code.+getMetricStatisticsResponse_httpStatus :: Lens.Lens' GetMetricStatisticsResponse Prelude.Int+getMetricStatisticsResponse_httpStatus = Lens.lens (\GetMetricStatisticsResponse' {httpStatus} -> httpStatus) (\s@GetMetricStatisticsResponse' {} a -> s {httpStatus = a} :: GetMetricStatisticsResponse)++instance Prelude.NFData GetMetricStatisticsResponse where+ rnf GetMetricStatisticsResponse' {..} =+ Prelude.rnf datapoints+ `Prelude.seq` Prelude.rnf label+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetMetricStream.hs view
@@ -0,0 +1,327 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetMetricStream+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about the metric stream that you specify.+module Amazonka.CloudWatch.GetMetricStream+ ( -- * Creating a Request+ GetMetricStream (..),+ newGetMetricStream,++ -- * Request Lenses+ getMetricStream_name,++ -- * Destructuring the Response+ GetMetricStreamResponse (..),+ newGetMetricStreamResponse,++ -- * Response Lenses+ getMetricStreamResponse_arn,+ getMetricStreamResponse_creationDate,+ getMetricStreamResponse_excludeFilters,+ getMetricStreamResponse_firehoseArn,+ getMetricStreamResponse_includeFilters,+ getMetricStreamResponse_lastUpdateDate,+ getMetricStreamResponse_name,+ getMetricStreamResponse_outputFormat,+ getMetricStreamResponse_roleArn,+ getMetricStreamResponse_state,+ getMetricStreamResponse_statisticsConfigurations,+ getMetricStreamResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetMetricStream' smart constructor.+data GetMetricStream = GetMetricStream'+ { -- | The name of the metric stream to retrieve information about.+ name :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricStream' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'getMetricStream_name' - The name of the metric stream to retrieve information about.+newGetMetricStream ::+ -- | 'name'+ Prelude.Text ->+ GetMetricStream+newGetMetricStream pName_ =+ GetMetricStream' {name = pName_}++-- | The name of the metric stream to retrieve information about.+getMetricStream_name :: Lens.Lens' GetMetricStream Prelude.Text+getMetricStream_name = Lens.lens (\GetMetricStream' {name} -> name) (\s@GetMetricStream' {} a -> s {name = a} :: GetMetricStream)++instance Core.AWSRequest GetMetricStream where+ type+ AWSResponse GetMetricStream =+ GetMetricStreamResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetMetricStreamResult"+ ( \s h x ->+ GetMetricStreamResponse'+ Prelude.<$> (x Data..@? "Arn")+ Prelude.<*> (x Data..@? "CreationDate")+ Prelude.<*> ( x+ Data..@? "ExcludeFilters"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "FirehoseArn")+ Prelude.<*> ( x+ Data..@? "IncludeFilters"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "LastUpdateDate")+ Prelude.<*> (x Data..@? "Name")+ Prelude.<*> (x Data..@? "OutputFormat")+ Prelude.<*> (x Data..@? "RoleArn")+ Prelude.<*> (x Data..@? "State")+ Prelude.<*> ( x+ Data..@? "StatisticsConfigurations"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetMetricStream where+ hashWithSalt _salt GetMetricStream' {..} =+ _salt `Prelude.hashWithSalt` name++instance Prelude.NFData GetMetricStream where+ rnf GetMetricStream' {..} = Prelude.rnf name++instance Data.ToHeaders GetMetricStream where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetMetricStream where+ toPath = Prelude.const "/"++instance Data.ToQuery GetMetricStream where+ toQuery GetMetricStream' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetMetricStream" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Name" Data.=: name+ ]++-- | /See:/ 'newGetMetricStreamResponse' smart constructor.+data GetMetricStreamResponse = GetMetricStreamResponse'+ { -- | The ARN of the metric stream.+ arn :: Prelude.Maybe Prelude.Text,+ -- | The date that the metric stream was created.+ creationDate :: Prelude.Maybe Data.ISO8601,+ -- | If this array of metric namespaces is present, then these namespaces are+ -- the only metric namespaces that are not streamed by this metric stream.+ -- In this case, all other metric namespaces in the account are streamed by+ -- this metric stream.+ excludeFilters :: Prelude.Maybe [MetricStreamFilter],+ -- | The ARN of the Amazon Kinesis Data Firehose delivery stream that is used+ -- by this metric stream.+ firehoseArn :: Prelude.Maybe Prelude.Text,+ -- | If this array of metric namespaces is present, then these namespaces are+ -- the only metric namespaces that are streamed by this metric stream.+ includeFilters :: Prelude.Maybe [MetricStreamFilter],+ -- | The date of the most recent update to the metric stream\'s+ -- configuration.+ lastUpdateDate :: Prelude.Maybe Data.ISO8601,+ -- | The name of the metric stream.+ name :: Prelude.Maybe Prelude.Text,+ -- | The output format for the stream. Valid values are @json@ and+ -- @opentelemetry0.7@. For more information about metric stream output+ -- formats, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+ outputFormat :: Prelude.Maybe MetricStreamOutputFormat,+ -- | The ARN of the IAM role that is used by this metric stream.+ roleArn :: Prelude.Maybe Prelude.Text,+ -- | The state of the metric stream. The possible values are @running@ and+ -- @stopped@.+ state :: Prelude.Maybe Prelude.Text,+ -- | Each entry in this array displays information about one or more metrics+ -- that include additional statistics in the metric stream. For more+ -- information about the additional statistics, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+ statisticsConfigurations :: Prelude.Maybe [MetricStreamStatisticsConfiguration],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricStreamResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'arn', 'getMetricStreamResponse_arn' - The ARN of the metric stream.+--+-- 'creationDate', 'getMetricStreamResponse_creationDate' - The date that the metric stream was created.+--+-- 'excludeFilters', 'getMetricStreamResponse_excludeFilters' - If this array of metric namespaces is present, then these namespaces are+-- the only metric namespaces that are not streamed by this metric stream.+-- In this case, all other metric namespaces in the account are streamed by+-- this metric stream.+--+-- 'firehoseArn', 'getMetricStreamResponse_firehoseArn' - The ARN of the Amazon Kinesis Data Firehose delivery stream that is used+-- by this metric stream.+--+-- 'includeFilters', 'getMetricStreamResponse_includeFilters' - If this array of metric namespaces is present, then these namespaces are+-- the only metric namespaces that are streamed by this metric stream.+--+-- 'lastUpdateDate', 'getMetricStreamResponse_lastUpdateDate' - The date of the most recent update to the metric stream\'s+-- configuration.+--+-- 'name', 'getMetricStreamResponse_name' - The name of the metric stream.+--+-- 'outputFormat', 'getMetricStreamResponse_outputFormat' - The output format for the stream. Valid values are @json@ and+-- @opentelemetry0.7@. For more information about metric stream output+-- formats, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+--+-- 'roleArn', 'getMetricStreamResponse_roleArn' - The ARN of the IAM role that is used by this metric stream.+--+-- 'state', 'getMetricStreamResponse_state' - The state of the metric stream. The possible values are @running@ and+-- @stopped@.+--+-- 'statisticsConfigurations', 'getMetricStreamResponse_statisticsConfigurations' - Each entry in this array displays information about one or more metrics+-- that include additional statistics in the metric stream. For more+-- information about the additional statistics, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+--+-- 'httpStatus', 'getMetricStreamResponse_httpStatus' - The response's http status code.+newGetMetricStreamResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetMetricStreamResponse+newGetMetricStreamResponse pHttpStatus_ =+ GetMetricStreamResponse'+ { arn = Prelude.Nothing,+ creationDate = Prelude.Nothing,+ excludeFilters = Prelude.Nothing,+ firehoseArn = Prelude.Nothing,+ includeFilters = Prelude.Nothing,+ lastUpdateDate = Prelude.Nothing,+ name = Prelude.Nothing,+ outputFormat = Prelude.Nothing,+ roleArn = Prelude.Nothing,+ state = Prelude.Nothing,+ statisticsConfigurations = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The ARN of the metric stream.+getMetricStreamResponse_arn :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.Text)+getMetricStreamResponse_arn = Lens.lens (\GetMetricStreamResponse' {arn} -> arn) (\s@GetMetricStreamResponse' {} a -> s {arn = a} :: GetMetricStreamResponse)++-- | The date that the metric stream was created.+getMetricStreamResponse_creationDate :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.UTCTime)+getMetricStreamResponse_creationDate = Lens.lens (\GetMetricStreamResponse' {creationDate} -> creationDate) (\s@GetMetricStreamResponse' {} a -> s {creationDate = a} :: GetMetricStreamResponse) Prelude.. Lens.mapping Data._Time++-- | If this array of metric namespaces is present, then these namespaces are+-- the only metric namespaces that are not streamed by this metric stream.+-- In this case, all other metric namespaces in the account are streamed by+-- this metric stream.+getMetricStreamResponse_excludeFilters :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe [MetricStreamFilter])+getMetricStreamResponse_excludeFilters = Lens.lens (\GetMetricStreamResponse' {excludeFilters} -> excludeFilters) (\s@GetMetricStreamResponse' {} a -> s {excludeFilters = a} :: GetMetricStreamResponse) Prelude.. Lens.mapping Lens.coerced++-- | The ARN of the Amazon Kinesis Data Firehose delivery stream that is used+-- by this metric stream.+getMetricStreamResponse_firehoseArn :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.Text)+getMetricStreamResponse_firehoseArn = Lens.lens (\GetMetricStreamResponse' {firehoseArn} -> firehoseArn) (\s@GetMetricStreamResponse' {} a -> s {firehoseArn = a} :: GetMetricStreamResponse)++-- | If this array of metric namespaces is present, then these namespaces are+-- the only metric namespaces that are streamed by this metric stream.+getMetricStreamResponse_includeFilters :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe [MetricStreamFilter])+getMetricStreamResponse_includeFilters = Lens.lens (\GetMetricStreamResponse' {includeFilters} -> includeFilters) (\s@GetMetricStreamResponse' {} a -> s {includeFilters = a} :: GetMetricStreamResponse) Prelude.. Lens.mapping Lens.coerced++-- | The date of the most recent update to the metric stream\'s+-- configuration.+getMetricStreamResponse_lastUpdateDate :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.UTCTime)+getMetricStreamResponse_lastUpdateDate = Lens.lens (\GetMetricStreamResponse' {lastUpdateDate} -> lastUpdateDate) (\s@GetMetricStreamResponse' {} a -> s {lastUpdateDate = a} :: GetMetricStreamResponse) Prelude.. Lens.mapping Data._Time++-- | The name of the metric stream.+getMetricStreamResponse_name :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.Text)+getMetricStreamResponse_name = Lens.lens (\GetMetricStreamResponse' {name} -> name) (\s@GetMetricStreamResponse' {} a -> s {name = a} :: GetMetricStreamResponse)++-- | The output format for the stream. Valid values are @json@ and+-- @opentelemetry0.7@. For more information about metric stream output+-- formats, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+getMetricStreamResponse_outputFormat :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe MetricStreamOutputFormat)+getMetricStreamResponse_outputFormat = Lens.lens (\GetMetricStreamResponse' {outputFormat} -> outputFormat) (\s@GetMetricStreamResponse' {} a -> s {outputFormat = a} :: GetMetricStreamResponse)++-- | The ARN of the IAM role that is used by this metric stream.+getMetricStreamResponse_roleArn :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.Text)+getMetricStreamResponse_roleArn = Lens.lens (\GetMetricStreamResponse' {roleArn} -> roleArn) (\s@GetMetricStreamResponse' {} a -> s {roleArn = a} :: GetMetricStreamResponse)++-- | The state of the metric stream. The possible values are @running@ and+-- @stopped@.+getMetricStreamResponse_state :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe Prelude.Text)+getMetricStreamResponse_state = Lens.lens (\GetMetricStreamResponse' {state} -> state) (\s@GetMetricStreamResponse' {} a -> s {state = a} :: GetMetricStreamResponse)++-- | Each entry in this array displays information about one or more metrics+-- that include additional statistics in the metric stream. For more+-- information about the additional statistics, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+getMetricStreamResponse_statisticsConfigurations :: Lens.Lens' GetMetricStreamResponse (Prelude.Maybe [MetricStreamStatisticsConfiguration])+getMetricStreamResponse_statisticsConfigurations = Lens.lens (\GetMetricStreamResponse' {statisticsConfigurations} -> statisticsConfigurations) (\s@GetMetricStreamResponse' {} a -> s {statisticsConfigurations = a} :: GetMetricStreamResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+getMetricStreamResponse_httpStatus :: Lens.Lens' GetMetricStreamResponse Prelude.Int+getMetricStreamResponse_httpStatus = Lens.lens (\GetMetricStreamResponse' {httpStatus} -> httpStatus) (\s@GetMetricStreamResponse' {} a -> s {httpStatus = a} :: GetMetricStreamResponse)++instance Prelude.NFData GetMetricStreamResponse where+ rnf GetMetricStreamResponse' {..} =+ Prelude.rnf arn+ `Prelude.seq` Prelude.rnf creationDate+ `Prelude.seq` Prelude.rnf excludeFilters+ `Prelude.seq` Prelude.rnf firehoseArn+ `Prelude.seq` Prelude.rnf includeFilters+ `Prelude.seq` Prelude.rnf lastUpdateDate+ `Prelude.seq` Prelude.rnf name+ `Prelude.seq` Prelude.rnf outputFormat+ `Prelude.seq` Prelude.rnf roleArn+ `Prelude.seq` Prelude.rnf state+ `Prelude.seq` Prelude.rnf statisticsConfigurations+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/GetMetricWidgetImage.hs view
@@ -0,0 +1,320 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.GetMetricWidgetImage+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- You can use the @GetMetricWidgetImage@ API to retrieve a snapshot graph+-- of one or more Amazon CloudWatch metrics as a bitmap image. You can then+-- embed this image into your services and products, such as wiki pages,+-- reports, and documents. You could also retrieve images regularly, such+-- as every minute, and create your own custom live dashboard.+--+-- The graph you retrieve can include all CloudWatch metric graph features,+-- including metric math and horizontal and vertical annotations.+--+-- There is a limit of 20 transactions per second for this API. Each+-- @GetMetricWidgetImage@ action has the following limits:+--+-- - As many as 100 metrics in the graph.+--+-- - Up to 100 KB uncompressed payload.+module Amazonka.CloudWatch.GetMetricWidgetImage+ ( -- * Creating a Request+ GetMetricWidgetImage (..),+ newGetMetricWidgetImage,++ -- * Request Lenses+ getMetricWidgetImage_outputFormat,+ getMetricWidgetImage_metricWidget,++ -- * Destructuring the Response+ GetMetricWidgetImageResponse (..),+ newGetMetricWidgetImageResponse,++ -- * Response Lenses+ getMetricWidgetImageResponse_metricWidgetImage,+ getMetricWidgetImageResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetMetricWidgetImage' smart constructor.+data GetMetricWidgetImage = GetMetricWidgetImage'+ { -- | The format of the resulting image. Only PNG images are supported.+ --+ -- The default is @png@. If you specify @png@, the API returns an HTTP+ -- response with the content-type set to @text\/xml@. The image data is in+ -- a @MetricWidgetImage@ field. For example:+ --+ -- @ \<GetMetricWidgetImageResponse xmlns=\<URLstring>>@+ --+ -- @ \<GetMetricWidgetImageResult>@+ --+ -- @ \<MetricWidgetImage>@+ --+ -- @ iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...@+ --+ -- @ \<\/MetricWidgetImage>@+ --+ -- @ \<\/GetMetricWidgetImageResult>@+ --+ -- @ \<ResponseMetadata>@+ --+ -- @ \<RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b\<\/RequestId>@+ --+ -- @ \<\/ResponseMetadata>@+ --+ -- @\<\/GetMetricWidgetImageResponse>@+ --+ -- The @image\/png@ setting is intended only for custom HTTP requests. For+ -- most use cases, and all actions using an Amazon Web Services SDK, you+ -- should use @png@. If you specify @image\/png@, the HTTP response has a+ -- content-type set to @image\/png@, and the body of the response is a PNG+ -- image.+ outputFormat :: Prelude.Maybe Prelude.Text,+ -- | A JSON string that defines the bitmap graph to be retrieved. The string+ -- includes the metrics to include in the graph, statistics, annotations,+ -- title, axis limits, and so on. You can include only one @MetricWidget@+ -- parameter in each @GetMetricWidgetImage@ call.+ --+ -- For more information about the syntax of @MetricWidget@ see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Metric-Widget-Structure.html GetMetricWidgetImage: Metric Widget Structure and Syntax>.+ --+ -- If any metric on the graph could not load all the requested data points,+ -- an orange triangle with an exclamation point appears next to the graph+ -- legend.+ metricWidget :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricWidgetImage' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'outputFormat', 'getMetricWidgetImage_outputFormat' - The format of the resulting image. Only PNG images are supported.+--+-- The default is @png@. If you specify @png@, the API returns an HTTP+-- response with the content-type set to @text\/xml@. The image data is in+-- a @MetricWidgetImage@ field. For example:+--+-- @ \<GetMetricWidgetImageResponse xmlns=\<URLstring>>@+--+-- @ \<GetMetricWidgetImageResult>@+--+-- @ \<MetricWidgetImage>@+--+-- @ iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...@+--+-- @ \<\/MetricWidgetImage>@+--+-- @ \<\/GetMetricWidgetImageResult>@+--+-- @ \<ResponseMetadata>@+--+-- @ \<RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b\<\/RequestId>@+--+-- @ \<\/ResponseMetadata>@+--+-- @\<\/GetMetricWidgetImageResponse>@+--+-- The @image\/png@ setting is intended only for custom HTTP requests. For+-- most use cases, and all actions using an Amazon Web Services SDK, you+-- should use @png@. If you specify @image\/png@, the HTTP response has a+-- content-type set to @image\/png@, and the body of the response is a PNG+-- image.+--+-- 'metricWidget', 'getMetricWidgetImage_metricWidget' - A JSON string that defines the bitmap graph to be retrieved. The string+-- includes the metrics to include in the graph, statistics, annotations,+-- title, axis limits, and so on. You can include only one @MetricWidget@+-- parameter in each @GetMetricWidgetImage@ call.+--+-- For more information about the syntax of @MetricWidget@ see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Metric-Widget-Structure.html GetMetricWidgetImage: Metric Widget Structure and Syntax>.+--+-- If any metric on the graph could not load all the requested data points,+-- an orange triangle with an exclamation point appears next to the graph+-- legend.+newGetMetricWidgetImage ::+ -- | 'metricWidget'+ Prelude.Text ->+ GetMetricWidgetImage+newGetMetricWidgetImage pMetricWidget_ =+ GetMetricWidgetImage'+ { outputFormat =+ Prelude.Nothing,+ metricWidget = pMetricWidget_+ }++-- | The format of the resulting image. Only PNG images are supported.+--+-- The default is @png@. If you specify @png@, the API returns an HTTP+-- response with the content-type set to @text\/xml@. The image data is in+-- a @MetricWidgetImage@ field. For example:+--+-- @ \<GetMetricWidgetImageResponse xmlns=\<URLstring>>@+--+-- @ \<GetMetricWidgetImageResult>@+--+-- @ \<MetricWidgetImage>@+--+-- @ iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...@+--+-- @ \<\/MetricWidgetImage>@+--+-- @ \<\/GetMetricWidgetImageResult>@+--+-- @ \<ResponseMetadata>@+--+-- @ \<RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b\<\/RequestId>@+--+-- @ \<\/ResponseMetadata>@+--+-- @\<\/GetMetricWidgetImageResponse>@+--+-- The @image\/png@ setting is intended only for custom HTTP requests. For+-- most use cases, and all actions using an Amazon Web Services SDK, you+-- should use @png@. If you specify @image\/png@, the HTTP response has a+-- content-type set to @image\/png@, and the body of the response is a PNG+-- image.+getMetricWidgetImage_outputFormat :: Lens.Lens' GetMetricWidgetImage (Prelude.Maybe Prelude.Text)+getMetricWidgetImage_outputFormat = Lens.lens (\GetMetricWidgetImage' {outputFormat} -> outputFormat) (\s@GetMetricWidgetImage' {} a -> s {outputFormat = a} :: GetMetricWidgetImage)++-- | A JSON string that defines the bitmap graph to be retrieved. The string+-- includes the metrics to include in the graph, statistics, annotations,+-- title, axis limits, and so on. You can include only one @MetricWidget@+-- parameter in each @GetMetricWidgetImage@ call.+--+-- For more information about the syntax of @MetricWidget@ see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Metric-Widget-Structure.html GetMetricWidgetImage: Metric Widget Structure and Syntax>.+--+-- If any metric on the graph could not load all the requested data points,+-- an orange triangle with an exclamation point appears next to the graph+-- legend.+getMetricWidgetImage_metricWidget :: Lens.Lens' GetMetricWidgetImage Prelude.Text+getMetricWidgetImage_metricWidget = Lens.lens (\GetMetricWidgetImage' {metricWidget} -> metricWidget) (\s@GetMetricWidgetImage' {} a -> s {metricWidget = a} :: GetMetricWidgetImage)++instance Core.AWSRequest GetMetricWidgetImage where+ type+ AWSResponse GetMetricWidgetImage =+ GetMetricWidgetImageResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "GetMetricWidgetImageResult"+ ( \s h x ->+ GetMetricWidgetImageResponse'+ Prelude.<$> (x Data..@? "MetricWidgetImage")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable GetMetricWidgetImage where+ hashWithSalt _salt GetMetricWidgetImage' {..} =+ _salt+ `Prelude.hashWithSalt` outputFormat+ `Prelude.hashWithSalt` metricWidget++instance Prelude.NFData GetMetricWidgetImage where+ rnf GetMetricWidgetImage' {..} =+ Prelude.rnf outputFormat+ `Prelude.seq` Prelude.rnf metricWidget++instance Data.ToHeaders GetMetricWidgetImage where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath GetMetricWidgetImage where+ toPath = Prelude.const "/"++instance Data.ToQuery GetMetricWidgetImage where+ toQuery GetMetricWidgetImage' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("GetMetricWidgetImage" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "OutputFormat" Data.=: outputFormat,+ "MetricWidget" Data.=: metricWidget+ ]++-- | /See:/ 'newGetMetricWidgetImageResponse' smart constructor.+data GetMetricWidgetImageResponse = GetMetricWidgetImageResponse'+ { -- | The image of the graph, in the output format specified. The output is+ -- base64-encoded.+ metricWidgetImage :: Prelude.Maybe Data.Base64,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetMetricWidgetImageResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'metricWidgetImage', 'getMetricWidgetImageResponse_metricWidgetImage' - The image of the graph, in the output format specified. The output is+-- base64-encoded.--+-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.+-- -- The underlying isomorphism will encode to Base64 representation during+-- -- serialisation, and decode from Base64 representation during deserialisation.+-- -- This 'Lens' accepts and returns only raw unencoded data.+--+-- 'httpStatus', 'getMetricWidgetImageResponse_httpStatus' - The response's http status code.+newGetMetricWidgetImageResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetMetricWidgetImageResponse+newGetMetricWidgetImageResponse pHttpStatus_ =+ GetMetricWidgetImageResponse'+ { metricWidgetImage =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The image of the graph, in the output format specified. The output is+-- base64-encoded.--+-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.+-- -- The underlying isomorphism will encode to Base64 representation during+-- -- serialisation, and decode from Base64 representation during deserialisation.+-- -- This 'Lens' accepts and returns only raw unencoded data.+getMetricWidgetImageResponse_metricWidgetImage :: Lens.Lens' GetMetricWidgetImageResponse (Prelude.Maybe Prelude.ByteString)+getMetricWidgetImageResponse_metricWidgetImage = Lens.lens (\GetMetricWidgetImageResponse' {metricWidgetImage} -> metricWidgetImage) (\s@GetMetricWidgetImageResponse' {} a -> s {metricWidgetImage = a} :: GetMetricWidgetImageResponse) Prelude.. Lens.mapping Data._Base64++-- | The response's http status code.+getMetricWidgetImageResponse_httpStatus :: Lens.Lens' GetMetricWidgetImageResponse Prelude.Int+getMetricWidgetImageResponse_httpStatus = Lens.lens (\GetMetricWidgetImageResponse' {httpStatus} -> httpStatus) (\s@GetMetricWidgetImageResponse' {} a -> s {httpStatus = a} :: GetMetricWidgetImageResponse)++instance Prelude.NFData GetMetricWidgetImageResponse where+ rnf GetMetricWidgetImageResponse' {..} =+ Prelude.rnf metricWidgetImage+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/Lens.hs view
@@ -0,0 +1,643 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Lens+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Lens+ ( -- * Operations++ -- ** DeleteAlarms+ deleteAlarms_alarmNames,++ -- ** DeleteAnomalyDetector+ deleteAnomalyDetector_dimensions,+ deleteAnomalyDetector_metricMathAnomalyDetector,+ deleteAnomalyDetector_metricName,+ deleteAnomalyDetector_namespace,+ deleteAnomalyDetector_singleMetricAnomalyDetector,+ deleteAnomalyDetector_stat,+ deleteAnomalyDetectorResponse_httpStatus,++ -- ** DeleteDashboards+ deleteDashboards_dashboardNames,+ deleteDashboardsResponse_httpStatus,++ -- ** DeleteInsightRules+ deleteInsightRules_ruleNames,+ deleteInsightRulesResponse_failures,+ deleteInsightRulesResponse_httpStatus,++ -- ** DeleteMetricStream+ deleteMetricStream_name,+ deleteMetricStreamResponse_httpStatus,++ -- ** DescribeAlarmHistory+ describeAlarmHistory_alarmName,+ describeAlarmHistory_alarmTypes,+ describeAlarmHistory_endDate,+ describeAlarmHistory_historyItemType,+ describeAlarmHistory_maxRecords,+ describeAlarmHistory_nextToken,+ describeAlarmHistory_scanBy,+ describeAlarmHistory_startDate,+ describeAlarmHistoryResponse_alarmHistoryItems,+ describeAlarmHistoryResponse_nextToken,+ describeAlarmHistoryResponse_httpStatus,++ -- ** DescribeAlarms+ describeAlarms_actionPrefix,+ describeAlarms_alarmNamePrefix,+ describeAlarms_alarmNames,+ describeAlarms_alarmTypes,+ describeAlarms_childrenOfAlarmName,+ describeAlarms_maxRecords,+ describeAlarms_nextToken,+ describeAlarms_parentsOfAlarmName,+ describeAlarms_stateValue,+ describeAlarmsResponse_compositeAlarms,+ describeAlarmsResponse_metricAlarms,+ describeAlarmsResponse_nextToken,+ describeAlarmsResponse_httpStatus,++ -- ** DescribeAlarmsForMetric+ describeAlarmsForMetric_dimensions,+ describeAlarmsForMetric_extendedStatistic,+ describeAlarmsForMetric_period,+ describeAlarmsForMetric_statistic,+ describeAlarmsForMetric_unit,+ describeAlarmsForMetric_metricName,+ describeAlarmsForMetric_namespace,+ describeAlarmsForMetricResponse_metricAlarms,+ describeAlarmsForMetricResponse_httpStatus,++ -- ** DescribeAnomalyDetectors+ describeAnomalyDetectors_anomalyDetectorTypes,+ describeAnomalyDetectors_dimensions,+ describeAnomalyDetectors_maxResults,+ describeAnomalyDetectors_metricName,+ describeAnomalyDetectors_namespace,+ describeAnomalyDetectors_nextToken,+ describeAnomalyDetectorsResponse_anomalyDetectors,+ describeAnomalyDetectorsResponse_nextToken,+ describeAnomalyDetectorsResponse_httpStatus,++ -- ** DescribeInsightRules+ describeInsightRules_maxResults,+ describeInsightRules_nextToken,+ describeInsightRulesResponse_insightRules,+ describeInsightRulesResponse_nextToken,+ describeInsightRulesResponse_httpStatus,++ -- ** DisableAlarmActions+ disableAlarmActions_alarmNames,++ -- ** DisableInsightRules+ disableInsightRules_ruleNames,+ disableInsightRulesResponse_failures,+ disableInsightRulesResponse_httpStatus,++ -- ** EnableAlarmActions+ enableAlarmActions_alarmNames,++ -- ** EnableInsightRules+ enableInsightRules_ruleNames,+ enableInsightRulesResponse_failures,+ enableInsightRulesResponse_httpStatus,++ -- ** GetDashboard+ getDashboard_dashboardName,+ getDashboardResponse_dashboardArn,+ getDashboardResponse_dashboardBody,+ getDashboardResponse_dashboardName,+ getDashboardResponse_httpStatus,++ -- ** GetInsightRuleReport+ getInsightRuleReport_maxContributorCount,+ getInsightRuleReport_metrics,+ getInsightRuleReport_orderBy,+ getInsightRuleReport_ruleName,+ getInsightRuleReport_startTime,+ getInsightRuleReport_endTime,+ getInsightRuleReport_period,+ getInsightRuleReportResponse_aggregateValue,+ getInsightRuleReportResponse_aggregationStatistic,+ getInsightRuleReportResponse_approximateUniqueCount,+ getInsightRuleReportResponse_contributors,+ getInsightRuleReportResponse_keyLabels,+ getInsightRuleReportResponse_metricDatapoints,+ getInsightRuleReportResponse_httpStatus,++ -- ** GetMetricData+ getMetricData_labelOptions,+ getMetricData_maxDatapoints,+ getMetricData_nextToken,+ getMetricData_scanBy,+ getMetricData_metricDataQueries,+ getMetricData_startTime,+ getMetricData_endTime,+ getMetricDataResponse_messages,+ getMetricDataResponse_metricDataResults,+ getMetricDataResponse_nextToken,+ getMetricDataResponse_httpStatus,++ -- ** GetMetricStatistics+ getMetricStatistics_dimensions,+ getMetricStatistics_extendedStatistics,+ getMetricStatistics_statistics,+ getMetricStatistics_unit,+ getMetricStatistics_namespace,+ getMetricStatistics_metricName,+ getMetricStatistics_startTime,+ getMetricStatistics_endTime,+ getMetricStatistics_period,+ getMetricStatisticsResponse_datapoints,+ getMetricStatisticsResponse_label,+ getMetricStatisticsResponse_httpStatus,++ -- ** GetMetricStream+ getMetricStream_name,+ getMetricStreamResponse_arn,+ getMetricStreamResponse_creationDate,+ getMetricStreamResponse_excludeFilters,+ getMetricStreamResponse_firehoseArn,+ getMetricStreamResponse_includeFilters,+ getMetricStreamResponse_lastUpdateDate,+ getMetricStreamResponse_name,+ getMetricStreamResponse_outputFormat,+ getMetricStreamResponse_roleArn,+ getMetricStreamResponse_state,+ getMetricStreamResponse_statisticsConfigurations,+ getMetricStreamResponse_httpStatus,++ -- ** GetMetricWidgetImage+ getMetricWidgetImage_outputFormat,+ getMetricWidgetImage_metricWidget,+ getMetricWidgetImageResponse_metricWidgetImage,+ getMetricWidgetImageResponse_httpStatus,++ -- ** ListDashboards+ listDashboards_dashboardNamePrefix,+ listDashboards_nextToken,+ listDashboardsResponse_dashboardEntries,+ listDashboardsResponse_nextToken,+ listDashboardsResponse_httpStatus,++ -- ** ListManagedInsightRules+ listManagedInsightRules_maxResults,+ listManagedInsightRules_nextToken,+ listManagedInsightRules_resourceARN,+ listManagedInsightRulesResponse_managedRules,+ listManagedInsightRulesResponse_nextToken,+ listManagedInsightRulesResponse_httpStatus,++ -- ** ListMetricStreams+ listMetricStreams_maxResults,+ listMetricStreams_nextToken,+ listMetricStreamsResponse_entries,+ listMetricStreamsResponse_nextToken,+ listMetricStreamsResponse_httpStatus,++ -- ** ListMetrics+ listMetrics_dimensions,+ listMetrics_includeLinkedAccounts,+ listMetrics_metricName,+ listMetrics_namespace,+ listMetrics_nextToken,+ listMetrics_owningAccount,+ listMetrics_recentlyActive,+ listMetricsResponse_metrics,+ listMetricsResponse_nextToken,+ listMetricsResponse_owningAccounts,+ listMetricsResponse_httpStatus,++ -- ** ListTagsForResource+ listTagsForResource_resourceARN,+ listTagsForResourceResponse_tags,+ listTagsForResourceResponse_httpStatus,++ -- ** PutAnomalyDetector+ putAnomalyDetector_configuration,+ putAnomalyDetector_dimensions,+ putAnomalyDetector_metricMathAnomalyDetector,+ putAnomalyDetector_metricName,+ putAnomalyDetector_namespace,+ putAnomalyDetector_singleMetricAnomalyDetector,+ putAnomalyDetector_stat,+ putAnomalyDetectorResponse_httpStatus,++ -- ** PutCompositeAlarm+ putCompositeAlarm_actionsEnabled,+ putCompositeAlarm_actionsSuppressor,+ putCompositeAlarm_actionsSuppressorExtensionPeriod,+ putCompositeAlarm_actionsSuppressorWaitPeriod,+ putCompositeAlarm_alarmActions,+ putCompositeAlarm_alarmDescription,+ putCompositeAlarm_insufficientDataActions,+ putCompositeAlarm_oKActions,+ putCompositeAlarm_tags,+ putCompositeAlarm_alarmName,+ putCompositeAlarm_alarmRule,++ -- ** PutDashboard+ putDashboard_dashboardName,+ putDashboard_dashboardBody,+ putDashboardResponse_dashboardValidationMessages,+ putDashboardResponse_httpStatus,++ -- ** PutInsightRule+ putInsightRule_ruleState,+ putInsightRule_tags,+ putInsightRule_ruleName,+ putInsightRule_ruleDefinition,+ putInsightRuleResponse_httpStatus,++ -- ** PutManagedInsightRules+ putManagedInsightRules_managedRules,+ putManagedInsightRulesResponse_failures,+ putManagedInsightRulesResponse_httpStatus,++ -- ** PutMetricAlarm+ putMetricAlarm_actionsEnabled,+ putMetricAlarm_alarmActions,+ putMetricAlarm_alarmDescription,+ putMetricAlarm_datapointsToAlarm,+ putMetricAlarm_dimensions,+ putMetricAlarm_evaluateLowSampleCountPercentile,+ putMetricAlarm_extendedStatistic,+ putMetricAlarm_insufficientDataActions,+ putMetricAlarm_metricName,+ putMetricAlarm_metrics,+ putMetricAlarm_namespace,+ putMetricAlarm_oKActions,+ putMetricAlarm_period,+ putMetricAlarm_statistic,+ putMetricAlarm_tags,+ putMetricAlarm_threshold,+ putMetricAlarm_thresholdMetricId,+ putMetricAlarm_treatMissingData,+ putMetricAlarm_unit,+ putMetricAlarm_alarmName,+ putMetricAlarm_evaluationPeriods,+ putMetricAlarm_comparisonOperator,++ -- ** PutMetricData+ putMetricData_namespace,+ putMetricData_metricData,++ -- ** PutMetricStream+ putMetricStream_excludeFilters,+ putMetricStream_includeFilters,+ putMetricStream_statisticsConfigurations,+ putMetricStream_tags,+ putMetricStream_name,+ putMetricStream_firehoseArn,+ putMetricStream_roleArn,+ putMetricStream_outputFormat,+ putMetricStreamResponse_arn,+ putMetricStreamResponse_httpStatus,++ -- ** SetAlarmState+ setAlarmState_stateReasonData,+ setAlarmState_alarmName,+ setAlarmState_stateValue,+ setAlarmState_stateReason,++ -- ** StartMetricStreams+ startMetricStreams_names,+ startMetricStreamsResponse_httpStatus,++ -- ** StopMetricStreams+ stopMetricStreams_names,+ stopMetricStreamsResponse_httpStatus,++ -- ** TagResource+ tagResource_resourceARN,+ tagResource_tags,+ tagResourceResponse_httpStatus,++ -- ** UntagResource+ untagResource_resourceARN,+ untagResource_tagKeys,+ untagResourceResponse_httpStatus,++ -- * Types++ -- ** AlarmHistoryItem+ alarmHistoryItem_alarmName,+ alarmHistoryItem_alarmType,+ alarmHistoryItem_historyData,+ alarmHistoryItem_historyItemType,+ alarmHistoryItem_historySummary,+ alarmHistoryItem_timestamp,++ -- ** AnomalyDetector+ anomalyDetector_configuration,+ anomalyDetector_dimensions,+ anomalyDetector_metricMathAnomalyDetector,+ anomalyDetector_metricName,+ anomalyDetector_namespace,+ anomalyDetector_singleMetricAnomalyDetector,+ anomalyDetector_stat,+ anomalyDetector_stateValue,++ -- ** AnomalyDetectorConfiguration+ anomalyDetectorConfiguration_excludedTimeRanges,+ anomalyDetectorConfiguration_metricTimezone,++ -- ** CompositeAlarm+ compositeAlarm_actionsEnabled,+ compositeAlarm_actionsSuppressedBy,+ compositeAlarm_actionsSuppressedReason,+ compositeAlarm_actionsSuppressor,+ compositeAlarm_actionsSuppressorExtensionPeriod,+ compositeAlarm_actionsSuppressorWaitPeriod,+ compositeAlarm_alarmActions,+ compositeAlarm_alarmArn,+ compositeAlarm_alarmConfigurationUpdatedTimestamp,+ compositeAlarm_alarmDescription,+ compositeAlarm_alarmName,+ compositeAlarm_alarmRule,+ compositeAlarm_insufficientDataActions,+ compositeAlarm_oKActions,+ compositeAlarm_stateReason,+ compositeAlarm_stateReasonData,+ compositeAlarm_stateTransitionedTimestamp,+ compositeAlarm_stateUpdatedTimestamp,+ compositeAlarm_stateValue,++ -- ** DashboardEntry+ dashboardEntry_dashboardArn,+ dashboardEntry_dashboardName,+ dashboardEntry_lastModified,+ dashboardEntry_size,++ -- ** DashboardValidationMessage+ dashboardValidationMessage_dataPath,+ dashboardValidationMessage_message,++ -- ** Datapoint+ datapoint_average,+ datapoint_extendedStatistics,+ datapoint_maximum,+ datapoint_minimum,+ datapoint_sampleCount,+ datapoint_sum,+ datapoint_timestamp,+ datapoint_unit,++ -- ** Dimension+ dimension_name,+ dimension_value,++ -- ** DimensionFilter+ dimensionFilter_value,+ dimensionFilter_name,++ -- ** InsightRule+ insightRule_managedRule,+ insightRule_name,+ insightRule_state,+ insightRule_schema,+ insightRule_definition,++ -- ** InsightRuleContributor+ insightRuleContributor_keys,+ insightRuleContributor_approximateAggregateValue,+ insightRuleContributor_datapoints,++ -- ** InsightRuleContributorDatapoint+ insightRuleContributorDatapoint_timestamp,+ insightRuleContributorDatapoint_approximateValue,++ -- ** InsightRuleMetricDatapoint+ insightRuleMetricDatapoint_average,+ insightRuleMetricDatapoint_maxContributorValue,+ insightRuleMetricDatapoint_maximum,+ insightRuleMetricDatapoint_minimum,+ insightRuleMetricDatapoint_sampleCount,+ insightRuleMetricDatapoint_sum,+ insightRuleMetricDatapoint_uniqueContributors,+ insightRuleMetricDatapoint_timestamp,++ -- ** LabelOptions+ labelOptions_timezone,++ -- ** ManagedRule+ managedRule_tags,+ managedRule_templateName,+ managedRule_resourceARN,++ -- ** ManagedRuleDescription+ managedRuleDescription_resourceARN,+ managedRuleDescription_ruleState,+ managedRuleDescription_templateName,++ -- ** ManagedRuleState+ managedRuleState_ruleName,+ managedRuleState_state,++ -- ** MessageData+ messageData_code,+ messageData_value,++ -- ** Metric+ metric_dimensions,+ metric_metricName,+ metric_namespace,++ -- ** MetricAlarm+ metricAlarm_actionsEnabled,+ metricAlarm_alarmActions,+ metricAlarm_alarmArn,+ metricAlarm_alarmConfigurationUpdatedTimestamp,+ metricAlarm_alarmDescription,+ metricAlarm_alarmName,+ metricAlarm_comparisonOperator,+ metricAlarm_datapointsToAlarm,+ metricAlarm_dimensions,+ metricAlarm_evaluateLowSampleCountPercentile,+ metricAlarm_evaluationPeriods,+ metricAlarm_evaluationState,+ metricAlarm_extendedStatistic,+ metricAlarm_insufficientDataActions,+ metricAlarm_metricName,+ metricAlarm_metrics,+ metricAlarm_namespace,+ metricAlarm_oKActions,+ metricAlarm_period,+ metricAlarm_stateReason,+ metricAlarm_stateReasonData,+ metricAlarm_stateTransitionedTimestamp,+ metricAlarm_stateUpdatedTimestamp,+ metricAlarm_stateValue,+ metricAlarm_statistic,+ metricAlarm_threshold,+ metricAlarm_thresholdMetricId,+ metricAlarm_treatMissingData,+ metricAlarm_unit,++ -- ** MetricDataQuery+ metricDataQuery_accountId,+ metricDataQuery_expression,+ metricDataQuery_label,+ metricDataQuery_metricStat,+ metricDataQuery_period,+ metricDataQuery_returnData,+ metricDataQuery_id,++ -- ** MetricDataResult+ metricDataResult_id,+ metricDataResult_label,+ metricDataResult_messages,+ metricDataResult_statusCode,+ metricDataResult_timestamps,+ metricDataResult_values,++ -- ** MetricDatum+ metricDatum_counts,+ metricDatum_dimensions,+ metricDatum_statisticValues,+ metricDatum_storageResolution,+ metricDatum_timestamp,+ metricDatum_unit,+ metricDatum_value,+ metricDatum_values,+ metricDatum_metricName,++ -- ** MetricMathAnomalyDetector+ metricMathAnomalyDetector_metricDataQueries,++ -- ** MetricStat+ metricStat_unit,+ metricStat_metric,+ metricStat_period,+ metricStat_stat,++ -- ** MetricStreamEntry+ metricStreamEntry_arn,+ metricStreamEntry_creationDate,+ metricStreamEntry_firehoseArn,+ metricStreamEntry_lastUpdateDate,+ metricStreamEntry_name,+ metricStreamEntry_outputFormat,+ metricStreamEntry_state,++ -- ** MetricStreamFilter+ metricStreamFilter_namespace,++ -- ** MetricStreamStatisticsConfiguration+ metricStreamStatisticsConfiguration_includeMetrics,+ metricStreamStatisticsConfiguration_additionalStatistics,++ -- ** MetricStreamStatisticsMetric+ metricStreamStatisticsMetric_namespace,+ metricStreamStatisticsMetric_metricName,++ -- ** PartialFailure+ partialFailure_exceptionType,+ partialFailure_failureCode,+ partialFailure_failureDescription,+ partialFailure_failureResource,++ -- ** Range+ range_startTime,+ range_endTime,++ -- ** SingleMetricAnomalyDetector+ singleMetricAnomalyDetector_dimensions,+ singleMetricAnomalyDetector_metricName,+ singleMetricAnomalyDetector_namespace,+ singleMetricAnomalyDetector_stat,++ -- ** StatisticSet+ statisticSet_sampleCount,+ statisticSet_sum,+ statisticSet_minimum,+ statisticSet_maximum,++ -- ** Tag+ tag_key,+ tag_value,+ )+where++import Amazonka.CloudWatch.DeleteAlarms+import Amazonka.CloudWatch.DeleteAnomalyDetector+import Amazonka.CloudWatch.DeleteDashboards+import Amazonka.CloudWatch.DeleteInsightRules+import Amazonka.CloudWatch.DeleteMetricStream+import Amazonka.CloudWatch.DescribeAlarmHistory+import Amazonka.CloudWatch.DescribeAlarms+import Amazonka.CloudWatch.DescribeAlarmsForMetric+import Amazonka.CloudWatch.DescribeAnomalyDetectors+import Amazonka.CloudWatch.DescribeInsightRules+import Amazonka.CloudWatch.DisableAlarmActions+import Amazonka.CloudWatch.DisableInsightRules+import Amazonka.CloudWatch.EnableAlarmActions+import Amazonka.CloudWatch.EnableInsightRules+import Amazonka.CloudWatch.GetDashboard+import Amazonka.CloudWatch.GetInsightRuleReport+import Amazonka.CloudWatch.GetMetricData+import Amazonka.CloudWatch.GetMetricStatistics+import Amazonka.CloudWatch.GetMetricStream+import Amazonka.CloudWatch.GetMetricWidgetImage+import Amazonka.CloudWatch.ListDashboards+import Amazonka.CloudWatch.ListManagedInsightRules+import Amazonka.CloudWatch.ListMetricStreams+import Amazonka.CloudWatch.ListMetrics+import Amazonka.CloudWatch.ListTagsForResource+import Amazonka.CloudWatch.PutAnomalyDetector+import Amazonka.CloudWatch.PutCompositeAlarm+import Amazonka.CloudWatch.PutDashboard+import Amazonka.CloudWatch.PutInsightRule+import Amazonka.CloudWatch.PutManagedInsightRules+import Amazonka.CloudWatch.PutMetricAlarm+import Amazonka.CloudWatch.PutMetricData+import Amazonka.CloudWatch.PutMetricStream+import Amazonka.CloudWatch.SetAlarmState+import Amazonka.CloudWatch.StartMetricStreams+import Amazonka.CloudWatch.StopMetricStreams+import Amazonka.CloudWatch.TagResource+import Amazonka.CloudWatch.Types.AlarmHistoryItem+import Amazonka.CloudWatch.Types.AnomalyDetector+import Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration+import Amazonka.CloudWatch.Types.CompositeAlarm+import Amazonka.CloudWatch.Types.DashboardEntry+import Amazonka.CloudWatch.Types.DashboardValidationMessage+import Amazonka.CloudWatch.Types.Datapoint+import Amazonka.CloudWatch.Types.Dimension+import Amazonka.CloudWatch.Types.DimensionFilter+import Amazonka.CloudWatch.Types.InsightRule+import Amazonka.CloudWatch.Types.InsightRuleContributor+import Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint+import Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint+import Amazonka.CloudWatch.Types.LabelOptions+import Amazonka.CloudWatch.Types.ManagedRule+import Amazonka.CloudWatch.Types.ManagedRuleDescription+import Amazonka.CloudWatch.Types.ManagedRuleState+import Amazonka.CloudWatch.Types.MessageData+import Amazonka.CloudWatch.Types.Metric+import Amazonka.CloudWatch.Types.MetricAlarm+import Amazonka.CloudWatch.Types.MetricDataQuery+import Amazonka.CloudWatch.Types.MetricDataResult+import Amazonka.CloudWatch.Types.MetricDatum+import Amazonka.CloudWatch.Types.MetricMathAnomalyDetector+import Amazonka.CloudWatch.Types.MetricStat+import Amazonka.CloudWatch.Types.MetricStreamEntry+import Amazonka.CloudWatch.Types.MetricStreamFilter+import Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration+import Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric+import Amazonka.CloudWatch.Types.PartialFailure+import Amazonka.CloudWatch.Types.Range+import Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector+import Amazonka.CloudWatch.Types.StatisticSet+import Amazonka.CloudWatch.Types.Tag+import Amazonka.CloudWatch.UntagResource
+ gen/Amazonka/CloudWatch/ListDashboards.hs view
@@ -0,0 +1,230 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.ListDashboards+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of the dashboards for your account. If you include+-- @DashboardNamePrefix@, only those dashboards with names starting with+-- the prefix are listed. Otherwise, all dashboards in your account are+-- listed.+--+-- @ListDashboards@ returns up to 1000 results on one page. If there are+-- more than 1000 dashboards, you can call @ListDashboards@ again and+-- include the value you received for @NextToken@ in the first call, to+-- receive the next 1000 results.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.ListDashboards+ ( -- * Creating a Request+ ListDashboards (..),+ newListDashboards,++ -- * Request Lenses+ listDashboards_dashboardNamePrefix,+ listDashboards_nextToken,++ -- * Destructuring the Response+ ListDashboardsResponse (..),+ newListDashboardsResponse,++ -- * Response Lenses+ listDashboardsResponse_dashboardEntries,+ listDashboardsResponse_nextToken,+ listDashboardsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListDashboards' smart constructor.+data ListDashboards = ListDashboards'+ { -- | If you specify this parameter, only the dashboards with names starting+ -- with the specified string are listed. The maximum length is 255, and+ -- valid characters are A-Z, a-z, 0-9, \".\", \"-\", and \"_\".+ dashboardNamePrefix :: Prelude.Maybe Prelude.Text,+ -- | The token returned by a previous call to indicate that there is more+ -- data available.+ nextToken :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListDashboards' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardNamePrefix', 'listDashboards_dashboardNamePrefix' - If you specify this parameter, only the dashboards with names starting+-- with the specified string are listed. The maximum length is 255, and+-- valid characters are A-Z, a-z, 0-9, \".\", \"-\", and \"_\".+--+-- 'nextToken', 'listDashboards_nextToken' - The token returned by a previous call to indicate that there is more+-- data available.+newListDashboards ::+ ListDashboards+newListDashboards =+ ListDashboards'+ { dashboardNamePrefix =+ Prelude.Nothing,+ nextToken = Prelude.Nothing+ }++-- | If you specify this parameter, only the dashboards with names starting+-- with the specified string are listed. The maximum length is 255, and+-- valid characters are A-Z, a-z, 0-9, \".\", \"-\", and \"_\".+listDashboards_dashboardNamePrefix :: Lens.Lens' ListDashboards (Prelude.Maybe Prelude.Text)+listDashboards_dashboardNamePrefix = Lens.lens (\ListDashboards' {dashboardNamePrefix} -> dashboardNamePrefix) (\s@ListDashboards' {} a -> s {dashboardNamePrefix = a} :: ListDashboards)++-- | The token returned by a previous call to indicate that there is more+-- data available.+listDashboards_nextToken :: Lens.Lens' ListDashboards (Prelude.Maybe Prelude.Text)+listDashboards_nextToken = Lens.lens (\ListDashboards' {nextToken} -> nextToken) (\s@ListDashboards' {} a -> s {nextToken = a} :: ListDashboards)++instance Core.AWSPager ListDashboards where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? listDashboardsResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? listDashboardsResponse_dashboardEntries+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& listDashboards_nextToken+ Lens..~ rs+ Lens.^? listDashboardsResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest ListDashboards where+ type+ AWSResponse ListDashboards =+ ListDashboardsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "ListDashboardsResult"+ ( \s h x ->+ ListDashboardsResponse'+ Prelude.<$> ( x+ Data..@? "DashboardEntries"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListDashboards where+ hashWithSalt _salt ListDashboards' {..} =+ _salt+ `Prelude.hashWithSalt` dashboardNamePrefix+ `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListDashboards where+ rnf ListDashboards' {..} =+ Prelude.rnf dashboardNamePrefix+ `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListDashboards where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath ListDashboards where+ toPath = Prelude.const "/"++instance Data.ToQuery ListDashboards where+ toQuery ListDashboards' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("ListDashboards" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "DashboardNamePrefix" Data.=: dashboardNamePrefix,+ "NextToken" Data.=: nextToken+ ]++-- | /See:/ 'newListDashboardsResponse' smart constructor.+data ListDashboardsResponse = ListDashboardsResponse'+ { -- | The list of matching dashboards.+ dashboardEntries :: Prelude.Maybe [DashboardEntry],+ -- | The token that marks the start of the next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListDashboardsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardEntries', 'listDashboardsResponse_dashboardEntries' - The list of matching dashboards.+--+-- 'nextToken', 'listDashboardsResponse_nextToken' - The token that marks the start of the next batch of returned results.+--+-- 'httpStatus', 'listDashboardsResponse_httpStatus' - The response's http status code.+newListDashboardsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListDashboardsResponse+newListDashboardsResponse pHttpStatus_ =+ ListDashboardsResponse'+ { dashboardEntries =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The list of matching dashboards.+listDashboardsResponse_dashboardEntries :: Lens.Lens' ListDashboardsResponse (Prelude.Maybe [DashboardEntry])+listDashboardsResponse_dashboardEntries = Lens.lens (\ListDashboardsResponse' {dashboardEntries} -> dashboardEntries) (\s@ListDashboardsResponse' {} a -> s {dashboardEntries = a} :: ListDashboardsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token that marks the start of the next batch of returned results.+listDashboardsResponse_nextToken :: Lens.Lens' ListDashboardsResponse (Prelude.Maybe Prelude.Text)+listDashboardsResponse_nextToken = Lens.lens (\ListDashboardsResponse' {nextToken} -> nextToken) (\s@ListDashboardsResponse' {} a -> s {nextToken = a} :: ListDashboardsResponse)++-- | The response's http status code.+listDashboardsResponse_httpStatus :: Lens.Lens' ListDashboardsResponse Prelude.Int+listDashboardsResponse_httpStatus = Lens.lens (\ListDashboardsResponse' {httpStatus} -> httpStatus) (\s@ListDashboardsResponse' {} a -> s {httpStatus = a} :: ListDashboardsResponse)++instance Prelude.NFData ListDashboardsResponse where+ rnf ListDashboardsResponse' {..} =+ Prelude.rnf dashboardEntries+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/ListManagedInsightRules.hs view
@@ -0,0 +1,223 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.ListManagedInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list that contains the number of managed Contributor Insights+-- rules in your account.+module Amazonka.CloudWatch.ListManagedInsightRules+ ( -- * Creating a Request+ ListManagedInsightRules (..),+ newListManagedInsightRules,++ -- * Request Lenses+ listManagedInsightRules_maxResults,+ listManagedInsightRules_nextToken,+ listManagedInsightRules_resourceARN,++ -- * Destructuring the Response+ ListManagedInsightRulesResponse (..),+ newListManagedInsightRulesResponse,++ -- * Response Lenses+ listManagedInsightRulesResponse_managedRules,+ listManagedInsightRulesResponse_nextToken,+ listManagedInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListManagedInsightRules' smart constructor.+data ListManagedInsightRules = ListManagedInsightRules'+ { -- | The maximum number of results to return in one operation. If you omit+ -- this parameter, the default number is used. The default number is @100@.+ maxResults :: Prelude.Maybe Prelude.Natural,+ -- | Include this value to get the next set of rules if the value was+ -- returned by the previous operation.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The ARN of an Amazon Web Services resource that has managed Contributor+ -- Insights rules.+ resourceARN :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListManagedInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listManagedInsightRules_maxResults' - The maximum number of results to return in one operation. If you omit+-- this parameter, the default number is used. The default number is @100@.+--+-- 'nextToken', 'listManagedInsightRules_nextToken' - Include this value to get the next set of rules if the value was+-- returned by the previous operation.+--+-- 'resourceARN', 'listManagedInsightRules_resourceARN' - The ARN of an Amazon Web Services resource that has managed Contributor+-- Insights rules.+newListManagedInsightRules ::+ -- | 'resourceARN'+ Prelude.Text ->+ ListManagedInsightRules+newListManagedInsightRules pResourceARN_ =+ ListManagedInsightRules'+ { maxResults =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ resourceARN = pResourceARN_+ }++-- | The maximum number of results to return in one operation. If you omit+-- this parameter, the default number is used. The default number is @100@.+listManagedInsightRules_maxResults :: Lens.Lens' ListManagedInsightRules (Prelude.Maybe Prelude.Natural)+listManagedInsightRules_maxResults = Lens.lens (\ListManagedInsightRules' {maxResults} -> maxResults) (\s@ListManagedInsightRules' {} a -> s {maxResults = a} :: ListManagedInsightRules)++-- | Include this value to get the next set of rules if the value was+-- returned by the previous operation.+listManagedInsightRules_nextToken :: Lens.Lens' ListManagedInsightRules (Prelude.Maybe Prelude.Text)+listManagedInsightRules_nextToken = Lens.lens (\ListManagedInsightRules' {nextToken} -> nextToken) (\s@ListManagedInsightRules' {} a -> s {nextToken = a} :: ListManagedInsightRules)++-- | The ARN of an Amazon Web Services resource that has managed Contributor+-- Insights rules.+listManagedInsightRules_resourceARN :: Lens.Lens' ListManagedInsightRules Prelude.Text+listManagedInsightRules_resourceARN = Lens.lens (\ListManagedInsightRules' {resourceARN} -> resourceARN) (\s@ListManagedInsightRules' {} a -> s {resourceARN = a} :: ListManagedInsightRules)++instance Core.AWSRequest ListManagedInsightRules where+ type+ AWSResponse ListManagedInsightRules =+ ListManagedInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "ListManagedInsightRulesResult"+ ( \s h x ->+ ListManagedInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "ManagedRules"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListManagedInsightRules where+ hashWithSalt _salt ListManagedInsightRules' {..} =+ _salt+ `Prelude.hashWithSalt` maxResults+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` resourceARN++instance Prelude.NFData ListManagedInsightRules where+ rnf ListManagedInsightRules' {..} =+ Prelude.rnf maxResults+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf resourceARN++instance Data.ToHeaders ListManagedInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath ListManagedInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery ListManagedInsightRules where+ toQuery ListManagedInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("ListManagedInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "MaxResults" Data.=: maxResults,+ "NextToken" Data.=: nextToken,+ "ResourceARN" Data.=: resourceARN+ ]++-- | /See:/ 'newListManagedInsightRulesResponse' smart constructor.+data ListManagedInsightRulesResponse = ListManagedInsightRulesResponse'+ { -- | The managed rules that are available for the specified Amazon Web+ -- Services resource.+ managedRules :: Prelude.Maybe [ManagedRuleDescription],+ -- | Include this value to get the next set of rules if the value was+ -- returned by the previous operation.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListManagedInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'managedRules', 'listManagedInsightRulesResponse_managedRules' - The managed rules that are available for the specified Amazon Web+-- Services resource.+--+-- 'nextToken', 'listManagedInsightRulesResponse_nextToken' - Include this value to get the next set of rules if the value was+-- returned by the previous operation.+--+-- 'httpStatus', 'listManagedInsightRulesResponse_httpStatus' - The response's http status code.+newListManagedInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListManagedInsightRulesResponse+newListManagedInsightRulesResponse pHttpStatus_ =+ ListManagedInsightRulesResponse'+ { managedRules =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The managed rules that are available for the specified Amazon Web+-- Services resource.+listManagedInsightRulesResponse_managedRules :: Lens.Lens' ListManagedInsightRulesResponse (Prelude.Maybe [ManagedRuleDescription])+listManagedInsightRulesResponse_managedRules = Lens.lens (\ListManagedInsightRulesResponse' {managedRules} -> managedRules) (\s@ListManagedInsightRulesResponse' {} a -> s {managedRules = a} :: ListManagedInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | Include this value to get the next set of rules if the value was+-- returned by the previous operation.+listManagedInsightRulesResponse_nextToken :: Lens.Lens' ListManagedInsightRulesResponse (Prelude.Maybe Prelude.Text)+listManagedInsightRulesResponse_nextToken = Lens.lens (\ListManagedInsightRulesResponse' {nextToken} -> nextToken) (\s@ListManagedInsightRulesResponse' {} a -> s {nextToken = a} :: ListManagedInsightRulesResponse)++-- | The response's http status code.+listManagedInsightRulesResponse_httpStatus :: Lens.Lens' ListManagedInsightRulesResponse Prelude.Int+listManagedInsightRulesResponse_httpStatus = Lens.lens (\ListManagedInsightRulesResponse' {httpStatus} -> httpStatus) (\s@ListManagedInsightRulesResponse' {} a -> s {httpStatus = a} :: ListManagedInsightRulesResponse)++instance+ Prelude.NFData+ ListManagedInsightRulesResponse+ where+ rnf ListManagedInsightRulesResponse' {..} =+ Prelude.rnf managedRules+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/ListMetricStreams.hs view
@@ -0,0 +1,197 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.ListMetricStreams+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of metric streams in this account.+module Amazonka.CloudWatch.ListMetricStreams+ ( -- * Creating a Request+ ListMetricStreams (..),+ newListMetricStreams,++ -- * Request Lenses+ listMetricStreams_maxResults,+ listMetricStreams_nextToken,++ -- * Destructuring the Response+ ListMetricStreamsResponse (..),+ newListMetricStreamsResponse,++ -- * Response Lenses+ listMetricStreamsResponse_entries,+ listMetricStreamsResponse_nextToken,+ listMetricStreamsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListMetricStreams' smart constructor.+data ListMetricStreams = ListMetricStreams'+ { -- | The maximum number of results to return in one operation.+ maxResults :: Prelude.Maybe Prelude.Natural,+ -- | Include this value, if it was returned by the previous call, to get the+ -- next set of metric streams.+ nextToken :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMetricStreams' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listMetricStreams_maxResults' - The maximum number of results to return in one operation.+--+-- 'nextToken', 'listMetricStreams_nextToken' - Include this value, if it was returned by the previous call, to get the+-- next set of metric streams.+newListMetricStreams ::+ ListMetricStreams+newListMetricStreams =+ ListMetricStreams'+ { maxResults = Prelude.Nothing,+ nextToken = Prelude.Nothing+ }++-- | The maximum number of results to return in one operation.+listMetricStreams_maxResults :: Lens.Lens' ListMetricStreams (Prelude.Maybe Prelude.Natural)+listMetricStreams_maxResults = Lens.lens (\ListMetricStreams' {maxResults} -> maxResults) (\s@ListMetricStreams' {} a -> s {maxResults = a} :: ListMetricStreams)++-- | Include this value, if it was returned by the previous call, to get the+-- next set of metric streams.+listMetricStreams_nextToken :: Lens.Lens' ListMetricStreams (Prelude.Maybe Prelude.Text)+listMetricStreams_nextToken = Lens.lens (\ListMetricStreams' {nextToken} -> nextToken) (\s@ListMetricStreams' {} a -> s {nextToken = a} :: ListMetricStreams)++instance Core.AWSRequest ListMetricStreams where+ type+ AWSResponse ListMetricStreams =+ ListMetricStreamsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "ListMetricStreamsResult"+ ( \s h x ->+ ListMetricStreamsResponse'+ Prelude.<$> ( x+ Data..@? "Entries"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListMetricStreams where+ hashWithSalt _salt ListMetricStreams' {..} =+ _salt+ `Prelude.hashWithSalt` maxResults+ `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListMetricStreams where+ rnf ListMetricStreams' {..} =+ Prelude.rnf maxResults+ `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListMetricStreams where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath ListMetricStreams where+ toPath = Prelude.const "/"++instance Data.ToQuery ListMetricStreams where+ toQuery ListMetricStreams' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("ListMetricStreams" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "MaxResults" Data.=: maxResults,+ "NextToken" Data.=: nextToken+ ]++-- | /See:/ 'newListMetricStreamsResponse' smart constructor.+data ListMetricStreamsResponse = ListMetricStreamsResponse'+ { -- | The array of metric stream information.+ entries :: Prelude.Maybe [MetricStreamEntry],+ -- | The token that marks the start of the next batch of returned results.+ -- You can use this token in a subsequent operation to get the next batch+ -- of results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMetricStreamsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'entries', 'listMetricStreamsResponse_entries' - The array of metric stream information.+--+-- 'nextToken', 'listMetricStreamsResponse_nextToken' - The token that marks the start of the next batch of returned results.+-- You can use this token in a subsequent operation to get the next batch+-- of results.+--+-- 'httpStatus', 'listMetricStreamsResponse_httpStatus' - The response's http status code.+newListMetricStreamsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListMetricStreamsResponse+newListMetricStreamsResponse pHttpStatus_ =+ ListMetricStreamsResponse'+ { entries =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The array of metric stream information.+listMetricStreamsResponse_entries :: Lens.Lens' ListMetricStreamsResponse (Prelude.Maybe [MetricStreamEntry])+listMetricStreamsResponse_entries = Lens.lens (\ListMetricStreamsResponse' {entries} -> entries) (\s@ListMetricStreamsResponse' {} a -> s {entries = a} :: ListMetricStreamsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token that marks the start of the next batch of returned results.+-- You can use this token in a subsequent operation to get the next batch+-- of results.+listMetricStreamsResponse_nextToken :: Lens.Lens' ListMetricStreamsResponse (Prelude.Maybe Prelude.Text)+listMetricStreamsResponse_nextToken = Lens.lens (\ListMetricStreamsResponse' {nextToken} -> nextToken) (\s@ListMetricStreamsResponse' {} a -> s {nextToken = a} :: ListMetricStreamsResponse)++-- | The response's http status code.+listMetricStreamsResponse_httpStatus :: Lens.Lens' ListMetricStreamsResponse Prelude.Int+listMetricStreamsResponse_httpStatus = Lens.lens (\ListMetricStreamsResponse' {httpStatus} -> httpStatus) (\s@ListMetricStreamsResponse' {} a -> s {httpStatus = a} :: ListMetricStreamsResponse)++instance Prelude.NFData ListMetricStreamsResponse where+ rnf ListMetricStreamsResponse' {..} =+ Prelude.rnf entries+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/ListMetrics.hs view
@@ -0,0 +1,390 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.ListMetrics+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- List the specified metrics. You can use the returned metrics with+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html GetMetricData>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html GetMetricStatistics>+-- to get statistical data.+--+-- Up to 500 results are returned for any one call. To retrieve additional+-- results, use the returned token with subsequent calls.+--+-- After you create a metric, allow up to 15 minutes for the metric to+-- appear. To see metric statistics sooner, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html GetMetricData>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html GetMetricStatistics>.+--+-- If you are using CloudWatch cross-account observability, you can use+-- this operation in a monitoring account and view metrics from the linked+-- source accounts. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html CloudWatch cross-account observability>.+--+-- @ListMetrics@ doesn\'t return information about metrics if those metrics+-- haven\'t reported data in the past two weeks. To retrieve those metrics,+-- use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html GetMetricData>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html GetMetricStatistics>.+--+-- This operation returns paginated results.+module Amazonka.CloudWatch.ListMetrics+ ( -- * Creating a Request+ ListMetrics (..),+ newListMetrics,++ -- * Request Lenses+ listMetrics_dimensions,+ listMetrics_includeLinkedAccounts,+ listMetrics_metricName,+ listMetrics_namespace,+ listMetrics_nextToken,+ listMetrics_owningAccount,+ listMetrics_recentlyActive,++ -- * Destructuring the Response+ ListMetricsResponse (..),+ newListMetricsResponse,++ -- * Response Lenses+ listMetricsResponse_metrics,+ listMetricsResponse_nextToken,+ listMetricsResponse_owningAccounts,+ listMetricsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListMetrics' smart constructor.+data ListMetrics = ListMetrics'+ { -- | The dimensions to filter against. Only the dimensions that match exactly+ -- will be returned.+ dimensions :: Prelude.Maybe [DimensionFilter],+ -- | If you are using this operation in a monitoring account, specify @true@+ -- to include metrics from source accounts in the returned data.+ --+ -- The default is @false@.+ includeLinkedAccounts :: Prelude.Maybe Prelude.Bool,+ -- | The name of the metric to filter against. Only the metrics with names+ -- that match exactly will be returned.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The metric namespace to filter against. Only the namespace that matches+ -- exactly will be returned.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | The token returned by a previous call to indicate that there is more+ -- data available.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | When you use this operation in a monitoring account, use this field to+ -- return metrics only from one source account. To do so, specify that+ -- source account ID in this field, and also specify @true@ for+ -- @IncludeLinkedAccounts@.+ owningAccount :: Prelude.Maybe Prelude.Text,+ -- | To filter the results to show only metrics that have had data points+ -- published in the past three hours, specify this parameter with a value+ -- of @PT3H@. This is the only valid value for this parameter.+ --+ -- The results that are returned are an approximation of the value you+ -- specify. There is a low probability that the returned results include+ -- metrics with last published data as much as 40 minutes more than the+ -- specified time interval.+ recentlyActive :: Prelude.Maybe RecentlyActive+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMetrics' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'listMetrics_dimensions' - The dimensions to filter against. Only the dimensions that match exactly+-- will be returned.+--+-- 'includeLinkedAccounts', 'listMetrics_includeLinkedAccounts' - If you are using this operation in a monitoring account, specify @true@+-- to include metrics from source accounts in the returned data.+--+-- The default is @false@.+--+-- 'metricName', 'listMetrics_metricName' - The name of the metric to filter against. Only the metrics with names+-- that match exactly will be returned.+--+-- 'namespace', 'listMetrics_namespace' - The metric namespace to filter against. Only the namespace that matches+-- exactly will be returned.+--+-- 'nextToken', 'listMetrics_nextToken' - The token returned by a previous call to indicate that there is more+-- data available.+--+-- 'owningAccount', 'listMetrics_owningAccount' - When you use this operation in a monitoring account, use this field to+-- return metrics only from one source account. To do so, specify that+-- source account ID in this field, and also specify @true@ for+-- @IncludeLinkedAccounts@.+--+-- 'recentlyActive', 'listMetrics_recentlyActive' - To filter the results to show only metrics that have had data points+-- published in the past three hours, specify this parameter with a value+-- of @PT3H@. This is the only valid value for this parameter.+--+-- The results that are returned are an approximation of the value you+-- specify. There is a low probability that the returned results include+-- metrics with last published data as much as 40 minutes more than the+-- specified time interval.+newListMetrics ::+ ListMetrics+newListMetrics =+ ListMetrics'+ { dimensions = Prelude.Nothing,+ includeLinkedAccounts = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ owningAccount = Prelude.Nothing,+ recentlyActive = Prelude.Nothing+ }++-- | The dimensions to filter against. Only the dimensions that match exactly+-- will be returned.+listMetrics_dimensions :: Lens.Lens' ListMetrics (Prelude.Maybe [DimensionFilter])+listMetrics_dimensions = Lens.lens (\ListMetrics' {dimensions} -> dimensions) (\s@ListMetrics' {} a -> s {dimensions = a} :: ListMetrics) Prelude.. Lens.mapping Lens.coerced++-- | If you are using this operation in a monitoring account, specify @true@+-- to include metrics from source accounts in the returned data.+--+-- The default is @false@.+listMetrics_includeLinkedAccounts :: Lens.Lens' ListMetrics (Prelude.Maybe Prelude.Bool)+listMetrics_includeLinkedAccounts = Lens.lens (\ListMetrics' {includeLinkedAccounts} -> includeLinkedAccounts) (\s@ListMetrics' {} a -> s {includeLinkedAccounts = a} :: ListMetrics)++-- | The name of the metric to filter against. Only the metrics with names+-- that match exactly will be returned.+listMetrics_metricName :: Lens.Lens' ListMetrics (Prelude.Maybe Prelude.Text)+listMetrics_metricName = Lens.lens (\ListMetrics' {metricName} -> metricName) (\s@ListMetrics' {} a -> s {metricName = a} :: ListMetrics)++-- | The metric namespace to filter against. Only the namespace that matches+-- exactly will be returned.+listMetrics_namespace :: Lens.Lens' ListMetrics (Prelude.Maybe Prelude.Text)+listMetrics_namespace = Lens.lens (\ListMetrics' {namespace} -> namespace) (\s@ListMetrics' {} a -> s {namespace = a} :: ListMetrics)++-- | The token returned by a previous call to indicate that there is more+-- data available.+listMetrics_nextToken :: Lens.Lens' ListMetrics (Prelude.Maybe Prelude.Text)+listMetrics_nextToken = Lens.lens (\ListMetrics' {nextToken} -> nextToken) (\s@ListMetrics' {} a -> s {nextToken = a} :: ListMetrics)++-- | When you use this operation in a monitoring account, use this field to+-- return metrics only from one source account. To do so, specify that+-- source account ID in this field, and also specify @true@ for+-- @IncludeLinkedAccounts@.+listMetrics_owningAccount :: Lens.Lens' ListMetrics (Prelude.Maybe Prelude.Text)+listMetrics_owningAccount = Lens.lens (\ListMetrics' {owningAccount} -> owningAccount) (\s@ListMetrics' {} a -> s {owningAccount = a} :: ListMetrics)++-- | To filter the results to show only metrics that have had data points+-- published in the past three hours, specify this parameter with a value+-- of @PT3H@. This is the only valid value for this parameter.+--+-- The results that are returned are an approximation of the value you+-- specify. There is a low probability that the returned results include+-- metrics with last published data as much as 40 minutes more than the+-- specified time interval.+listMetrics_recentlyActive :: Lens.Lens' ListMetrics (Prelude.Maybe RecentlyActive)+listMetrics_recentlyActive = Lens.lens (\ListMetrics' {recentlyActive} -> recentlyActive) (\s@ListMetrics' {} a -> s {recentlyActive = a} :: ListMetrics)++instance Core.AWSPager ListMetrics where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? listMetricsResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? listMetricsResponse_metrics+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^? listMetricsResponse_owningAccounts+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& listMetrics_nextToken+ Lens..~ rs+ Lens.^? listMetricsResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest ListMetrics where+ type AWSResponse ListMetrics = ListMetricsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "ListMetricsResult"+ ( \s h x ->+ ListMetricsResponse'+ Prelude.<$> ( x+ Data..@? "Metrics"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "NextToken")+ Prelude.<*> ( x+ Data..@? "OwningAccounts"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListMetrics where+ hashWithSalt _salt ListMetrics' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` includeLinkedAccounts+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` owningAccount+ `Prelude.hashWithSalt` recentlyActive++instance Prelude.NFData ListMetrics where+ rnf ListMetrics' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf includeLinkedAccounts+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf owningAccount+ `Prelude.seq` Prelude.rnf recentlyActive++instance Data.ToHeaders ListMetrics where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath ListMetrics where+ toPath = Prelude.const "/"++instance Data.ToQuery ListMetrics where+ toQuery ListMetrics' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("ListMetrics" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "IncludeLinkedAccounts"+ Data.=: includeLinkedAccounts,+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace,+ "NextToken" Data.=: nextToken,+ "OwningAccount" Data.=: owningAccount,+ "RecentlyActive" Data.=: recentlyActive+ ]++-- | /See:/ 'newListMetricsResponse' smart constructor.+data ListMetricsResponse = ListMetricsResponse'+ { -- | The metrics that match your request.+ metrics :: Prelude.Maybe [Metric],+ -- | The token that marks the start of the next batch of returned results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | If you are using this operation in a monitoring account, this array+ -- contains the account IDs of the source accounts where the metrics in the+ -- returned data are from.+ --+ -- This field is a 1:1 mapping between each metric that is returned and the+ -- ID of the owning account.+ owningAccounts :: Prelude.Maybe [Prelude.Text],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMetricsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'metrics', 'listMetricsResponse_metrics' - The metrics that match your request.+--+-- 'nextToken', 'listMetricsResponse_nextToken' - The token that marks the start of the next batch of returned results.+--+-- 'owningAccounts', 'listMetricsResponse_owningAccounts' - If you are using this operation in a monitoring account, this array+-- contains the account IDs of the source accounts where the metrics in the+-- returned data are from.+--+-- This field is a 1:1 mapping between each metric that is returned and the+-- ID of the owning account.+--+-- 'httpStatus', 'listMetricsResponse_httpStatus' - The response's http status code.+newListMetricsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListMetricsResponse+newListMetricsResponse pHttpStatus_ =+ ListMetricsResponse'+ { metrics = Prelude.Nothing,+ nextToken = Prelude.Nothing,+ owningAccounts = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The metrics that match your request.+listMetricsResponse_metrics :: Lens.Lens' ListMetricsResponse (Prelude.Maybe [Metric])+listMetricsResponse_metrics = Lens.lens (\ListMetricsResponse' {metrics} -> metrics) (\s@ListMetricsResponse' {} a -> s {metrics = a} :: ListMetricsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token that marks the start of the next batch of returned results.+listMetricsResponse_nextToken :: Lens.Lens' ListMetricsResponse (Prelude.Maybe Prelude.Text)+listMetricsResponse_nextToken = Lens.lens (\ListMetricsResponse' {nextToken} -> nextToken) (\s@ListMetricsResponse' {} a -> s {nextToken = a} :: ListMetricsResponse)++-- | If you are using this operation in a monitoring account, this array+-- contains the account IDs of the source accounts where the metrics in the+-- returned data are from.+--+-- This field is a 1:1 mapping between each metric that is returned and the+-- ID of the owning account.+listMetricsResponse_owningAccounts :: Lens.Lens' ListMetricsResponse (Prelude.Maybe [Prelude.Text])+listMetricsResponse_owningAccounts = Lens.lens (\ListMetricsResponse' {owningAccounts} -> owningAccounts) (\s@ListMetricsResponse' {} a -> s {owningAccounts = a} :: ListMetricsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listMetricsResponse_httpStatus :: Lens.Lens' ListMetricsResponse Prelude.Int+listMetricsResponse_httpStatus = Lens.lens (\ListMetricsResponse' {httpStatus} -> httpStatus) (\s@ListMetricsResponse' {} a -> s {httpStatus = a} :: ListMetricsResponse)++instance Prelude.NFData ListMetricsResponse where+ rnf ListMetricsResponse' {..} =+ Prelude.rnf metrics+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf owningAccounts+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/ListTagsForResource.hs view
@@ -0,0 +1,196 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.ListTagsForResource+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Displays the tags associated with a CloudWatch resource. Currently,+-- alarms and Contributor Insights rules support tagging.+module Amazonka.CloudWatch.ListTagsForResource+ ( -- * Creating a Request+ ListTagsForResource (..),+ newListTagsForResource,++ -- * Request Lenses+ listTagsForResource_resourceARN,++ -- * Destructuring the Response+ ListTagsForResourceResponse (..),+ newListTagsForResourceResponse,++ -- * Response Lenses+ listTagsForResourceResponse_tags,+ listTagsForResourceResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListTagsForResource' smart constructor.+data ListTagsForResource = ListTagsForResource'+ { -- | The ARN of the CloudWatch resource that you want to view tags for.+ --+ -- The ARN format of an alarm is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+ --+ -- The ARN format of a Contributor Insights rule is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+ --+ -- For more information about ARN format, see+ -- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+ -- in the /Amazon Web Services General Reference/.+ resourceARN :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTagsForResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceARN', 'listTagsForResource_resourceARN' - The ARN of the CloudWatch resource that you want to view tags for.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+newListTagsForResource ::+ -- | 'resourceARN'+ Prelude.Text ->+ ListTagsForResource+newListTagsForResource pResourceARN_ =+ ListTagsForResource' {resourceARN = pResourceARN_}++-- | The ARN of the CloudWatch resource that you want to view tags for.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+listTagsForResource_resourceARN :: Lens.Lens' ListTagsForResource Prelude.Text+listTagsForResource_resourceARN = Lens.lens (\ListTagsForResource' {resourceARN} -> resourceARN) (\s@ListTagsForResource' {} a -> s {resourceARN = a} :: ListTagsForResource)++instance Core.AWSRequest ListTagsForResource where+ type+ AWSResponse ListTagsForResource =+ ListTagsForResourceResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "ListTagsForResourceResult"+ ( \s h x ->+ ListTagsForResourceResponse'+ Prelude.<$> ( x+ Data..@? "Tags"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListTagsForResource where+ hashWithSalt _salt ListTagsForResource' {..} =+ _salt `Prelude.hashWithSalt` resourceARN++instance Prelude.NFData ListTagsForResource where+ rnf ListTagsForResource' {..} =+ Prelude.rnf resourceARN++instance Data.ToHeaders ListTagsForResource where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath ListTagsForResource where+ toPath = Prelude.const "/"++instance Data.ToQuery ListTagsForResource where+ toQuery ListTagsForResource' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("ListTagsForResource" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ResourceARN" Data.=: resourceARN+ ]++-- | /See:/ 'newListTagsForResourceResponse' smart constructor.+data ListTagsForResourceResponse = ListTagsForResourceResponse'+ { -- | The list of tag keys and values associated with the resource you+ -- specified.+ tags :: Prelude.Maybe [Tag],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTagsForResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tags', 'listTagsForResourceResponse_tags' - The list of tag keys and values associated with the resource you+-- specified.+--+-- 'httpStatus', 'listTagsForResourceResponse_httpStatus' - The response's http status code.+newListTagsForResourceResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListTagsForResourceResponse+newListTagsForResourceResponse pHttpStatus_ =+ ListTagsForResourceResponse'+ { tags =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The list of tag keys and values associated with the resource you+-- specified.+listTagsForResourceResponse_tags :: Lens.Lens' ListTagsForResourceResponse (Prelude.Maybe [Tag])+listTagsForResourceResponse_tags = Lens.lens (\ListTagsForResourceResponse' {tags} -> tags) (\s@ListTagsForResourceResponse' {} a -> s {tags = a} :: ListTagsForResourceResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listTagsForResourceResponse_httpStatus :: Lens.Lens' ListTagsForResourceResponse Prelude.Int+listTagsForResourceResponse_httpStatus = Lens.lens (\ListTagsForResourceResponse' {httpStatus} -> httpStatus) (\s@ListTagsForResourceResponse' {} a -> s {httpStatus = a} :: ListTagsForResourceResponse)++instance Prelude.NFData ListTagsForResourceResponse where+ rnf ListTagsForResourceResponse' {..} =+ Prelude.rnf tags+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/PutAnomalyDetector.hs view
@@ -0,0 +1,349 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutAnomalyDetector+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates an anomaly detection model for a CloudWatch metric. You can use+-- the model to display a band of expected normal values when the metric is+-- graphed.+--+-- For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html CloudWatch Anomaly Detection>.+module Amazonka.CloudWatch.PutAnomalyDetector+ ( -- * Creating a Request+ PutAnomalyDetector (..),+ newPutAnomalyDetector,++ -- * Request Lenses+ putAnomalyDetector_configuration,+ putAnomalyDetector_dimensions,+ putAnomalyDetector_metricMathAnomalyDetector,+ putAnomalyDetector_metricName,+ putAnomalyDetector_namespace,+ putAnomalyDetector_singleMetricAnomalyDetector,+ putAnomalyDetector_stat,++ -- * Destructuring the Response+ PutAnomalyDetectorResponse (..),+ newPutAnomalyDetectorResponse,++ -- * Response Lenses+ putAnomalyDetectorResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutAnomalyDetector' smart constructor.+data PutAnomalyDetector = PutAnomalyDetector'+ { -- | The configuration specifies details about how the anomaly detection+ -- model is to be trained, including time ranges to exclude when training+ -- and updating the model. You can specify as many as 10 time ranges.+ --+ -- The configuration can also include the time zone to use for the metric.+ configuration :: Prelude.Maybe AnomalyDetectorConfiguration,+ -- | The metric dimensions to create the anomaly detection model for.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The metric math anomaly detector to be created.+ --+ -- When using @MetricMathAnomalyDetector@, you cannot include the following+ -- parameters in the same operation:+ --+ -- - @Dimensions@+ --+ -- - @MetricName@+ --+ -- - @Namespace@+ --+ -- - @Stat@+ --+ -- - the @SingleMetricAnomalyDetector@ parameters of+ -- @PutAnomalyDetectorInput@+ --+ -- Instead, specify the metric math anomaly detector attributes as part of+ -- the property @MetricMathAnomalyDetector@.+ metricMathAnomalyDetector :: Prelude.Maybe MetricMathAnomalyDetector,+ -- | The name of the metric to create the anomaly detection model for.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The namespace of the metric to create the anomaly detection model for.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | A single metric anomaly detector to be created.+ --+ -- When using @SingleMetricAnomalyDetector@, you cannot include the+ -- following parameters in the same operation:+ --+ -- - @Dimensions@+ --+ -- - @MetricName@+ --+ -- - @Namespace@+ --+ -- - @Stat@+ --+ -- - the @MetricMatchAnomalyDetector@ parameters of+ -- @PutAnomalyDetectorInput@+ --+ -- Instead, specify the single metric anomaly detector attributes as part+ -- of the property @SingleMetricAnomalyDetector@.+ singleMetricAnomalyDetector :: Prelude.Maybe SingleMetricAnomalyDetector,+ -- | The statistic to use for the metric and the anomaly detection model.+ stat :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutAnomalyDetector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'configuration', 'putAnomalyDetector_configuration' - The configuration specifies details about how the anomaly detection+-- model is to be trained, including time ranges to exclude when training+-- and updating the model. You can specify as many as 10 time ranges.+--+-- The configuration can also include the time zone to use for the metric.+--+-- 'dimensions', 'putAnomalyDetector_dimensions' - The metric dimensions to create the anomaly detection model for.+--+-- 'metricMathAnomalyDetector', 'putAnomalyDetector_metricMathAnomalyDetector' - The metric math anomaly detector to be created.+--+-- When using @MetricMathAnomalyDetector@, you cannot include the following+-- parameters in the same operation:+--+-- - @Dimensions@+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @SingleMetricAnomalyDetector@ parameters of+-- @PutAnomalyDetectorInput@+--+-- Instead, specify the metric math anomaly detector attributes as part of+-- the property @MetricMathAnomalyDetector@.+--+-- 'metricName', 'putAnomalyDetector_metricName' - The name of the metric to create the anomaly detection model for.+--+-- 'namespace', 'putAnomalyDetector_namespace' - The namespace of the metric to create the anomaly detection model for.+--+-- 'singleMetricAnomalyDetector', 'putAnomalyDetector_singleMetricAnomalyDetector' - A single metric anomaly detector to be created.+--+-- When using @SingleMetricAnomalyDetector@, you cannot include the+-- following parameters in the same operation:+--+-- - @Dimensions@+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @MetricMatchAnomalyDetector@ parameters of+-- @PutAnomalyDetectorInput@+--+-- Instead, specify the single metric anomaly detector attributes as part+-- of the property @SingleMetricAnomalyDetector@.+--+-- 'stat', 'putAnomalyDetector_stat' - The statistic to use for the metric and the anomaly detection model.+newPutAnomalyDetector ::+ PutAnomalyDetector+newPutAnomalyDetector =+ PutAnomalyDetector'+ { configuration =+ Prelude.Nothing,+ dimensions = Prelude.Nothing,+ metricMathAnomalyDetector = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ singleMetricAnomalyDetector = Prelude.Nothing,+ stat = Prelude.Nothing+ }++-- | The configuration specifies details about how the anomaly detection+-- model is to be trained, including time ranges to exclude when training+-- and updating the model. You can specify as many as 10 time ranges.+--+-- The configuration can also include the time zone to use for the metric.+putAnomalyDetector_configuration :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe AnomalyDetectorConfiguration)+putAnomalyDetector_configuration = Lens.lens (\PutAnomalyDetector' {configuration} -> configuration) (\s@PutAnomalyDetector' {} a -> s {configuration = a} :: PutAnomalyDetector)++-- | The metric dimensions to create the anomaly detection model for.+putAnomalyDetector_dimensions :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe [Dimension])+putAnomalyDetector_dimensions = Lens.lens (\PutAnomalyDetector' {dimensions} -> dimensions) (\s@PutAnomalyDetector' {} a -> s {dimensions = a} :: PutAnomalyDetector) Prelude.. Lens.mapping Lens.coerced++-- | The metric math anomaly detector to be created.+--+-- When using @MetricMathAnomalyDetector@, you cannot include the following+-- parameters in the same operation:+--+-- - @Dimensions@+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @SingleMetricAnomalyDetector@ parameters of+-- @PutAnomalyDetectorInput@+--+-- Instead, specify the metric math anomaly detector attributes as part of+-- the property @MetricMathAnomalyDetector@.+putAnomalyDetector_metricMathAnomalyDetector :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe MetricMathAnomalyDetector)+putAnomalyDetector_metricMathAnomalyDetector = Lens.lens (\PutAnomalyDetector' {metricMathAnomalyDetector} -> metricMathAnomalyDetector) (\s@PutAnomalyDetector' {} a -> s {metricMathAnomalyDetector = a} :: PutAnomalyDetector)++-- | The name of the metric to create the anomaly detection model for.+putAnomalyDetector_metricName :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe Prelude.Text)+putAnomalyDetector_metricName = Lens.lens (\PutAnomalyDetector' {metricName} -> metricName) (\s@PutAnomalyDetector' {} a -> s {metricName = a} :: PutAnomalyDetector)++-- | The namespace of the metric to create the anomaly detection model for.+putAnomalyDetector_namespace :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe Prelude.Text)+putAnomalyDetector_namespace = Lens.lens (\PutAnomalyDetector' {namespace} -> namespace) (\s@PutAnomalyDetector' {} a -> s {namespace = a} :: PutAnomalyDetector)++-- | A single metric anomaly detector to be created.+--+-- When using @SingleMetricAnomalyDetector@, you cannot include the+-- following parameters in the same operation:+--+-- - @Dimensions@+--+-- - @MetricName@+--+-- - @Namespace@+--+-- - @Stat@+--+-- - the @MetricMatchAnomalyDetector@ parameters of+-- @PutAnomalyDetectorInput@+--+-- Instead, specify the single metric anomaly detector attributes as part+-- of the property @SingleMetricAnomalyDetector@.+putAnomalyDetector_singleMetricAnomalyDetector :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe SingleMetricAnomalyDetector)+putAnomalyDetector_singleMetricAnomalyDetector = Lens.lens (\PutAnomalyDetector' {singleMetricAnomalyDetector} -> singleMetricAnomalyDetector) (\s@PutAnomalyDetector' {} a -> s {singleMetricAnomalyDetector = a} :: PutAnomalyDetector)++-- | The statistic to use for the metric and the anomaly detection model.+putAnomalyDetector_stat :: Lens.Lens' PutAnomalyDetector (Prelude.Maybe Prelude.Text)+putAnomalyDetector_stat = Lens.lens (\PutAnomalyDetector' {stat} -> stat) (\s@PutAnomalyDetector' {} a -> s {stat = a} :: PutAnomalyDetector)++instance Core.AWSRequest PutAnomalyDetector where+ type+ AWSResponse PutAnomalyDetector =+ PutAnomalyDetectorResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "PutAnomalyDetectorResult"+ ( \s h x ->+ PutAnomalyDetectorResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable PutAnomalyDetector where+ hashWithSalt _salt PutAnomalyDetector' {..} =+ _salt+ `Prelude.hashWithSalt` configuration+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` metricMathAnomalyDetector+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` singleMetricAnomalyDetector+ `Prelude.hashWithSalt` stat++instance Prelude.NFData PutAnomalyDetector where+ rnf PutAnomalyDetector' {..} =+ Prelude.rnf configuration+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf metricMathAnomalyDetector+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf singleMetricAnomalyDetector+ `Prelude.seq` Prelude.rnf stat++instance Data.ToHeaders PutAnomalyDetector where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutAnomalyDetector where+ toPath = Prelude.const "/"++instance Data.ToQuery PutAnomalyDetector where+ toQuery PutAnomalyDetector' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutAnomalyDetector" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Configuration" Data.=: configuration,+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "MetricMathAnomalyDetector"+ Data.=: metricMathAnomalyDetector,+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace,+ "SingleMetricAnomalyDetector"+ Data.=: singleMetricAnomalyDetector,+ "Stat" Data.=: stat+ ]++-- | /See:/ 'newPutAnomalyDetectorResponse' smart constructor.+data PutAnomalyDetectorResponse = PutAnomalyDetectorResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutAnomalyDetectorResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'putAnomalyDetectorResponse_httpStatus' - The response's http status code.+newPutAnomalyDetectorResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ PutAnomalyDetectorResponse+newPutAnomalyDetectorResponse pHttpStatus_ =+ PutAnomalyDetectorResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+putAnomalyDetectorResponse_httpStatus :: Lens.Lens' PutAnomalyDetectorResponse Prelude.Int+putAnomalyDetectorResponse_httpStatus = Lens.lens (\PutAnomalyDetectorResponse' {httpStatus} -> httpStatus) (\s@PutAnomalyDetectorResponse' {} a -> s {httpStatus = a} :: PutAnomalyDetectorResponse)++instance Prelude.NFData PutAnomalyDetectorResponse where+ rnf PutAnomalyDetectorResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/PutCompositeAlarm.hs view
@@ -0,0 +1,588 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutCompositeAlarm+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates or updates a /composite alarm/. When you create a composite+-- alarm, you specify a rule expression for the alarm that takes into+-- account the alarm states of other alarms that you have created. The+-- composite alarm goes into ALARM state only if all conditions of the rule+-- are met.+--+-- The alarms specified in a composite alarm\'s rule expression can include+-- metric alarms and other composite alarms. The rule expression of a+-- composite alarm can include as many as 100 underlying alarms. Any single+-- alarm can be included in the rule expressions of as many as 150+-- composite alarms.+--+-- Using composite alarms can reduce alarm noise. You can create multiple+-- metric alarms, and also create a composite alarm and set up alerts only+-- for the composite alarm. For example, you could create a composite alarm+-- that goes into ALARM state only when more than one of the underlying+-- metric alarms are in ALARM state.+--+-- Currently, the only alarm actions that can be taken by composite alarms+-- are notifying SNS topics.+--+-- It is possible to create a loop or cycle of composite alarms, where+-- composite alarm A depends on composite alarm B, and composite alarm B+-- also depends on composite alarm A. In this scenario, you can\'t delete+-- any composite alarm that is part of the cycle because there is always+-- still a composite alarm that depends on that alarm that you want to+-- delete.+--+-- To get out of such a situation, you must break the cycle by changing the+-- rule of one of the composite alarms in the cycle to remove a dependency+-- that creates the cycle. The simplest change to make to break a cycle is+-- to change the @AlarmRule@ of one of the alarms to @false@.+--+-- Additionally, the evaluation of composite alarms stops if CloudWatch+-- detects a cycle in the evaluation path.+--+-- When this operation creates an alarm, the alarm state is immediately set+-- to @INSUFFICIENT_DATA@. The alarm is then evaluated and its state is set+-- appropriately. Any actions associated with the new state are then+-- executed. For a composite alarm, this initial time after creation is the+-- only time that the alarm can be in @INSUFFICIENT_DATA@ state.+--+-- When you update an existing alarm, its state is left unchanged, but the+-- update completely overwrites the previous configuration of the alarm.+--+-- To use this operation, you must be signed on with the+-- @cloudwatch:PutCompositeAlarm@ permission that is scoped to @*@. You+-- can\'t create a composite alarms if your @cloudwatch:PutCompositeAlarm@+-- permission has a narrower scope.+--+-- If you are an IAM user, you must have @iam:CreateServiceLinkedRole@ to+-- create a composite alarm that has Systems Manager OpsItem actions.+module Amazonka.CloudWatch.PutCompositeAlarm+ ( -- * Creating a Request+ PutCompositeAlarm (..),+ newPutCompositeAlarm,++ -- * Request Lenses+ putCompositeAlarm_actionsEnabled,+ putCompositeAlarm_actionsSuppressor,+ putCompositeAlarm_actionsSuppressorExtensionPeriod,+ putCompositeAlarm_actionsSuppressorWaitPeriod,+ putCompositeAlarm_alarmActions,+ putCompositeAlarm_alarmDescription,+ putCompositeAlarm_insufficientDataActions,+ putCompositeAlarm_oKActions,+ putCompositeAlarm_tags,+ putCompositeAlarm_alarmName,+ putCompositeAlarm_alarmRule,++ -- * Destructuring the Response+ PutCompositeAlarmResponse (..),+ newPutCompositeAlarmResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutCompositeAlarm' smart constructor.+data PutCompositeAlarm = PutCompositeAlarm'+ { -- | Indicates whether actions should be executed during any changes to the+ -- alarm state of the composite alarm. The default is @TRUE@.+ actionsEnabled :: Prelude.Maybe Prelude.Bool,+ -- | Actions will be suppressed if the suppressor alarm is in the @ALARM@+ -- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+ -- Name (ARN) from an existing alarm.+ actionsSuppressor :: Prelude.Maybe Prelude.Text,+ -- | The maximum time in seconds that the composite alarm waits after+ -- suppressor alarm goes out of the @ALARM@ state. After this time, the+ -- composite alarm performs its actions.+ --+ -- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+ -- specified.+ actionsSuppressorExtensionPeriod :: Prelude.Maybe Prelude.Int,+ -- | The maximum time in seconds that the composite alarm waits for the+ -- suppressor alarm to go into the @ALARM@ state. After this time, the+ -- composite alarm performs its actions.+ --+ -- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+ actionsSuppressorWaitPeriod :: Prelude.Maybe Prelude.Int,+ -- | The actions to execute when this alarm transitions to the @ALARM@ state+ -- from any other state. Each action is specified as an Amazon Resource+ -- Name (ARN).+ --+ -- Valid Values:+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+ -- @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @+ alarmActions :: Prelude.Maybe [Prelude.Text],+ -- | The description for the composite alarm.+ alarmDescription :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to the+ -- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+ -- as an Amazon Resource Name (ARN).+ --+ -- Valid Values:+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+ insufficientDataActions :: Prelude.Maybe [Prelude.Text],+ -- | The actions to execute when this alarm transitions to an @OK@ state from+ -- any other state. Each action is specified as an Amazon Resource Name+ -- (ARN).+ --+ -- Valid Values:+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+ oKActions :: Prelude.Maybe [Prelude.Text],+ -- | A list of key-value pairs to associate with the composite alarm. You can+ -- associate as many as 50 tags with an alarm.+ --+ -- Tags can help you organize and categorize your resources. You can also+ -- use them to scope user permissions, by granting a user permission to+ -- access or change only resources with certain tag values.+ tags :: Prelude.Maybe [Tag],+ -- | The name for the composite alarm. This name must be unique within the+ -- Region.+ alarmName :: Prelude.Text,+ -- | An expression that specifies which other alarms are to be evaluated to+ -- determine this composite alarm\'s state. For each alarm that you+ -- reference, you designate a function that specifies whether that alarm+ -- needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You+ -- can use operators (AND, OR and NOT) to combine multiple functions in a+ -- single expression. You can use parenthesis to logically group the+ -- functions in your expression.+ --+ -- You can use either alarm names or ARNs to reference the other alarms+ -- that are to be evaluated.+ --+ -- Functions can include the following:+ --+ -- - @ALARM(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the+ -- named alarm is in ALARM state.+ --+ -- - @OK(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the named+ -- alarm is in OK state.+ --+ -- - @INSUFFICIENT_DATA(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE+ -- if the named alarm is in INSUFFICIENT_DATA state.+ --+ -- - @TRUE@ always evaluates to TRUE.+ --+ -- - @FALSE@ always evaluates to FALSE.+ --+ -- TRUE and FALSE are useful for testing a complex @AlarmRule@ structure,+ -- and for testing your alarm actions.+ --+ -- Alarm names specified in @AlarmRule@ can be surrounded with+ -- double-quotes (\"), but do not have to be.+ --+ -- The following are some examples of @AlarmRule@:+ --+ -- - @ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)@+ -- specifies that the composite alarm goes into ALARM state only if+ -- both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in+ -- ALARM state.+ --+ -- - @ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)@+ -- specifies that the alarm goes to ALARM state if+ -- CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is+ -- not in ALARM state. This example reduces alarm noise during a known+ -- deployment window.+ --+ -- - @(ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)@+ -- goes into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh+ -- is in ALARM state, and if NetworkOutTooHigh is in OK state. This+ -- provides another example of using a composite alarm to prevent+ -- noise. This rule ensures that you are not notified with an alarm+ -- action on high CPU or disk usage if a known network problem is also+ -- occurring.+ --+ -- The @AlarmRule@ can specify as many as 100 \"children\" alarms. The+ -- @AlarmRule@ expression can have as many as 500 elements. Elements are+ -- child alarms, TRUE or FALSE statements, and parentheses.+ alarmRule :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutCompositeAlarm' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'actionsEnabled', 'putCompositeAlarm_actionsEnabled' - Indicates whether actions should be executed during any changes to the+-- alarm state of the composite alarm. The default is @TRUE@.+--+-- 'actionsSuppressor', 'putCompositeAlarm_actionsSuppressor' - Actions will be suppressed if the suppressor alarm is in the @ALARM@+-- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+-- Name (ARN) from an existing alarm.+--+-- 'actionsSuppressorExtensionPeriod', 'putCompositeAlarm_actionsSuppressorExtensionPeriod' - The maximum time in seconds that the composite alarm waits after+-- suppressor alarm goes out of the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+-- specified.+--+-- 'actionsSuppressorWaitPeriod', 'putCompositeAlarm_actionsSuppressorWaitPeriod' - The maximum time in seconds that the composite alarm waits for the+-- suppressor alarm to go into the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+--+-- 'alarmActions', 'putCompositeAlarm_alarmActions' - The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @+--+-- 'alarmDescription', 'putCompositeAlarm_alarmDescription' - The description for the composite alarm.+--+-- 'insufficientDataActions', 'putCompositeAlarm_insufficientDataActions' - The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+--+-- 'oKActions', 'putCompositeAlarm_oKActions' - The actions to execute when this alarm transitions to an @OK@ state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+--+-- 'tags', 'putCompositeAlarm_tags' - A list of key-value pairs to associate with the composite alarm. You can+-- associate as many as 50 tags with an alarm.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions, by granting a user permission to+-- access or change only resources with certain tag values.+--+-- 'alarmName', 'putCompositeAlarm_alarmName' - The name for the composite alarm. This name must be unique within the+-- Region.+--+-- 'alarmRule', 'putCompositeAlarm_alarmRule' - An expression that specifies which other alarms are to be evaluated to+-- determine this composite alarm\'s state. For each alarm that you+-- reference, you designate a function that specifies whether that alarm+-- needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You+-- can use operators (AND, OR and NOT) to combine multiple functions in a+-- single expression. You can use parenthesis to logically group the+-- functions in your expression.+--+-- You can use either alarm names or ARNs to reference the other alarms+-- that are to be evaluated.+--+-- Functions can include the following:+--+-- - @ALARM(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the+-- named alarm is in ALARM state.+--+-- - @OK(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the named+-- alarm is in OK state.+--+-- - @INSUFFICIENT_DATA(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE+-- if the named alarm is in INSUFFICIENT_DATA state.+--+-- - @TRUE@ always evaluates to TRUE.+--+-- - @FALSE@ always evaluates to FALSE.+--+-- TRUE and FALSE are useful for testing a complex @AlarmRule@ structure,+-- and for testing your alarm actions.+--+-- Alarm names specified in @AlarmRule@ can be surrounded with+-- double-quotes (\"), but do not have to be.+--+-- The following are some examples of @AlarmRule@:+--+-- - @ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)@+-- specifies that the composite alarm goes into ALARM state only if+-- both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in+-- ALARM state.+--+-- - @ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)@+-- specifies that the alarm goes to ALARM state if+-- CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is+-- not in ALARM state. This example reduces alarm noise during a known+-- deployment window.+--+-- - @(ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)@+-- goes into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh+-- is in ALARM state, and if NetworkOutTooHigh is in OK state. This+-- provides another example of using a composite alarm to prevent+-- noise. This rule ensures that you are not notified with an alarm+-- action on high CPU or disk usage if a known network problem is also+-- occurring.+--+-- The @AlarmRule@ can specify as many as 100 \"children\" alarms. The+-- @AlarmRule@ expression can have as many as 500 elements. Elements are+-- child alarms, TRUE or FALSE statements, and parentheses.+newPutCompositeAlarm ::+ -- | 'alarmName'+ Prelude.Text ->+ -- | 'alarmRule'+ Prelude.Text ->+ PutCompositeAlarm+newPutCompositeAlarm pAlarmName_ pAlarmRule_ =+ PutCompositeAlarm'+ { actionsEnabled =+ Prelude.Nothing,+ actionsSuppressor = Prelude.Nothing,+ actionsSuppressorExtensionPeriod = Prelude.Nothing,+ actionsSuppressorWaitPeriod = Prelude.Nothing,+ alarmActions = Prelude.Nothing,+ alarmDescription = Prelude.Nothing,+ insufficientDataActions = Prelude.Nothing,+ oKActions = Prelude.Nothing,+ tags = Prelude.Nothing,+ alarmName = pAlarmName_,+ alarmRule = pAlarmRule_+ }++-- | Indicates whether actions should be executed during any changes to the+-- alarm state of the composite alarm. The default is @TRUE@.+putCompositeAlarm_actionsEnabled :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Bool)+putCompositeAlarm_actionsEnabled = Lens.lens (\PutCompositeAlarm' {actionsEnabled} -> actionsEnabled) (\s@PutCompositeAlarm' {} a -> s {actionsEnabled = a} :: PutCompositeAlarm)++-- | Actions will be suppressed if the suppressor alarm is in the @ALARM@+-- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+-- Name (ARN) from an existing alarm.+putCompositeAlarm_actionsSuppressor :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Text)+putCompositeAlarm_actionsSuppressor = Lens.lens (\PutCompositeAlarm' {actionsSuppressor} -> actionsSuppressor) (\s@PutCompositeAlarm' {} a -> s {actionsSuppressor = a} :: PutCompositeAlarm)++-- | The maximum time in seconds that the composite alarm waits after+-- suppressor alarm goes out of the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+-- specified.+putCompositeAlarm_actionsSuppressorExtensionPeriod :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Int)+putCompositeAlarm_actionsSuppressorExtensionPeriod = Lens.lens (\PutCompositeAlarm' {actionsSuppressorExtensionPeriod} -> actionsSuppressorExtensionPeriod) (\s@PutCompositeAlarm' {} a -> s {actionsSuppressorExtensionPeriod = a} :: PutCompositeAlarm)++-- | The maximum time in seconds that the composite alarm waits for the+-- suppressor alarm to go into the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+putCompositeAlarm_actionsSuppressorWaitPeriod :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Int)+putCompositeAlarm_actionsSuppressorWaitPeriod = Lens.lens (\PutCompositeAlarm' {actionsSuppressorWaitPeriod} -> actionsSuppressorWaitPeriod) (\s@PutCompositeAlarm' {} a -> s {actionsSuppressorWaitPeriod = a} :: PutCompositeAlarm)++-- | The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @+putCompositeAlarm_alarmActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])+putCompositeAlarm_alarmActions = Lens.lens (\PutCompositeAlarm' {alarmActions} -> alarmActions) (\s@PutCompositeAlarm' {} a -> s {alarmActions = a} :: PutCompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The description for the composite alarm.+putCompositeAlarm_alarmDescription :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe Prelude.Text)+putCompositeAlarm_alarmDescription = Lens.lens (\PutCompositeAlarm' {alarmDescription} -> alarmDescription) (\s@PutCompositeAlarm' {} a -> s {alarmDescription = a} :: PutCompositeAlarm)++-- | The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+putCompositeAlarm_insufficientDataActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])+putCompositeAlarm_insufficientDataActions = Lens.lens (\PutCompositeAlarm' {insufficientDataActions} -> insufficientDataActions) (\s@PutCompositeAlarm' {} a -> s {insufficientDataActions = a} :: PutCompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The actions to execute when this alarm transitions to an @OK@ state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+--+-- Valid Values:+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @+putCompositeAlarm_oKActions :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Prelude.Text])+putCompositeAlarm_oKActions = Lens.lens (\PutCompositeAlarm' {oKActions} -> oKActions) (\s@PutCompositeAlarm' {} a -> s {oKActions = a} :: PutCompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | A list of key-value pairs to associate with the composite alarm. You can+-- associate as many as 50 tags with an alarm.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions, by granting a user permission to+-- access or change only resources with certain tag values.+putCompositeAlarm_tags :: Lens.Lens' PutCompositeAlarm (Prelude.Maybe [Tag])+putCompositeAlarm_tags = Lens.lens (\PutCompositeAlarm' {tags} -> tags) (\s@PutCompositeAlarm' {} a -> s {tags = a} :: PutCompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The name for the composite alarm. This name must be unique within the+-- Region.+putCompositeAlarm_alarmName :: Lens.Lens' PutCompositeAlarm Prelude.Text+putCompositeAlarm_alarmName = Lens.lens (\PutCompositeAlarm' {alarmName} -> alarmName) (\s@PutCompositeAlarm' {} a -> s {alarmName = a} :: PutCompositeAlarm)++-- | An expression that specifies which other alarms are to be evaluated to+-- determine this composite alarm\'s state. For each alarm that you+-- reference, you designate a function that specifies whether that alarm+-- needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You+-- can use operators (AND, OR and NOT) to combine multiple functions in a+-- single expression. You can use parenthesis to logically group the+-- functions in your expression.+--+-- You can use either alarm names or ARNs to reference the other alarms+-- that are to be evaluated.+--+-- Functions can include the following:+--+-- - @ALARM(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the+-- named alarm is in ALARM state.+--+-- - @OK(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE if the named+-- alarm is in OK state.+--+-- - @INSUFFICIENT_DATA(\"@/@alarm-name@/@ or @/@alarm-ARN@/@\")@ is TRUE+-- if the named alarm is in INSUFFICIENT_DATA state.+--+-- - @TRUE@ always evaluates to TRUE.+--+-- - @FALSE@ always evaluates to FALSE.+--+-- TRUE and FALSE are useful for testing a complex @AlarmRule@ structure,+-- and for testing your alarm actions.+--+-- Alarm names specified in @AlarmRule@ can be surrounded with+-- double-quotes (\"), but do not have to be.+--+-- The following are some examples of @AlarmRule@:+--+-- - @ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)@+-- specifies that the composite alarm goes into ALARM state only if+-- both CPUUtilizationTooHigh and DiskReadOpsTooHigh alarms are in+-- ALARM state.+--+-- - @ALARM(CPUUtilizationTooHigh) AND NOT ALARM(DeploymentInProgress)@+-- specifies that the alarm goes to ALARM state if+-- CPUUtilizationTooHigh is in ALARM state and DeploymentInProgress is+-- not in ALARM state. This example reduces alarm noise during a known+-- deployment window.+--+-- - @(ALARM(CPUUtilizationTooHigh) OR ALARM(DiskReadOpsTooHigh)) AND OK(NetworkOutTooHigh)@+-- goes into ALARM state if CPUUtilizationTooHigh OR DiskReadOpsTooHigh+-- is in ALARM state, and if NetworkOutTooHigh is in OK state. This+-- provides another example of using a composite alarm to prevent+-- noise. This rule ensures that you are not notified with an alarm+-- action on high CPU or disk usage if a known network problem is also+-- occurring.+--+-- The @AlarmRule@ can specify as many as 100 \"children\" alarms. The+-- @AlarmRule@ expression can have as many as 500 elements. Elements are+-- child alarms, TRUE or FALSE statements, and parentheses.+putCompositeAlarm_alarmRule :: Lens.Lens' PutCompositeAlarm Prelude.Text+putCompositeAlarm_alarmRule = Lens.lens (\PutCompositeAlarm' {alarmRule} -> alarmRule) (\s@PutCompositeAlarm' {} a -> s {alarmRule = a} :: PutCompositeAlarm)++instance Core.AWSRequest PutCompositeAlarm where+ type+ AWSResponse PutCompositeAlarm =+ PutCompositeAlarmResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull PutCompositeAlarmResponse'++instance Prelude.Hashable PutCompositeAlarm where+ hashWithSalt _salt PutCompositeAlarm' {..} =+ _salt+ `Prelude.hashWithSalt` actionsEnabled+ `Prelude.hashWithSalt` actionsSuppressor+ `Prelude.hashWithSalt` actionsSuppressorExtensionPeriod+ `Prelude.hashWithSalt` actionsSuppressorWaitPeriod+ `Prelude.hashWithSalt` alarmActions+ `Prelude.hashWithSalt` alarmDescription+ `Prelude.hashWithSalt` insufficientDataActions+ `Prelude.hashWithSalt` oKActions+ `Prelude.hashWithSalt` tags+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` alarmRule++instance Prelude.NFData PutCompositeAlarm where+ rnf PutCompositeAlarm' {..} =+ Prelude.rnf actionsEnabled+ `Prelude.seq` Prelude.rnf actionsSuppressor+ `Prelude.seq` Prelude.rnf actionsSuppressorExtensionPeriod+ `Prelude.seq` Prelude.rnf actionsSuppressorWaitPeriod+ `Prelude.seq` Prelude.rnf alarmActions+ `Prelude.seq` Prelude.rnf alarmDescription+ `Prelude.seq` Prelude.rnf insufficientDataActions+ `Prelude.seq` Prelude.rnf oKActions+ `Prelude.seq` Prelude.rnf tags+ `Prelude.seq` Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf alarmRule++instance Data.ToHeaders PutCompositeAlarm where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutCompositeAlarm where+ toPath = Prelude.const "/"++instance Data.ToQuery PutCompositeAlarm where+ toQuery PutCompositeAlarm' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutCompositeAlarm" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ActionsEnabled" Data.=: actionsEnabled,+ "ActionsSuppressor" Data.=: actionsSuppressor,+ "ActionsSuppressorExtensionPeriod"+ Data.=: actionsSuppressorExtensionPeriod,+ "ActionsSuppressorWaitPeriod"+ Data.=: actionsSuppressorWaitPeriod,+ "AlarmActions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> alarmActions),+ "AlarmDescription" Data.=: alarmDescription,+ "InsufficientDataActions"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> insufficientDataActions+ ),+ "OKActions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> oKActions),+ "Tags"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> tags),+ "AlarmName" Data.=: alarmName,+ "AlarmRule" Data.=: alarmRule+ ]++-- | /See:/ 'newPutCompositeAlarmResponse' smart constructor.+data PutCompositeAlarmResponse = PutCompositeAlarmResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutCompositeAlarmResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newPutCompositeAlarmResponse ::+ PutCompositeAlarmResponse+newPutCompositeAlarmResponse =+ PutCompositeAlarmResponse'++instance Prelude.NFData PutCompositeAlarmResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/PutDashboard.hs view
@@ -0,0 +1,248 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutDashboard+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a dashboard if it does not already exist, or updates an existing+-- dashboard. If you update a dashboard, the entire contents are replaced+-- with what you specify here.+--+-- All dashboards in your account are global, not region-specific.+--+-- A simple way to create a dashboard using @PutDashboard@ is to copy an+-- existing dashboard. To copy an existing dashboard using the console, you+-- can load the dashboard and then use the View\/edit source command in the+-- Actions menu to display the JSON block for that dashboard. Another way+-- to copy a dashboard is to use @GetDashboard@, and then use the data+-- returned within @DashboardBody@ as the template for the new dashboard+-- when you call @PutDashboard@.+--+-- When you create a dashboard with @PutDashboard@, a good practice is to+-- add a text widget at the top of the dashboard with a message that the+-- dashboard was created by script and should not be changed in the+-- console. This message could also point console users to the location of+-- the @DashboardBody@ script or the CloudFormation template used to create+-- the dashboard.+module Amazonka.CloudWatch.PutDashboard+ ( -- * Creating a Request+ PutDashboard (..),+ newPutDashboard,++ -- * Request Lenses+ putDashboard_dashboardName,+ putDashboard_dashboardBody,++ -- * Destructuring the Response+ PutDashboardResponse (..),+ newPutDashboardResponse,++ -- * Response Lenses+ putDashboardResponse_dashboardValidationMessages,+ putDashboardResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutDashboard' smart constructor.+data PutDashboard = PutDashboard'+ { -- | The name of the dashboard. If a dashboard with this name already exists,+ -- this call modifies that dashboard, replacing its current contents.+ -- Otherwise, a new dashboard is created. The maximum length is 255, and+ -- valid characters are A-Z, a-z, 0-9, \"-\", and \"_\". This parameter is+ -- required.+ dashboardName :: Prelude.Text,+ -- | The detailed information about the dashboard in JSON format, including+ -- the widgets to include and their location on the dashboard. This+ -- parameter is required.+ --+ -- For more information about the syntax, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+ dashboardBody :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutDashboard' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardName', 'putDashboard_dashboardName' - The name of the dashboard. If a dashboard with this name already exists,+-- this call modifies that dashboard, replacing its current contents.+-- Otherwise, a new dashboard is created. The maximum length is 255, and+-- valid characters are A-Z, a-z, 0-9, \"-\", and \"_\". This parameter is+-- required.+--+-- 'dashboardBody', 'putDashboard_dashboardBody' - The detailed information about the dashboard in JSON format, including+-- the widgets to include and their location on the dashboard. This+-- parameter is required.+--+-- For more information about the syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+newPutDashboard ::+ -- | 'dashboardName'+ Prelude.Text ->+ -- | 'dashboardBody'+ Prelude.Text ->+ PutDashboard+newPutDashboard pDashboardName_ pDashboardBody_ =+ PutDashboard'+ { dashboardName = pDashboardName_,+ dashboardBody = pDashboardBody_+ }++-- | The name of the dashboard. If a dashboard with this name already exists,+-- this call modifies that dashboard, replacing its current contents.+-- Otherwise, a new dashboard is created. The maximum length is 255, and+-- valid characters are A-Z, a-z, 0-9, \"-\", and \"_\". This parameter is+-- required.+putDashboard_dashboardName :: Lens.Lens' PutDashboard Prelude.Text+putDashboard_dashboardName = Lens.lens (\PutDashboard' {dashboardName} -> dashboardName) (\s@PutDashboard' {} a -> s {dashboardName = a} :: PutDashboard)++-- | The detailed information about the dashboard in JSON format, including+-- the widgets to include and their location on the dashboard. This+-- parameter is required.+--+-- For more information about the syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html Dashboard Body Structure and Syntax>.+putDashboard_dashboardBody :: Lens.Lens' PutDashboard Prelude.Text+putDashboard_dashboardBody = Lens.lens (\PutDashboard' {dashboardBody} -> dashboardBody) (\s@PutDashboard' {} a -> s {dashboardBody = a} :: PutDashboard)++instance Core.AWSRequest PutDashboard where+ type AWSResponse PutDashboard = PutDashboardResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "PutDashboardResult"+ ( \s h x ->+ PutDashboardResponse'+ Prelude.<$> ( x+ Data..@? "DashboardValidationMessages"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable PutDashboard where+ hashWithSalt _salt PutDashboard' {..} =+ _salt+ `Prelude.hashWithSalt` dashboardName+ `Prelude.hashWithSalt` dashboardBody++instance Prelude.NFData PutDashboard where+ rnf PutDashboard' {..} =+ Prelude.rnf dashboardName+ `Prelude.seq` Prelude.rnf dashboardBody++instance Data.ToHeaders PutDashboard where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutDashboard where+ toPath = Prelude.const "/"++instance Data.ToQuery PutDashboard where+ toQuery PutDashboard' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutDashboard" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "DashboardName" Data.=: dashboardName,+ "DashboardBody" Data.=: dashboardBody+ ]++-- | /See:/ 'newPutDashboardResponse' smart constructor.+data PutDashboardResponse = PutDashboardResponse'+ { -- | If the input for @PutDashboard@ was correct and the dashboard was+ -- successfully created or modified, this result is empty.+ --+ -- If this result includes only warning messages, then the input was valid+ -- enough for the dashboard to be created or modified, but some elements of+ -- the dashboard might not render.+ --+ -- If this result includes error messages, the input was not valid and the+ -- operation failed.+ dashboardValidationMessages :: Prelude.Maybe [DashboardValidationMessage],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutDashboardResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardValidationMessages', 'putDashboardResponse_dashboardValidationMessages' - If the input for @PutDashboard@ was correct and the dashboard was+-- successfully created or modified, this result is empty.+--+-- If this result includes only warning messages, then the input was valid+-- enough for the dashboard to be created or modified, but some elements of+-- the dashboard might not render.+--+-- If this result includes error messages, the input was not valid and the+-- operation failed.+--+-- 'httpStatus', 'putDashboardResponse_httpStatus' - The response's http status code.+newPutDashboardResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ PutDashboardResponse+newPutDashboardResponse pHttpStatus_ =+ PutDashboardResponse'+ { dashboardValidationMessages =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | If the input for @PutDashboard@ was correct and the dashboard was+-- successfully created or modified, this result is empty.+--+-- If this result includes only warning messages, then the input was valid+-- enough for the dashboard to be created or modified, but some elements of+-- the dashboard might not render.+--+-- If this result includes error messages, the input was not valid and the+-- operation failed.+putDashboardResponse_dashboardValidationMessages :: Lens.Lens' PutDashboardResponse (Prelude.Maybe [DashboardValidationMessage])+putDashboardResponse_dashboardValidationMessages = Lens.lens (\PutDashboardResponse' {dashboardValidationMessages} -> dashboardValidationMessages) (\s@PutDashboardResponse' {} a -> s {dashboardValidationMessages = a} :: PutDashboardResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+putDashboardResponse_httpStatus :: Lens.Lens' PutDashboardResponse Prelude.Int+putDashboardResponse_httpStatus = Lens.lens (\PutDashboardResponse' {httpStatus} -> httpStatus) (\s@PutDashboardResponse' {} a -> s {httpStatus = a} :: PutDashboardResponse)++instance Prelude.NFData PutDashboardResponse where+ rnf PutDashboardResponse' {..} =+ Prelude.rnf dashboardValidationMessages+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/PutInsightRule.hs view
@@ -0,0 +1,244 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutInsightRule+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a Contributor Insights rule. Rules evaluate log events in a+-- CloudWatch Logs log group, enabling you to find contributor data for the+-- log events in that log group. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html Using Contributor Insights to Analyze High-Cardinality Data>.+--+-- If you create a rule, delete it, and then re-create it with the same+-- name, historical data from the first time the rule was created might not+-- be available.+module Amazonka.CloudWatch.PutInsightRule+ ( -- * Creating a Request+ PutInsightRule (..),+ newPutInsightRule,++ -- * Request Lenses+ putInsightRule_ruleState,+ putInsightRule_tags,+ putInsightRule_ruleName,+ putInsightRule_ruleDefinition,++ -- * Destructuring the Response+ PutInsightRuleResponse (..),+ newPutInsightRuleResponse,++ -- * Response Lenses+ putInsightRuleResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutInsightRule' smart constructor.+data PutInsightRule = PutInsightRule'+ { -- | The state of the rule. Valid values are ENABLED and DISABLED.+ ruleState :: Prelude.Maybe Prelude.Text,+ -- | A list of key-value pairs to associate with the Contributor Insights+ -- rule. You can associate as many as 50 tags with a rule.+ --+ -- Tags can help you organize and categorize your resources. You can also+ -- use them to scope user permissions, by granting a user permission to+ -- access or change only the resources that have certain tag values.+ --+ -- To be able to associate tags with a rule, you must have the+ -- @cloudwatch:TagResource@ permission in addition to the+ -- @cloudwatch:PutInsightRule@ permission.+ --+ -- If you are using this operation to update an existing Contributor+ -- Insights rule, any tags you specify in this parameter are ignored. To+ -- change the tags of an existing rule, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>.+ tags :: Prelude.Maybe [Tag],+ -- | A unique name for the rule.+ ruleName :: Prelude.Text,+ -- | The definition of the rule, as a JSON object. For details on the valid+ -- syntax, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+ ruleDefinition :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutInsightRule' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'ruleState', 'putInsightRule_ruleState' - The state of the rule. Valid values are ENABLED and DISABLED.+--+-- 'tags', 'putInsightRule_tags' - A list of key-value pairs to associate with the Contributor Insights+-- rule. You can associate as many as 50 tags with a rule.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions, by granting a user permission to+-- access or change only the resources that have certain tag values.+--+-- To be able to associate tags with a rule, you must have the+-- @cloudwatch:TagResource@ permission in addition to the+-- @cloudwatch:PutInsightRule@ permission.+--+-- If you are using this operation to update an existing Contributor+-- Insights rule, any tags you specify in this parameter are ignored. To+-- change the tags of an existing rule, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>.+--+-- 'ruleName', 'putInsightRule_ruleName' - A unique name for the rule.+--+-- 'ruleDefinition', 'putInsightRule_ruleDefinition' - The definition of the rule, as a JSON object. For details on the valid+-- syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+newPutInsightRule ::+ -- | 'ruleName'+ Prelude.Text ->+ -- | 'ruleDefinition'+ Prelude.Text ->+ PutInsightRule+newPutInsightRule pRuleName_ pRuleDefinition_ =+ PutInsightRule'+ { ruleState = Prelude.Nothing,+ tags = Prelude.Nothing,+ ruleName = pRuleName_,+ ruleDefinition = pRuleDefinition_+ }++-- | The state of the rule. Valid values are ENABLED and DISABLED.+putInsightRule_ruleState :: Lens.Lens' PutInsightRule (Prelude.Maybe Prelude.Text)+putInsightRule_ruleState = Lens.lens (\PutInsightRule' {ruleState} -> ruleState) (\s@PutInsightRule' {} a -> s {ruleState = a} :: PutInsightRule)++-- | A list of key-value pairs to associate with the Contributor Insights+-- rule. You can associate as many as 50 tags with a rule.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions, by granting a user permission to+-- access or change only the resources that have certain tag values.+--+-- To be able to associate tags with a rule, you must have the+-- @cloudwatch:TagResource@ permission in addition to the+-- @cloudwatch:PutInsightRule@ permission.+--+-- If you are using this operation to update an existing Contributor+-- Insights rule, any tags you specify in this parameter are ignored. To+-- change the tags of an existing rule, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>.+putInsightRule_tags :: Lens.Lens' PutInsightRule (Prelude.Maybe [Tag])+putInsightRule_tags = Lens.lens (\PutInsightRule' {tags} -> tags) (\s@PutInsightRule' {} a -> s {tags = a} :: PutInsightRule) Prelude.. Lens.mapping Lens.coerced++-- | A unique name for the rule.+putInsightRule_ruleName :: Lens.Lens' PutInsightRule Prelude.Text+putInsightRule_ruleName = Lens.lens (\PutInsightRule' {ruleName} -> ruleName) (\s@PutInsightRule' {} a -> s {ruleName = a} :: PutInsightRule)++-- | The definition of the rule, as a JSON object. For details on the valid+-- syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+putInsightRule_ruleDefinition :: Lens.Lens' PutInsightRule Prelude.Text+putInsightRule_ruleDefinition = Lens.lens (\PutInsightRule' {ruleDefinition} -> ruleDefinition) (\s@PutInsightRule' {} a -> s {ruleDefinition = a} :: PutInsightRule)++instance Core.AWSRequest PutInsightRule where+ type+ AWSResponse PutInsightRule =+ PutInsightRuleResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "PutInsightRuleResult"+ ( \s h x ->+ PutInsightRuleResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable PutInsightRule where+ hashWithSalt _salt PutInsightRule' {..} =+ _salt+ `Prelude.hashWithSalt` ruleState+ `Prelude.hashWithSalt` tags+ `Prelude.hashWithSalt` ruleName+ `Prelude.hashWithSalt` ruleDefinition++instance Prelude.NFData PutInsightRule where+ rnf PutInsightRule' {..} =+ Prelude.rnf ruleState+ `Prelude.seq` Prelude.rnf tags+ `Prelude.seq` Prelude.rnf ruleName+ `Prelude.seq` Prelude.rnf ruleDefinition++instance Data.ToHeaders PutInsightRule where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutInsightRule where+ toPath = Prelude.const "/"++instance Data.ToQuery PutInsightRule where+ toQuery PutInsightRule' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutInsightRule" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "RuleState" Data.=: ruleState,+ "Tags"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> tags),+ "RuleName" Data.=: ruleName,+ "RuleDefinition" Data.=: ruleDefinition+ ]++-- | /See:/ 'newPutInsightRuleResponse' smart constructor.+data PutInsightRuleResponse = PutInsightRuleResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutInsightRuleResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'putInsightRuleResponse_httpStatus' - The response's http status code.+newPutInsightRuleResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ PutInsightRuleResponse+newPutInsightRuleResponse pHttpStatus_ =+ PutInsightRuleResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+putInsightRuleResponse_httpStatus :: Lens.Lens' PutInsightRuleResponse Prelude.Int+putInsightRuleResponse_httpStatus = Lens.lens (\PutInsightRuleResponse' {httpStatus} -> httpStatus) (\s@PutInsightRuleResponse' {} a -> s {httpStatus = a} :: PutInsightRuleResponse)++instance Prelude.NFData PutInsightRuleResponse where+ rnf PutInsightRuleResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/PutManagedInsightRules.hs view
@@ -0,0 +1,175 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutManagedInsightRules+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a managed Contributor Insights rule for a specified Amazon Web+-- Services resource. When you enable a managed rule, you create a+-- Contributor Insights rule that collects data from Amazon Web Services+-- services. You cannot edit these rules with @PutInsightRule@. The rules+-- can be enabled, disabled, and deleted using @EnableInsightRules@,+-- @DisableInsightRules@, and @DeleteInsightRules@. If a previously created+-- managed rule is currently disabled, a subsequent call to this API will+-- re-enable it. Use @ListManagedInsightRules@ to describe all available+-- rules.+module Amazonka.CloudWatch.PutManagedInsightRules+ ( -- * Creating a Request+ PutManagedInsightRules (..),+ newPutManagedInsightRules,++ -- * Request Lenses+ putManagedInsightRules_managedRules,++ -- * Destructuring the Response+ PutManagedInsightRulesResponse (..),+ newPutManagedInsightRulesResponse,++ -- * Response Lenses+ putManagedInsightRulesResponse_failures,+ putManagedInsightRulesResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutManagedInsightRules' smart constructor.+data PutManagedInsightRules = PutManagedInsightRules'+ { -- | A list of @ManagedRules@ to enable.+ managedRules :: [ManagedRule]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutManagedInsightRules' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'managedRules', 'putManagedInsightRules_managedRules' - A list of @ManagedRules@ to enable.+newPutManagedInsightRules ::+ PutManagedInsightRules+newPutManagedInsightRules =+ PutManagedInsightRules'+ { managedRules =+ Prelude.mempty+ }++-- | A list of @ManagedRules@ to enable.+putManagedInsightRules_managedRules :: Lens.Lens' PutManagedInsightRules [ManagedRule]+putManagedInsightRules_managedRules = Lens.lens (\PutManagedInsightRules' {managedRules} -> managedRules) (\s@PutManagedInsightRules' {} a -> s {managedRules = a} :: PutManagedInsightRules) Prelude.. Lens.coerced++instance Core.AWSRequest PutManagedInsightRules where+ type+ AWSResponse PutManagedInsightRules =+ PutManagedInsightRulesResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "PutManagedInsightRulesResult"+ ( \s h x ->+ PutManagedInsightRulesResponse'+ Prelude.<$> ( x+ Data..@? "Failures"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable PutManagedInsightRules where+ hashWithSalt _salt PutManagedInsightRules' {..} =+ _salt `Prelude.hashWithSalt` managedRules++instance Prelude.NFData PutManagedInsightRules where+ rnf PutManagedInsightRules' {..} =+ Prelude.rnf managedRules++instance Data.ToHeaders PutManagedInsightRules where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutManagedInsightRules where+ toPath = Prelude.const "/"++instance Data.ToQuery PutManagedInsightRules where+ toQuery PutManagedInsightRules' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutManagedInsightRules" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ManagedRules"+ Data.=: Data.toQueryList "member" managedRules+ ]++-- | /See:/ 'newPutManagedInsightRulesResponse' smart constructor.+data PutManagedInsightRulesResponse = PutManagedInsightRulesResponse'+ { -- | An array that lists the rules that could not be enabled.+ failures :: Prelude.Maybe [PartialFailure],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutManagedInsightRulesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failures', 'putManagedInsightRulesResponse_failures' - An array that lists the rules that could not be enabled.+--+-- 'httpStatus', 'putManagedInsightRulesResponse_httpStatus' - The response's http status code.+newPutManagedInsightRulesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ PutManagedInsightRulesResponse+newPutManagedInsightRulesResponse pHttpStatus_ =+ PutManagedInsightRulesResponse'+ { failures =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | An array that lists the rules that could not be enabled.+putManagedInsightRulesResponse_failures :: Lens.Lens' PutManagedInsightRulesResponse (Prelude.Maybe [PartialFailure])+putManagedInsightRulesResponse_failures = Lens.lens (\PutManagedInsightRulesResponse' {failures} -> failures) (\s@PutManagedInsightRulesResponse' {} a -> s {failures = a} :: PutManagedInsightRulesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+putManagedInsightRulesResponse_httpStatus :: Lens.Lens' PutManagedInsightRulesResponse Prelude.Int+putManagedInsightRulesResponse_httpStatus = Lens.lens (\PutManagedInsightRulesResponse' {httpStatus} -> httpStatus) (\s@PutManagedInsightRulesResponse' {} a -> s {httpStatus = a} :: PutManagedInsightRulesResponse)++instance+ Prelude.NFData+ PutManagedInsightRulesResponse+ where+ rnf PutManagedInsightRulesResponse' {..} =+ Prelude.rnf failures+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/PutMetricAlarm.hs view
@@ -0,0 +1,1014 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutMetricAlarm+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates or updates an alarm and associates it with the specified metric,+-- metric math expression, anomaly detection model, or Metrics Insights+-- query. For more information about using a Metrics Insights query for an+-- alarm, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html Create alarms on Metrics Insights queries>.+--+-- Alarms based on anomaly detection models cannot have Auto Scaling+-- actions.+--+-- When this operation creates an alarm, the alarm state is immediately set+-- to @INSUFFICIENT_DATA@. The alarm is then evaluated and its state is set+-- appropriately. Any actions associated with the new state are then+-- executed.+--+-- When you update an existing alarm, its state is left unchanged, but the+-- update completely overwrites the previous configuration of the alarm.+--+-- If you are an IAM user, you must have Amazon EC2 permissions for some+-- alarm operations:+--+-- - The @iam:CreateServiceLinkedRole@ for all alarms with EC2 actions+--+-- - The @iam:CreateServiceLinkedRole@ to create an alarm with Systems+-- Manager OpsItem actions.+--+-- The first time you create an alarm in the Amazon Web Services Management+-- Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates+-- the necessary service-linked role for you. The service-linked roles are+-- called @AWSServiceRoleForCloudWatchEvents@ and+-- @AWSServiceRoleForCloudWatchAlarms_ActionSSM@. For more information, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role Amazon Web Services service-linked role>.+--+-- __Cross-account alarms__+--+-- You can set an alarm on metrics in the current account, or in another+-- account. To create a cross-account alarm that watches a metric in a+-- different account, you must have completed the following pre-requisites:+--+-- - The account where the metrics are located (the /sharing account/)+-- must already have a sharing role named+-- __CloudWatch-CrossAccountSharingRole__. If it does not already have+-- this role, you must create it using the instructions in __Set up a+-- sharing account__ in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region Cross-account cross-Region CloudWatch console>.+-- The policy for that role must grant access to the ID of the account+-- where you are creating the alarm.+--+-- - The account where you are creating the alarm (the /monitoring+-- account/) must already have a service-linked role named+-- __AWSServiceRoleForCloudWatchCrossAccount__ to allow CloudWatch to+-- assume the sharing role in the sharing account. If it does not, you+-- must create it following the directions in __Set up a monitoring+-- account__ in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region Cross-account cross-Region CloudWatch console>.+module Amazonka.CloudWatch.PutMetricAlarm+ ( -- * Creating a Request+ PutMetricAlarm (..),+ newPutMetricAlarm,++ -- * Request Lenses+ putMetricAlarm_actionsEnabled,+ putMetricAlarm_alarmActions,+ putMetricAlarm_alarmDescription,+ putMetricAlarm_datapointsToAlarm,+ putMetricAlarm_dimensions,+ putMetricAlarm_evaluateLowSampleCountPercentile,+ putMetricAlarm_extendedStatistic,+ putMetricAlarm_insufficientDataActions,+ putMetricAlarm_metricName,+ putMetricAlarm_metrics,+ putMetricAlarm_namespace,+ putMetricAlarm_oKActions,+ putMetricAlarm_period,+ putMetricAlarm_statistic,+ putMetricAlarm_tags,+ putMetricAlarm_threshold,+ putMetricAlarm_thresholdMetricId,+ putMetricAlarm_treatMissingData,+ putMetricAlarm_unit,+ putMetricAlarm_alarmName,+ putMetricAlarm_evaluationPeriods,+ putMetricAlarm_comparisonOperator,++ -- * Destructuring the Response+ PutMetricAlarmResponse (..),+ newPutMetricAlarmResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutMetricAlarm' smart constructor.+data PutMetricAlarm = PutMetricAlarm'+ { -- | Indicates whether actions should be executed during any changes to the+ -- alarm state. The default is @TRUE@.+ actionsEnabled :: Prelude.Maybe Prelude.Bool,+ -- | The actions to execute when this alarm transitions to the @ALARM@ state+ -- from any other state. Each action is specified as an Amazon Resource+ -- Name (ARN).+ --+ -- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+ -- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+ -- @arn:aws:automate:@/@region@/@:ec2:recover@ |+ -- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+ -- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+ -- | @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @ |+ -- @arn:aws:ssm-incidents::@/@account-id@/@:response-plan:@/@response-plan-name@/@ @+ --+ -- Valid Values (for use with IAM roles):+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+ alarmActions :: Prelude.Maybe [Prelude.Text],+ -- | The description for the alarm.+ alarmDescription :: Prelude.Maybe Prelude.Text,+ -- | The number of data points that must be breaching to trigger the alarm.+ -- This is used only if you are setting an \"M out of N\" alarm. In that+ -- case, this value is the M. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation Evaluating an Alarm>+ -- in the /Amazon CloudWatch User Guide/.+ datapointsToAlarm :: Prelude.Maybe Prelude.Natural,+ -- | The dimensions for the metric specified in @MetricName@.+ dimensions :: Prelude.Maybe [Dimension],+ -- | Used only for alarms based on percentiles. If you specify @ignore@, the+ -- alarm state does not change during periods with too few data points to+ -- be statistically significant. If you specify @evaluate@ or omit this+ -- parameter, the alarm is always evaluated and possibly changes state no+ -- matter how many data points are available. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples Percentile-Based CloudWatch Alarms and Low Data Samples>.+ --+ -- Valid Values: @evaluate | ignore@+ evaluateLowSampleCountPercentile :: Prelude.Maybe Prelude.Text,+ -- | The percentile statistic for the metric specified in @MetricName@.+ -- Specify a value between p0.0 and p100. When you call @PutMetricAlarm@+ -- and specify a @MetricName@, you must specify either @Statistic@ or+ -- @ExtendedStatistic,@ but not both.+ extendedStatistic :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to the+ -- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+ -- as an Amazon Resource Name (ARN).+ --+ -- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+ -- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+ -- @arn:aws:automate:@/@region@/@:ec2:recover@ |+ -- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+ -- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+ --+ -- Valid Values (for use with IAM roles):+ -- @>arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+ insufficientDataActions :: Prelude.Maybe [Prelude.Text],+ -- | The name for the metric associated with the alarm. For each+ -- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+ -- @Metrics@ array.+ --+ -- If you are creating an alarm based on a math expression, you cannot+ -- specify this parameter, or any of the @Dimensions@, @Period@,+ -- @Namespace@, @Statistic@, or @ExtendedStatistic@ parameters. Instead,+ -- you specify all this information in the @Metrics@ array.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | An array of @MetricDataQuery@ structures that enable you to create an+ -- alarm based on the result of a metric math expression. For each+ -- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+ -- @Metrics@ array.+ --+ -- Each item in the @Metrics@ array either retrieves a metric or performs a+ -- math expression.+ --+ -- One item in the @Metrics@ array is the expression that the alarm+ -- watches. You designate this expression by setting @ReturnData@ to true+ -- for this object in the array. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html MetricDataQuery>.+ --+ -- If you use the @Metrics@ parameter, you cannot include the @MetricName@,+ -- @Dimensions@, @Period@, @Namespace@, @Statistic@, or @ExtendedStatistic@+ -- parameters of @PutMetricAlarm@ in the same operation. Instead, you+ -- retrieve the metrics you are using in your math expression as part of+ -- the @Metrics@ array.+ metrics :: Prelude.Maybe [MetricDataQuery],+ -- | The namespace for the metric associated specified in @MetricName@.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to an @OK@ state from+ -- any other state. Each action is specified as an Amazon Resource Name+ -- (ARN).+ --+ -- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+ -- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+ -- @arn:aws:automate:@/@region@/@:ec2:recover@ |+ -- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+ -- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+ -- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+ --+ -- Valid Values (for use with IAM roles):+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+ -- |+ -- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+ oKActions :: Prelude.Maybe [Prelude.Text],+ -- | The length, in seconds, used each time the metric specified in+ -- @MetricName@ is evaluated. Valid values are 10, 30, and any multiple of+ -- 60.+ --+ -- @Period@ is required for alarms based on static thresholds. If you are+ -- creating an alarm based on a metric math expression, you specify the+ -- period for each metric within the objects in the @Metrics@ array.+ --+ -- Be sure to specify 10 or 30 only for metrics that are stored by a+ -- @PutMetricData@ call with a @StorageResolution@ of 1. If you specify a+ -- period of 10 or 30 for a metric that does not have sub-minute+ -- resolution, the alarm still attempts to gather data at the period rate+ -- that you specify. In this case, it does not receive data for the+ -- attempts that do not correspond to a one-minute data resolution, and the+ -- alarm might often lapse into INSUFFICENT_DATA status. Specifying 10 or+ -- 30 also sets this alarm as a high-resolution alarm, which has a higher+ -- charge than other alarms. For more information about pricing, see+ -- <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing>.+ --+ -- An alarm\'s total current evaluation period can be no longer than one+ -- day, so @Period@ multiplied by @EvaluationPeriods@ cannot be more than+ -- 86,400 seconds.+ period :: Prelude.Maybe Prelude.Natural,+ -- | The statistic for the metric specified in @MetricName@, other than+ -- percentile. For percentile statistics, use @ExtendedStatistic@. When you+ -- call @PutMetricAlarm@ and specify a @MetricName@, you must specify+ -- either @Statistic@ or @ExtendedStatistic,@ but not both.+ statistic :: Prelude.Maybe Statistic,+ -- | A list of key-value pairs to associate with the alarm. You can associate+ -- as many as 50 tags with an alarm.+ --+ -- Tags can help you organize and categorize your resources. You can also+ -- use them to scope user permissions by granting a user permission to+ -- access or change only resources with certain tag values.+ --+ -- If you are using this operation to update an existing alarm, any tags+ -- you specify in this parameter are ignored. To change the tags of an+ -- existing alarm, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+ -- or+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+ tags :: Prelude.Maybe [Tag],+ -- | The value against which the specified statistic is compared.+ --+ -- This parameter is required for alarms based on static thresholds, but+ -- should not be used for alarms based on anomaly detection models.+ threshold :: Prelude.Maybe Prelude.Double,+ -- | If this is an alarm based on an anomaly detection model, make this value+ -- match the ID of the @ANOMALY_DETECTION_BAND@ function.+ --+ -- For an example of how to use this parameter, see the __Anomaly Detection+ -- Model Alarm__ example on this page.+ --+ -- If your alarm uses this parameter, it cannot have Auto Scaling actions.+ thresholdMetricId :: Prelude.Maybe Prelude.Text,+ -- | Sets how this alarm is to handle missing data points. If+ -- @TreatMissingData@ is omitted, the default behavior of @missing@ is+ -- used. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring How CloudWatch Alarms Treats Missing Data>.+ --+ -- Valid Values: @breaching | notBreaching | ignore | missing@+ --+ -- Alarms that evaluate metrics in the @AWS\/DynamoDB@ namespace always+ -- @ignore@ missing data even if you choose a different option for+ -- @TreatMissingData@. When an @AWS\/DynamoDB@ metric has missing data,+ -- alarms that evaluate that metric remain in their current state.+ treatMissingData :: Prelude.Maybe Prelude.Text,+ -- | The unit of measure for the statistic. 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.+ --+ -- If you don\'t specify @Unit@, CloudWatch retrieves all unit types that+ -- have been published for the metric and attempts to evaluate the alarm.+ -- Usually, metrics are published with only one unit, so the alarm works as+ -- intended.+ --+ -- However, if the metric is published with multiple types of units and you+ -- don\'t specify a unit, the alarm\'s behavior is not defined and it+ -- behaves unpredictably.+ --+ -- We recommend omitting @Unit@ so that you don\'t inadvertently specify an+ -- incorrect unit that is not published for this metric. Doing so causes+ -- the alarm to be stuck in the @INSUFFICIENT DATA@ state.+ unit :: Prelude.Maybe StandardUnit,+ -- | The name for the alarm. This name must be unique within the Region.+ alarmName :: Prelude.Text,+ -- | The number of periods over which data is compared to the specified+ -- threshold. If you are setting an alarm that requires that a number of+ -- consecutive data points be breaching to trigger the alarm, this value+ -- specifies that number. If you are setting an \"M out of N\" alarm, this+ -- value is the N.+ --+ -- An alarm\'s total current evaluation period can be no longer than one+ -- day, so this number multiplied by @Period@ cannot be more than 86,400+ -- seconds.+ evaluationPeriods :: Prelude.Natural,+ -- | The arithmetic operation to use when comparing the specified statistic+ -- and threshold. The specified statistic value is used as the first+ -- operand.+ --+ -- The values @LessThanLowerOrGreaterThanUpperThreshold@,+ -- @LessThanLowerThreshold@, and @GreaterThanUpperThreshold@ are used only+ -- for alarms based on anomaly detection models.+ comparisonOperator :: ComparisonOperator+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricAlarm' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'actionsEnabled', 'putMetricAlarm_actionsEnabled' - Indicates whether actions should be executed during any changes to the+-- alarm state. The default is @TRUE@.+--+-- 'alarmActions', 'putMetricAlarm_alarmActions' - The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+-- | @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @ |+-- @arn:aws:ssm-incidents::@/@account-id@/@:response-plan:@/@response-plan-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+--+-- 'alarmDescription', 'putMetricAlarm_alarmDescription' - The description for the alarm.+--+-- 'datapointsToAlarm', 'putMetricAlarm_datapointsToAlarm' - The number of data points that must be breaching to trigger the alarm.+-- This is used only if you are setting an \"M out of N\" alarm. In that+-- case, this value is the M. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation Evaluating an Alarm>+-- in the /Amazon CloudWatch User Guide/.+--+-- 'dimensions', 'putMetricAlarm_dimensions' - The dimensions for the metric specified in @MetricName@.+--+-- 'evaluateLowSampleCountPercentile', 'putMetricAlarm_evaluateLowSampleCountPercentile' - Used only for alarms based on percentiles. If you specify @ignore@, the+-- alarm state does not change during periods with too few data points to+-- be statistically significant. If you specify @evaluate@ or omit this+-- parameter, the alarm is always evaluated and possibly changes state no+-- matter how many data points are available. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples Percentile-Based CloudWatch Alarms and Low Data Samples>.+--+-- Valid Values: @evaluate | ignore@+--+-- 'extendedStatistic', 'putMetricAlarm_extendedStatistic' - The percentile statistic for the metric specified in @MetricName@.+-- Specify a value between p0.0 and p100. When you call @PutMetricAlarm@+-- and specify a @MetricName@, you must specify either @Statistic@ or+-- @ExtendedStatistic,@ but not both.+--+-- 'insufficientDataActions', 'putMetricAlarm_insufficientDataActions' - The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @>arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+--+-- 'metricName', 'putMetricAlarm_metricName' - The name for the metric associated with the alarm. For each+-- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+-- @Metrics@ array.+--+-- If you are creating an alarm based on a math expression, you cannot+-- specify this parameter, or any of the @Dimensions@, @Period@,+-- @Namespace@, @Statistic@, or @ExtendedStatistic@ parameters. Instead,+-- you specify all this information in the @Metrics@ array.+--+-- 'metrics', 'putMetricAlarm_metrics' - An array of @MetricDataQuery@ structures that enable you to create an+-- alarm based on the result of a metric math expression. For each+-- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+-- @Metrics@ array.+--+-- Each item in the @Metrics@ array either retrieves a metric or performs a+-- math expression.+--+-- One item in the @Metrics@ array is the expression that the alarm+-- watches. You designate this expression by setting @ReturnData@ to true+-- for this object in the array. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html MetricDataQuery>.+--+-- If you use the @Metrics@ parameter, you cannot include the @MetricName@,+-- @Dimensions@, @Period@, @Namespace@, @Statistic@, or @ExtendedStatistic@+-- parameters of @PutMetricAlarm@ in the same operation. Instead, you+-- retrieve the metrics you are using in your math expression as part of+-- the @Metrics@ array.+--+-- 'namespace', 'putMetricAlarm_namespace' - The namespace for the metric associated specified in @MetricName@.+--+-- 'oKActions', 'putMetricAlarm_oKActions' - The actions to execute when this alarm transitions to an @OK@ state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+--+-- 'period', 'putMetricAlarm_period' - The length, in seconds, used each time the metric specified in+-- @MetricName@ is evaluated. Valid values are 10, 30, and any multiple of+-- 60.+--+-- @Period@ is required for alarms based on static thresholds. If you are+-- creating an alarm based on a metric math expression, you specify the+-- period for each metric within the objects in the @Metrics@ array.+--+-- Be sure to specify 10 or 30 only for metrics that are stored by a+-- @PutMetricData@ call with a @StorageResolution@ of 1. If you specify a+-- period of 10 or 30 for a metric that does not have sub-minute+-- resolution, the alarm still attempts to gather data at the period rate+-- that you specify. In this case, it does not receive data for the+-- attempts that do not correspond to a one-minute data resolution, and the+-- alarm might often lapse into INSUFFICENT_DATA status. Specifying 10 or+-- 30 also sets this alarm as a high-resolution alarm, which has a higher+-- charge than other alarms. For more information about pricing, see+-- <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing>.+--+-- An alarm\'s total current evaluation period can be no longer than one+-- day, so @Period@ multiplied by @EvaluationPeriods@ cannot be more than+-- 86,400 seconds.+--+-- 'statistic', 'putMetricAlarm_statistic' - The statistic for the metric specified in @MetricName@, other than+-- percentile. For percentile statistics, use @ExtendedStatistic@. When you+-- call @PutMetricAlarm@ and specify a @MetricName@, you must specify+-- either @Statistic@ or @ExtendedStatistic,@ but not both.+--+-- 'tags', 'putMetricAlarm_tags' - A list of key-value pairs to associate with the alarm. You can associate+-- as many as 50 tags with an alarm.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions by granting a user permission to+-- access or change only resources with certain tag values.+--+-- If you are using this operation to update an existing alarm, any tags+-- you specify in this parameter are ignored. To change the tags of an+-- existing alarm, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+--+-- 'threshold', 'putMetricAlarm_threshold' - The value against which the specified statistic is compared.+--+-- This parameter is required for alarms based on static thresholds, but+-- should not be used for alarms based on anomaly detection models.+--+-- 'thresholdMetricId', 'putMetricAlarm_thresholdMetricId' - If this is an alarm based on an anomaly detection model, make this value+-- match the ID of the @ANOMALY_DETECTION_BAND@ function.+--+-- For an example of how to use this parameter, see the __Anomaly Detection+-- Model Alarm__ example on this page.+--+-- If your alarm uses this parameter, it cannot have Auto Scaling actions.+--+-- 'treatMissingData', 'putMetricAlarm_treatMissingData' - Sets how this alarm is to handle missing data points. If+-- @TreatMissingData@ is omitted, the default behavior of @missing@ is+-- used. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring How CloudWatch Alarms Treats Missing Data>.+--+-- Valid Values: @breaching | notBreaching | ignore | missing@+--+-- Alarms that evaluate metrics in the @AWS\/DynamoDB@ namespace always+-- @ignore@ missing data even if you choose a different option for+-- @TreatMissingData@. When an @AWS\/DynamoDB@ metric has missing data,+-- alarms that evaluate that metric remain in their current state.+--+-- 'unit', 'putMetricAlarm_unit' - The unit of measure for the statistic. 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.+--+-- If you don\'t specify @Unit@, CloudWatch retrieves all unit types that+-- have been published for the metric and attempts to evaluate the alarm.+-- Usually, metrics are published with only one unit, so the alarm works as+-- intended.+--+-- However, if the metric is published with multiple types of units and you+-- don\'t specify a unit, the alarm\'s behavior is not defined and it+-- behaves unpredictably.+--+-- We recommend omitting @Unit@ so that you don\'t inadvertently specify an+-- incorrect unit that is not published for this metric. Doing so causes+-- the alarm to be stuck in the @INSUFFICIENT DATA@ state.+--+-- 'alarmName', 'putMetricAlarm_alarmName' - The name for the alarm. This name must be unique within the Region.+--+-- 'evaluationPeriods', 'putMetricAlarm_evaluationPeriods' - The number of periods over which data is compared to the specified+-- threshold. If you are setting an alarm that requires that a number of+-- consecutive data points be breaching to trigger the alarm, this value+-- specifies that number. If you are setting an \"M out of N\" alarm, this+-- value is the N.+--+-- An alarm\'s total current evaluation period can be no longer than one+-- day, so this number multiplied by @Period@ cannot be more than 86,400+-- seconds.+--+-- 'comparisonOperator', 'putMetricAlarm_comparisonOperator' - The arithmetic operation to use when comparing the specified statistic+-- and threshold. The specified statistic value is used as the first+-- operand.+--+-- The values @LessThanLowerOrGreaterThanUpperThreshold@,+-- @LessThanLowerThreshold@, and @GreaterThanUpperThreshold@ are used only+-- for alarms based on anomaly detection models.+newPutMetricAlarm ::+ -- | 'alarmName'+ Prelude.Text ->+ -- | 'evaluationPeriods'+ Prelude.Natural ->+ -- | 'comparisonOperator'+ ComparisonOperator ->+ PutMetricAlarm+newPutMetricAlarm+ pAlarmName_+ pEvaluationPeriods_+ pComparisonOperator_ =+ PutMetricAlarm'+ { actionsEnabled = Prelude.Nothing,+ alarmActions = Prelude.Nothing,+ alarmDescription = Prelude.Nothing,+ datapointsToAlarm = Prelude.Nothing,+ dimensions = Prelude.Nothing,+ evaluateLowSampleCountPercentile = Prelude.Nothing,+ extendedStatistic = Prelude.Nothing,+ insufficientDataActions = Prelude.Nothing,+ metricName = Prelude.Nothing,+ metrics = Prelude.Nothing,+ namespace = Prelude.Nothing,+ oKActions = Prelude.Nothing,+ period = Prelude.Nothing,+ statistic = Prelude.Nothing,+ tags = Prelude.Nothing,+ threshold = Prelude.Nothing,+ thresholdMetricId = Prelude.Nothing,+ treatMissingData = Prelude.Nothing,+ unit = Prelude.Nothing,+ alarmName = pAlarmName_,+ evaluationPeriods = pEvaluationPeriods_,+ comparisonOperator = pComparisonOperator_+ }++-- | Indicates whether actions should be executed during any changes to the+-- alarm state. The default is @TRUE@.+putMetricAlarm_actionsEnabled :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Bool)+putMetricAlarm_actionsEnabled = Lens.lens (\PutMetricAlarm' {actionsEnabled} -> actionsEnabled) (\s@PutMetricAlarm' {} a -> s {actionsEnabled = a} :: PutMetricAlarm)++-- | The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+-- | @arn:aws:ssm:@/@region@/@:@/@account-id@/@:opsitem:@/@severity@/@ @ |+-- @arn:aws:ssm-incidents::@/@account-id@/@:response-plan:@/@response-plan-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+putMetricAlarm_alarmActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])+putMetricAlarm_alarmActions = Lens.lens (\PutMetricAlarm' {alarmActions} -> alarmActions) (\s@PutMetricAlarm' {} a -> s {alarmActions = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The description for the alarm.+putMetricAlarm_alarmDescription :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_alarmDescription = Lens.lens (\PutMetricAlarm' {alarmDescription} -> alarmDescription) (\s@PutMetricAlarm' {} a -> s {alarmDescription = a} :: PutMetricAlarm)++-- | The number of data points that must be breaching to trigger the alarm.+-- This is used only if you are setting an \"M out of N\" alarm. In that+-- case, this value is the M. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation Evaluating an Alarm>+-- in the /Amazon CloudWatch User Guide/.+putMetricAlarm_datapointsToAlarm :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Natural)+putMetricAlarm_datapointsToAlarm = Lens.lens (\PutMetricAlarm' {datapointsToAlarm} -> datapointsToAlarm) (\s@PutMetricAlarm' {} a -> s {datapointsToAlarm = a} :: PutMetricAlarm)++-- | The dimensions for the metric specified in @MetricName@.+putMetricAlarm_dimensions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Dimension])+putMetricAlarm_dimensions = Lens.lens (\PutMetricAlarm' {dimensions} -> dimensions) (\s@PutMetricAlarm' {} a -> s {dimensions = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | Used only for alarms based on percentiles. If you specify @ignore@, the+-- alarm state does not change during periods with too few data points to+-- be statistically significant. If you specify @evaluate@ or omit this+-- parameter, the alarm is always evaluated and possibly changes state no+-- matter how many data points are available. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples Percentile-Based CloudWatch Alarms and Low Data Samples>.+--+-- Valid Values: @evaluate | ignore@+putMetricAlarm_evaluateLowSampleCountPercentile :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_evaluateLowSampleCountPercentile = Lens.lens (\PutMetricAlarm' {evaluateLowSampleCountPercentile} -> evaluateLowSampleCountPercentile) (\s@PutMetricAlarm' {} a -> s {evaluateLowSampleCountPercentile = a} :: PutMetricAlarm)++-- | The percentile statistic for the metric specified in @MetricName@.+-- Specify a value between p0.0 and p100. When you call @PutMetricAlarm@+-- and specify a @MetricName@, you must specify either @Statistic@ or+-- @ExtendedStatistic,@ but not both.+putMetricAlarm_extendedStatistic :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_extendedStatistic = Lens.lens (\PutMetricAlarm' {extendedStatistic} -> extendedStatistic) (\s@PutMetricAlarm' {} a -> s {extendedStatistic = a} :: PutMetricAlarm)++-- | The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @>arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+putMetricAlarm_insufficientDataActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])+putMetricAlarm_insufficientDataActions = Lens.lens (\PutMetricAlarm' {insufficientDataActions} -> insufficientDataActions) (\s@PutMetricAlarm' {} a -> s {insufficientDataActions = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The name for the metric associated with the alarm. For each+-- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+-- @Metrics@ array.+--+-- If you are creating an alarm based on a math expression, you cannot+-- specify this parameter, or any of the @Dimensions@, @Period@,+-- @Namespace@, @Statistic@, or @ExtendedStatistic@ parameters. Instead,+-- you specify all this information in the @Metrics@ array.+putMetricAlarm_metricName :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_metricName = Lens.lens (\PutMetricAlarm' {metricName} -> metricName) (\s@PutMetricAlarm' {} a -> s {metricName = a} :: PutMetricAlarm)++-- | An array of @MetricDataQuery@ structures that enable you to create an+-- alarm based on the result of a metric math expression. For each+-- @PutMetricAlarm@ operation, you must specify either @MetricName@ or a+-- @Metrics@ array.+--+-- Each item in the @Metrics@ array either retrieves a metric or performs a+-- math expression.+--+-- One item in the @Metrics@ array is the expression that the alarm+-- watches. You designate this expression by setting @ReturnData@ to true+-- for this object in the array. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDataQuery.html MetricDataQuery>.+--+-- If you use the @Metrics@ parameter, you cannot include the @MetricName@,+-- @Dimensions@, @Period@, @Namespace@, @Statistic@, or @ExtendedStatistic@+-- parameters of @PutMetricAlarm@ in the same operation. Instead, you+-- retrieve the metrics you are using in your math expression as part of+-- the @Metrics@ array.+putMetricAlarm_metrics :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [MetricDataQuery])+putMetricAlarm_metrics = Lens.lens (\PutMetricAlarm' {metrics} -> metrics) (\s@PutMetricAlarm' {} a -> s {metrics = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The namespace for the metric associated specified in @MetricName@.+putMetricAlarm_namespace :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_namespace = Lens.lens (\PutMetricAlarm' {namespace} -> namespace) (\s@PutMetricAlarm' {} a -> s {namespace = a} :: PutMetricAlarm)++-- | The actions to execute when this alarm transitions to an @OK@ state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+--+-- Valid Values: @arn:aws:automate:@/@region@/@:ec2:stop@ |+-- @arn:aws:automate:@/@region@/@:ec2:terminate@ |+-- @arn:aws:automate:@/@region@/@:ec2:recover@ |+-- @arn:aws:automate:@/@region@/@:ec2:reboot@ |+-- @arn:aws:sns:@/@region@/@:@/@account-id@/@:@/@sns-topic-name@/@ @ |+-- @arn:aws:autoscaling:@/@region@/@:@/@account-id@/@:scalingPolicy:@/@policy-id@/@:autoScalingGroupName\/@/@group-friendly-name@/@:policyName\/@/@policy-friendly-name@/@ @+--+-- Valid Values (for use with IAM roles):+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Stop\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Terminate\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Reboot\/1.0@+-- |+-- @arn:aws:swf:@/@region@/@:@/@account-id@/@:action\/actions\/AWS_EC2.InstanceId.Recover\/1.0@+putMetricAlarm_oKActions :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Prelude.Text])+putMetricAlarm_oKActions = Lens.lens (\PutMetricAlarm' {oKActions} -> oKActions) (\s@PutMetricAlarm' {} a -> s {oKActions = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The length, in seconds, used each time the metric specified in+-- @MetricName@ is evaluated. Valid values are 10, 30, and any multiple of+-- 60.+--+-- @Period@ is required for alarms based on static thresholds. If you are+-- creating an alarm based on a metric math expression, you specify the+-- period for each metric within the objects in the @Metrics@ array.+--+-- Be sure to specify 10 or 30 only for metrics that are stored by a+-- @PutMetricData@ call with a @StorageResolution@ of 1. If you specify a+-- period of 10 or 30 for a metric that does not have sub-minute+-- resolution, the alarm still attempts to gather data at the period rate+-- that you specify. In this case, it does not receive data for the+-- attempts that do not correspond to a one-minute data resolution, and the+-- alarm might often lapse into INSUFFICENT_DATA status. Specifying 10 or+-- 30 also sets this alarm as a high-resolution alarm, which has a higher+-- charge than other alarms. For more information about pricing, see+-- <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing>.+--+-- An alarm\'s total current evaluation period can be no longer than one+-- day, so @Period@ multiplied by @EvaluationPeriods@ cannot be more than+-- 86,400 seconds.+putMetricAlarm_period :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Natural)+putMetricAlarm_period = Lens.lens (\PutMetricAlarm' {period} -> period) (\s@PutMetricAlarm' {} a -> s {period = a} :: PutMetricAlarm)++-- | The statistic for the metric specified in @MetricName@, other than+-- percentile. For percentile statistics, use @ExtendedStatistic@. When you+-- call @PutMetricAlarm@ and specify a @MetricName@, you must specify+-- either @Statistic@ or @ExtendedStatistic,@ but not both.+putMetricAlarm_statistic :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Statistic)+putMetricAlarm_statistic = Lens.lens (\PutMetricAlarm' {statistic} -> statistic) (\s@PutMetricAlarm' {} a -> s {statistic = a} :: PutMetricAlarm)++-- | A list of key-value pairs to associate with the alarm. You can associate+-- as many as 50 tags with an alarm.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions by granting a user permission to+-- access or change only resources with certain tag values.+--+-- If you are using this operation to update an existing alarm, any tags+-- you specify in this parameter are ignored. To change the tags of an+-- existing alarm, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+putMetricAlarm_tags :: Lens.Lens' PutMetricAlarm (Prelude.Maybe [Tag])+putMetricAlarm_tags = Lens.lens (\PutMetricAlarm' {tags} -> tags) (\s@PutMetricAlarm' {} a -> s {tags = a} :: PutMetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The value against which the specified statistic is compared.+--+-- This parameter is required for alarms based on static thresholds, but+-- should not be used for alarms based on anomaly detection models.+putMetricAlarm_threshold :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Double)+putMetricAlarm_threshold = Lens.lens (\PutMetricAlarm' {threshold} -> threshold) (\s@PutMetricAlarm' {} a -> s {threshold = a} :: PutMetricAlarm)++-- | If this is an alarm based on an anomaly detection model, make this value+-- match the ID of the @ANOMALY_DETECTION_BAND@ function.+--+-- For an example of how to use this parameter, see the __Anomaly Detection+-- Model Alarm__ example on this page.+--+-- If your alarm uses this parameter, it cannot have Auto Scaling actions.+putMetricAlarm_thresholdMetricId :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_thresholdMetricId = Lens.lens (\PutMetricAlarm' {thresholdMetricId} -> thresholdMetricId) (\s@PutMetricAlarm' {} a -> s {thresholdMetricId = a} :: PutMetricAlarm)++-- | Sets how this alarm is to handle missing data points. If+-- @TreatMissingData@ is omitted, the default behavior of @missing@ is+-- used. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring How CloudWatch Alarms Treats Missing Data>.+--+-- Valid Values: @breaching | notBreaching | ignore | missing@+--+-- Alarms that evaluate metrics in the @AWS\/DynamoDB@ namespace always+-- @ignore@ missing data even if you choose a different option for+-- @TreatMissingData@. When an @AWS\/DynamoDB@ metric has missing data,+-- alarms that evaluate that metric remain in their current state.+putMetricAlarm_treatMissingData :: Lens.Lens' PutMetricAlarm (Prelude.Maybe Prelude.Text)+putMetricAlarm_treatMissingData = Lens.lens (\PutMetricAlarm' {treatMissingData} -> treatMissingData) (\s@PutMetricAlarm' {} a -> s {treatMissingData = a} :: PutMetricAlarm)++-- | The unit of measure for the statistic. 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.+--+-- If you don\'t specify @Unit@, CloudWatch retrieves all unit types that+-- have been published for the metric and attempts to evaluate the alarm.+-- Usually, metrics are published with only one unit, so the alarm works as+-- intended.+--+-- However, if the metric is published with multiple types of units and you+-- don\'t specify a unit, the alarm\'s behavior is not defined and it+-- behaves unpredictably.+--+-- We recommend omitting @Unit@ so that you don\'t inadvertently specify an+-- incorrect unit that is not published for this metric. Doing so causes+-- the alarm to be stuck in the @INSUFFICIENT DATA@ state.+putMetricAlarm_unit :: Lens.Lens' PutMetricAlarm (Prelude.Maybe StandardUnit)+putMetricAlarm_unit = Lens.lens (\PutMetricAlarm' {unit} -> unit) (\s@PutMetricAlarm' {} a -> s {unit = a} :: PutMetricAlarm)++-- | The name for the alarm. This name must be unique within the Region.+putMetricAlarm_alarmName :: Lens.Lens' PutMetricAlarm Prelude.Text+putMetricAlarm_alarmName = Lens.lens (\PutMetricAlarm' {alarmName} -> alarmName) (\s@PutMetricAlarm' {} a -> s {alarmName = a} :: PutMetricAlarm)++-- | The number of periods over which data is compared to the specified+-- threshold. If you are setting an alarm that requires that a number of+-- consecutive data points be breaching to trigger the alarm, this value+-- specifies that number. If you are setting an \"M out of N\" alarm, this+-- value is the N.+--+-- An alarm\'s total current evaluation period can be no longer than one+-- day, so this number multiplied by @Period@ cannot be more than 86,400+-- seconds.+putMetricAlarm_evaluationPeriods :: Lens.Lens' PutMetricAlarm Prelude.Natural+putMetricAlarm_evaluationPeriods = Lens.lens (\PutMetricAlarm' {evaluationPeriods} -> evaluationPeriods) (\s@PutMetricAlarm' {} a -> s {evaluationPeriods = a} :: PutMetricAlarm)++-- | The arithmetic operation to use when comparing the specified statistic+-- and threshold. The specified statistic value is used as the first+-- operand.+--+-- The values @LessThanLowerOrGreaterThanUpperThreshold@,+-- @LessThanLowerThreshold@, and @GreaterThanUpperThreshold@ are used only+-- for alarms based on anomaly detection models.+putMetricAlarm_comparisonOperator :: Lens.Lens' PutMetricAlarm ComparisonOperator+putMetricAlarm_comparisonOperator = Lens.lens (\PutMetricAlarm' {comparisonOperator} -> comparisonOperator) (\s@PutMetricAlarm' {} a -> s {comparisonOperator = a} :: PutMetricAlarm)++instance Core.AWSRequest PutMetricAlarm where+ type+ AWSResponse PutMetricAlarm =+ PutMetricAlarmResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull PutMetricAlarmResponse'++instance Prelude.Hashable PutMetricAlarm where+ hashWithSalt _salt PutMetricAlarm' {..} =+ _salt+ `Prelude.hashWithSalt` actionsEnabled+ `Prelude.hashWithSalt` alarmActions+ `Prelude.hashWithSalt` alarmDescription+ `Prelude.hashWithSalt` datapointsToAlarm+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` evaluateLowSampleCountPercentile+ `Prelude.hashWithSalt` extendedStatistic+ `Prelude.hashWithSalt` insufficientDataActions+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` metrics+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` oKActions+ `Prelude.hashWithSalt` period+ `Prelude.hashWithSalt` statistic+ `Prelude.hashWithSalt` tags+ `Prelude.hashWithSalt` threshold+ `Prelude.hashWithSalt` thresholdMetricId+ `Prelude.hashWithSalt` treatMissingData+ `Prelude.hashWithSalt` unit+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` evaluationPeriods+ `Prelude.hashWithSalt` comparisonOperator++instance Prelude.NFData PutMetricAlarm where+ rnf PutMetricAlarm' {..} =+ Prelude.rnf actionsEnabled+ `Prelude.seq` Prelude.rnf alarmActions+ `Prelude.seq` Prelude.rnf alarmDescription+ `Prelude.seq` Prelude.rnf datapointsToAlarm+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf evaluateLowSampleCountPercentile+ `Prelude.seq` Prelude.rnf extendedStatistic+ `Prelude.seq` Prelude.rnf insufficientDataActions+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf metrics+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf oKActions+ `Prelude.seq` Prelude.rnf period+ `Prelude.seq` Prelude.rnf statistic+ `Prelude.seq` Prelude.rnf tags+ `Prelude.seq` Prelude.rnf threshold+ `Prelude.seq` Prelude.rnf thresholdMetricId+ `Prelude.seq` Prelude.rnf treatMissingData+ `Prelude.seq` Prelude.rnf unit+ `Prelude.seq` Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf+ evaluationPeriods+ `Prelude.seq` Prelude.rnf+ comparisonOperator++instance Data.ToHeaders PutMetricAlarm where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutMetricAlarm where+ toPath = Prelude.const "/"++instance Data.ToQuery PutMetricAlarm where+ toQuery PutMetricAlarm' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutMetricAlarm" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ActionsEnabled" Data.=: actionsEnabled,+ "AlarmActions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> alarmActions),+ "AlarmDescription" Data.=: alarmDescription,+ "DatapointsToAlarm" Data.=: datapointsToAlarm,+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "EvaluateLowSampleCountPercentile"+ Data.=: evaluateLowSampleCountPercentile,+ "ExtendedStatistic" Data.=: extendedStatistic,+ "InsufficientDataActions"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> insufficientDataActions+ ),+ "MetricName" Data.=: metricName,+ "Metrics"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> metrics),+ "Namespace" Data.=: namespace,+ "OKActions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> oKActions),+ "Period" Data.=: period,+ "Statistic" Data.=: statistic,+ "Tags"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> tags),+ "Threshold" Data.=: threshold,+ "ThresholdMetricId" Data.=: thresholdMetricId,+ "TreatMissingData" Data.=: treatMissingData,+ "Unit" Data.=: unit,+ "AlarmName" Data.=: alarmName,+ "EvaluationPeriods" Data.=: evaluationPeriods,+ "ComparisonOperator" Data.=: comparisonOperator+ ]++-- | /See:/ 'newPutMetricAlarmResponse' smart constructor.+data PutMetricAlarmResponse = PutMetricAlarmResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricAlarmResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newPutMetricAlarmResponse ::+ PutMetricAlarmResponse+newPutMetricAlarmResponse = PutMetricAlarmResponse'++instance Prelude.NFData PutMetricAlarmResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/PutMetricData.hs view
@@ -0,0 +1,203 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutMetricData+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Publishes metric data points to Amazon CloudWatch. CloudWatch associates+-- the data points with the specified metric. If the specified metric does+-- not exist, CloudWatch creates the metric. When CloudWatch creates a+-- metric, it can take up to fifteen minutes for the metric to appear in+-- calls to+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html ListMetrics>.+--+-- You can publish either individual data points in the @Value@ field, or+-- arrays of values and the number of times each value occurred during the+-- period by using the @Values@ and @Counts@ fields in the @MetricDatum@+-- structure. Using the @Values@ and @Counts@ method enables you to publish+-- up to 150 values per metric with one @PutMetricData@ request, and+-- supports retrieving percentile statistics on this data.+--+-- Each @PutMetricData@ request is limited to 1 MB in size for HTTP POST+-- requests. You can send a payload compressed by gzip. Each request is+-- also limited to no more than 1000 different metrics.+--+-- Although the @Value@ parameter accepts numbers of type @Double@,+-- CloudWatch rejects values that are either too small or too large. Values+-- must be in the range of -2^360 to 2^360. In addition, special values+-- (for example, NaN, +Infinity, -Infinity) are not supported.+--+-- You can use up to 30 dimensions per metric to further clarify what data+-- the metric collects. Each dimension consists of a Name and Value pair.+-- For more information about specifying dimensions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics>+-- in the /Amazon CloudWatch User Guide/.+--+-- You specify the time stamp to be associated with each data point. You+-- can specify time stamps that are as much as two weeks before the current+-- date, and as much as 2 hours after the current day and time.+--+-- Data points with time stamps from 24 hours ago or longer can take at+-- least 48 hours to become available for+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html GetMetricData>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html GetMetricStatistics>+-- from the time they are submitted. Data points with time stamps between 3+-- and 24 hours ago can take as much as 2 hours to become available for for+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html GetMetricData>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html GetMetricStatistics>.+--+-- CloudWatch needs raw data points to calculate percentile statistics. If+-- you publish data using a statistic set instead, you can only retrieve+-- percentile statistics for this data if one of the following conditions+-- is true:+--+-- - The @SampleCount@ value of the statistic set is 1 and @Min@, @Max@,+-- and @Sum@ are all equal.+--+-- - The @Min@ and @Max@ are equal, and @Sum@ is equal to @Min@+-- multiplied by @SampleCount@.+module Amazonka.CloudWatch.PutMetricData+ ( -- * Creating a Request+ PutMetricData (..),+ newPutMetricData,++ -- * Request Lenses+ putMetricData_namespace,+ putMetricData_metricData,++ -- * Destructuring the Response+ PutMetricDataResponse (..),+ newPutMetricDataResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutMetricData' smart constructor.+data PutMetricData = PutMetricData'+ { -- | The namespace for the metric data.+ --+ -- To avoid conflicts with Amazon Web Services service namespaces, you+ -- should not specify a namespace that begins with @AWS\/@+ namespace :: Prelude.Text,+ -- | The data for the metric. The array can include no more than 1000 metrics+ -- per call.+ metricData :: [MetricDatum]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricData' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'namespace', 'putMetricData_namespace' - The namespace for the metric data.+--+-- To avoid conflicts with Amazon Web Services service namespaces, you+-- should not specify a namespace that begins with @AWS\/@+--+-- 'metricData', 'putMetricData_metricData' - The data for the metric. The array can include no more than 1000 metrics+-- per call.+newPutMetricData ::+ -- | 'namespace'+ Prelude.Text ->+ PutMetricData+newPutMetricData pNamespace_ =+ PutMetricData'+ { namespace = pNamespace_,+ metricData = Prelude.mempty+ }++-- | The namespace for the metric data.+--+-- To avoid conflicts with Amazon Web Services service namespaces, you+-- should not specify a namespace that begins with @AWS\/@+putMetricData_namespace :: Lens.Lens' PutMetricData Prelude.Text+putMetricData_namespace = Lens.lens (\PutMetricData' {namespace} -> namespace) (\s@PutMetricData' {} a -> s {namespace = a} :: PutMetricData)++-- | The data for the metric. The array can include no more than 1000 metrics+-- per call.+putMetricData_metricData :: Lens.Lens' PutMetricData [MetricDatum]+putMetricData_metricData = Lens.lens (\PutMetricData' {metricData} -> metricData) (\s@PutMetricData' {} a -> s {metricData = a} :: PutMetricData) Prelude.. Lens.coerced++instance Core.AWSRequest PutMetricData where+ type+ AWSResponse PutMetricData =+ PutMetricDataResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull PutMetricDataResponse'++instance Prelude.Hashable PutMetricData where+ hashWithSalt _salt PutMetricData' {..} =+ _salt+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` metricData++instance Prelude.NFData PutMetricData where+ rnf PutMetricData' {..} =+ Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf metricData++instance Data.ToHeaders PutMetricData where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutMetricData where+ toPath = Prelude.const "/"++instance Data.ToQuery PutMetricData where+ toQuery PutMetricData' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutMetricData" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Namespace" Data.=: namespace,+ "MetricData"+ Data.=: Data.toQueryList "member" metricData+ ]++-- | /See:/ 'newPutMetricDataResponse' smart constructor.+data PutMetricDataResponse = PutMetricDataResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricDataResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newPutMetricDataResponse ::+ PutMetricDataResponse+newPutMetricDataResponse = PutMetricDataResponse'++instance Prelude.NFData PutMetricDataResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/PutMetricStream.hs view
@@ -0,0 +1,462 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.PutMetricStream+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates or updates a metric stream. Metric streams can automatically+-- stream CloudWatch metrics to Amazon Web Services destinations, including+-- Amazon S3, and to many third-party solutions.+--+-- For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html Using Metric Streams>.+--+-- To create a metric stream, you must be signed in to an account that has+-- the @iam:PassRole@ permission and either the @CloudWatchFullAccess@+-- policy or the @cloudwatch:PutMetricStream@ permission.+--+-- When you create or update a metric stream, you choose one of the+-- following:+--+-- - Stream metrics from all metric namespaces in the account.+--+-- - Stream metrics from all metric namespaces in the account, except for+-- the namespaces that you list in @ExcludeFilters@.+--+-- - Stream metrics from only the metric namespaces that you list in+-- @IncludeFilters@.+--+-- By default, a metric stream always sends the @MAX@, @MIN@, @SUM@, and+-- @SAMPLECOUNT@ statistics for each metric that is streamed. You can use+-- the @StatisticsConfigurations@ parameter to have the metric stream send+-- additional statistics in the stream. Streaming additional statistics+-- incurs additional costs. For more information, see+-- <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing>.+--+-- When you use @PutMetricStream@ to create a new metric stream, the stream+-- is created in the @running@ state. If you use it to update an existing+-- stream, the state of the stream is not changed.+module Amazonka.CloudWatch.PutMetricStream+ ( -- * Creating a Request+ PutMetricStream (..),+ newPutMetricStream,++ -- * Request Lenses+ putMetricStream_excludeFilters,+ putMetricStream_includeFilters,+ putMetricStream_statisticsConfigurations,+ putMetricStream_tags,+ putMetricStream_name,+ putMetricStream_firehoseArn,+ putMetricStream_roleArn,+ putMetricStream_outputFormat,++ -- * Destructuring the Response+ PutMetricStreamResponse (..),+ newPutMetricStreamResponse,++ -- * Response Lenses+ putMetricStreamResponse_arn,+ putMetricStreamResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutMetricStream' smart constructor.+data PutMetricStream = PutMetricStream'+ { -- | If you specify this parameter, the stream sends metrics from all metric+ -- namespaces except for the namespaces that you specify here.+ --+ -- You cannot include @ExcludeFilters@ and @IncludeFilters@ in the same+ -- operation.+ excludeFilters :: Prelude.Maybe [MetricStreamFilter],+ -- | If you specify this parameter, the stream sends only the metrics from+ -- the metric namespaces that you specify here.+ --+ -- You cannot include @IncludeFilters@ and @ExcludeFilters@ in the same+ -- operation.+ includeFilters :: Prelude.Maybe [MetricStreamFilter],+ -- | By default, a metric stream always sends the @MAX@, @MIN@, @SUM@, and+ -- @SAMPLECOUNT@ statistics for each metric that is streamed. You can use+ -- this parameter to have the metric stream also send additional statistics+ -- in the stream. This array can have up to 100 members.+ --+ -- For each entry in this array, you specify one or more metrics and the+ -- list of additional statistics to stream for those metrics. The+ -- additional statistics that you can stream depend on the stream\'s+ -- @OutputFormat@. If the @OutputFormat@ is @json@, you can stream any+ -- additional statistic that is supported by CloudWatch, listed in+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+ -- If the @OutputFormat@ is @opentelemetry0.7@, you can stream percentile+ -- statistics such as p95, p99.9, and so on.+ statisticsConfigurations :: Prelude.Maybe [MetricStreamStatisticsConfiguration],+ -- | A list of key-value pairs to associate with the metric stream. You can+ -- associate as many as 50 tags with a metric stream.+ --+ -- Tags can help you organize and categorize your resources. You can also+ -- use them to scope user permissions by granting a user permission to+ -- access or change only resources with certain tag values.+ --+ -- You can use this parameter only when you are creating a new metric+ -- stream. If you are using this operation to update an existing metric+ -- stream, any tags you specify in this parameter are ignored. To change+ -- the tags of an existing metric stream, use+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+ -- or+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+ tags :: Prelude.Maybe [Tag],+ -- | If you are creating a new metric stream, this is the name for the new+ -- stream. The name must be different than the names of other metric+ -- streams in this account and Region.+ --+ -- If you are updating a metric stream, specify the name of that stream+ -- here.+ --+ -- Valid characters are A-Z, a-z, 0-9, \"-\" and \"_\".+ name :: Prelude.Text,+ -- | The ARN of the Amazon Kinesis Data Firehose delivery stream to use for+ -- this metric stream. This Amazon Kinesis Data Firehose delivery stream+ -- must already exist and must be in the same account as the metric stream.+ firehoseArn :: Prelude.Text,+ -- | The ARN of an IAM role that this metric stream will use to access Amazon+ -- Kinesis Data Firehose resources. This IAM role must already exist and+ -- must be in the same account as the metric stream. This IAM role must+ -- include the following permissions:+ --+ -- - firehose:PutRecord+ --+ -- - firehose:PutRecordBatch+ roleArn :: Prelude.Text,+ -- | The output format for the stream. Valid values are @json@ and+ -- @opentelemetry0.7@. For more information about metric stream output+ -- formats, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+ outputFormat :: MetricStreamOutputFormat+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricStream' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'excludeFilters', 'putMetricStream_excludeFilters' - If you specify this parameter, the stream sends metrics from all metric+-- namespaces except for the namespaces that you specify here.+--+-- You cannot include @ExcludeFilters@ and @IncludeFilters@ in the same+-- operation.+--+-- 'includeFilters', 'putMetricStream_includeFilters' - If you specify this parameter, the stream sends only the metrics from+-- the metric namespaces that you specify here.+--+-- You cannot include @IncludeFilters@ and @ExcludeFilters@ in the same+-- operation.+--+-- 'statisticsConfigurations', 'putMetricStream_statisticsConfigurations' - By default, a metric stream always sends the @MAX@, @MIN@, @SUM@, and+-- @SAMPLECOUNT@ statistics for each metric that is streamed. You can use+-- this parameter to have the metric stream also send additional statistics+-- in the stream. This array can have up to 100 members.+--+-- For each entry in this array, you specify one or more metrics and the+-- list of additional statistics to stream for those metrics. The+-- additional statistics that you can stream depend on the stream\'s+-- @OutputFormat@. If the @OutputFormat@ is @json@, you can stream any+-- additional statistic that is supported by CloudWatch, listed in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+-- If the @OutputFormat@ is @opentelemetry0.7@, you can stream percentile+-- statistics such as p95, p99.9, and so on.+--+-- 'tags', 'putMetricStream_tags' - A list of key-value pairs to associate with the metric stream. You can+-- associate as many as 50 tags with a metric stream.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions by granting a user permission to+-- access or change only resources with certain tag values.+--+-- You can use this parameter only when you are creating a new metric+-- stream. If you are using this operation to update an existing metric+-- stream, any tags you specify in this parameter are ignored. To change+-- the tags of an existing metric stream, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+--+-- 'name', 'putMetricStream_name' - If you are creating a new metric stream, this is the name for the new+-- stream. The name must be different than the names of other metric+-- streams in this account and Region.+--+-- If you are updating a metric stream, specify the name of that stream+-- here.+--+-- Valid characters are A-Z, a-z, 0-9, \"-\" and \"_\".+--+-- 'firehoseArn', 'putMetricStream_firehoseArn' - The ARN of the Amazon Kinesis Data Firehose delivery stream to use for+-- this metric stream. This Amazon Kinesis Data Firehose delivery stream+-- must already exist and must be in the same account as the metric stream.+--+-- 'roleArn', 'putMetricStream_roleArn' - The ARN of an IAM role that this metric stream will use to access Amazon+-- Kinesis Data Firehose resources. This IAM role must already exist and+-- must be in the same account as the metric stream. This IAM role must+-- include the following permissions:+--+-- - firehose:PutRecord+--+-- - firehose:PutRecordBatch+--+-- 'outputFormat', 'putMetricStream_outputFormat' - The output format for the stream. Valid values are @json@ and+-- @opentelemetry0.7@. For more information about metric stream output+-- formats, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+newPutMetricStream ::+ -- | 'name'+ Prelude.Text ->+ -- | 'firehoseArn'+ Prelude.Text ->+ -- | 'roleArn'+ Prelude.Text ->+ -- | 'outputFormat'+ MetricStreamOutputFormat ->+ PutMetricStream+newPutMetricStream+ pName_+ pFirehoseArn_+ pRoleArn_+ pOutputFormat_ =+ PutMetricStream'+ { excludeFilters = Prelude.Nothing,+ includeFilters = Prelude.Nothing,+ statisticsConfigurations = Prelude.Nothing,+ tags = Prelude.Nothing,+ name = pName_,+ firehoseArn = pFirehoseArn_,+ roleArn = pRoleArn_,+ outputFormat = pOutputFormat_+ }++-- | If you specify this parameter, the stream sends metrics from all metric+-- namespaces except for the namespaces that you specify here.+--+-- You cannot include @ExcludeFilters@ and @IncludeFilters@ in the same+-- operation.+putMetricStream_excludeFilters :: Lens.Lens' PutMetricStream (Prelude.Maybe [MetricStreamFilter])+putMetricStream_excludeFilters = Lens.lens (\PutMetricStream' {excludeFilters} -> excludeFilters) (\s@PutMetricStream' {} a -> s {excludeFilters = a} :: PutMetricStream) Prelude.. Lens.mapping Lens.coerced++-- | If you specify this parameter, the stream sends only the metrics from+-- the metric namespaces that you specify here.+--+-- You cannot include @IncludeFilters@ and @ExcludeFilters@ in the same+-- operation.+putMetricStream_includeFilters :: Lens.Lens' PutMetricStream (Prelude.Maybe [MetricStreamFilter])+putMetricStream_includeFilters = Lens.lens (\PutMetricStream' {includeFilters} -> includeFilters) (\s@PutMetricStream' {} a -> s {includeFilters = a} :: PutMetricStream) Prelude.. Lens.mapping Lens.coerced++-- | By default, a metric stream always sends the @MAX@, @MIN@, @SUM@, and+-- @SAMPLECOUNT@ statistics for each metric that is streamed. You can use+-- this parameter to have the metric stream also send additional statistics+-- in the stream. This array can have up to 100 members.+--+-- For each entry in this array, you specify one or more metrics and the+-- list of additional statistics to stream for those metrics. The+-- additional statistics that you can stream depend on the stream\'s+-- @OutputFormat@. If the @OutputFormat@ is @json@, you can stream any+-- additional statistic that is supported by CloudWatch, listed in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+-- If the @OutputFormat@ is @opentelemetry0.7@, you can stream percentile+-- statistics such as p95, p99.9, and so on.+putMetricStream_statisticsConfigurations :: Lens.Lens' PutMetricStream (Prelude.Maybe [MetricStreamStatisticsConfiguration])+putMetricStream_statisticsConfigurations = Lens.lens (\PutMetricStream' {statisticsConfigurations} -> statisticsConfigurations) (\s@PutMetricStream' {} a -> s {statisticsConfigurations = a} :: PutMetricStream) Prelude.. Lens.mapping Lens.coerced++-- | A list of key-value pairs to associate with the metric stream. You can+-- associate as many as 50 tags with a metric stream.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions by granting a user permission to+-- access or change only resources with certain tag values.+--+-- You can use this parameter only when you are creating a new metric+-- stream. If you are using this operation to update an existing metric+-- stream, any tags you specify in this parameter are ignored. To change+-- the tags of an existing metric stream, use+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html TagResource>+-- or+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html UntagResource>.+putMetricStream_tags :: Lens.Lens' PutMetricStream (Prelude.Maybe [Tag])+putMetricStream_tags = Lens.lens (\PutMetricStream' {tags} -> tags) (\s@PutMetricStream' {} a -> s {tags = a} :: PutMetricStream) Prelude.. Lens.mapping Lens.coerced++-- | If you are creating a new metric stream, this is the name for the new+-- stream. The name must be different than the names of other metric+-- streams in this account and Region.+--+-- If you are updating a metric stream, specify the name of that stream+-- here.+--+-- Valid characters are A-Z, a-z, 0-9, \"-\" and \"_\".+putMetricStream_name :: Lens.Lens' PutMetricStream Prelude.Text+putMetricStream_name = Lens.lens (\PutMetricStream' {name} -> name) (\s@PutMetricStream' {} a -> s {name = a} :: PutMetricStream)++-- | The ARN of the Amazon Kinesis Data Firehose delivery stream to use for+-- this metric stream. This Amazon Kinesis Data Firehose delivery stream+-- must already exist and must be in the same account as the metric stream.+putMetricStream_firehoseArn :: Lens.Lens' PutMetricStream Prelude.Text+putMetricStream_firehoseArn = Lens.lens (\PutMetricStream' {firehoseArn} -> firehoseArn) (\s@PutMetricStream' {} a -> s {firehoseArn = a} :: PutMetricStream)++-- | The ARN of an IAM role that this metric stream will use to access Amazon+-- Kinesis Data Firehose resources. This IAM role must already exist and+-- must be in the same account as the metric stream. This IAM role must+-- include the following permissions:+--+-- - firehose:PutRecord+--+-- - firehose:PutRecordBatch+putMetricStream_roleArn :: Lens.Lens' PutMetricStream Prelude.Text+putMetricStream_roleArn = Lens.lens (\PutMetricStream' {roleArn} -> roleArn) (\s@PutMetricStream' {} a -> s {roleArn = a} :: PutMetricStream)++-- | The output format for the stream. Valid values are @json@ and+-- @opentelemetry0.7@. For more information about metric stream output+-- formats, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html Metric streams output formats>.+putMetricStream_outputFormat :: Lens.Lens' PutMetricStream MetricStreamOutputFormat+putMetricStream_outputFormat = Lens.lens (\PutMetricStream' {outputFormat} -> outputFormat) (\s@PutMetricStream' {} a -> s {outputFormat = a} :: PutMetricStream)++instance Core.AWSRequest PutMetricStream where+ type+ AWSResponse PutMetricStream =+ PutMetricStreamResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "PutMetricStreamResult"+ ( \s h x ->+ PutMetricStreamResponse'+ Prelude.<$> (x Data..@? "Arn")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable PutMetricStream where+ hashWithSalt _salt PutMetricStream' {..} =+ _salt+ `Prelude.hashWithSalt` excludeFilters+ `Prelude.hashWithSalt` includeFilters+ `Prelude.hashWithSalt` statisticsConfigurations+ `Prelude.hashWithSalt` tags+ `Prelude.hashWithSalt` name+ `Prelude.hashWithSalt` firehoseArn+ `Prelude.hashWithSalt` roleArn+ `Prelude.hashWithSalt` outputFormat++instance Prelude.NFData PutMetricStream where+ rnf PutMetricStream' {..} =+ Prelude.rnf excludeFilters+ `Prelude.seq` Prelude.rnf includeFilters+ `Prelude.seq` Prelude.rnf statisticsConfigurations+ `Prelude.seq` Prelude.rnf tags+ `Prelude.seq` Prelude.rnf name+ `Prelude.seq` Prelude.rnf firehoseArn+ `Prelude.seq` Prelude.rnf roleArn+ `Prelude.seq` Prelude.rnf outputFormat++instance Data.ToHeaders PutMetricStream where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath PutMetricStream where+ toPath = Prelude.const "/"++instance Data.ToQuery PutMetricStream where+ toQuery PutMetricStream' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("PutMetricStream" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ExcludeFilters"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> excludeFilters+ ),+ "IncludeFilters"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> includeFilters+ ),+ "StatisticsConfigurations"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> statisticsConfigurations+ ),+ "Tags"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> tags),+ "Name" Data.=: name,+ "FirehoseArn" Data.=: firehoseArn,+ "RoleArn" Data.=: roleArn,+ "OutputFormat" Data.=: outputFormat+ ]++-- | /See:/ 'newPutMetricStreamResponse' smart constructor.+data PutMetricStreamResponse = PutMetricStreamResponse'+ { -- | The ARN of the metric stream.+ arn :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutMetricStreamResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'arn', 'putMetricStreamResponse_arn' - The ARN of the metric stream.+--+-- 'httpStatus', 'putMetricStreamResponse_httpStatus' - The response's http status code.+newPutMetricStreamResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ PutMetricStreamResponse+newPutMetricStreamResponse pHttpStatus_ =+ PutMetricStreamResponse'+ { arn = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | The ARN of the metric stream.+putMetricStreamResponse_arn :: Lens.Lens' PutMetricStreamResponse (Prelude.Maybe Prelude.Text)+putMetricStreamResponse_arn = Lens.lens (\PutMetricStreamResponse' {arn} -> arn) (\s@PutMetricStreamResponse' {} a -> s {arn = a} :: PutMetricStreamResponse)++-- | The response's http status code.+putMetricStreamResponse_httpStatus :: Lens.Lens' PutMetricStreamResponse Prelude.Int+putMetricStreamResponse_httpStatus = Lens.lens (\PutMetricStreamResponse' {httpStatus} -> httpStatus) (\s@PutMetricStreamResponse' {} a -> s {httpStatus = a} :: PutMetricStreamResponse)++instance Prelude.NFData PutMetricStreamResponse where+ rnf PutMetricStreamResponse' {..} =+ Prelude.rnf arn+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/SetAlarmState.hs view
@@ -0,0 +1,207 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.SetAlarmState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Temporarily sets the state of an alarm for testing purposes. When the+-- updated state 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 state to @ALARM@ sends an SNS message.+--+-- Metric alarms returns to their actual state quickly, often within+-- seconds. Because the metric alarm state change happens quickly, it is+-- typically only visible in the alarm\'s __History__ tab in the Amazon+-- CloudWatch console or through+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html DescribeAlarmHistory>.+--+-- If you use @SetAlarmState@ on a composite alarm, the composite alarm is+-- not guaranteed to return to its actual state. It returns to its actual+-- state only once any of its children alarms change state. It is also+-- reevaluated if you update its configuration.+--+-- If an alarm triggers EC2 Auto Scaling policies or application Auto+-- Scaling policies, you must include information in the @StateReasonData@+-- parameter to enable the policy to take the correct action.+module Amazonka.CloudWatch.SetAlarmState+ ( -- * Creating a Request+ SetAlarmState (..),+ newSetAlarmState,++ -- * Request Lenses+ setAlarmState_stateReasonData,+ setAlarmState_alarmName,+ setAlarmState_stateValue,+ setAlarmState_stateReason,++ -- * Destructuring the Response+ SetAlarmStateResponse (..),+ newSetAlarmStateResponse,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newSetAlarmState' smart constructor.+data SetAlarmState = SetAlarmState'+ { -- | The reason that this alarm is set to this specific state, in JSON+ -- format.+ --+ -- For SNS or EC2 alarm actions, this is just informational. But for EC2+ -- Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling+ -- policy uses the information in this field to take the correct action.+ stateReasonData :: Prelude.Maybe Prelude.Text,+ -- | The name of the alarm.+ alarmName :: Prelude.Text,+ -- | The value of the state.+ stateValue :: StateValue,+ -- | The reason that this alarm is set to this specific state, in text+ -- format.+ stateReason :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SetAlarmState' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'stateReasonData', 'setAlarmState_stateReasonData' - The reason that this alarm is set to this specific state, in JSON+-- format.+--+-- For SNS or EC2 alarm actions, this is just informational. But for EC2+-- Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling+-- policy uses the information in this field to take the correct action.+--+-- 'alarmName', 'setAlarmState_alarmName' - The name of the alarm.+--+-- 'stateValue', 'setAlarmState_stateValue' - The value of the state.+--+-- 'stateReason', 'setAlarmState_stateReason' - The reason that this alarm is set to this specific state, in text+-- format.+newSetAlarmState ::+ -- | 'alarmName'+ Prelude.Text ->+ -- | 'stateValue'+ StateValue ->+ -- | 'stateReason'+ Prelude.Text ->+ SetAlarmState+newSetAlarmState+ pAlarmName_+ pStateValue_+ pStateReason_ =+ SetAlarmState'+ { stateReasonData = Prelude.Nothing,+ alarmName = pAlarmName_,+ stateValue = pStateValue_,+ stateReason = pStateReason_+ }++-- | The reason that this alarm is set to this specific state, in JSON+-- format.+--+-- For SNS or EC2 alarm actions, this is just informational. But for EC2+-- Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling+-- policy uses the information in this field to take the correct action.+setAlarmState_stateReasonData :: Lens.Lens' SetAlarmState (Prelude.Maybe Prelude.Text)+setAlarmState_stateReasonData = Lens.lens (\SetAlarmState' {stateReasonData} -> stateReasonData) (\s@SetAlarmState' {} a -> s {stateReasonData = a} :: SetAlarmState)++-- | The name of the alarm.+setAlarmState_alarmName :: Lens.Lens' SetAlarmState Prelude.Text+setAlarmState_alarmName = Lens.lens (\SetAlarmState' {alarmName} -> alarmName) (\s@SetAlarmState' {} a -> s {alarmName = a} :: SetAlarmState)++-- | The value of the state.+setAlarmState_stateValue :: Lens.Lens' SetAlarmState StateValue+setAlarmState_stateValue = Lens.lens (\SetAlarmState' {stateValue} -> stateValue) (\s@SetAlarmState' {} a -> s {stateValue = a} :: SetAlarmState)++-- | The reason that this alarm is set to this specific state, in text+-- format.+setAlarmState_stateReason :: Lens.Lens' SetAlarmState Prelude.Text+setAlarmState_stateReason = Lens.lens (\SetAlarmState' {stateReason} -> stateReason) (\s@SetAlarmState' {} a -> s {stateReason = a} :: SetAlarmState)++instance Core.AWSRequest SetAlarmState where+ type+ AWSResponse SetAlarmState =+ SetAlarmStateResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveNull SetAlarmStateResponse'++instance Prelude.Hashable SetAlarmState where+ hashWithSalt _salt SetAlarmState' {..} =+ _salt+ `Prelude.hashWithSalt` stateReasonData+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` stateValue+ `Prelude.hashWithSalt` stateReason++instance Prelude.NFData SetAlarmState where+ rnf SetAlarmState' {..} =+ Prelude.rnf stateReasonData+ `Prelude.seq` Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf stateValue+ `Prelude.seq` Prelude.rnf stateReason++instance Data.ToHeaders SetAlarmState where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath SetAlarmState where+ toPath = Prelude.const "/"++instance Data.ToQuery SetAlarmState where+ toQuery SetAlarmState' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("SetAlarmState" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "StateReasonData" Data.=: stateReasonData,+ "AlarmName" Data.=: alarmName,+ "StateValue" Data.=: stateValue,+ "StateReason" Data.=: stateReason+ ]++-- | /See:/ 'newSetAlarmStateResponse' smart constructor.+data SetAlarmStateResponse = SetAlarmStateResponse'+ {+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SetAlarmStateResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newSetAlarmStateResponse ::+ SetAlarmStateResponse+newSetAlarmStateResponse = SetAlarmStateResponse'++instance Prelude.NFData SetAlarmStateResponse where+ rnf _ = ()
+ gen/Amazonka/CloudWatch/StartMetricStreams.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.StartMetricStreams+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts the streaming of metrics for one or more of your metric streams.+module Amazonka.CloudWatch.StartMetricStreams+ ( -- * Creating a Request+ StartMetricStreams (..),+ newStartMetricStreams,++ -- * Request Lenses+ startMetricStreams_names,++ -- * Destructuring the Response+ StartMetricStreamsResponse (..),+ newStartMetricStreamsResponse,++ -- * Response Lenses+ startMetricStreamsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newStartMetricStreams' smart constructor.+data StartMetricStreams = StartMetricStreams'+ { -- | The array of the names of metric streams to start streaming.+ --+ -- This is an \"all or nothing\" operation. If you do not have permission+ -- to access all of the metric streams that you list here, then none of the+ -- streams that you list in the operation will start streaming.+ names :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartMetricStreams' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'names', 'startMetricStreams_names' - The array of the names of metric streams to start streaming.+--+-- This is an \"all or nothing\" operation. If you do not have permission+-- to access all of the metric streams that you list here, then none of the+-- streams that you list in the operation will start streaming.+newStartMetricStreams ::+ StartMetricStreams+newStartMetricStreams =+ StartMetricStreams' {names = Prelude.mempty}++-- | The array of the names of metric streams to start streaming.+--+-- This is an \"all or nothing\" operation. If you do not have permission+-- to access all of the metric streams that you list here, then none of the+-- streams that you list in the operation will start streaming.+startMetricStreams_names :: Lens.Lens' StartMetricStreams [Prelude.Text]+startMetricStreams_names = Lens.lens (\StartMetricStreams' {names} -> names) (\s@StartMetricStreams' {} a -> s {names = a} :: StartMetricStreams) Prelude.. Lens.coerced++instance Core.AWSRequest StartMetricStreams where+ type+ AWSResponse StartMetricStreams =+ StartMetricStreamsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "StartMetricStreamsResult"+ ( \s h x ->+ StartMetricStreamsResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable StartMetricStreams where+ hashWithSalt _salt StartMetricStreams' {..} =+ _salt `Prelude.hashWithSalt` names++instance Prelude.NFData StartMetricStreams where+ rnf StartMetricStreams' {..} = Prelude.rnf names++instance Data.ToHeaders StartMetricStreams where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath StartMetricStreams where+ toPath = Prelude.const "/"++instance Data.ToQuery StartMetricStreams where+ toQuery StartMetricStreams' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("StartMetricStreams" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Names" Data.=: Data.toQueryList "member" names+ ]++-- | /See:/ 'newStartMetricStreamsResponse' smart constructor.+data StartMetricStreamsResponse = StartMetricStreamsResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartMetricStreamsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'startMetricStreamsResponse_httpStatus' - The response's http status code.+newStartMetricStreamsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ StartMetricStreamsResponse+newStartMetricStreamsResponse pHttpStatus_ =+ StartMetricStreamsResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+startMetricStreamsResponse_httpStatus :: Lens.Lens' StartMetricStreamsResponse Prelude.Int+startMetricStreamsResponse_httpStatus = Lens.lens (\StartMetricStreamsResponse' {httpStatus} -> httpStatus) (\s@StartMetricStreamsResponse' {} a -> s {httpStatus = a} :: StartMetricStreamsResponse)++instance Prelude.NFData StartMetricStreamsResponse where+ rnf StartMetricStreamsResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/StopMetricStreams.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.StopMetricStreams+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Stops the streaming of metrics for one or more of your metric streams.+module Amazonka.CloudWatch.StopMetricStreams+ ( -- * Creating a Request+ StopMetricStreams (..),+ newStopMetricStreams,++ -- * Request Lenses+ stopMetricStreams_names,++ -- * Destructuring the Response+ StopMetricStreamsResponse (..),+ newStopMetricStreamsResponse,++ -- * Response Lenses+ stopMetricStreamsResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newStopMetricStreams' smart constructor.+data StopMetricStreams = StopMetricStreams'+ { -- | The array of the names of metric streams to stop streaming.+ --+ -- This is an \"all or nothing\" operation. If you do not have permission+ -- to access all of the metric streams that you list here, then none of the+ -- streams that you list in the operation will stop streaming.+ names :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopMetricStreams' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'names', 'stopMetricStreams_names' - The array of the names of metric streams to stop streaming.+--+-- This is an \"all or nothing\" operation. If you do not have permission+-- to access all of the metric streams that you list here, then none of the+-- streams that you list in the operation will stop streaming.+newStopMetricStreams ::+ StopMetricStreams+newStopMetricStreams =+ StopMetricStreams' {names = Prelude.mempty}++-- | The array of the names of metric streams to stop streaming.+--+-- This is an \"all or nothing\" operation. If you do not have permission+-- to access all of the metric streams that you list here, then none of the+-- streams that you list in the operation will stop streaming.+stopMetricStreams_names :: Lens.Lens' StopMetricStreams [Prelude.Text]+stopMetricStreams_names = Lens.lens (\StopMetricStreams' {names} -> names) (\s@StopMetricStreams' {} a -> s {names = a} :: StopMetricStreams) Prelude.. Lens.coerced++instance Core.AWSRequest StopMetricStreams where+ type+ AWSResponse StopMetricStreams =+ StopMetricStreamsResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "StopMetricStreamsResult"+ ( \s h x ->+ StopMetricStreamsResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable StopMetricStreams where+ hashWithSalt _salt StopMetricStreams' {..} =+ _salt `Prelude.hashWithSalt` names++instance Prelude.NFData StopMetricStreams where+ rnf StopMetricStreams' {..} = Prelude.rnf names++instance Data.ToHeaders StopMetricStreams where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath StopMetricStreams where+ toPath = Prelude.const "/"++instance Data.ToQuery StopMetricStreams where+ toQuery StopMetricStreams' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("StopMetricStreams" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "Names" Data.=: Data.toQueryList "member" names+ ]++-- | /See:/ 'newStopMetricStreamsResponse' smart constructor.+data StopMetricStreamsResponse = StopMetricStreamsResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopMetricStreamsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'stopMetricStreamsResponse_httpStatus' - The response's http status code.+newStopMetricStreamsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ StopMetricStreamsResponse+newStopMetricStreamsResponse pHttpStatus_ =+ StopMetricStreamsResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+stopMetricStreamsResponse_httpStatus :: Lens.Lens' StopMetricStreamsResponse Prelude.Int+stopMetricStreamsResponse_httpStatus = Lens.lens (\StopMetricStreamsResponse' {httpStatus} -> httpStatus) (\s@StopMetricStreamsResponse' {} a -> s {httpStatus = a} :: StopMetricStreamsResponse)++instance Prelude.NFData StopMetricStreamsResponse where+ rnf StopMetricStreamsResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/TagResource.hs view
@@ -0,0 +1,203 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.TagResource+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Assigns one or more tags (key-value pairs) to the specified CloudWatch+-- resource. Currently, the only CloudWatch resources that can be tagged+-- are alarms and Contributor Insights rules.+--+-- Tags can help you organize and categorize your resources. You can also+-- use them to scope user permissions by granting a user permission to+-- access or change only resources with certain tag values.+--+-- Tags don\'t have any semantic meaning to Amazon Web Services and are+-- interpreted strictly as strings of characters.+--+-- You can use the @TagResource@ action with an alarm that already has+-- tags. If you specify a new tag key for the alarm, this tag is appended+-- to the list of tags associated with the alarm. If you specify a tag key+-- that is already associated with the alarm, the new tag value that you+-- specify replaces the previous value for that tag.+--+-- You can associate as many as 50 tags with a CloudWatch resource.+module Amazonka.CloudWatch.TagResource+ ( -- * Creating a Request+ TagResource (..),+ newTagResource,++ -- * Request Lenses+ tagResource_resourceARN,+ tagResource_tags,++ -- * Destructuring the Response+ TagResourceResponse (..),+ newTagResourceResponse,++ -- * Response Lenses+ tagResourceResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newTagResource' smart constructor.+data TagResource = TagResource'+ { -- | The ARN of the CloudWatch resource that you\'re adding tags to.+ --+ -- The ARN format of an alarm is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+ --+ -- The ARN format of a Contributor Insights rule is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+ --+ -- For more information about ARN format, see+ -- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+ -- in the /Amazon Web Services General Reference/.+ resourceARN :: Prelude.Text,+ -- | The list of key-value pairs to associate with the alarm.+ tags :: [Tag]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'TagResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceARN', 'tagResource_resourceARN' - The ARN of the CloudWatch resource that you\'re adding tags to.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+--+-- 'tags', 'tagResource_tags' - The list of key-value pairs to associate with the alarm.+newTagResource ::+ -- | 'resourceARN'+ Prelude.Text ->+ TagResource+newTagResource pResourceARN_ =+ TagResource'+ { resourceARN = pResourceARN_,+ tags = Prelude.mempty+ }++-- | The ARN of the CloudWatch resource that you\'re adding tags to.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+tagResource_resourceARN :: Lens.Lens' TagResource Prelude.Text+tagResource_resourceARN = Lens.lens (\TagResource' {resourceARN} -> resourceARN) (\s@TagResource' {} a -> s {resourceARN = a} :: TagResource)++-- | The list of key-value pairs to associate with the alarm.+tagResource_tags :: Lens.Lens' TagResource [Tag]+tagResource_tags = Lens.lens (\TagResource' {tags} -> tags) (\s@TagResource' {} a -> s {tags = a} :: TagResource) Prelude.. Lens.coerced++instance Core.AWSRequest TagResource where+ type AWSResponse TagResource = TagResourceResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "TagResourceResult"+ ( \s h x ->+ TagResourceResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable TagResource where+ hashWithSalt _salt TagResource' {..} =+ _salt+ `Prelude.hashWithSalt` resourceARN+ `Prelude.hashWithSalt` tags++instance Prelude.NFData TagResource where+ rnf TagResource' {..} =+ Prelude.rnf resourceARN+ `Prelude.seq` Prelude.rnf tags++instance Data.ToHeaders TagResource where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath TagResource where+ toPath = Prelude.const "/"++instance Data.ToQuery TagResource where+ toQuery TagResource' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("TagResource" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ResourceARN" Data.=: resourceARN,+ "Tags" Data.=: Data.toQueryList "member" tags+ ]++-- | /See:/ 'newTagResourceResponse' smart constructor.+data TagResourceResponse = TagResourceResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'TagResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'tagResourceResponse_httpStatus' - The response's http status code.+newTagResourceResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ TagResourceResponse+newTagResourceResponse pHttpStatus_ =+ TagResourceResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+tagResourceResponse_httpStatus :: Lens.Lens' TagResourceResponse Prelude.Int+tagResourceResponse_httpStatus = Lens.lens (\TagResourceResponse' {httpStatus} -> httpStatus) (\s@TagResourceResponse' {} a -> s {httpStatus = a} :: TagResourceResponse)++instance Prelude.NFData TagResourceResponse where+ rnf TagResourceResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/Types.hs view
@@ -0,0 +1,610 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ _ConcurrentModificationException,+ _DashboardInvalidInputError,+ _DashboardNotFoundError,+ _InternalServiceFault,+ _InvalidFormatFault,+ _InvalidNextToken,+ _InvalidParameterCombinationException,+ _InvalidParameterValueException,+ _LimitExceededException,+ _LimitExceededFault,+ _MissingRequiredParameterException,+ _ResourceNotFound,+ _ResourceNotFoundException,++ -- * ActionsSuppressedBy+ ActionsSuppressedBy (..),++ -- * AlarmType+ AlarmType (..),++ -- * AnomalyDetectorStateValue+ AnomalyDetectorStateValue (..),++ -- * AnomalyDetectorType+ AnomalyDetectorType (..),++ -- * ComparisonOperator+ ComparisonOperator (..),++ -- * EvaluationState+ EvaluationState (..),++ -- * HistoryItemType+ HistoryItemType (..),++ -- * MetricStreamOutputFormat+ MetricStreamOutputFormat (..),++ -- * RecentlyActive+ RecentlyActive (..),++ -- * ScanBy+ ScanBy (..),++ -- * StandardUnit+ StandardUnit (..),++ -- * StateValue+ StateValue (..),++ -- * Statistic+ Statistic (..),++ -- * StatusCode+ StatusCode (..),++ -- * AlarmHistoryItem+ AlarmHistoryItem (..),+ newAlarmHistoryItem,+ alarmHistoryItem_alarmName,+ alarmHistoryItem_alarmType,+ alarmHistoryItem_historyData,+ alarmHistoryItem_historyItemType,+ alarmHistoryItem_historySummary,+ alarmHistoryItem_timestamp,++ -- * AnomalyDetector+ AnomalyDetector (..),+ newAnomalyDetector,+ anomalyDetector_configuration,+ anomalyDetector_dimensions,+ anomalyDetector_metricMathAnomalyDetector,+ anomalyDetector_metricName,+ anomalyDetector_namespace,+ anomalyDetector_singleMetricAnomalyDetector,+ anomalyDetector_stat,+ anomalyDetector_stateValue,++ -- * AnomalyDetectorConfiguration+ AnomalyDetectorConfiguration (..),+ newAnomalyDetectorConfiguration,+ anomalyDetectorConfiguration_excludedTimeRanges,+ anomalyDetectorConfiguration_metricTimezone,++ -- * CompositeAlarm+ CompositeAlarm (..),+ newCompositeAlarm,+ compositeAlarm_actionsEnabled,+ compositeAlarm_actionsSuppressedBy,+ compositeAlarm_actionsSuppressedReason,+ compositeAlarm_actionsSuppressor,+ compositeAlarm_actionsSuppressorExtensionPeriod,+ compositeAlarm_actionsSuppressorWaitPeriod,+ compositeAlarm_alarmActions,+ compositeAlarm_alarmArn,+ compositeAlarm_alarmConfigurationUpdatedTimestamp,+ compositeAlarm_alarmDescription,+ compositeAlarm_alarmName,+ compositeAlarm_alarmRule,+ compositeAlarm_insufficientDataActions,+ compositeAlarm_oKActions,+ compositeAlarm_stateReason,+ compositeAlarm_stateReasonData,+ compositeAlarm_stateTransitionedTimestamp,+ compositeAlarm_stateUpdatedTimestamp,+ compositeAlarm_stateValue,++ -- * DashboardEntry+ DashboardEntry (..),+ newDashboardEntry,+ dashboardEntry_dashboardArn,+ dashboardEntry_dashboardName,+ dashboardEntry_lastModified,+ dashboardEntry_size,++ -- * DashboardValidationMessage+ DashboardValidationMessage (..),+ newDashboardValidationMessage,+ dashboardValidationMessage_dataPath,+ dashboardValidationMessage_message,++ -- * Datapoint+ Datapoint (..),+ newDatapoint,+ datapoint_average,+ datapoint_extendedStatistics,+ datapoint_maximum,+ datapoint_minimum,+ datapoint_sampleCount,+ datapoint_sum,+ datapoint_timestamp,+ datapoint_unit,++ -- * Dimension+ Dimension (..),+ newDimension,+ dimension_name,+ dimension_value,++ -- * DimensionFilter+ DimensionFilter (..),+ newDimensionFilter,+ dimensionFilter_value,+ dimensionFilter_name,++ -- * InsightRule+ InsightRule (..),+ newInsightRule,+ insightRule_managedRule,+ insightRule_name,+ insightRule_state,+ insightRule_schema,+ insightRule_definition,++ -- * InsightRuleContributor+ InsightRuleContributor (..),+ newInsightRuleContributor,+ insightRuleContributor_keys,+ insightRuleContributor_approximateAggregateValue,+ insightRuleContributor_datapoints,++ -- * InsightRuleContributorDatapoint+ InsightRuleContributorDatapoint (..),+ newInsightRuleContributorDatapoint,+ insightRuleContributorDatapoint_timestamp,+ insightRuleContributorDatapoint_approximateValue,++ -- * InsightRuleMetricDatapoint+ InsightRuleMetricDatapoint (..),+ newInsightRuleMetricDatapoint,+ insightRuleMetricDatapoint_average,+ insightRuleMetricDatapoint_maxContributorValue,+ insightRuleMetricDatapoint_maximum,+ insightRuleMetricDatapoint_minimum,+ insightRuleMetricDatapoint_sampleCount,+ insightRuleMetricDatapoint_sum,+ insightRuleMetricDatapoint_uniqueContributors,+ insightRuleMetricDatapoint_timestamp,++ -- * LabelOptions+ LabelOptions (..),+ newLabelOptions,+ labelOptions_timezone,++ -- * ManagedRule+ ManagedRule (..),+ newManagedRule,+ managedRule_tags,+ managedRule_templateName,+ managedRule_resourceARN,++ -- * ManagedRuleDescription+ ManagedRuleDescription (..),+ newManagedRuleDescription,+ managedRuleDescription_resourceARN,+ managedRuleDescription_ruleState,+ managedRuleDescription_templateName,++ -- * ManagedRuleState+ ManagedRuleState (..),+ newManagedRuleState,+ managedRuleState_ruleName,+ managedRuleState_state,++ -- * MessageData+ MessageData (..),+ newMessageData,+ messageData_code,+ messageData_value,++ -- * Metric+ Metric (..),+ newMetric,+ metric_dimensions,+ metric_metricName,+ metric_namespace,++ -- * MetricAlarm+ MetricAlarm (..),+ newMetricAlarm,+ metricAlarm_actionsEnabled,+ metricAlarm_alarmActions,+ metricAlarm_alarmArn,+ metricAlarm_alarmConfigurationUpdatedTimestamp,+ metricAlarm_alarmDescription,+ metricAlarm_alarmName,+ metricAlarm_comparisonOperator,+ metricAlarm_datapointsToAlarm,+ metricAlarm_dimensions,+ metricAlarm_evaluateLowSampleCountPercentile,+ metricAlarm_evaluationPeriods,+ metricAlarm_evaluationState,+ metricAlarm_extendedStatistic,+ metricAlarm_insufficientDataActions,+ metricAlarm_metricName,+ metricAlarm_metrics,+ metricAlarm_namespace,+ metricAlarm_oKActions,+ metricAlarm_period,+ metricAlarm_stateReason,+ metricAlarm_stateReasonData,+ metricAlarm_stateTransitionedTimestamp,+ metricAlarm_stateUpdatedTimestamp,+ metricAlarm_stateValue,+ metricAlarm_statistic,+ metricAlarm_threshold,+ metricAlarm_thresholdMetricId,+ metricAlarm_treatMissingData,+ metricAlarm_unit,++ -- * MetricDataQuery+ MetricDataQuery (..),+ newMetricDataQuery,+ metricDataQuery_accountId,+ metricDataQuery_expression,+ metricDataQuery_label,+ metricDataQuery_metricStat,+ metricDataQuery_period,+ metricDataQuery_returnData,+ metricDataQuery_id,++ -- * MetricDataResult+ MetricDataResult (..),+ newMetricDataResult,+ metricDataResult_id,+ metricDataResult_label,+ metricDataResult_messages,+ metricDataResult_statusCode,+ metricDataResult_timestamps,+ metricDataResult_values,++ -- * MetricDatum+ MetricDatum (..),+ newMetricDatum,+ metricDatum_counts,+ metricDatum_dimensions,+ metricDatum_statisticValues,+ metricDatum_storageResolution,+ metricDatum_timestamp,+ metricDatum_unit,+ metricDatum_value,+ metricDatum_values,+ metricDatum_metricName,++ -- * MetricMathAnomalyDetector+ MetricMathAnomalyDetector (..),+ newMetricMathAnomalyDetector,+ metricMathAnomalyDetector_metricDataQueries,++ -- * MetricStat+ MetricStat (..),+ newMetricStat,+ metricStat_unit,+ metricStat_metric,+ metricStat_period,+ metricStat_stat,++ -- * MetricStreamEntry+ MetricStreamEntry (..),+ newMetricStreamEntry,+ metricStreamEntry_arn,+ metricStreamEntry_creationDate,+ metricStreamEntry_firehoseArn,+ metricStreamEntry_lastUpdateDate,+ metricStreamEntry_name,+ metricStreamEntry_outputFormat,+ metricStreamEntry_state,++ -- * MetricStreamFilter+ MetricStreamFilter (..),+ newMetricStreamFilter,+ metricStreamFilter_namespace,++ -- * MetricStreamStatisticsConfiguration+ MetricStreamStatisticsConfiguration (..),+ newMetricStreamStatisticsConfiguration,+ metricStreamStatisticsConfiguration_includeMetrics,+ metricStreamStatisticsConfiguration_additionalStatistics,++ -- * MetricStreamStatisticsMetric+ MetricStreamStatisticsMetric (..),+ newMetricStreamStatisticsMetric,+ metricStreamStatisticsMetric_namespace,+ metricStreamStatisticsMetric_metricName,++ -- * PartialFailure+ PartialFailure (..),+ newPartialFailure,+ partialFailure_exceptionType,+ partialFailure_failureCode,+ partialFailure_failureDescription,+ partialFailure_failureResource,++ -- * Range+ Range (..),+ newRange,+ range_startTime,+ range_endTime,++ -- * SingleMetricAnomalyDetector+ SingleMetricAnomalyDetector (..),+ newSingleMetricAnomalyDetector,+ singleMetricAnomalyDetector_dimensions,+ singleMetricAnomalyDetector_metricName,+ singleMetricAnomalyDetector_namespace,+ singleMetricAnomalyDetector_stat,++ -- * StatisticSet+ StatisticSet (..),+ newStatisticSet,+ statisticSet_sampleCount,+ statisticSet_sum,+ statisticSet_minimum,+ statisticSet_maximum,++ -- * Tag+ Tag (..),+ newTag,+ tag_key,+ tag_value,+ )+where++import Amazonka.CloudWatch.Types.ActionsSuppressedBy+import Amazonka.CloudWatch.Types.AlarmHistoryItem+import Amazonka.CloudWatch.Types.AlarmType+import Amazonka.CloudWatch.Types.AnomalyDetector+import Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration+import Amazonka.CloudWatch.Types.AnomalyDetectorStateValue+import Amazonka.CloudWatch.Types.AnomalyDetectorType+import Amazonka.CloudWatch.Types.ComparisonOperator+import Amazonka.CloudWatch.Types.CompositeAlarm+import Amazonka.CloudWatch.Types.DashboardEntry+import Amazonka.CloudWatch.Types.DashboardValidationMessage+import Amazonka.CloudWatch.Types.Datapoint+import Amazonka.CloudWatch.Types.Dimension+import Amazonka.CloudWatch.Types.DimensionFilter+import Amazonka.CloudWatch.Types.EvaluationState+import Amazonka.CloudWatch.Types.HistoryItemType+import Amazonka.CloudWatch.Types.InsightRule+import Amazonka.CloudWatch.Types.InsightRuleContributor+import Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint+import Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint+import Amazonka.CloudWatch.Types.LabelOptions+import Amazonka.CloudWatch.Types.ManagedRule+import Amazonka.CloudWatch.Types.ManagedRuleDescription+import Amazonka.CloudWatch.Types.ManagedRuleState+import Amazonka.CloudWatch.Types.MessageData+import Amazonka.CloudWatch.Types.Metric+import Amazonka.CloudWatch.Types.MetricAlarm+import Amazonka.CloudWatch.Types.MetricDataQuery+import Amazonka.CloudWatch.Types.MetricDataResult+import Amazonka.CloudWatch.Types.MetricDatum+import Amazonka.CloudWatch.Types.MetricMathAnomalyDetector+import Amazonka.CloudWatch.Types.MetricStat+import Amazonka.CloudWatch.Types.MetricStreamEntry+import Amazonka.CloudWatch.Types.MetricStreamFilter+import Amazonka.CloudWatch.Types.MetricStreamOutputFormat+import Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration+import Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric+import Amazonka.CloudWatch.Types.PartialFailure+import Amazonka.CloudWatch.Types.Range+import Amazonka.CloudWatch.Types.RecentlyActive+import Amazonka.CloudWatch.Types.ScanBy+import Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector+import Amazonka.CloudWatch.Types.StandardUnit+import Amazonka.CloudWatch.Types.StateValue+import Amazonka.CloudWatch.Types.Statistic+import Amazonka.CloudWatch.Types.StatisticSet+import Amazonka.CloudWatch.Types.StatusCode+import Amazonka.CloudWatch.Types.Tag+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2010-08-01@ of the Amazon CloudWatch SDK configuration.+defaultService :: Core.Service+defaultService =+ Core.Service+ { Core.abbrev = "CloudWatch",+ Core.signer = Sign.v4,+ Core.endpointPrefix = "monitoring",+ Core.signingName = "monitoring",+ Core.version = "2010-08-01",+ Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+ Core.endpoint = Core.defaultEndpoint defaultService,+ Core.timeout = Prelude.Just 70,+ Core.check = Core.statusSuccess,+ Core.error = Core.parseXMLError "CloudWatch",+ Core.retry = retry+ }+ where+ retry =+ Core.Exponential+ { Core.base = 5.0e-2,+ Core.growth = 2,+ Core.attempts = 5,+ Core.check = check+ }+ check e+ | Lens.has (Core.hasStatus 502) e =+ Prelude.Just "bad_gateway"+ | Lens.has (Core.hasStatus 504) e =+ Prelude.Just "gateway_timeout"+ | Lens.has (Core.hasStatus 500) e =+ Prelude.Just "general_server_error"+ | Lens.has (Core.hasStatus 509) e =+ Prelude.Just "limit_exceeded"+ | Lens.has+ ( Core.hasCode "RequestThrottledException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "request_throttled_exception"+ | Lens.has (Core.hasStatus 503) e =+ Prelude.Just "service_unavailable"+ | Lens.has+ ( Core.hasCode "ThrottledException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttled_exception"+ | Lens.has+ ( Core.hasCode "Throttling"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttling"+ | Lens.has+ ( Core.hasCode "ThrottlingException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttling_exception"+ | Lens.has+ ( Core.hasCode+ "ProvisionedThroughputExceededException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throughput_exceeded"+ | Lens.has (Core.hasStatus 429) e =+ Prelude.Just "too_many_requests"+ | Prelude.otherwise = Prelude.Nothing++-- | More than one process tried to modify a resource at the same time.+_ConcurrentModificationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ConcurrentModificationException =+ Core._MatchServiceError+ defaultService+ "ConcurrentModificationException"+ Prelude.. Core.hasStatus 429++-- | Some part of the dashboard data is invalid.+_DashboardInvalidInputError :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_DashboardInvalidInputError =+ Core._MatchServiceError+ defaultService+ "InvalidParameterInput"+ Prelude.. Core.hasStatus 400++-- | The specified dashboard does not exist.+_DashboardNotFoundError :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_DashboardNotFoundError =+ Core._MatchServiceError+ defaultService+ "ResourceNotFound"+ Prelude.. Core.hasStatus 404++-- | Request processing has failed due to some unknown error, exception, or+-- failure.+_InternalServiceFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InternalServiceFault =+ Core._MatchServiceError+ defaultService+ "InternalServiceError"+ Prelude.. Core.hasStatus 500++-- | Data was not syntactically valid JSON.+_InvalidFormatFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidFormatFault =+ Core._MatchServiceError+ defaultService+ "InvalidFormat"+ Prelude.. Core.hasStatus 400++-- | The next token specified is invalid.+_InvalidNextToken :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidNextToken =+ Core._MatchServiceError+ defaultService+ "InvalidNextToken"+ Prelude.. Core.hasStatus 400++-- | Parameters were used together that cannot be used together.+_InvalidParameterCombinationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidParameterCombinationException =+ Core._MatchServiceError+ defaultService+ "InvalidParameterCombination"+ Prelude.. Core.hasStatus 400++-- | The value of an input parameter is bad or out-of-range.+_InvalidParameterValueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidParameterValueException =+ Core._MatchServiceError+ defaultService+ "InvalidParameterValue"+ Prelude.. Core.hasStatus 400++-- | The operation exceeded one or more limits.+_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_LimitExceededException =+ Core._MatchServiceError+ defaultService+ "LimitExceededException"+ Prelude.. Core.hasStatus 400++-- | The quota for alarms for this customer has already been reached.+_LimitExceededFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_LimitExceededFault =+ Core._MatchServiceError+ defaultService+ "LimitExceeded"+ Prelude.. Core.hasStatus 400++-- | An input parameter that is required is missing.+_MissingRequiredParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_MissingRequiredParameterException =+ Core._MatchServiceError+ defaultService+ "MissingParameter"+ Prelude.. Core.hasStatus 400++-- | The named resource does not exist.+_ResourceNotFound :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceNotFound =+ Core._MatchServiceError+ defaultService+ "ResourceNotFound"+ Prelude.. Core.hasStatus 404++-- | The named resource does not exist.+_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceNotFoundException =+ Core._MatchServiceError+ defaultService+ "ResourceNotFoundException"+ Prelude.. Core.hasStatus 404
+ gen/Amazonka/CloudWatch/Types/ActionsSuppressedBy.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ActionsSuppressedBy+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ActionsSuppressedBy+ ( ActionsSuppressedBy+ ( ..,+ ActionsSuppressedBy_Alarm,+ ActionsSuppressedBy_ExtensionPeriod,+ ActionsSuppressedBy_WaitPeriod+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ActionsSuppressedBy = ActionsSuppressedBy'+ { fromActionsSuppressedBy ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern ActionsSuppressedBy_Alarm :: ActionsSuppressedBy+pattern ActionsSuppressedBy_Alarm = ActionsSuppressedBy' "Alarm"++pattern ActionsSuppressedBy_ExtensionPeriod :: ActionsSuppressedBy+pattern ActionsSuppressedBy_ExtensionPeriod = ActionsSuppressedBy' "ExtensionPeriod"++pattern ActionsSuppressedBy_WaitPeriod :: ActionsSuppressedBy+pattern ActionsSuppressedBy_WaitPeriod = ActionsSuppressedBy' "WaitPeriod"++{-# COMPLETE+ ActionsSuppressedBy_Alarm,+ ActionsSuppressedBy_ExtensionPeriod,+ ActionsSuppressedBy_WaitPeriod,+ ActionsSuppressedBy'+ #-}
+ gen/Amazonka/CloudWatch/Types/AlarmHistoryItem.hs view
@@ -0,0 +1,130 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AlarmHistoryItem+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AlarmHistoryItem where++import Amazonka.CloudWatch.Types.AlarmType+import Amazonka.CloudWatch.Types.HistoryItemType+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Represents the history of a specific alarm.+--+-- /See:/ 'newAlarmHistoryItem' smart constructor.+data AlarmHistoryItem = AlarmHistoryItem'+ { -- | The descriptive name for the alarm.+ alarmName :: Prelude.Maybe Prelude.Text,+ -- | The type of alarm, either metric alarm or composite alarm.+ alarmType :: Prelude.Maybe AlarmType,+ -- | Data about the alarm, in JSON format.+ historyData :: Prelude.Maybe Prelude.Text,+ -- | The type of alarm history item.+ historyItemType :: Prelude.Maybe HistoryItemType,+ -- | A summary of the alarm history, in text format.+ historySummary :: Prelude.Maybe Prelude.Text,+ -- | The time stamp for the alarm history item.+ timestamp :: Prelude.Maybe Data.ISO8601+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AlarmHistoryItem' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'alarmName', 'alarmHistoryItem_alarmName' - The descriptive name for the alarm.+--+-- 'alarmType', 'alarmHistoryItem_alarmType' - The type of alarm, either metric alarm or composite alarm.+--+-- 'historyData', 'alarmHistoryItem_historyData' - Data about the alarm, in JSON format.+--+-- 'historyItemType', 'alarmHistoryItem_historyItemType' - The type of alarm history item.+--+-- 'historySummary', 'alarmHistoryItem_historySummary' - A summary of the alarm history, in text format.+--+-- 'timestamp', 'alarmHistoryItem_timestamp' - The time stamp for the alarm history item.+newAlarmHistoryItem ::+ AlarmHistoryItem+newAlarmHistoryItem =+ AlarmHistoryItem'+ { alarmName = Prelude.Nothing,+ alarmType = Prelude.Nothing,+ historyData = Prelude.Nothing,+ historyItemType = Prelude.Nothing,+ historySummary = Prelude.Nothing,+ timestamp = Prelude.Nothing+ }++-- | The descriptive name for the alarm.+alarmHistoryItem_alarmName :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe Prelude.Text)+alarmHistoryItem_alarmName = Lens.lens (\AlarmHistoryItem' {alarmName} -> alarmName) (\s@AlarmHistoryItem' {} a -> s {alarmName = a} :: AlarmHistoryItem)++-- | The type of alarm, either metric alarm or composite alarm.+alarmHistoryItem_alarmType :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe AlarmType)+alarmHistoryItem_alarmType = Lens.lens (\AlarmHistoryItem' {alarmType} -> alarmType) (\s@AlarmHistoryItem' {} a -> s {alarmType = a} :: AlarmHistoryItem)++-- | Data about the alarm, in JSON format.+alarmHistoryItem_historyData :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe Prelude.Text)+alarmHistoryItem_historyData = Lens.lens (\AlarmHistoryItem' {historyData} -> historyData) (\s@AlarmHistoryItem' {} a -> s {historyData = a} :: AlarmHistoryItem)++-- | The type of alarm history item.+alarmHistoryItem_historyItemType :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe HistoryItemType)+alarmHistoryItem_historyItemType = Lens.lens (\AlarmHistoryItem' {historyItemType} -> historyItemType) (\s@AlarmHistoryItem' {} a -> s {historyItemType = a} :: AlarmHistoryItem)++-- | A summary of the alarm history, in text format.+alarmHistoryItem_historySummary :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe Prelude.Text)+alarmHistoryItem_historySummary = Lens.lens (\AlarmHistoryItem' {historySummary} -> historySummary) (\s@AlarmHistoryItem' {} a -> s {historySummary = a} :: AlarmHistoryItem)++-- | The time stamp for the alarm history item.+alarmHistoryItem_timestamp :: Lens.Lens' AlarmHistoryItem (Prelude.Maybe Prelude.UTCTime)+alarmHistoryItem_timestamp = Lens.lens (\AlarmHistoryItem' {timestamp} -> timestamp) (\s@AlarmHistoryItem' {} a -> s {timestamp = a} :: AlarmHistoryItem) Prelude.. Lens.mapping Data._Time++instance Data.FromXML AlarmHistoryItem where+ parseXML x =+ AlarmHistoryItem'+ Prelude.<$> (x Data..@? "AlarmName")+ Prelude.<*> (x Data..@? "AlarmType")+ Prelude.<*> (x Data..@? "HistoryData")+ Prelude.<*> (x Data..@? "HistoryItemType")+ Prelude.<*> (x Data..@? "HistorySummary")+ Prelude.<*> (x Data..@? "Timestamp")++instance Prelude.Hashable AlarmHistoryItem where+ hashWithSalt _salt AlarmHistoryItem' {..} =+ _salt+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` alarmType+ `Prelude.hashWithSalt` historyData+ `Prelude.hashWithSalt` historyItemType+ `Prelude.hashWithSalt` historySummary+ `Prelude.hashWithSalt` timestamp++instance Prelude.NFData AlarmHistoryItem where+ rnf AlarmHistoryItem' {..} =+ Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf alarmType+ `Prelude.seq` Prelude.rnf historyData+ `Prelude.seq` Prelude.rnf historyItemType+ `Prelude.seq` Prelude.rnf historySummary+ `Prelude.seq` Prelude.rnf timestamp
+ gen/Amazonka/CloudWatch/Types/AlarmType.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AlarmType+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AlarmType+ ( AlarmType+ ( ..,+ AlarmType_CompositeAlarm,+ AlarmType_MetricAlarm+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype AlarmType = AlarmType'+ { fromAlarmType ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern AlarmType_CompositeAlarm :: AlarmType+pattern AlarmType_CompositeAlarm = AlarmType' "CompositeAlarm"++pattern AlarmType_MetricAlarm :: AlarmType+pattern AlarmType_MetricAlarm = AlarmType' "MetricAlarm"++{-# COMPLETE+ AlarmType_CompositeAlarm,+ AlarmType_MetricAlarm,+ AlarmType'+ #-}
+ gen/Amazonka/CloudWatch/Types/AnomalyDetector.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AnomalyDetector+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AnomalyDetector where++import Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration+import Amazonka.CloudWatch.Types.AnomalyDetectorStateValue+import Amazonka.CloudWatch.Types.Dimension+import Amazonka.CloudWatch.Types.MetricMathAnomalyDetector+import Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | An anomaly detection model associated with a particular CloudWatch+-- metric, statistic, or metric math expression. You can use the model to+-- display a band of expected, normal values when the metric is graphed.+--+-- /See:/ 'newAnomalyDetector' smart constructor.+data AnomalyDetector = AnomalyDetector'+ { -- | The configuration specifies details about how the anomaly detection+ -- model is to be trained, including time ranges to exclude from use for+ -- training the model, and the time zone to use for the metric.+ configuration :: Prelude.Maybe AnomalyDetectorConfiguration,+ -- | The metric dimensions associated with the anomaly detection model.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The CloudWatch metric math expression for this anomaly detector.+ metricMathAnomalyDetector :: Prelude.Maybe MetricMathAnomalyDetector,+ -- | The name of the metric associated with the anomaly detection model.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The namespace of the metric associated with the anomaly detection model.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | The CloudWatch metric and statistic for this anomaly detector.+ singleMetricAnomalyDetector :: Prelude.Maybe SingleMetricAnomalyDetector,+ -- | The statistic associated with the anomaly detection model.+ stat :: Prelude.Maybe Prelude.Text,+ -- | The current status of the anomaly detector\'s training. The possible+ -- values are @TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA@+ stateValue :: Prelude.Maybe AnomalyDetectorStateValue+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AnomalyDetector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'configuration', 'anomalyDetector_configuration' - The configuration specifies details about how the anomaly detection+-- model is to be trained, including time ranges to exclude from use for+-- training the model, and the time zone to use for the metric.+--+-- 'dimensions', 'anomalyDetector_dimensions' - The metric dimensions associated with the anomaly detection model.+--+-- 'metricMathAnomalyDetector', 'anomalyDetector_metricMathAnomalyDetector' - The CloudWatch metric math expression for this anomaly detector.+--+-- 'metricName', 'anomalyDetector_metricName' - The name of the metric associated with the anomaly detection model.+--+-- 'namespace', 'anomalyDetector_namespace' - The namespace of the metric associated with the anomaly detection model.+--+-- 'singleMetricAnomalyDetector', 'anomalyDetector_singleMetricAnomalyDetector' - The CloudWatch metric and statistic for this anomaly detector.+--+-- 'stat', 'anomalyDetector_stat' - The statistic associated with the anomaly detection model.+--+-- 'stateValue', 'anomalyDetector_stateValue' - The current status of the anomaly detector\'s training. The possible+-- values are @TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA@+newAnomalyDetector ::+ AnomalyDetector+newAnomalyDetector =+ AnomalyDetector'+ { configuration = Prelude.Nothing,+ dimensions = Prelude.Nothing,+ metricMathAnomalyDetector = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ singleMetricAnomalyDetector = Prelude.Nothing,+ stat = Prelude.Nothing,+ stateValue = Prelude.Nothing+ }++-- | The configuration specifies details about how the anomaly detection+-- model is to be trained, including time ranges to exclude from use for+-- training the model, and the time zone to use for the metric.+anomalyDetector_configuration :: Lens.Lens' AnomalyDetector (Prelude.Maybe AnomalyDetectorConfiguration)+anomalyDetector_configuration = Lens.lens (\AnomalyDetector' {configuration} -> configuration) (\s@AnomalyDetector' {} a -> s {configuration = a} :: AnomalyDetector)++-- | The metric dimensions associated with the anomaly detection model.+anomalyDetector_dimensions :: Lens.Lens' AnomalyDetector (Prelude.Maybe [Dimension])+anomalyDetector_dimensions = Lens.lens (\AnomalyDetector' {dimensions} -> dimensions) (\s@AnomalyDetector' {} a -> s {dimensions = a} :: AnomalyDetector) Prelude.. Lens.mapping Lens.coerced++-- | The CloudWatch metric math expression for this anomaly detector.+anomalyDetector_metricMathAnomalyDetector :: Lens.Lens' AnomalyDetector (Prelude.Maybe MetricMathAnomalyDetector)+anomalyDetector_metricMathAnomalyDetector = Lens.lens (\AnomalyDetector' {metricMathAnomalyDetector} -> metricMathAnomalyDetector) (\s@AnomalyDetector' {} a -> s {metricMathAnomalyDetector = a} :: AnomalyDetector)++-- | The name of the metric associated with the anomaly detection model.+anomalyDetector_metricName :: Lens.Lens' AnomalyDetector (Prelude.Maybe Prelude.Text)+anomalyDetector_metricName = Lens.lens (\AnomalyDetector' {metricName} -> metricName) (\s@AnomalyDetector' {} a -> s {metricName = a} :: AnomalyDetector)++-- | The namespace of the metric associated with the anomaly detection model.+anomalyDetector_namespace :: Lens.Lens' AnomalyDetector (Prelude.Maybe Prelude.Text)+anomalyDetector_namespace = Lens.lens (\AnomalyDetector' {namespace} -> namespace) (\s@AnomalyDetector' {} a -> s {namespace = a} :: AnomalyDetector)++-- | The CloudWatch metric and statistic for this anomaly detector.+anomalyDetector_singleMetricAnomalyDetector :: Lens.Lens' AnomalyDetector (Prelude.Maybe SingleMetricAnomalyDetector)+anomalyDetector_singleMetricAnomalyDetector = Lens.lens (\AnomalyDetector' {singleMetricAnomalyDetector} -> singleMetricAnomalyDetector) (\s@AnomalyDetector' {} a -> s {singleMetricAnomalyDetector = a} :: AnomalyDetector)++-- | The statistic associated with the anomaly detection model.+anomalyDetector_stat :: Lens.Lens' AnomalyDetector (Prelude.Maybe Prelude.Text)+anomalyDetector_stat = Lens.lens (\AnomalyDetector' {stat} -> stat) (\s@AnomalyDetector' {} a -> s {stat = a} :: AnomalyDetector)++-- | The current status of the anomaly detector\'s training. The possible+-- values are @TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA@+anomalyDetector_stateValue :: Lens.Lens' AnomalyDetector (Prelude.Maybe AnomalyDetectorStateValue)+anomalyDetector_stateValue = Lens.lens (\AnomalyDetector' {stateValue} -> stateValue) (\s@AnomalyDetector' {} a -> s {stateValue = a} :: AnomalyDetector)++instance Data.FromXML AnomalyDetector where+ parseXML x =+ AnomalyDetector'+ Prelude.<$> (x Data..@? "Configuration")+ Prelude.<*> ( x+ Data..@? "Dimensions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "MetricMathAnomalyDetector")+ Prelude.<*> (x Data..@? "MetricName")+ Prelude.<*> (x Data..@? "Namespace")+ Prelude.<*> (x Data..@? "SingleMetricAnomalyDetector")+ Prelude.<*> (x Data..@? "Stat")+ Prelude.<*> (x Data..@? "StateValue")++instance Prelude.Hashable AnomalyDetector where+ hashWithSalt _salt AnomalyDetector' {..} =+ _salt+ `Prelude.hashWithSalt` configuration+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` metricMathAnomalyDetector+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` singleMetricAnomalyDetector+ `Prelude.hashWithSalt` stat+ `Prelude.hashWithSalt` stateValue++instance Prelude.NFData AnomalyDetector where+ rnf AnomalyDetector' {..} =+ Prelude.rnf configuration+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf metricMathAnomalyDetector+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf singleMetricAnomalyDetector+ `Prelude.seq` Prelude.rnf stat+ `Prelude.seq` Prelude.rnf stateValue
+ gen/Amazonka/CloudWatch/Types/AnomalyDetectorConfiguration.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AnomalyDetectorConfiguration where++import Amazonka.CloudWatch.Types.Range+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The configuration specifies details about how the anomaly detection+-- model is to be trained, including time ranges to exclude from use for+-- training the model and the time zone to use for the metric.+--+-- /See:/ 'newAnomalyDetectorConfiguration' smart constructor.+data AnomalyDetectorConfiguration = AnomalyDetectorConfiguration'+ { -- | An array of time ranges to exclude from use when the anomaly detection+ -- model is trained. Use this to make sure that events that could cause+ -- unusual values for the metric, such as deployments, aren\'t used when+ -- CloudWatch creates the model.+ excludedTimeRanges :: Prelude.Maybe [Range],+ -- | The time zone to use for the metric. This is useful to enable the model+ -- to automatically account for daylight savings time changes if the metric+ -- is sensitive to such time changes.+ --+ -- To specify a time zone, use the name of the time zone as specified in+ -- the standard tz database. For more information, see+ -- <https://en.wikipedia.org/wiki/Tz_database tz database>.+ metricTimezone :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AnomalyDetectorConfiguration' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'excludedTimeRanges', 'anomalyDetectorConfiguration_excludedTimeRanges' - An array of time ranges to exclude from use when the anomaly detection+-- model is trained. Use this to make sure that events that could cause+-- unusual values for the metric, such as deployments, aren\'t used when+-- CloudWatch creates the model.+--+-- 'metricTimezone', 'anomalyDetectorConfiguration_metricTimezone' - The time zone to use for the metric. This is useful to enable the model+-- to automatically account for daylight savings time changes if the metric+-- is sensitive to such time changes.+--+-- To specify a time zone, use the name of the time zone as specified in+-- the standard tz database. For more information, see+-- <https://en.wikipedia.org/wiki/Tz_database tz database>.+newAnomalyDetectorConfiguration ::+ AnomalyDetectorConfiguration+newAnomalyDetectorConfiguration =+ AnomalyDetectorConfiguration'+ { excludedTimeRanges =+ Prelude.Nothing,+ metricTimezone = Prelude.Nothing+ }++-- | An array of time ranges to exclude from use when the anomaly detection+-- model is trained. Use this to make sure that events that could cause+-- unusual values for the metric, such as deployments, aren\'t used when+-- CloudWatch creates the model.+anomalyDetectorConfiguration_excludedTimeRanges :: Lens.Lens' AnomalyDetectorConfiguration (Prelude.Maybe [Range])+anomalyDetectorConfiguration_excludedTimeRanges = Lens.lens (\AnomalyDetectorConfiguration' {excludedTimeRanges} -> excludedTimeRanges) (\s@AnomalyDetectorConfiguration' {} a -> s {excludedTimeRanges = a} :: AnomalyDetectorConfiguration) Prelude.. Lens.mapping Lens.coerced++-- | The time zone to use for the metric. This is useful to enable the model+-- to automatically account for daylight savings time changes if the metric+-- is sensitive to such time changes.+--+-- To specify a time zone, use the name of the time zone as specified in+-- the standard tz database. For more information, see+-- <https://en.wikipedia.org/wiki/Tz_database tz database>.+anomalyDetectorConfiguration_metricTimezone :: Lens.Lens' AnomalyDetectorConfiguration (Prelude.Maybe Prelude.Text)+anomalyDetectorConfiguration_metricTimezone = Lens.lens (\AnomalyDetectorConfiguration' {metricTimezone} -> metricTimezone) (\s@AnomalyDetectorConfiguration' {} a -> s {metricTimezone = a} :: AnomalyDetectorConfiguration)++instance Data.FromXML AnomalyDetectorConfiguration where+ parseXML x =+ AnomalyDetectorConfiguration'+ Prelude.<$> ( x+ Data..@? "ExcludedTimeRanges"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "MetricTimezone")++instance+ Prelude.Hashable+ AnomalyDetectorConfiguration+ where+ hashWithSalt _salt AnomalyDetectorConfiguration' {..} =+ _salt+ `Prelude.hashWithSalt` excludedTimeRanges+ `Prelude.hashWithSalt` metricTimezone++instance Prelude.NFData AnomalyDetectorConfiguration where+ rnf AnomalyDetectorConfiguration' {..} =+ Prelude.rnf excludedTimeRanges+ `Prelude.seq` Prelude.rnf metricTimezone++instance Data.ToQuery AnomalyDetectorConfiguration where+ toQuery AnomalyDetectorConfiguration' {..} =+ Prelude.mconcat+ [ "ExcludedTimeRanges"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> excludedTimeRanges+ ),+ "MetricTimezone" Data.=: metricTimezone+ ]
+ gen/Amazonka/CloudWatch/Types/AnomalyDetectorStateValue.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AnomalyDetectorStateValue+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AnomalyDetectorStateValue+ ( AnomalyDetectorStateValue+ ( ..,+ AnomalyDetectorStateValue_PENDING_TRAINING,+ AnomalyDetectorStateValue_TRAINED,+ AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype AnomalyDetectorStateValue = AnomalyDetectorStateValue'+ { fromAnomalyDetectorStateValue ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue+pattern AnomalyDetectorStateValue_PENDING_TRAINING = AnomalyDetectorStateValue' "PENDING_TRAINING"++pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue+pattern AnomalyDetectorStateValue_TRAINED = AnomalyDetectorStateValue' "TRAINED"++pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue+pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA = AnomalyDetectorStateValue' "TRAINED_INSUFFICIENT_DATA"++{-# COMPLETE+ AnomalyDetectorStateValue_PENDING_TRAINING,+ AnomalyDetectorStateValue_TRAINED,+ AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA,+ AnomalyDetectorStateValue'+ #-}
+ gen/Amazonka/CloudWatch/Types/AnomalyDetectorType.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.AnomalyDetectorType+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.AnomalyDetectorType+ ( AnomalyDetectorType+ ( ..,+ AnomalyDetectorType_METRIC_MATH,+ AnomalyDetectorType_SINGLE_METRIC+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype AnomalyDetectorType = AnomalyDetectorType'+ { fromAnomalyDetectorType ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern AnomalyDetectorType_METRIC_MATH :: AnomalyDetectorType+pattern AnomalyDetectorType_METRIC_MATH = AnomalyDetectorType' "METRIC_MATH"++pattern AnomalyDetectorType_SINGLE_METRIC :: AnomalyDetectorType+pattern AnomalyDetectorType_SINGLE_METRIC = AnomalyDetectorType' "SINGLE_METRIC"++{-# COMPLETE+ AnomalyDetectorType_METRIC_MATH,+ AnomalyDetectorType_SINGLE_METRIC,+ AnomalyDetectorType'+ #-}
+ gen/Amazonka/CloudWatch/Types/ComparisonOperator.hs view
@@ -0,0 +1,96 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ComparisonOperator+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ComparisonOperator+ ( ComparisonOperator+ ( ..,+ ComparisonOperator_GreaterThanOrEqualToThreshold,+ ComparisonOperator_GreaterThanThreshold,+ ComparisonOperator_GreaterThanUpperThreshold,+ ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold,+ ComparisonOperator_LessThanLowerThreshold,+ ComparisonOperator_LessThanOrEqualToThreshold,+ ComparisonOperator_LessThanThreshold+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ComparisonOperator = ComparisonOperator'+ { fromComparisonOperator ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern ComparisonOperator_GreaterThanOrEqualToThreshold :: ComparisonOperator+pattern ComparisonOperator_GreaterThanOrEqualToThreshold = ComparisonOperator' "GreaterThanOrEqualToThreshold"++pattern ComparisonOperator_GreaterThanThreshold :: ComparisonOperator+pattern ComparisonOperator_GreaterThanThreshold = ComparisonOperator' "GreaterThanThreshold"++pattern ComparisonOperator_GreaterThanUpperThreshold :: ComparisonOperator+pattern ComparisonOperator_GreaterThanUpperThreshold = ComparisonOperator' "GreaterThanUpperThreshold"++pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold :: ComparisonOperator+pattern ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold = ComparisonOperator' "LessThanLowerOrGreaterThanUpperThreshold"++pattern ComparisonOperator_LessThanLowerThreshold :: ComparisonOperator+pattern ComparisonOperator_LessThanLowerThreshold = ComparisonOperator' "LessThanLowerThreshold"++pattern ComparisonOperator_LessThanOrEqualToThreshold :: ComparisonOperator+pattern ComparisonOperator_LessThanOrEqualToThreshold = ComparisonOperator' "LessThanOrEqualToThreshold"++pattern ComparisonOperator_LessThanThreshold :: ComparisonOperator+pattern ComparisonOperator_LessThanThreshold = ComparisonOperator' "LessThanThreshold"++{-# COMPLETE+ ComparisonOperator_GreaterThanOrEqualToThreshold,+ ComparisonOperator_GreaterThanThreshold,+ ComparisonOperator_GreaterThanUpperThreshold,+ ComparisonOperator_LessThanLowerOrGreaterThanUpperThreshold,+ ComparisonOperator_LessThanLowerThreshold,+ ComparisonOperator_LessThanOrEqualToThreshold,+ ComparisonOperator_LessThanThreshold,+ ComparisonOperator'+ #-}
+ gen/Amazonka/CloudWatch/Types/CompositeAlarm.hs view
@@ -0,0 +1,386 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.CompositeAlarm+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.CompositeAlarm where++import Amazonka.CloudWatch.Types.ActionsSuppressedBy+import Amazonka.CloudWatch.Types.StateValue+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The details about a composite alarm.+--+-- /See:/ 'newCompositeAlarm' smart constructor.+data CompositeAlarm = CompositeAlarm'+ { -- | Indicates whether actions should be executed during any changes to the+ -- alarm state.+ actionsEnabled :: Prelude.Maybe Prelude.Bool,+ -- | When the value is @ALARM@, it means that the actions are suppressed+ -- because the suppressor alarm is in @ALARM@ When the value is+ -- @WaitPeriod@, it means that the actions are suppressed because the+ -- composite alarm is waiting for the suppressor alarm to go into into the+ -- @ALARM@ state. The maximum waiting time is as specified in+ -- @ActionsSuppressorWaitPeriod@. After this time, the composite alarm+ -- performs its actions. When the value is @ExtensionPeriod@, it means that+ -- the actions are suppressed because the composite alarm is waiting after+ -- the suppressor alarm went out of the @ALARM@ state. The maximum waiting+ -- time is as specified in @ActionsSuppressorExtensionPeriod@. After this+ -- time, the composite alarm performs its actions.+ actionsSuppressedBy :: Prelude.Maybe ActionsSuppressedBy,+ -- | Captures the reason for action suppression.+ actionsSuppressedReason :: Prelude.Maybe Prelude.Text,+ -- | Actions will be suppressed if the suppressor alarm is in the @ALARM@+ -- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+ -- Name (ARN) from an existing alarm.+ actionsSuppressor :: Prelude.Maybe Prelude.Text,+ -- | The maximum time in seconds that the composite alarm waits after+ -- suppressor alarm goes out of the @ALARM@ state. After this time, the+ -- composite alarm performs its actions.+ --+ -- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+ -- specified.+ actionsSuppressorExtensionPeriod :: Prelude.Maybe Prelude.Int,+ -- | The maximum time in seconds that the composite alarm waits for the+ -- suppressor alarm to go into the @ALARM@ state. After this time, the+ -- composite alarm performs its actions.+ --+ -- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+ actionsSuppressorWaitPeriod :: Prelude.Maybe Prelude.Int,+ -- | The actions to execute when this alarm transitions to the ALARM state+ -- from any other state. Each action is specified as an Amazon Resource+ -- Name (ARN).+ alarmActions :: Prelude.Maybe [Prelude.Text],+ -- | The Amazon Resource Name (ARN) of the alarm.+ alarmArn :: Prelude.Maybe Prelude.Text,+ -- | The time stamp of the last update to the alarm configuration.+ alarmConfigurationUpdatedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | The description of the alarm.+ alarmDescription :: Prelude.Maybe Prelude.Text,+ -- | The name of the alarm.+ alarmName :: Prelude.Maybe Prelude.Text,+ -- | The rule that this alarm uses to evaluate its alarm state.+ alarmRule :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to the+ -- INSUFFICIENT_DATA state from any other state. Each action is specified+ -- as an Amazon Resource Name (ARN).+ insufficientDataActions :: Prelude.Maybe [Prelude.Text],+ -- | The actions to execute when this alarm transitions to the OK state from+ -- any other state. Each action is specified as an Amazon Resource Name+ -- (ARN).+ oKActions :: Prelude.Maybe [Prelude.Text],+ -- | An explanation for the alarm state, in text format.+ stateReason :: Prelude.Maybe Prelude.Text,+ -- | An explanation for the alarm state, in JSON format.+ stateReasonData :: Prelude.Maybe Prelude.Text,+ -- | The timestamp of the last change to the alarm\'s @StateValue@.+ stateTransitionedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | Tracks the timestamp of any state update, even if @StateValue@ doesn\'t+ -- change.+ stateUpdatedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | The state value for the alarm.+ stateValue :: Prelude.Maybe StateValue+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CompositeAlarm' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'actionsEnabled', 'compositeAlarm_actionsEnabled' - Indicates whether actions should be executed during any changes to the+-- alarm state.+--+-- 'actionsSuppressedBy', 'compositeAlarm_actionsSuppressedBy' - When the value is @ALARM@, it means that the actions are suppressed+-- because the suppressor alarm is in @ALARM@ When the value is+-- @WaitPeriod@, it means that the actions are suppressed because the+-- composite alarm is waiting for the suppressor alarm to go into into the+-- @ALARM@ state. The maximum waiting time is as specified in+-- @ActionsSuppressorWaitPeriod@. After this time, the composite alarm+-- performs its actions. When the value is @ExtensionPeriod@, it means that+-- the actions are suppressed because the composite alarm is waiting after+-- the suppressor alarm went out of the @ALARM@ state. The maximum waiting+-- time is as specified in @ActionsSuppressorExtensionPeriod@. After this+-- time, the composite alarm performs its actions.+--+-- 'actionsSuppressedReason', 'compositeAlarm_actionsSuppressedReason' - Captures the reason for action suppression.+--+-- 'actionsSuppressor', 'compositeAlarm_actionsSuppressor' - Actions will be suppressed if the suppressor alarm is in the @ALARM@+-- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+-- Name (ARN) from an existing alarm.+--+-- 'actionsSuppressorExtensionPeriod', 'compositeAlarm_actionsSuppressorExtensionPeriod' - The maximum time in seconds that the composite alarm waits after+-- suppressor alarm goes out of the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+-- specified.+--+-- 'actionsSuppressorWaitPeriod', 'compositeAlarm_actionsSuppressorWaitPeriod' - The maximum time in seconds that the composite alarm waits for the+-- suppressor alarm to go into the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+--+-- 'alarmActions', 'compositeAlarm_alarmActions' - The actions to execute when this alarm transitions to the ALARM state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- 'alarmArn', 'compositeAlarm_alarmArn' - The Amazon Resource Name (ARN) of the alarm.+--+-- 'alarmConfigurationUpdatedTimestamp', 'compositeAlarm_alarmConfigurationUpdatedTimestamp' - The time stamp of the last update to the alarm configuration.+--+-- 'alarmDescription', 'compositeAlarm_alarmDescription' - The description of the alarm.+--+-- 'alarmName', 'compositeAlarm_alarmName' - The name of the alarm.+--+-- 'alarmRule', 'compositeAlarm_alarmRule' - The rule that this alarm uses to evaluate its alarm state.+--+-- 'insufficientDataActions', 'compositeAlarm_insufficientDataActions' - The actions to execute when this alarm transitions to the+-- INSUFFICIENT_DATA state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- 'oKActions', 'compositeAlarm_oKActions' - The actions to execute when this alarm transitions to the OK state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+--+-- 'stateReason', 'compositeAlarm_stateReason' - An explanation for the alarm state, in text format.+--+-- 'stateReasonData', 'compositeAlarm_stateReasonData' - An explanation for the alarm state, in JSON format.+--+-- 'stateTransitionedTimestamp', 'compositeAlarm_stateTransitionedTimestamp' - The timestamp of the last change to the alarm\'s @StateValue@.+--+-- 'stateUpdatedTimestamp', 'compositeAlarm_stateUpdatedTimestamp' - Tracks the timestamp of any state update, even if @StateValue@ doesn\'t+-- change.+--+-- 'stateValue', 'compositeAlarm_stateValue' - The state value for the alarm.+newCompositeAlarm ::+ CompositeAlarm+newCompositeAlarm =+ CompositeAlarm'+ { actionsEnabled = Prelude.Nothing,+ actionsSuppressedBy = Prelude.Nothing,+ actionsSuppressedReason = Prelude.Nothing,+ actionsSuppressor = Prelude.Nothing,+ actionsSuppressorExtensionPeriod = Prelude.Nothing,+ actionsSuppressorWaitPeriod = Prelude.Nothing,+ alarmActions = Prelude.Nothing,+ alarmArn = Prelude.Nothing,+ alarmConfigurationUpdatedTimestamp = Prelude.Nothing,+ alarmDescription = Prelude.Nothing,+ alarmName = Prelude.Nothing,+ alarmRule = Prelude.Nothing,+ insufficientDataActions = Prelude.Nothing,+ oKActions = Prelude.Nothing,+ stateReason = Prelude.Nothing,+ stateReasonData = Prelude.Nothing,+ stateTransitionedTimestamp = Prelude.Nothing,+ stateUpdatedTimestamp = Prelude.Nothing,+ stateValue = Prelude.Nothing+ }++-- | Indicates whether actions should be executed during any changes to the+-- alarm state.+compositeAlarm_actionsEnabled :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Bool)+compositeAlarm_actionsEnabled = Lens.lens (\CompositeAlarm' {actionsEnabled} -> actionsEnabled) (\s@CompositeAlarm' {} a -> s {actionsEnabled = a} :: CompositeAlarm)++-- | When the value is @ALARM@, it means that the actions are suppressed+-- because the suppressor alarm is in @ALARM@ When the value is+-- @WaitPeriod@, it means that the actions are suppressed because the+-- composite alarm is waiting for the suppressor alarm to go into into the+-- @ALARM@ state. The maximum waiting time is as specified in+-- @ActionsSuppressorWaitPeriod@. After this time, the composite alarm+-- performs its actions. When the value is @ExtensionPeriod@, it means that+-- the actions are suppressed because the composite alarm is waiting after+-- the suppressor alarm went out of the @ALARM@ state. The maximum waiting+-- time is as specified in @ActionsSuppressorExtensionPeriod@. After this+-- time, the composite alarm performs its actions.+compositeAlarm_actionsSuppressedBy :: Lens.Lens' CompositeAlarm (Prelude.Maybe ActionsSuppressedBy)+compositeAlarm_actionsSuppressedBy = Lens.lens (\CompositeAlarm' {actionsSuppressedBy} -> actionsSuppressedBy) (\s@CompositeAlarm' {} a -> s {actionsSuppressedBy = a} :: CompositeAlarm)++-- | Captures the reason for action suppression.+compositeAlarm_actionsSuppressedReason :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_actionsSuppressedReason = Lens.lens (\CompositeAlarm' {actionsSuppressedReason} -> actionsSuppressedReason) (\s@CompositeAlarm' {} a -> s {actionsSuppressedReason = a} :: CompositeAlarm)++-- | Actions will be suppressed if the suppressor alarm is in the @ALARM@+-- state. @ActionsSuppressor@ can be an AlarmName or an Amazon Resource+-- Name (ARN) from an existing alarm.+compositeAlarm_actionsSuppressor :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_actionsSuppressor = Lens.lens (\CompositeAlarm' {actionsSuppressor} -> actionsSuppressor) (\s@CompositeAlarm' {} a -> s {actionsSuppressor = a} :: CompositeAlarm)++-- | The maximum time in seconds that the composite alarm waits after+-- suppressor alarm goes out of the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @ExtensionPeriod@ is required only when @ActionsSuppressor@ is+-- specified.+compositeAlarm_actionsSuppressorExtensionPeriod :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Int)+compositeAlarm_actionsSuppressorExtensionPeriod = Lens.lens (\CompositeAlarm' {actionsSuppressorExtensionPeriod} -> actionsSuppressorExtensionPeriod) (\s@CompositeAlarm' {} a -> s {actionsSuppressorExtensionPeriod = a} :: CompositeAlarm)++-- | The maximum time in seconds that the composite alarm waits for the+-- suppressor alarm to go into the @ALARM@ state. After this time, the+-- composite alarm performs its actions.+--+-- @WaitPeriod@ is required only when @ActionsSuppressor@ is specified.+compositeAlarm_actionsSuppressorWaitPeriod :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Int)+compositeAlarm_actionsSuppressorWaitPeriod = Lens.lens (\CompositeAlarm' {actionsSuppressorWaitPeriod} -> actionsSuppressorWaitPeriod) (\s@CompositeAlarm' {} a -> s {actionsSuppressorWaitPeriod = a} :: CompositeAlarm)++-- | The actions to execute when this alarm transitions to the ALARM state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+compositeAlarm_alarmActions :: Lens.Lens' CompositeAlarm (Prelude.Maybe [Prelude.Text])+compositeAlarm_alarmActions = Lens.lens (\CompositeAlarm' {alarmActions} -> alarmActions) (\s@CompositeAlarm' {} a -> s {alarmActions = a} :: CompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The Amazon Resource Name (ARN) of the alarm.+compositeAlarm_alarmArn :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_alarmArn = Lens.lens (\CompositeAlarm' {alarmArn} -> alarmArn) (\s@CompositeAlarm' {} a -> s {alarmArn = a} :: CompositeAlarm)++-- | The time stamp of the last update to the alarm configuration.+compositeAlarm_alarmConfigurationUpdatedTimestamp :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.UTCTime)+compositeAlarm_alarmConfigurationUpdatedTimestamp = Lens.lens (\CompositeAlarm' {alarmConfigurationUpdatedTimestamp} -> alarmConfigurationUpdatedTimestamp) (\s@CompositeAlarm' {} a -> s {alarmConfigurationUpdatedTimestamp = a} :: CompositeAlarm) Prelude.. Lens.mapping Data._Time++-- | The description of the alarm.+compositeAlarm_alarmDescription :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_alarmDescription = Lens.lens (\CompositeAlarm' {alarmDescription} -> alarmDescription) (\s@CompositeAlarm' {} a -> s {alarmDescription = a} :: CompositeAlarm)++-- | The name of the alarm.+compositeAlarm_alarmName :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_alarmName = Lens.lens (\CompositeAlarm' {alarmName} -> alarmName) (\s@CompositeAlarm' {} a -> s {alarmName = a} :: CompositeAlarm)++-- | The rule that this alarm uses to evaluate its alarm state.+compositeAlarm_alarmRule :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_alarmRule = Lens.lens (\CompositeAlarm' {alarmRule} -> alarmRule) (\s@CompositeAlarm' {} a -> s {alarmRule = a} :: CompositeAlarm)++-- | The actions to execute when this alarm transitions to the+-- INSUFFICIENT_DATA state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+compositeAlarm_insufficientDataActions :: Lens.Lens' CompositeAlarm (Prelude.Maybe [Prelude.Text])+compositeAlarm_insufficientDataActions = Lens.lens (\CompositeAlarm' {insufficientDataActions} -> insufficientDataActions) (\s@CompositeAlarm' {} a -> s {insufficientDataActions = a} :: CompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The actions to execute when this alarm transitions to the OK state from+-- any other state. Each action is specified as an Amazon Resource Name+-- (ARN).+compositeAlarm_oKActions :: Lens.Lens' CompositeAlarm (Prelude.Maybe [Prelude.Text])+compositeAlarm_oKActions = Lens.lens (\CompositeAlarm' {oKActions} -> oKActions) (\s@CompositeAlarm' {} a -> s {oKActions = a} :: CompositeAlarm) Prelude.. Lens.mapping Lens.coerced++-- | An explanation for the alarm state, in text format.+compositeAlarm_stateReason :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_stateReason = Lens.lens (\CompositeAlarm' {stateReason} -> stateReason) (\s@CompositeAlarm' {} a -> s {stateReason = a} :: CompositeAlarm)++-- | An explanation for the alarm state, in JSON format.+compositeAlarm_stateReasonData :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.Text)+compositeAlarm_stateReasonData = Lens.lens (\CompositeAlarm' {stateReasonData} -> stateReasonData) (\s@CompositeAlarm' {} a -> s {stateReasonData = a} :: CompositeAlarm)++-- | The timestamp of the last change to the alarm\'s @StateValue@.+compositeAlarm_stateTransitionedTimestamp :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.UTCTime)+compositeAlarm_stateTransitionedTimestamp = Lens.lens (\CompositeAlarm' {stateTransitionedTimestamp} -> stateTransitionedTimestamp) (\s@CompositeAlarm' {} a -> s {stateTransitionedTimestamp = a} :: CompositeAlarm) Prelude.. Lens.mapping Data._Time++-- | Tracks the timestamp of any state update, even if @StateValue@ doesn\'t+-- change.+compositeAlarm_stateUpdatedTimestamp :: Lens.Lens' CompositeAlarm (Prelude.Maybe Prelude.UTCTime)+compositeAlarm_stateUpdatedTimestamp = Lens.lens (\CompositeAlarm' {stateUpdatedTimestamp} -> stateUpdatedTimestamp) (\s@CompositeAlarm' {} a -> s {stateUpdatedTimestamp = a} :: CompositeAlarm) Prelude.. Lens.mapping Data._Time++-- | The state value for the alarm.+compositeAlarm_stateValue :: Lens.Lens' CompositeAlarm (Prelude.Maybe StateValue)+compositeAlarm_stateValue = Lens.lens (\CompositeAlarm' {stateValue} -> stateValue) (\s@CompositeAlarm' {} a -> s {stateValue = a} :: CompositeAlarm)++instance Data.FromXML CompositeAlarm where+ parseXML x =+ CompositeAlarm'+ Prelude.<$> (x Data..@? "ActionsEnabled")+ Prelude.<*> (x Data..@? "ActionsSuppressedBy")+ Prelude.<*> (x Data..@? "ActionsSuppressedReason")+ Prelude.<*> (x Data..@? "ActionsSuppressor")+ Prelude.<*> (x Data..@? "ActionsSuppressorExtensionPeriod")+ Prelude.<*> (x Data..@? "ActionsSuppressorWaitPeriod")+ Prelude.<*> ( x+ Data..@? "AlarmActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "AlarmArn")+ Prelude.<*> (x Data..@? "AlarmConfigurationUpdatedTimestamp")+ Prelude.<*> (x Data..@? "AlarmDescription")+ Prelude.<*> (x Data..@? "AlarmName")+ Prelude.<*> (x Data..@? "AlarmRule")+ Prelude.<*> ( x+ Data..@? "InsufficientDataActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "OKActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "StateReason")+ Prelude.<*> (x Data..@? "StateReasonData")+ Prelude.<*> (x Data..@? "StateTransitionedTimestamp")+ Prelude.<*> (x Data..@? "StateUpdatedTimestamp")+ Prelude.<*> (x Data..@? "StateValue")++instance Prelude.Hashable CompositeAlarm where+ hashWithSalt _salt CompositeAlarm' {..} =+ _salt+ `Prelude.hashWithSalt` actionsEnabled+ `Prelude.hashWithSalt` actionsSuppressedBy+ `Prelude.hashWithSalt` actionsSuppressedReason+ `Prelude.hashWithSalt` actionsSuppressor+ `Prelude.hashWithSalt` actionsSuppressorExtensionPeriod+ `Prelude.hashWithSalt` actionsSuppressorWaitPeriod+ `Prelude.hashWithSalt` alarmActions+ `Prelude.hashWithSalt` alarmArn+ `Prelude.hashWithSalt` alarmConfigurationUpdatedTimestamp+ `Prelude.hashWithSalt` alarmDescription+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` alarmRule+ `Prelude.hashWithSalt` insufficientDataActions+ `Prelude.hashWithSalt` oKActions+ `Prelude.hashWithSalt` stateReason+ `Prelude.hashWithSalt` stateReasonData+ `Prelude.hashWithSalt` stateTransitionedTimestamp+ `Prelude.hashWithSalt` stateUpdatedTimestamp+ `Prelude.hashWithSalt` stateValue++instance Prelude.NFData CompositeAlarm where+ rnf CompositeAlarm' {..} =+ Prelude.rnf actionsEnabled+ `Prelude.seq` Prelude.rnf actionsSuppressedBy+ `Prelude.seq` Prelude.rnf actionsSuppressedReason+ `Prelude.seq` Prelude.rnf actionsSuppressor+ `Prelude.seq` Prelude.rnf actionsSuppressorExtensionPeriod+ `Prelude.seq` Prelude.rnf actionsSuppressorWaitPeriod+ `Prelude.seq` Prelude.rnf alarmActions+ `Prelude.seq` Prelude.rnf alarmArn+ `Prelude.seq` Prelude.rnf alarmConfigurationUpdatedTimestamp+ `Prelude.seq` Prelude.rnf alarmDescription+ `Prelude.seq` Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf alarmRule+ `Prelude.seq` Prelude.rnf insufficientDataActions+ `Prelude.seq` Prelude.rnf oKActions+ `Prelude.seq` Prelude.rnf stateReason+ `Prelude.seq` Prelude.rnf stateReasonData+ `Prelude.seq` Prelude.rnf+ stateTransitionedTimestamp+ `Prelude.seq` Prelude.rnf stateUpdatedTimestamp+ `Prelude.seq` Prelude.rnf stateValue
+ gen/Amazonka/CloudWatch/Types/DashboardEntry.hs view
@@ -0,0 +1,110 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.DashboardEntry+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.DashboardEntry where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Represents a specific dashboard.+--+-- /See:/ 'newDashboardEntry' smart constructor.+data DashboardEntry = DashboardEntry'+ { -- | The Amazon Resource Name (ARN) of the dashboard.+ dashboardArn :: Prelude.Maybe Prelude.Text,+ -- | The name of the dashboard.+ dashboardName :: Prelude.Maybe Prelude.Text,+ -- | The time stamp of when the dashboard was last modified, either by an API+ -- call or through the console. This number is expressed as the number of+ -- milliseconds since Jan 1, 1970 00:00:00 UTC.+ lastModified :: Prelude.Maybe Data.ISO8601,+ -- | The size of the dashboard, in bytes.+ size :: Prelude.Maybe Prelude.Integer+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DashboardEntry' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dashboardArn', 'dashboardEntry_dashboardArn' - The Amazon Resource Name (ARN) of the dashboard.+--+-- 'dashboardName', 'dashboardEntry_dashboardName' - The name of the dashboard.+--+-- 'lastModified', 'dashboardEntry_lastModified' - The time stamp of when the dashboard was last modified, either by an API+-- call or through the console. This number is expressed as the number of+-- milliseconds since Jan 1, 1970 00:00:00 UTC.+--+-- 'size', 'dashboardEntry_size' - The size of the dashboard, in bytes.+newDashboardEntry ::+ DashboardEntry+newDashboardEntry =+ DashboardEntry'+ { dashboardArn = Prelude.Nothing,+ dashboardName = Prelude.Nothing,+ lastModified = Prelude.Nothing,+ size = Prelude.Nothing+ }++-- | The Amazon Resource Name (ARN) of the dashboard.+dashboardEntry_dashboardArn :: Lens.Lens' DashboardEntry (Prelude.Maybe Prelude.Text)+dashboardEntry_dashboardArn = Lens.lens (\DashboardEntry' {dashboardArn} -> dashboardArn) (\s@DashboardEntry' {} a -> s {dashboardArn = a} :: DashboardEntry)++-- | The name of the dashboard.+dashboardEntry_dashboardName :: Lens.Lens' DashboardEntry (Prelude.Maybe Prelude.Text)+dashboardEntry_dashboardName = Lens.lens (\DashboardEntry' {dashboardName} -> dashboardName) (\s@DashboardEntry' {} a -> s {dashboardName = a} :: DashboardEntry)++-- | The time stamp of when the dashboard was last modified, either by an API+-- call or through the console. This number is expressed as the number of+-- milliseconds since Jan 1, 1970 00:00:00 UTC.+dashboardEntry_lastModified :: Lens.Lens' DashboardEntry (Prelude.Maybe Prelude.UTCTime)+dashboardEntry_lastModified = Lens.lens (\DashboardEntry' {lastModified} -> lastModified) (\s@DashboardEntry' {} a -> s {lastModified = a} :: DashboardEntry) Prelude.. Lens.mapping Data._Time++-- | The size of the dashboard, in bytes.+dashboardEntry_size :: Lens.Lens' DashboardEntry (Prelude.Maybe Prelude.Integer)+dashboardEntry_size = Lens.lens (\DashboardEntry' {size} -> size) (\s@DashboardEntry' {} a -> s {size = a} :: DashboardEntry)++instance Data.FromXML DashboardEntry where+ parseXML x =+ DashboardEntry'+ Prelude.<$> (x Data..@? "DashboardArn")+ Prelude.<*> (x Data..@? "DashboardName")+ Prelude.<*> (x Data..@? "LastModified")+ Prelude.<*> (x Data..@? "Size")++instance Prelude.Hashable DashboardEntry where+ hashWithSalt _salt DashboardEntry' {..} =+ _salt+ `Prelude.hashWithSalt` dashboardArn+ `Prelude.hashWithSalt` dashboardName+ `Prelude.hashWithSalt` lastModified+ `Prelude.hashWithSalt` size++instance Prelude.NFData DashboardEntry where+ rnf DashboardEntry' {..} =+ Prelude.rnf dashboardArn+ `Prelude.seq` Prelude.rnf dashboardName+ `Prelude.seq` Prelude.rnf lastModified+ `Prelude.seq` Prelude.rnf size
+ gen/Amazonka/CloudWatch/Types/DashboardValidationMessage.hs view
@@ -0,0 +1,81 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.DashboardValidationMessage+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.DashboardValidationMessage where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | An error or warning for the operation.+--+-- /See:/ 'newDashboardValidationMessage' smart constructor.+data DashboardValidationMessage = DashboardValidationMessage'+ { -- | The data path related to the message.+ dataPath :: Prelude.Maybe Prelude.Text,+ -- | A message describing the error or warning.+ message :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DashboardValidationMessage' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dataPath', 'dashboardValidationMessage_dataPath' - The data path related to the message.+--+-- 'message', 'dashboardValidationMessage_message' - A message describing the error or warning.+newDashboardValidationMessage ::+ DashboardValidationMessage+newDashboardValidationMessage =+ DashboardValidationMessage'+ { dataPath =+ Prelude.Nothing,+ message = Prelude.Nothing+ }++-- | The data path related to the message.+dashboardValidationMessage_dataPath :: Lens.Lens' DashboardValidationMessage (Prelude.Maybe Prelude.Text)+dashboardValidationMessage_dataPath = Lens.lens (\DashboardValidationMessage' {dataPath} -> dataPath) (\s@DashboardValidationMessage' {} a -> s {dataPath = a} :: DashboardValidationMessage)++-- | A message describing the error or warning.+dashboardValidationMessage_message :: Lens.Lens' DashboardValidationMessage (Prelude.Maybe Prelude.Text)+dashboardValidationMessage_message = Lens.lens (\DashboardValidationMessage' {message} -> message) (\s@DashboardValidationMessage' {} a -> s {message = a} :: DashboardValidationMessage)++instance Data.FromXML DashboardValidationMessage where+ parseXML x =+ DashboardValidationMessage'+ Prelude.<$> (x Data..@? "DataPath")+ Prelude.<*> (x Data..@? "Message")++instance Prelude.Hashable DashboardValidationMessage where+ hashWithSalt _salt DashboardValidationMessage' {..} =+ _salt+ `Prelude.hashWithSalt` dataPath+ `Prelude.hashWithSalt` message++instance Prelude.NFData DashboardValidationMessage where+ rnf DashboardValidationMessage' {..} =+ Prelude.rnf dataPath+ `Prelude.seq` Prelude.rnf message
+ gen/Amazonka/CloudWatch/Types/Datapoint.hs view
@@ -0,0 +1,161 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Datapoint+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Datapoint where++import Amazonka.CloudWatch.Types.StandardUnit+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Encapsulates the statistical data that CloudWatch computes from metric+-- data.+--+-- /See:/ 'newDatapoint' smart constructor.+data Datapoint = Datapoint'+ { -- | The average of the metric values that correspond to the data point.+ average :: Prelude.Maybe Prelude.Double,+ -- | The percentile statistic for the data point.+ extendedStatistics :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Double),+ -- | The maximum metric value for the data point.+ maximum :: Prelude.Maybe Prelude.Double,+ -- | The minimum metric value for the data point.+ minimum :: Prelude.Maybe Prelude.Double,+ -- | The number of metric values that contributed to the aggregate value of+ -- this data point.+ sampleCount :: Prelude.Maybe Prelude.Double,+ -- | The sum of the metric values for the data point.+ sum :: Prelude.Maybe Prelude.Double,+ -- | The time stamp used for the data point.+ timestamp :: Prelude.Maybe Data.ISO8601,+ -- | The standard unit for the data point.+ unit :: Prelude.Maybe StandardUnit+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Datapoint' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'average', 'datapoint_average' - The average of the metric values that correspond to the data point.+--+-- 'extendedStatistics', 'datapoint_extendedStatistics' - The percentile statistic for the data point.+--+-- 'maximum', 'datapoint_maximum' - The maximum metric value for the data point.+--+-- 'minimum', 'datapoint_minimum' - The minimum metric value for the data point.+--+-- 'sampleCount', 'datapoint_sampleCount' - The number of metric values that contributed to the aggregate value of+-- this data point.+--+-- 'sum', 'datapoint_sum' - The sum of the metric values for the data point.+--+-- 'timestamp', 'datapoint_timestamp' - The time stamp used for the data point.+--+-- 'unit', 'datapoint_unit' - The standard unit for the data point.+newDatapoint ::+ Datapoint+newDatapoint =+ Datapoint'+ { average = Prelude.Nothing,+ extendedStatistics = Prelude.Nothing,+ maximum = Prelude.Nothing,+ minimum = Prelude.Nothing,+ sampleCount = Prelude.Nothing,+ sum = Prelude.Nothing,+ timestamp = Prelude.Nothing,+ unit = Prelude.Nothing+ }++-- | The average of the metric values that correspond to the data point.+datapoint_average :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.Double)+datapoint_average = Lens.lens (\Datapoint' {average} -> average) (\s@Datapoint' {} a -> s {average = a} :: Datapoint)++-- | The percentile statistic for the data point.+datapoint_extendedStatistics :: Lens.Lens' Datapoint (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Double))+datapoint_extendedStatistics = Lens.lens (\Datapoint' {extendedStatistics} -> extendedStatistics) (\s@Datapoint' {} a -> s {extendedStatistics = a} :: Datapoint) Prelude.. Lens.mapping Lens.coerced++-- | The maximum metric value for the data point.+datapoint_maximum :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.Double)+datapoint_maximum = Lens.lens (\Datapoint' {maximum} -> maximum) (\s@Datapoint' {} a -> s {maximum = a} :: Datapoint)++-- | The minimum metric value for the data point.+datapoint_minimum :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.Double)+datapoint_minimum = Lens.lens (\Datapoint' {minimum} -> minimum) (\s@Datapoint' {} a -> s {minimum = a} :: Datapoint)++-- | The number of metric values that contributed to the aggregate value of+-- this data point.+datapoint_sampleCount :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.Double)+datapoint_sampleCount = Lens.lens (\Datapoint' {sampleCount} -> sampleCount) (\s@Datapoint' {} a -> s {sampleCount = a} :: Datapoint)++-- | The sum of the metric values for the data point.+datapoint_sum :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.Double)+datapoint_sum = Lens.lens (\Datapoint' {sum} -> sum) (\s@Datapoint' {} a -> s {sum = a} :: Datapoint)++-- | The time stamp used for the data point.+datapoint_timestamp :: Lens.Lens' Datapoint (Prelude.Maybe Prelude.UTCTime)+datapoint_timestamp = Lens.lens (\Datapoint' {timestamp} -> timestamp) (\s@Datapoint' {} a -> s {timestamp = a} :: Datapoint) Prelude.. Lens.mapping Data._Time++-- | The standard unit for the data point.+datapoint_unit :: Lens.Lens' Datapoint (Prelude.Maybe StandardUnit)+datapoint_unit = Lens.lens (\Datapoint' {unit} -> unit) (\s@Datapoint' {} a -> s {unit = a} :: Datapoint)++instance Data.FromXML Datapoint where+ parseXML x =+ Datapoint'+ Prelude.<$> (x Data..@? "Average")+ Prelude.<*> ( x+ Data..@? "ExtendedStatistics"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLMap "entry" "key" "value")+ )+ Prelude.<*> (x Data..@? "Maximum")+ Prelude.<*> (x Data..@? "Minimum")+ Prelude.<*> (x Data..@? "SampleCount")+ Prelude.<*> (x Data..@? "Sum")+ Prelude.<*> (x Data..@? "Timestamp")+ Prelude.<*> (x Data..@? "Unit")++instance Prelude.Hashable Datapoint where+ hashWithSalt _salt Datapoint' {..} =+ _salt+ `Prelude.hashWithSalt` average+ `Prelude.hashWithSalt` extendedStatistics+ `Prelude.hashWithSalt` maximum+ `Prelude.hashWithSalt` minimum+ `Prelude.hashWithSalt` sampleCount+ `Prelude.hashWithSalt` sum+ `Prelude.hashWithSalt` timestamp+ `Prelude.hashWithSalt` unit++instance Prelude.NFData Datapoint where+ rnf Datapoint' {..} =+ Prelude.rnf average+ `Prelude.seq` Prelude.rnf extendedStatistics+ `Prelude.seq` Prelude.rnf maximum+ `Prelude.seq` Prelude.rnf minimum+ `Prelude.seq` Prelude.rnf sampleCount+ `Prelude.seq` Prelude.rnf sum+ `Prelude.seq` Prelude.rnf timestamp+ `Prelude.seq` Prelude.rnf unit
+ gen/Amazonka/CloudWatch/Types/Dimension.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Dimension+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Dimension where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A dimension is a name\/value pair that is part of the identity of a+-- metric. Because dimensions are part of the unique identifier for a+-- metric, whenever you add a unique name\/value pair to one of your+-- metrics, you are creating a new variation of that metric. For example,+-- many Amazon EC2 metrics publish @InstanceId@ as a dimension name, and+-- the actual instance ID as the value for that dimension.+--+-- You can assign up to 30 dimensions to a metric.+--+-- /See:/ 'newDimension' smart constructor.+data Dimension = Dimension'+ { -- | The name of the dimension. Dimension names must contain only ASCII+ -- characters, must include at least one non-whitespace character, and+ -- cannot start with a colon (@:@).+ name :: Prelude.Text,+ -- | The value of the dimension. Dimension values must contain only ASCII+ -- characters and must include at least one non-whitespace character.+ value :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Dimension' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'dimension_name' - The name of the dimension. Dimension names must contain only ASCII+-- characters, must include at least one non-whitespace character, and+-- cannot start with a colon (@:@).+--+-- 'value', 'dimension_value' - The value of the dimension. Dimension values must contain only ASCII+-- characters and must include at least one non-whitespace character.+newDimension ::+ -- | 'name'+ Prelude.Text ->+ -- | 'value'+ Prelude.Text ->+ Dimension+newDimension pName_ pValue_ =+ Dimension' {name = pName_, value = pValue_}++-- | The name of the dimension. Dimension names must contain only ASCII+-- characters, must include at least one non-whitespace character, and+-- cannot start with a colon (@:@).+dimension_name :: Lens.Lens' Dimension Prelude.Text+dimension_name = Lens.lens (\Dimension' {name} -> name) (\s@Dimension' {} a -> s {name = a} :: Dimension)++-- | The value of the dimension. Dimension values must contain only ASCII+-- characters and must include at least one non-whitespace character.+dimension_value :: Lens.Lens' Dimension Prelude.Text+dimension_value = Lens.lens (\Dimension' {value} -> value) (\s@Dimension' {} a -> s {value = a} :: Dimension)++instance Data.FromXML Dimension where+ parseXML x =+ Dimension'+ Prelude.<$> (x Data..@ "Name")+ Prelude.<*> (x Data..@ "Value")++instance Prelude.Hashable Dimension where+ hashWithSalt _salt Dimension' {..} =+ _salt+ `Prelude.hashWithSalt` name+ `Prelude.hashWithSalt` value++instance Prelude.NFData Dimension where+ rnf Dimension' {..} =+ Prelude.rnf name `Prelude.seq` Prelude.rnf value++instance Data.ToQuery Dimension where+ toQuery Dimension' {..} =+ Prelude.mconcat+ ["Name" Data.=: name, "Value" Data.=: value]
+ gen/Amazonka/CloudWatch/Types/DimensionFilter.hs view
@@ -0,0 +1,80 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.DimensionFilter+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.DimensionFilter where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Represents filters for a dimension.+--+-- /See:/ 'newDimensionFilter' smart constructor.+data DimensionFilter = DimensionFilter'+ { -- | The value of the dimension to be matched.+ value :: Prelude.Maybe Prelude.Text,+ -- | The dimension name to be matched.+ name :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DimensionFilter' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'value', 'dimensionFilter_value' - The value of the dimension to be matched.+--+-- 'name', 'dimensionFilter_name' - The dimension name to be matched.+newDimensionFilter ::+ -- | 'name'+ Prelude.Text ->+ DimensionFilter+newDimensionFilter pName_ =+ DimensionFilter'+ { value = Prelude.Nothing,+ name = pName_+ }++-- | The value of the dimension to be matched.+dimensionFilter_value :: Lens.Lens' DimensionFilter (Prelude.Maybe Prelude.Text)+dimensionFilter_value = Lens.lens (\DimensionFilter' {value} -> value) (\s@DimensionFilter' {} a -> s {value = a} :: DimensionFilter)++-- | The dimension name to be matched.+dimensionFilter_name :: Lens.Lens' DimensionFilter Prelude.Text+dimensionFilter_name = Lens.lens (\DimensionFilter' {name} -> name) (\s@DimensionFilter' {} a -> s {name = a} :: DimensionFilter)++instance Prelude.Hashable DimensionFilter where+ hashWithSalt _salt DimensionFilter' {..} =+ _salt+ `Prelude.hashWithSalt` value+ `Prelude.hashWithSalt` name++instance Prelude.NFData DimensionFilter where+ rnf DimensionFilter' {..} =+ Prelude.rnf value `Prelude.seq` Prelude.rnf name++instance Data.ToQuery DimensionFilter where+ toQuery DimensionFilter' {..} =+ Prelude.mconcat+ ["Value" Data.=: value, "Name" Data.=: name]
+ gen/Amazonka/CloudWatch/Types/EvaluationState.hs view
@@ -0,0 +1,66 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.EvaluationState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.EvaluationState+ ( EvaluationState+ ( ..,+ EvaluationState_PARTIAL_DATA+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype EvaluationState = EvaluationState'+ { fromEvaluationState ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern EvaluationState_PARTIAL_DATA :: EvaluationState+pattern EvaluationState_PARTIAL_DATA = EvaluationState' "PARTIAL_DATA"++{-# COMPLETE+ EvaluationState_PARTIAL_DATA,+ EvaluationState'+ #-}
+ gen/Amazonka/CloudWatch/Types/HistoryItemType.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.HistoryItemType+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.HistoryItemType+ ( HistoryItemType+ ( ..,+ HistoryItemType_Action,+ HistoryItemType_ConfigurationUpdate,+ HistoryItemType_StateUpdate+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype HistoryItemType = HistoryItemType'+ { fromHistoryItemType ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern HistoryItemType_Action :: HistoryItemType+pattern HistoryItemType_Action = HistoryItemType' "Action"++pattern HistoryItemType_ConfigurationUpdate :: HistoryItemType+pattern HistoryItemType_ConfigurationUpdate = HistoryItemType' "ConfigurationUpdate"++pattern HistoryItemType_StateUpdate :: HistoryItemType+pattern HistoryItemType_StateUpdate = HistoryItemType' "StateUpdate"++{-# COMPLETE+ HistoryItemType_Action,+ HistoryItemType_ConfigurationUpdate,+ HistoryItemType_StateUpdate,+ HistoryItemType'+ #-}
+ gen/Amazonka/CloudWatch/Types/InsightRule.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.InsightRule+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.InsightRule where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure contains the definition for a Contributor Insights rule.+-- For more information about this rule, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html Using Constributor Insights to analyze high-cardinality data>+-- in the /Amazon CloudWatch User Guide/.+--+-- /See:/ 'newInsightRule' smart constructor.+data InsightRule = InsightRule'+ { -- | An optional built-in rule that Amazon Web Services manages.+ managedRule :: Prelude.Maybe Prelude.Bool,+ -- | The name of the rule.+ name :: Prelude.Text,+ -- | Indicates whether the rule is enabled or disabled.+ state :: Prelude.Text,+ -- | For rules that you create, this is always+ -- @{\"Name\": \"CloudWatchLogRule\", \"Version\": 1}@. For managed rules,+ -- this is @{\"Name\": \"ServiceLogRule\", \"Version\": 1}@+ schema :: Prelude.Text,+ -- | The definition of the rule, as a JSON object. The definition contains+ -- the keywords used to define contributors, the value to aggregate on if+ -- this rule returns a sum instead of a count, and the filters. For details+ -- on the valid syntax, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+ definition :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'InsightRule' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'managedRule', 'insightRule_managedRule' - An optional built-in rule that Amazon Web Services manages.+--+-- 'name', 'insightRule_name' - The name of the rule.+--+-- 'state', 'insightRule_state' - Indicates whether the rule is enabled or disabled.+--+-- 'schema', 'insightRule_schema' - For rules that you create, this is always+-- @{\"Name\": \"CloudWatchLogRule\", \"Version\": 1}@. For managed rules,+-- this is @{\"Name\": \"ServiceLogRule\", \"Version\": 1}@+--+-- 'definition', 'insightRule_definition' - The definition of the rule, as a JSON object. The definition contains+-- the keywords used to define contributors, the value to aggregate on if+-- this rule returns a sum instead of a count, and the filters. For details+-- on the valid syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+newInsightRule ::+ -- | 'name'+ Prelude.Text ->+ -- | 'state'+ Prelude.Text ->+ -- | 'schema'+ Prelude.Text ->+ -- | 'definition'+ Prelude.Text ->+ InsightRule+newInsightRule pName_ pState_ pSchema_ pDefinition_ =+ InsightRule'+ { managedRule = Prelude.Nothing,+ name = pName_,+ state = pState_,+ schema = pSchema_,+ definition = pDefinition_+ }++-- | An optional built-in rule that Amazon Web Services manages.+insightRule_managedRule :: Lens.Lens' InsightRule (Prelude.Maybe Prelude.Bool)+insightRule_managedRule = Lens.lens (\InsightRule' {managedRule} -> managedRule) (\s@InsightRule' {} a -> s {managedRule = a} :: InsightRule)++-- | The name of the rule.+insightRule_name :: Lens.Lens' InsightRule Prelude.Text+insightRule_name = Lens.lens (\InsightRule' {name} -> name) (\s@InsightRule' {} a -> s {name = a} :: InsightRule)++-- | Indicates whether the rule is enabled or disabled.+insightRule_state :: Lens.Lens' InsightRule Prelude.Text+insightRule_state = Lens.lens (\InsightRule' {state} -> state) (\s@InsightRule' {} a -> s {state = a} :: InsightRule)++-- | For rules that you create, this is always+-- @{\"Name\": \"CloudWatchLogRule\", \"Version\": 1}@. For managed rules,+-- this is @{\"Name\": \"ServiceLogRule\", \"Version\": 1}@+insightRule_schema :: Lens.Lens' InsightRule Prelude.Text+insightRule_schema = Lens.lens (\InsightRule' {schema} -> schema) (\s@InsightRule' {} a -> s {schema = a} :: InsightRule)++-- | The definition of the rule, as a JSON object. The definition contains+-- the keywords used to define contributors, the value to aggregate on if+-- this rule returns a sum instead of a count, and the filters. For details+-- on the valid syntax, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html Contributor Insights Rule Syntax>.+insightRule_definition :: Lens.Lens' InsightRule Prelude.Text+insightRule_definition = Lens.lens (\InsightRule' {definition} -> definition) (\s@InsightRule' {} a -> s {definition = a} :: InsightRule)++instance Data.FromXML InsightRule where+ parseXML x =+ InsightRule'+ Prelude.<$> (x Data..@? "ManagedRule")+ Prelude.<*> (x Data..@ "Name")+ Prelude.<*> (x Data..@ "State")+ Prelude.<*> (x Data..@ "Schema")+ Prelude.<*> (x Data..@ "Definition")++instance Prelude.Hashable InsightRule where+ hashWithSalt _salt InsightRule' {..} =+ _salt+ `Prelude.hashWithSalt` managedRule+ `Prelude.hashWithSalt` name+ `Prelude.hashWithSalt` state+ `Prelude.hashWithSalt` schema+ `Prelude.hashWithSalt` definition++instance Prelude.NFData InsightRule where+ rnf InsightRule' {..} =+ Prelude.rnf managedRule+ `Prelude.seq` Prelude.rnf name+ `Prelude.seq` Prelude.rnf state+ `Prelude.seq` Prelude.rnf schema+ `Prelude.seq` Prelude.rnf definition
+ gen/Amazonka/CloudWatch/Types/InsightRuleContributor.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.InsightRuleContributor+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.InsightRuleContributor where++import Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | One of the unique contributors found by a Contributor Insights rule. If+-- the rule contains multiple keys, then a unique contributor is a unique+-- combination of values from all the keys in the rule.+--+-- If the rule contains a single key, then each unique contributor is each+-- unique value for this key.+--+-- For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html GetInsightRuleReport>.+--+-- /See:/ 'newInsightRuleContributor' smart constructor.+data InsightRuleContributor = InsightRuleContributor'+ { -- | One of the log entry field keywords that is used to define contributors+ -- for this rule.+ keys :: [Prelude.Text],+ -- | An approximation of the aggregate value that comes from this+ -- contributor.+ approximateAggregateValue :: Prelude.Double,+ -- | An array of the data points where this contributor is present. Only the+ -- data points when this contributor appeared are included in the array.+ datapoints :: [InsightRuleContributorDatapoint]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'InsightRuleContributor' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'keys', 'insightRuleContributor_keys' - One of the log entry field keywords that is used to define contributors+-- for this rule.+--+-- 'approximateAggregateValue', 'insightRuleContributor_approximateAggregateValue' - An approximation of the aggregate value that comes from this+-- contributor.+--+-- 'datapoints', 'insightRuleContributor_datapoints' - An array of the data points where this contributor is present. Only the+-- data points when this contributor appeared are included in the array.+newInsightRuleContributor ::+ -- | 'approximateAggregateValue'+ Prelude.Double ->+ InsightRuleContributor+newInsightRuleContributor pApproximateAggregateValue_ =+ InsightRuleContributor'+ { keys = Prelude.mempty,+ approximateAggregateValue =+ pApproximateAggregateValue_,+ datapoints = Prelude.mempty+ }++-- | One of the log entry field keywords that is used to define contributors+-- for this rule.+insightRuleContributor_keys :: Lens.Lens' InsightRuleContributor [Prelude.Text]+insightRuleContributor_keys = Lens.lens (\InsightRuleContributor' {keys} -> keys) (\s@InsightRuleContributor' {} a -> s {keys = a} :: InsightRuleContributor) Prelude.. Lens.coerced++-- | An approximation of the aggregate value that comes from this+-- contributor.+insightRuleContributor_approximateAggregateValue :: Lens.Lens' InsightRuleContributor Prelude.Double+insightRuleContributor_approximateAggregateValue = Lens.lens (\InsightRuleContributor' {approximateAggregateValue} -> approximateAggregateValue) (\s@InsightRuleContributor' {} a -> s {approximateAggregateValue = a} :: InsightRuleContributor)++-- | An array of the data points where this contributor is present. Only the+-- data points when this contributor appeared are included in the array.+insightRuleContributor_datapoints :: Lens.Lens' InsightRuleContributor [InsightRuleContributorDatapoint]+insightRuleContributor_datapoints = Lens.lens (\InsightRuleContributor' {datapoints} -> datapoints) (\s@InsightRuleContributor' {} a -> s {datapoints = a} :: InsightRuleContributor) Prelude.. Lens.coerced++instance Data.FromXML InsightRuleContributor where+ parseXML x =+ InsightRuleContributor'+ Prelude.<$> ( x+ Data..@? "Keys"+ Core..!@ Prelude.mempty+ Prelude.>>= Data.parseXMLList "member"+ )+ Prelude.<*> (x Data..@ "ApproximateAggregateValue")+ Prelude.<*> ( x+ Data..@? "Datapoints"+ Core..!@ Prelude.mempty+ Prelude.>>= Data.parseXMLList "member"+ )++instance Prelude.Hashable InsightRuleContributor where+ hashWithSalt _salt InsightRuleContributor' {..} =+ _salt+ `Prelude.hashWithSalt` keys+ `Prelude.hashWithSalt` approximateAggregateValue+ `Prelude.hashWithSalt` datapoints++instance Prelude.NFData InsightRuleContributor where+ rnf InsightRuleContributor' {..} =+ Prelude.rnf keys+ `Prelude.seq` Prelude.rnf approximateAggregateValue+ `Prelude.seq` Prelude.rnf datapoints
+ gen/Amazonka/CloudWatch/Types/InsightRuleContributorDatapoint.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.InsightRuleContributorDatapoint where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | One data point related to one contributor.+--+-- For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html GetInsightRuleReport>+-- and+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_InsightRuleContributor.html InsightRuleContributor>.+--+-- /See:/ 'newInsightRuleContributorDatapoint' smart constructor.+data InsightRuleContributorDatapoint = InsightRuleContributorDatapoint'+ { -- | The timestamp of the data point.+ timestamp :: Data.ISO8601,+ -- | The approximate value that this contributor added during this timestamp.+ approximateValue :: Prelude.Double+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'InsightRuleContributorDatapoint' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'timestamp', 'insightRuleContributorDatapoint_timestamp' - The timestamp of the data point.+--+-- 'approximateValue', 'insightRuleContributorDatapoint_approximateValue' - The approximate value that this contributor added during this timestamp.+newInsightRuleContributorDatapoint ::+ -- | 'timestamp'+ Prelude.UTCTime ->+ -- | 'approximateValue'+ Prelude.Double ->+ InsightRuleContributorDatapoint+newInsightRuleContributorDatapoint+ pTimestamp_+ pApproximateValue_ =+ InsightRuleContributorDatapoint'+ { timestamp =+ Data._Time Lens.# pTimestamp_,+ approximateValue = pApproximateValue_+ }++-- | The timestamp of the data point.+insightRuleContributorDatapoint_timestamp :: Lens.Lens' InsightRuleContributorDatapoint Prelude.UTCTime+insightRuleContributorDatapoint_timestamp = Lens.lens (\InsightRuleContributorDatapoint' {timestamp} -> timestamp) (\s@InsightRuleContributorDatapoint' {} a -> s {timestamp = a} :: InsightRuleContributorDatapoint) Prelude.. Data._Time++-- | The approximate value that this contributor added during this timestamp.+insightRuleContributorDatapoint_approximateValue :: Lens.Lens' InsightRuleContributorDatapoint Prelude.Double+insightRuleContributorDatapoint_approximateValue = Lens.lens (\InsightRuleContributorDatapoint' {approximateValue} -> approximateValue) (\s@InsightRuleContributorDatapoint' {} a -> s {approximateValue = a} :: InsightRuleContributorDatapoint)++instance Data.FromXML InsightRuleContributorDatapoint where+ parseXML x =+ InsightRuleContributorDatapoint'+ Prelude.<$> (x Data..@ "Timestamp")+ Prelude.<*> (x Data..@ "ApproximateValue")++instance+ Prelude.Hashable+ InsightRuleContributorDatapoint+ where+ hashWithSalt+ _salt+ InsightRuleContributorDatapoint' {..} =+ _salt+ `Prelude.hashWithSalt` timestamp+ `Prelude.hashWithSalt` approximateValue++instance+ Prelude.NFData+ InsightRuleContributorDatapoint+ where+ rnf InsightRuleContributorDatapoint' {..} =+ Prelude.rnf timestamp+ `Prelude.seq` Prelude.rnf approximateValue
+ gen/Amazonka/CloudWatch/Types/InsightRuleMetricDatapoint.hs view
@@ -0,0 +1,243 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.InsightRuleMetricDatapoint where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | One data point from the metric time series returned in a Contributor+-- Insights rule report.+--+-- For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetInsightRuleReport.html GetInsightRuleReport>.+--+-- /See:/ 'newInsightRuleMetricDatapoint' smart constructor.+data InsightRuleMetricDatapoint = InsightRuleMetricDatapoint'+ { -- | The average value from all contributors during the time period+ -- represented by that data point.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ average :: Prelude.Maybe Prelude.Double,+ -- | The maximum value provided by one contributor during this timestamp.+ -- Each timestamp is evaluated separately, so the identity of the max+ -- contributor could be different for each timestamp.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ maxContributorValue :: Prelude.Maybe Prelude.Double,+ -- | The maximum value from a single occurence from a single contributor+ -- during the time period represented by that data point.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ maximum :: Prelude.Maybe Prelude.Double,+ -- | The minimum value from a single contributor during the time period+ -- represented by that data point.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ minimum :: Prelude.Maybe Prelude.Double,+ -- | The number of occurrences that matched the rule during this data point.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ sampleCount :: Prelude.Maybe Prelude.Double,+ -- | The sum of the values from all contributors during the time period+ -- represented by that data point.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ sum :: Prelude.Maybe Prelude.Double,+ -- | The number of unique contributors who published data during this+ -- timestamp.+ --+ -- This statistic is returned only if you included it in the @Metrics@+ -- array in your request.+ uniqueContributors :: Prelude.Maybe Prelude.Double,+ -- | The timestamp of the data point.+ timestamp :: Data.ISO8601+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'InsightRuleMetricDatapoint' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'average', 'insightRuleMetricDatapoint_average' - The average value from all contributors during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'maxContributorValue', 'insightRuleMetricDatapoint_maxContributorValue' - The maximum value provided by one contributor during this timestamp.+-- Each timestamp is evaluated separately, so the identity of the max+-- contributor could be different for each timestamp.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'maximum', 'insightRuleMetricDatapoint_maximum' - The maximum value from a single occurence from a single contributor+-- during the time period represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'minimum', 'insightRuleMetricDatapoint_minimum' - The minimum value from a single contributor during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'sampleCount', 'insightRuleMetricDatapoint_sampleCount' - The number of occurrences that matched the rule during this data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'sum', 'insightRuleMetricDatapoint_sum' - The sum of the values from all contributors during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'uniqueContributors', 'insightRuleMetricDatapoint_uniqueContributors' - The number of unique contributors who published data during this+-- timestamp.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+--+-- 'timestamp', 'insightRuleMetricDatapoint_timestamp' - The timestamp of the data point.+newInsightRuleMetricDatapoint ::+ -- | 'timestamp'+ Prelude.UTCTime ->+ InsightRuleMetricDatapoint+newInsightRuleMetricDatapoint pTimestamp_ =+ InsightRuleMetricDatapoint'+ { average =+ Prelude.Nothing,+ maxContributorValue = Prelude.Nothing,+ maximum = Prelude.Nothing,+ minimum = Prelude.Nothing,+ sampleCount = Prelude.Nothing,+ sum = Prelude.Nothing,+ uniqueContributors = Prelude.Nothing,+ timestamp = Data._Time Lens.# pTimestamp_+ }++-- | The average value from all contributors during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_average :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_average = Lens.lens (\InsightRuleMetricDatapoint' {average} -> average) (\s@InsightRuleMetricDatapoint' {} a -> s {average = a} :: InsightRuleMetricDatapoint)++-- | The maximum value provided by one contributor during this timestamp.+-- Each timestamp is evaluated separately, so the identity of the max+-- contributor could be different for each timestamp.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_maxContributorValue :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_maxContributorValue = Lens.lens (\InsightRuleMetricDatapoint' {maxContributorValue} -> maxContributorValue) (\s@InsightRuleMetricDatapoint' {} a -> s {maxContributorValue = a} :: InsightRuleMetricDatapoint)++-- | The maximum value from a single occurence from a single contributor+-- during the time period represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_maximum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_maximum = Lens.lens (\InsightRuleMetricDatapoint' {maximum} -> maximum) (\s@InsightRuleMetricDatapoint' {} a -> s {maximum = a} :: InsightRuleMetricDatapoint)++-- | The minimum value from a single contributor during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_minimum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_minimum = Lens.lens (\InsightRuleMetricDatapoint' {minimum} -> minimum) (\s@InsightRuleMetricDatapoint' {} a -> s {minimum = a} :: InsightRuleMetricDatapoint)++-- | The number of occurrences that matched the rule during this data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_sampleCount :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_sampleCount = Lens.lens (\InsightRuleMetricDatapoint' {sampleCount} -> sampleCount) (\s@InsightRuleMetricDatapoint' {} a -> s {sampleCount = a} :: InsightRuleMetricDatapoint)++-- | The sum of the values from all contributors during the time period+-- represented by that data point.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_sum :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_sum = Lens.lens (\InsightRuleMetricDatapoint' {sum} -> sum) (\s@InsightRuleMetricDatapoint' {} a -> s {sum = a} :: InsightRuleMetricDatapoint)++-- | The number of unique contributors who published data during this+-- timestamp.+--+-- This statistic is returned only if you included it in the @Metrics@+-- array in your request.+insightRuleMetricDatapoint_uniqueContributors :: Lens.Lens' InsightRuleMetricDatapoint (Prelude.Maybe Prelude.Double)+insightRuleMetricDatapoint_uniqueContributors = Lens.lens (\InsightRuleMetricDatapoint' {uniqueContributors} -> uniqueContributors) (\s@InsightRuleMetricDatapoint' {} a -> s {uniqueContributors = a} :: InsightRuleMetricDatapoint)++-- | The timestamp of the data point.+insightRuleMetricDatapoint_timestamp :: Lens.Lens' InsightRuleMetricDatapoint Prelude.UTCTime+insightRuleMetricDatapoint_timestamp = Lens.lens (\InsightRuleMetricDatapoint' {timestamp} -> timestamp) (\s@InsightRuleMetricDatapoint' {} a -> s {timestamp = a} :: InsightRuleMetricDatapoint) Prelude.. Data._Time++instance Data.FromXML InsightRuleMetricDatapoint where+ parseXML x =+ InsightRuleMetricDatapoint'+ Prelude.<$> (x Data..@? "Average")+ Prelude.<*> (x Data..@? "MaxContributorValue")+ Prelude.<*> (x Data..@? "Maximum")+ Prelude.<*> (x Data..@? "Minimum")+ Prelude.<*> (x Data..@? "SampleCount")+ Prelude.<*> (x Data..@? "Sum")+ Prelude.<*> (x Data..@? "UniqueContributors")+ Prelude.<*> (x Data..@ "Timestamp")++instance Prelude.Hashable InsightRuleMetricDatapoint where+ hashWithSalt _salt InsightRuleMetricDatapoint' {..} =+ _salt+ `Prelude.hashWithSalt` average+ `Prelude.hashWithSalt` maxContributorValue+ `Prelude.hashWithSalt` maximum+ `Prelude.hashWithSalt` minimum+ `Prelude.hashWithSalt` sampleCount+ `Prelude.hashWithSalt` sum+ `Prelude.hashWithSalt` uniqueContributors+ `Prelude.hashWithSalt` timestamp++instance Prelude.NFData InsightRuleMetricDatapoint where+ rnf InsightRuleMetricDatapoint' {..} =+ Prelude.rnf average+ `Prelude.seq` Prelude.rnf maxContributorValue+ `Prelude.seq` Prelude.rnf maximum+ `Prelude.seq` Prelude.rnf minimum+ `Prelude.seq` Prelude.rnf sampleCount+ `Prelude.seq` Prelude.rnf sum+ `Prelude.seq` Prelude.rnf uniqueContributors+ `Prelude.seq` Prelude.rnf timestamp
+ gen/Amazonka/CloudWatch/Types/LabelOptions.hs view
@@ -0,0 +1,82 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.LabelOptions+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.LabelOptions where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure includes the @Timezone@ parameter, which you can use to+-- specify your time zone so that the labels that are associated with+-- returned metrics display the correct time for your time zone.+--+-- The @Timezone@ value affects a label only if you have a time-based+-- dynamic expression in the label. For more information about dynamic+-- expressions in labels, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html Using Dynamic Labels>.+--+-- /See:/ 'newLabelOptions' smart constructor.+data LabelOptions = LabelOptions'+ { -- | The time zone to use for metric data return in this operation. The+ -- format is @+@ or @-@ followed by four digits. The first two digits+ -- indicate the number of hours ahead or behind of UTC, and the final two+ -- digits are the number of minutes. For example, +0130 indicates a time+ -- zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.+ timezone :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'LabelOptions' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'timezone', 'labelOptions_timezone' - The time zone to use for metric data return in this operation. The+-- format is @+@ or @-@ followed by four digits. The first two digits+-- indicate the number of hours ahead or behind of UTC, and the final two+-- digits are the number of minutes. For example, +0130 indicates a time+-- zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.+newLabelOptions ::+ LabelOptions+newLabelOptions =+ LabelOptions' {timezone = Prelude.Nothing}++-- | The time zone to use for metric data return in this operation. The+-- format is @+@ or @-@ followed by four digits. The first two digits+-- indicate the number of hours ahead or behind of UTC, and the final two+-- digits are the number of minutes. For example, +0130 indicates a time+-- zone that is 1 hour and 30 minutes ahead of UTC. The default is +0000.+labelOptions_timezone :: Lens.Lens' LabelOptions (Prelude.Maybe Prelude.Text)+labelOptions_timezone = Lens.lens (\LabelOptions' {timezone} -> timezone) (\s@LabelOptions' {} a -> s {timezone = a} :: LabelOptions)++instance Prelude.Hashable LabelOptions where+ hashWithSalt _salt LabelOptions' {..} =+ _salt `Prelude.hashWithSalt` timezone++instance Prelude.NFData LabelOptions where+ rnf LabelOptions' {..} = Prelude.rnf timezone++instance Data.ToQuery LabelOptions where+ toQuery LabelOptions' {..} =+ Prelude.mconcat ["Timezone" Data.=: timezone]
+ gen/Amazonka/CloudWatch/Types/ManagedRule.hs view
@@ -0,0 +1,134 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ManagedRule+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ManagedRule where++import Amazonka.CloudWatch.Types.Tag+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains the information that\'s required to enable a managed+-- Contributor Insights rule for an Amazon Web Services resource.+--+-- /See:/ 'newManagedRule' smart constructor.+data ManagedRule = ManagedRule'+ { -- | A list of key-value pairs that you can associate with a managed+ -- Contributor Insights rule. You can associate as many as 50 tags with a+ -- rule. Tags can help you organize and categorize your resources. You also+ -- can use them to scope user permissions by granting a user permission to+ -- access or change only the resources that have certain tag values. To+ -- associate tags with a rule, you must have the @cloudwatch:TagResource@+ -- permission in addition to the @cloudwatch:PutInsightRule@ permission. If+ -- you are using this operation to update an existing Contributor Insights+ -- rule, any tags that you specify in this parameter are ignored. To change+ -- the tags of an existing rule, use @TagResource@.+ tags :: Prelude.Maybe [Tag],+ -- | The template name for the managed Contributor Insights rule, as returned+ -- by @ListManagedInsightRules@.+ templateName :: Prelude.Text,+ -- | The ARN of an Amazon Web Services resource that has managed Contributor+ -- Insights rules.+ resourceARN :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ManagedRule' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tags', 'managedRule_tags' - A list of key-value pairs that you can associate with a managed+-- Contributor Insights rule. You can associate as many as 50 tags with a+-- rule. Tags can help you organize and categorize your resources. You also+-- can use them to scope user permissions by granting a user permission to+-- access or change only the resources that have certain tag values. To+-- associate tags with a rule, you must have the @cloudwatch:TagResource@+-- permission in addition to the @cloudwatch:PutInsightRule@ permission. If+-- you are using this operation to update an existing Contributor Insights+-- rule, any tags that you specify in this parameter are ignored. To change+-- the tags of an existing rule, use @TagResource@.+--+-- 'templateName', 'managedRule_templateName' - The template name for the managed Contributor Insights rule, as returned+-- by @ListManagedInsightRules@.+--+-- 'resourceARN', 'managedRule_resourceARN' - The ARN of an Amazon Web Services resource that has managed Contributor+-- Insights rules.+newManagedRule ::+ -- | 'templateName'+ Prelude.Text ->+ -- | 'resourceARN'+ Prelude.Text ->+ ManagedRule+newManagedRule pTemplateName_ pResourceARN_ =+ ManagedRule'+ { tags = Prelude.Nothing,+ templateName = pTemplateName_,+ resourceARN = pResourceARN_+ }++-- | A list of key-value pairs that you can associate with a managed+-- Contributor Insights rule. You can associate as many as 50 tags with a+-- rule. Tags can help you organize and categorize your resources. You also+-- can use them to scope user permissions by granting a user permission to+-- access or change only the resources that have certain tag values. To+-- associate tags with a rule, you must have the @cloudwatch:TagResource@+-- permission in addition to the @cloudwatch:PutInsightRule@ permission. If+-- you are using this operation to update an existing Contributor Insights+-- rule, any tags that you specify in this parameter are ignored. To change+-- the tags of an existing rule, use @TagResource@.+managedRule_tags :: Lens.Lens' ManagedRule (Prelude.Maybe [Tag])+managedRule_tags = Lens.lens (\ManagedRule' {tags} -> tags) (\s@ManagedRule' {} a -> s {tags = a} :: ManagedRule) Prelude.. Lens.mapping Lens.coerced++-- | The template name for the managed Contributor Insights rule, as returned+-- by @ListManagedInsightRules@.+managedRule_templateName :: Lens.Lens' ManagedRule Prelude.Text+managedRule_templateName = Lens.lens (\ManagedRule' {templateName} -> templateName) (\s@ManagedRule' {} a -> s {templateName = a} :: ManagedRule)++-- | The ARN of an Amazon Web Services resource that has managed Contributor+-- Insights rules.+managedRule_resourceARN :: Lens.Lens' ManagedRule Prelude.Text+managedRule_resourceARN = Lens.lens (\ManagedRule' {resourceARN} -> resourceARN) (\s@ManagedRule' {} a -> s {resourceARN = a} :: ManagedRule)++instance Prelude.Hashable ManagedRule where+ hashWithSalt _salt ManagedRule' {..} =+ _salt+ `Prelude.hashWithSalt` tags+ `Prelude.hashWithSalt` templateName+ `Prelude.hashWithSalt` resourceARN++instance Prelude.NFData ManagedRule where+ rnf ManagedRule' {..} =+ Prelude.rnf tags+ `Prelude.seq` Prelude.rnf templateName+ `Prelude.seq` Prelude.rnf resourceARN++instance Data.ToQuery ManagedRule where+ toQuery ManagedRule' {..} =+ Prelude.mconcat+ [ "Tags"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> tags),+ "TemplateName" Data.=: templateName,+ "ResourceARN" Data.=: resourceARN+ ]
+ gen/Amazonka/CloudWatch/Types/ManagedRuleDescription.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ManagedRuleDescription+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ManagedRuleDescription where++import Amazonka.CloudWatch.Types.ManagedRuleState+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about managed Contributor Insights rules, as+-- returned by @ListManagedInsightRules@.+--+-- /See:/ 'newManagedRuleDescription' smart constructor.+data ManagedRuleDescription = ManagedRuleDescription'+ { -- | If a managed rule is enabled, this is the ARN for the related Amazon Web+ -- Services resource.+ resourceARN :: Prelude.Maybe Prelude.Text,+ -- | Describes the state of a managed rule. If present, it contains+ -- information about the Contributor Insights rule that contains+ -- information about the related Amazon Web Services resource.+ ruleState :: Prelude.Maybe ManagedRuleState,+ -- | The template name for the managed rule. Used to enable managed rules+ -- using @PutManagedInsightRules@.+ templateName :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ManagedRuleDescription' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceARN', 'managedRuleDescription_resourceARN' - If a managed rule is enabled, this is the ARN for the related Amazon Web+-- Services resource.+--+-- 'ruleState', 'managedRuleDescription_ruleState' - Describes the state of a managed rule. If present, it contains+-- information about the Contributor Insights rule that contains+-- information about the related Amazon Web Services resource.+--+-- 'templateName', 'managedRuleDescription_templateName' - The template name for the managed rule. Used to enable managed rules+-- using @PutManagedInsightRules@.+newManagedRuleDescription ::+ ManagedRuleDescription+newManagedRuleDescription =+ ManagedRuleDescription'+ { resourceARN =+ Prelude.Nothing,+ ruleState = Prelude.Nothing,+ templateName = Prelude.Nothing+ }++-- | If a managed rule is enabled, this is the ARN for the related Amazon Web+-- Services resource.+managedRuleDescription_resourceARN :: Lens.Lens' ManagedRuleDescription (Prelude.Maybe Prelude.Text)+managedRuleDescription_resourceARN = Lens.lens (\ManagedRuleDescription' {resourceARN} -> resourceARN) (\s@ManagedRuleDescription' {} a -> s {resourceARN = a} :: ManagedRuleDescription)++-- | Describes the state of a managed rule. If present, it contains+-- information about the Contributor Insights rule that contains+-- information about the related Amazon Web Services resource.+managedRuleDescription_ruleState :: Lens.Lens' ManagedRuleDescription (Prelude.Maybe ManagedRuleState)+managedRuleDescription_ruleState = Lens.lens (\ManagedRuleDescription' {ruleState} -> ruleState) (\s@ManagedRuleDescription' {} a -> s {ruleState = a} :: ManagedRuleDescription)++-- | The template name for the managed rule. Used to enable managed rules+-- using @PutManagedInsightRules@.+managedRuleDescription_templateName :: Lens.Lens' ManagedRuleDescription (Prelude.Maybe Prelude.Text)+managedRuleDescription_templateName = Lens.lens (\ManagedRuleDescription' {templateName} -> templateName) (\s@ManagedRuleDescription' {} a -> s {templateName = a} :: ManagedRuleDescription)++instance Data.FromXML ManagedRuleDescription where+ parseXML x =+ ManagedRuleDescription'+ Prelude.<$> (x Data..@? "ResourceARN")+ Prelude.<*> (x Data..@? "RuleState")+ Prelude.<*> (x Data..@? "TemplateName")++instance Prelude.Hashable ManagedRuleDescription where+ hashWithSalt _salt ManagedRuleDescription' {..} =+ _salt+ `Prelude.hashWithSalt` resourceARN+ `Prelude.hashWithSalt` ruleState+ `Prelude.hashWithSalt` templateName++instance Prelude.NFData ManagedRuleDescription where+ rnf ManagedRuleDescription' {..} =+ Prelude.rnf resourceARN+ `Prelude.seq` Prelude.rnf ruleState+ `Prelude.seq` Prelude.rnf templateName
+ gen/Amazonka/CloudWatch/Types/ManagedRuleState.hs view
@@ -0,0 +1,87 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ManagedRuleState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ManagedRuleState where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The status of a managed Contributor Insights rule.+--+-- /See:/ 'newManagedRuleState' smart constructor.+data ManagedRuleState = ManagedRuleState'+ { -- | The name of the Contributor Insights rule that contains data for the+ -- specified Amazon Web Services resource.+ ruleName :: Prelude.Text,+ -- | Indicates whether the rule is enabled or disabled.+ state :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ManagedRuleState' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'ruleName', 'managedRuleState_ruleName' - The name of the Contributor Insights rule that contains data for the+-- specified Amazon Web Services resource.+--+-- 'state', 'managedRuleState_state' - Indicates whether the rule is enabled or disabled.+newManagedRuleState ::+ -- | 'ruleName'+ Prelude.Text ->+ -- | 'state'+ Prelude.Text ->+ ManagedRuleState+newManagedRuleState pRuleName_ pState_ =+ ManagedRuleState'+ { ruleName = pRuleName_,+ state = pState_+ }++-- | The name of the Contributor Insights rule that contains data for the+-- specified Amazon Web Services resource.+managedRuleState_ruleName :: Lens.Lens' ManagedRuleState Prelude.Text+managedRuleState_ruleName = Lens.lens (\ManagedRuleState' {ruleName} -> ruleName) (\s@ManagedRuleState' {} a -> s {ruleName = a} :: ManagedRuleState)++-- | Indicates whether the rule is enabled or disabled.+managedRuleState_state :: Lens.Lens' ManagedRuleState Prelude.Text+managedRuleState_state = Lens.lens (\ManagedRuleState' {state} -> state) (\s@ManagedRuleState' {} a -> s {state = a} :: ManagedRuleState)++instance Data.FromXML ManagedRuleState where+ parseXML x =+ ManagedRuleState'+ Prelude.<$> (x Data..@ "RuleName")+ Prelude.<*> (x Data..@ "State")++instance Prelude.Hashable ManagedRuleState where+ hashWithSalt _salt ManagedRuleState' {..} =+ _salt+ `Prelude.hashWithSalt` ruleName+ `Prelude.hashWithSalt` state++instance Prelude.NFData ManagedRuleState where+ rnf ManagedRuleState' {..} =+ Prelude.rnf ruleName+ `Prelude.seq` Prelude.rnf state
+ gen/Amazonka/CloudWatch/Types/MessageData.hs view
@@ -0,0 +1,86 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MessageData+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MessageData where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A message returned by the @GetMetricData@API, including a code and a+-- description.+--+-- If a cross-Region @GetMetricData@ operation fails with a code of+-- @Forbidden@ and a value of+-- @Authentication too complex to retrieve cross region data@, you can+-- correct the problem by running the @GetMetricData@ operation in the same+-- Region where the metric data is.+--+-- /See:/ 'newMessageData' smart constructor.+data MessageData = MessageData'+ { -- | The error code or status code associated with the message.+ code :: Prelude.Maybe Prelude.Text,+ -- | The message text.+ value :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MessageData' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'code', 'messageData_code' - The error code or status code associated with the message.+--+-- 'value', 'messageData_value' - The message text.+newMessageData ::+ MessageData+newMessageData =+ MessageData'+ { code = Prelude.Nothing,+ value = Prelude.Nothing+ }++-- | The error code or status code associated with the message.+messageData_code :: Lens.Lens' MessageData (Prelude.Maybe Prelude.Text)+messageData_code = Lens.lens (\MessageData' {code} -> code) (\s@MessageData' {} a -> s {code = a} :: MessageData)++-- | The message text.+messageData_value :: Lens.Lens' MessageData (Prelude.Maybe Prelude.Text)+messageData_value = Lens.lens (\MessageData' {value} -> value) (\s@MessageData' {} a -> s {value = a} :: MessageData)++instance Data.FromXML MessageData where+ parseXML x =+ MessageData'+ Prelude.<$> (x Data..@? "Code")+ Prelude.<*> (x Data..@? "Value")++instance Prelude.Hashable MessageData where+ hashWithSalt _salt MessageData' {..} =+ _salt+ `Prelude.hashWithSalt` code+ `Prelude.hashWithSalt` value++instance Prelude.NFData MessageData where+ rnf MessageData' {..} =+ Prelude.rnf code `Prelude.seq` Prelude.rnf value
+ gen/Amazonka/CloudWatch/Types/Metric.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Metric+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Metric where++import Amazonka.CloudWatch.Types.Dimension+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Represents a specific metric.+--+-- /See:/ 'newMetric' smart constructor.+data Metric = Metric'+ { -- | The dimensions for the metric.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The name of the metric. This is a required field.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The namespace of the metric.+ namespace :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Metric' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'metric_dimensions' - The dimensions for the metric.+--+-- 'metricName', 'metric_metricName' - The name of the metric. This is a required field.+--+-- 'namespace', 'metric_namespace' - The namespace of the metric.+newMetric ::+ Metric+newMetric =+ Metric'+ { dimensions = Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing+ }++-- | The dimensions for the metric.+metric_dimensions :: Lens.Lens' Metric (Prelude.Maybe [Dimension])+metric_dimensions = Lens.lens (\Metric' {dimensions} -> dimensions) (\s@Metric' {} a -> s {dimensions = a} :: Metric) Prelude.. Lens.mapping Lens.coerced++-- | The name of the metric. This is a required field.+metric_metricName :: Lens.Lens' Metric (Prelude.Maybe Prelude.Text)+metric_metricName = Lens.lens (\Metric' {metricName} -> metricName) (\s@Metric' {} a -> s {metricName = a} :: Metric)++-- | The namespace of the metric.+metric_namespace :: Lens.Lens' Metric (Prelude.Maybe Prelude.Text)+metric_namespace = Lens.lens (\Metric' {namespace} -> namespace) (\s@Metric' {} a -> s {namespace = a} :: Metric)++instance Data.FromXML Metric where+ parseXML x =+ Metric'+ Prelude.<$> ( x+ Data..@? "Dimensions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "MetricName")+ Prelude.<*> (x Data..@? "Namespace")++instance Prelude.Hashable Metric where+ hashWithSalt _salt Metric' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace++instance Prelude.NFData Metric where+ rnf Metric' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace++instance Data.ToQuery Metric where+ toQuery Metric' {..} =+ Prelude.mconcat+ [ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace+ ]
+ gen/Amazonka/CloudWatch/Types/MetricAlarm.hs view
@@ -0,0 +1,531 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricAlarm+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricAlarm where++import Amazonka.CloudWatch.Types.ComparisonOperator+import Amazonka.CloudWatch.Types.Dimension+import Amazonka.CloudWatch.Types.EvaluationState+import Amazonka.CloudWatch.Types.MetricDataQuery+import Amazonka.CloudWatch.Types.StandardUnit+import Amazonka.CloudWatch.Types.StateValue+import Amazonka.CloudWatch.Types.Statistic+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The details about a metric alarm.+--+-- /See:/ 'newMetricAlarm' smart constructor.+data MetricAlarm = MetricAlarm'+ { -- | Indicates whether actions should be executed during any changes to the+ -- alarm state.+ actionsEnabled :: Prelude.Maybe Prelude.Bool,+ -- | The actions to execute when this alarm transitions to the @ALARM@ state+ -- from any other state. Each action is specified as an Amazon Resource+ -- Name (ARN).+ alarmActions :: Prelude.Maybe [Prelude.Text],+ -- | The Amazon Resource Name (ARN) of the alarm.+ alarmArn :: Prelude.Maybe Prelude.Text,+ -- | The time stamp of the last update to the alarm configuration.+ alarmConfigurationUpdatedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | The description of the alarm.+ alarmDescription :: Prelude.Maybe Prelude.Text,+ -- | The name of the alarm.+ alarmName :: Prelude.Maybe Prelude.Text,+ -- | The arithmetic operation to use when comparing the specified statistic+ -- and threshold. The specified statistic value is used as the first+ -- operand.+ comparisonOperator :: Prelude.Maybe ComparisonOperator,+ -- | The number of data points that must be breaching to trigger the alarm.+ datapointsToAlarm :: Prelude.Maybe Prelude.Natural,+ -- | The dimensions for the metric associated with the alarm.+ dimensions :: Prelude.Maybe [Dimension],+ -- | Used only for alarms based on percentiles. If @ignore@, the alarm state+ -- does not change during periods with too few data points to be+ -- statistically significant. If @evaluate@ or this parameter is not used,+ -- the alarm is always evaluated and possibly changes state no matter how+ -- many data points are available.+ evaluateLowSampleCountPercentile :: Prelude.Maybe Prelude.Text,+ -- | The number of periods over which data is compared to the specified+ -- threshold.+ evaluationPeriods :: Prelude.Maybe Prelude.Natural,+ -- | If the value of this field is @PARTIAL_DATA@, the alarm is being+ -- evaluated based on only partial data. This happens if the query used for+ -- the alarm returns more than 10,000 metrics. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html Create alarms on Metrics Insights queries>.+ evaluationState :: Prelude.Maybe EvaluationState,+ -- | The percentile statistic for the metric associated with the alarm.+ -- Specify a value between p0.0 and p100.+ extendedStatistic :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to the+ -- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+ -- as an Amazon Resource Name (ARN).+ insufficientDataActions :: Prelude.Maybe [Prelude.Text],+ -- | The name of the metric associated with the alarm, if this is an alarm+ -- based on a single metric.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | An array of MetricDataQuery structures, used in an alarm based on a+ -- metric math expression. Each structure either retrieves a metric or+ -- performs a math expression. One item in the Metrics array is the math+ -- expression that the alarm watches. This expression by designated by+ -- having @ReturnData@ set to true.+ metrics :: Prelude.Maybe [MetricDataQuery],+ -- | The namespace of the metric associated with the alarm.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | The actions to execute when this alarm transitions to the @OK@ state+ -- from any other state. Each action is specified as an Amazon Resource+ -- Name (ARN).+ oKActions :: Prelude.Maybe [Prelude.Text],+ -- | The period, in seconds, over which the statistic is applied.+ period :: Prelude.Maybe Prelude.Natural,+ -- | An explanation for the alarm state, in text format.+ stateReason :: Prelude.Maybe Prelude.Text,+ -- | An explanation for the alarm state, in JSON format.+ stateReasonData :: Prelude.Maybe Prelude.Text,+ -- | The date and time that the alarm\'s @StateValue@ most recently changed.+ stateTransitionedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | The time stamp of the last update to the value of either the+ -- @StateValue@ or @EvaluationState@ parameters.+ stateUpdatedTimestamp :: Prelude.Maybe Data.ISO8601,+ -- | The state value for the alarm.+ stateValue :: Prelude.Maybe StateValue,+ -- | The statistic for the metric associated with the alarm, other than+ -- percentile. For percentile statistics, use @ExtendedStatistic@.+ statistic :: Prelude.Maybe Statistic,+ -- | The value to compare with the specified statistic.+ threshold :: Prelude.Maybe Prelude.Double,+ -- | In an alarm based on an anomaly detection model, this is the ID of the+ -- @ANOMALY_DETECTION_BAND@ function used as the threshold for the alarm.+ thresholdMetricId :: Prelude.Maybe Prelude.Text,+ -- | Sets how this alarm is to handle missing data points. The valid values+ -- are @breaching@, @notBreaching@, @ignore@, and @missing@. For more+ -- information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring how CloudWatch alarms treat missing data>.+ --+ -- If this parameter is omitted, the default behavior of @missing@ is used.+ treatMissingData :: Prelude.Maybe Prelude.Text,+ -- | The unit of the metric associated with the alarm.+ unit :: Prelude.Maybe StandardUnit+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricAlarm' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'actionsEnabled', 'metricAlarm_actionsEnabled' - Indicates whether actions should be executed during any changes to the+-- alarm state.+--+-- 'alarmActions', 'metricAlarm_alarmActions' - The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- 'alarmArn', 'metricAlarm_alarmArn' - The Amazon Resource Name (ARN) of the alarm.+--+-- 'alarmConfigurationUpdatedTimestamp', 'metricAlarm_alarmConfigurationUpdatedTimestamp' - The time stamp of the last update to the alarm configuration.+--+-- 'alarmDescription', 'metricAlarm_alarmDescription' - The description of the alarm.+--+-- 'alarmName', 'metricAlarm_alarmName' - The name of the alarm.+--+-- 'comparisonOperator', 'metricAlarm_comparisonOperator' - The arithmetic operation to use when comparing the specified statistic+-- and threshold. The specified statistic value is used as the first+-- operand.+--+-- 'datapointsToAlarm', 'metricAlarm_datapointsToAlarm' - The number of data points that must be breaching to trigger the alarm.+--+-- 'dimensions', 'metricAlarm_dimensions' - The dimensions for the metric associated with the alarm.+--+-- 'evaluateLowSampleCountPercentile', 'metricAlarm_evaluateLowSampleCountPercentile' - Used only for alarms based on percentiles. If @ignore@, the alarm state+-- does not change during periods with too few data points to be+-- statistically significant. If @evaluate@ or this parameter is not used,+-- the alarm is always evaluated and possibly changes state no matter how+-- many data points are available.+--+-- 'evaluationPeriods', 'metricAlarm_evaluationPeriods' - The number of periods over which data is compared to the specified+-- threshold.+--+-- 'evaluationState', 'metricAlarm_evaluationState' - If the value of this field is @PARTIAL_DATA@, the alarm is being+-- evaluated based on only partial data. This happens if the query used for+-- the alarm returns more than 10,000 metrics. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html Create alarms on Metrics Insights queries>.+--+-- 'extendedStatistic', 'metricAlarm_extendedStatistic' - The percentile statistic for the metric associated with the alarm.+-- Specify a value between p0.0 and p100.+--+-- 'insufficientDataActions', 'metricAlarm_insufficientDataActions' - The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+--+-- 'metricName', 'metricAlarm_metricName' - The name of the metric associated with the alarm, if this is an alarm+-- based on a single metric.+--+-- 'metrics', 'metricAlarm_metrics' - An array of MetricDataQuery structures, used in an alarm based on a+-- metric math expression. Each structure either retrieves a metric or+-- performs a math expression. One item in the Metrics array is the math+-- expression that the alarm watches. This expression by designated by+-- having @ReturnData@ set to true.+--+-- 'namespace', 'metricAlarm_namespace' - The namespace of the metric associated with the alarm.+--+-- 'oKActions', 'metricAlarm_oKActions' - The actions to execute when this alarm transitions to the @OK@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+--+-- 'period', 'metricAlarm_period' - The period, in seconds, over which the statistic is applied.+--+-- 'stateReason', 'metricAlarm_stateReason' - An explanation for the alarm state, in text format.+--+-- 'stateReasonData', 'metricAlarm_stateReasonData' - An explanation for the alarm state, in JSON format.+--+-- 'stateTransitionedTimestamp', 'metricAlarm_stateTransitionedTimestamp' - The date and time that the alarm\'s @StateValue@ most recently changed.+--+-- 'stateUpdatedTimestamp', 'metricAlarm_stateUpdatedTimestamp' - The time stamp of the last update to the value of either the+-- @StateValue@ or @EvaluationState@ parameters.+--+-- 'stateValue', 'metricAlarm_stateValue' - The state value for the alarm.+--+-- 'statistic', 'metricAlarm_statistic' - The statistic for the metric associated with the alarm, other than+-- percentile. For percentile statistics, use @ExtendedStatistic@.+--+-- 'threshold', 'metricAlarm_threshold' - The value to compare with the specified statistic.+--+-- 'thresholdMetricId', 'metricAlarm_thresholdMetricId' - In an alarm based on an anomaly detection model, this is the ID of the+-- @ANOMALY_DETECTION_BAND@ function used as the threshold for the alarm.+--+-- 'treatMissingData', 'metricAlarm_treatMissingData' - Sets how this alarm is to handle missing data points. The valid values+-- are @breaching@, @notBreaching@, @ignore@, and @missing@. For more+-- information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring how CloudWatch alarms treat missing data>.+--+-- If this parameter is omitted, the default behavior of @missing@ is used.+--+-- 'unit', 'metricAlarm_unit' - The unit of the metric associated with the alarm.+newMetricAlarm ::+ MetricAlarm+newMetricAlarm =+ MetricAlarm'+ { actionsEnabled = Prelude.Nothing,+ alarmActions = Prelude.Nothing,+ alarmArn = Prelude.Nothing,+ alarmConfigurationUpdatedTimestamp = Prelude.Nothing,+ alarmDescription = Prelude.Nothing,+ alarmName = Prelude.Nothing,+ comparisonOperator = Prelude.Nothing,+ datapointsToAlarm = Prelude.Nothing,+ dimensions = Prelude.Nothing,+ evaluateLowSampleCountPercentile = Prelude.Nothing,+ evaluationPeriods = Prelude.Nothing,+ evaluationState = Prelude.Nothing,+ extendedStatistic = Prelude.Nothing,+ insufficientDataActions = Prelude.Nothing,+ metricName = Prelude.Nothing,+ metrics = Prelude.Nothing,+ namespace = Prelude.Nothing,+ oKActions = Prelude.Nothing,+ period = Prelude.Nothing,+ stateReason = Prelude.Nothing,+ stateReasonData = Prelude.Nothing,+ stateTransitionedTimestamp = Prelude.Nothing,+ stateUpdatedTimestamp = Prelude.Nothing,+ stateValue = Prelude.Nothing,+ statistic = Prelude.Nothing,+ threshold = Prelude.Nothing,+ thresholdMetricId = Prelude.Nothing,+ treatMissingData = Prelude.Nothing,+ unit = Prelude.Nothing+ }++-- | Indicates whether actions should be executed during any changes to the+-- alarm state.+metricAlarm_actionsEnabled :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Bool)+metricAlarm_actionsEnabled = Lens.lens (\MetricAlarm' {actionsEnabled} -> actionsEnabled) (\s@MetricAlarm' {} a -> s {actionsEnabled = a} :: MetricAlarm)++-- | The actions to execute when this alarm transitions to the @ALARM@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+metricAlarm_alarmActions :: Lens.Lens' MetricAlarm (Prelude.Maybe [Prelude.Text])+metricAlarm_alarmActions = Lens.lens (\MetricAlarm' {alarmActions} -> alarmActions) (\s@MetricAlarm' {} a -> s {alarmActions = a} :: MetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The Amazon Resource Name (ARN) of the alarm.+metricAlarm_alarmArn :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_alarmArn = Lens.lens (\MetricAlarm' {alarmArn} -> alarmArn) (\s@MetricAlarm' {} a -> s {alarmArn = a} :: MetricAlarm)++-- | The time stamp of the last update to the alarm configuration.+metricAlarm_alarmConfigurationUpdatedTimestamp :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.UTCTime)+metricAlarm_alarmConfigurationUpdatedTimestamp = Lens.lens (\MetricAlarm' {alarmConfigurationUpdatedTimestamp} -> alarmConfigurationUpdatedTimestamp) (\s@MetricAlarm' {} a -> s {alarmConfigurationUpdatedTimestamp = a} :: MetricAlarm) Prelude.. Lens.mapping Data._Time++-- | The description of the alarm.+metricAlarm_alarmDescription :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_alarmDescription = Lens.lens (\MetricAlarm' {alarmDescription} -> alarmDescription) (\s@MetricAlarm' {} a -> s {alarmDescription = a} :: MetricAlarm)++-- | The name of the alarm.+metricAlarm_alarmName :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_alarmName = Lens.lens (\MetricAlarm' {alarmName} -> alarmName) (\s@MetricAlarm' {} a -> s {alarmName = a} :: MetricAlarm)++-- | The arithmetic operation to use when comparing the specified statistic+-- and threshold. The specified statistic value is used as the first+-- operand.+metricAlarm_comparisonOperator :: Lens.Lens' MetricAlarm (Prelude.Maybe ComparisonOperator)+metricAlarm_comparisonOperator = Lens.lens (\MetricAlarm' {comparisonOperator} -> comparisonOperator) (\s@MetricAlarm' {} a -> s {comparisonOperator = a} :: MetricAlarm)++-- | The number of data points that must be breaching to trigger the alarm.+metricAlarm_datapointsToAlarm :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Natural)+metricAlarm_datapointsToAlarm = Lens.lens (\MetricAlarm' {datapointsToAlarm} -> datapointsToAlarm) (\s@MetricAlarm' {} a -> s {datapointsToAlarm = a} :: MetricAlarm)++-- | The dimensions for the metric associated with the alarm.+metricAlarm_dimensions :: Lens.Lens' MetricAlarm (Prelude.Maybe [Dimension])+metricAlarm_dimensions = Lens.lens (\MetricAlarm' {dimensions} -> dimensions) (\s@MetricAlarm' {} a -> s {dimensions = a} :: MetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | Used only for alarms based on percentiles. If @ignore@, the alarm state+-- does not change during periods with too few data points to be+-- statistically significant. If @evaluate@ or this parameter is not used,+-- the alarm is always evaluated and possibly changes state no matter how+-- many data points are available.+metricAlarm_evaluateLowSampleCountPercentile :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_evaluateLowSampleCountPercentile = Lens.lens (\MetricAlarm' {evaluateLowSampleCountPercentile} -> evaluateLowSampleCountPercentile) (\s@MetricAlarm' {} a -> s {evaluateLowSampleCountPercentile = a} :: MetricAlarm)++-- | The number of periods over which data is compared to the specified+-- threshold.+metricAlarm_evaluationPeriods :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Natural)+metricAlarm_evaluationPeriods = Lens.lens (\MetricAlarm' {evaluationPeriods} -> evaluationPeriods) (\s@MetricAlarm' {} a -> s {evaluationPeriods = a} :: MetricAlarm)++-- | If the value of this field is @PARTIAL_DATA@, the alarm is being+-- evaluated based on only partial data. This happens if the query used for+-- the alarm returns more than 10,000 metrics. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html Create alarms on Metrics Insights queries>.+metricAlarm_evaluationState :: Lens.Lens' MetricAlarm (Prelude.Maybe EvaluationState)+metricAlarm_evaluationState = Lens.lens (\MetricAlarm' {evaluationState} -> evaluationState) (\s@MetricAlarm' {} a -> s {evaluationState = a} :: MetricAlarm)++-- | The percentile statistic for the metric associated with the alarm.+-- Specify a value between p0.0 and p100.+metricAlarm_extendedStatistic :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_extendedStatistic = Lens.lens (\MetricAlarm' {extendedStatistic} -> extendedStatistic) (\s@MetricAlarm' {} a -> s {extendedStatistic = a} :: MetricAlarm)++-- | The actions to execute when this alarm transitions to the+-- @INSUFFICIENT_DATA@ state from any other state. Each action is specified+-- as an Amazon Resource Name (ARN).+metricAlarm_insufficientDataActions :: Lens.Lens' MetricAlarm (Prelude.Maybe [Prelude.Text])+metricAlarm_insufficientDataActions = Lens.lens (\MetricAlarm' {insufficientDataActions} -> insufficientDataActions) (\s@MetricAlarm' {} a -> s {insufficientDataActions = a} :: MetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The name of the metric associated with the alarm, if this is an alarm+-- based on a single metric.+metricAlarm_metricName :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_metricName = Lens.lens (\MetricAlarm' {metricName} -> metricName) (\s@MetricAlarm' {} a -> s {metricName = a} :: MetricAlarm)++-- | An array of MetricDataQuery structures, used in an alarm based on a+-- metric math expression. Each structure either retrieves a metric or+-- performs a math expression. One item in the Metrics array is the math+-- expression that the alarm watches. This expression by designated by+-- having @ReturnData@ set to true.+metricAlarm_metrics :: Lens.Lens' MetricAlarm (Prelude.Maybe [MetricDataQuery])+metricAlarm_metrics = Lens.lens (\MetricAlarm' {metrics} -> metrics) (\s@MetricAlarm' {} a -> s {metrics = a} :: MetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The namespace of the metric associated with the alarm.+metricAlarm_namespace :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_namespace = Lens.lens (\MetricAlarm' {namespace} -> namespace) (\s@MetricAlarm' {} a -> s {namespace = a} :: MetricAlarm)++-- | The actions to execute when this alarm transitions to the @OK@ state+-- from any other state. Each action is specified as an Amazon Resource+-- Name (ARN).+metricAlarm_oKActions :: Lens.Lens' MetricAlarm (Prelude.Maybe [Prelude.Text])+metricAlarm_oKActions = Lens.lens (\MetricAlarm' {oKActions} -> oKActions) (\s@MetricAlarm' {} a -> s {oKActions = a} :: MetricAlarm) Prelude.. Lens.mapping Lens.coerced++-- | The period, in seconds, over which the statistic is applied.+metricAlarm_period :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Natural)+metricAlarm_period = Lens.lens (\MetricAlarm' {period} -> period) (\s@MetricAlarm' {} a -> s {period = a} :: MetricAlarm)++-- | An explanation for the alarm state, in text format.+metricAlarm_stateReason :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_stateReason = Lens.lens (\MetricAlarm' {stateReason} -> stateReason) (\s@MetricAlarm' {} a -> s {stateReason = a} :: MetricAlarm)++-- | An explanation for the alarm state, in JSON format.+metricAlarm_stateReasonData :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_stateReasonData = Lens.lens (\MetricAlarm' {stateReasonData} -> stateReasonData) (\s@MetricAlarm' {} a -> s {stateReasonData = a} :: MetricAlarm)++-- | The date and time that the alarm\'s @StateValue@ most recently changed.+metricAlarm_stateTransitionedTimestamp :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.UTCTime)+metricAlarm_stateTransitionedTimestamp = Lens.lens (\MetricAlarm' {stateTransitionedTimestamp} -> stateTransitionedTimestamp) (\s@MetricAlarm' {} a -> s {stateTransitionedTimestamp = a} :: MetricAlarm) Prelude.. Lens.mapping Data._Time++-- | The time stamp of the last update to the value of either the+-- @StateValue@ or @EvaluationState@ parameters.+metricAlarm_stateUpdatedTimestamp :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.UTCTime)+metricAlarm_stateUpdatedTimestamp = Lens.lens (\MetricAlarm' {stateUpdatedTimestamp} -> stateUpdatedTimestamp) (\s@MetricAlarm' {} a -> s {stateUpdatedTimestamp = a} :: MetricAlarm) Prelude.. Lens.mapping Data._Time++-- | The state value for the alarm.+metricAlarm_stateValue :: Lens.Lens' MetricAlarm (Prelude.Maybe StateValue)+metricAlarm_stateValue = Lens.lens (\MetricAlarm' {stateValue} -> stateValue) (\s@MetricAlarm' {} a -> s {stateValue = a} :: MetricAlarm)++-- | The statistic for the metric associated with the alarm, other than+-- percentile. For percentile statistics, use @ExtendedStatistic@.+metricAlarm_statistic :: Lens.Lens' MetricAlarm (Prelude.Maybe Statistic)+metricAlarm_statistic = Lens.lens (\MetricAlarm' {statistic} -> statistic) (\s@MetricAlarm' {} a -> s {statistic = a} :: MetricAlarm)++-- | The value to compare with the specified statistic.+metricAlarm_threshold :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Double)+metricAlarm_threshold = Lens.lens (\MetricAlarm' {threshold} -> threshold) (\s@MetricAlarm' {} a -> s {threshold = a} :: MetricAlarm)++-- | In an alarm based on an anomaly detection model, this is the ID of the+-- @ANOMALY_DETECTION_BAND@ function used as the threshold for the alarm.+metricAlarm_thresholdMetricId :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_thresholdMetricId = Lens.lens (\MetricAlarm' {thresholdMetricId} -> thresholdMetricId) (\s@MetricAlarm' {} a -> s {thresholdMetricId = a} :: MetricAlarm)++-- | Sets how this alarm is to handle missing data points. The valid values+-- are @breaching@, @notBreaching@, @ignore@, and @missing@. For more+-- information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring how CloudWatch alarms treat missing data>.+--+-- If this parameter is omitted, the default behavior of @missing@ is used.+metricAlarm_treatMissingData :: Lens.Lens' MetricAlarm (Prelude.Maybe Prelude.Text)+metricAlarm_treatMissingData = Lens.lens (\MetricAlarm' {treatMissingData} -> treatMissingData) (\s@MetricAlarm' {} a -> s {treatMissingData = a} :: MetricAlarm)++-- | The unit of the metric associated with the alarm.+metricAlarm_unit :: Lens.Lens' MetricAlarm (Prelude.Maybe StandardUnit)+metricAlarm_unit = Lens.lens (\MetricAlarm' {unit} -> unit) (\s@MetricAlarm' {} a -> s {unit = a} :: MetricAlarm)++instance Data.FromXML MetricAlarm where+ parseXML x =+ MetricAlarm'+ Prelude.<$> (x Data..@? "ActionsEnabled")+ Prelude.<*> ( x+ Data..@? "AlarmActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "AlarmArn")+ Prelude.<*> (x Data..@? "AlarmConfigurationUpdatedTimestamp")+ Prelude.<*> (x Data..@? "AlarmDescription")+ Prelude.<*> (x Data..@? "AlarmName")+ Prelude.<*> (x Data..@? "ComparisonOperator")+ Prelude.<*> (x Data..@? "DatapointsToAlarm")+ Prelude.<*> ( x+ Data..@? "Dimensions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "EvaluateLowSampleCountPercentile")+ Prelude.<*> (x Data..@? "EvaluationPeriods")+ Prelude.<*> (x Data..@? "EvaluationState")+ Prelude.<*> (x Data..@? "ExtendedStatistic")+ Prelude.<*> ( x+ Data..@? "InsufficientDataActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "MetricName")+ Prelude.<*> ( x+ Data..@? "Metrics"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "Namespace")+ Prelude.<*> ( x+ Data..@? "OKActions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "Period")+ Prelude.<*> (x Data..@? "StateReason")+ Prelude.<*> (x Data..@? "StateReasonData")+ Prelude.<*> (x Data..@? "StateTransitionedTimestamp")+ Prelude.<*> (x Data..@? "StateUpdatedTimestamp")+ Prelude.<*> (x Data..@? "StateValue")+ Prelude.<*> (x Data..@? "Statistic")+ Prelude.<*> (x Data..@? "Threshold")+ Prelude.<*> (x Data..@? "ThresholdMetricId")+ Prelude.<*> (x Data..@? "TreatMissingData")+ Prelude.<*> (x Data..@? "Unit")++instance Prelude.Hashable MetricAlarm where+ hashWithSalt _salt MetricAlarm' {..} =+ _salt+ `Prelude.hashWithSalt` actionsEnabled+ `Prelude.hashWithSalt` alarmActions+ `Prelude.hashWithSalt` alarmArn+ `Prelude.hashWithSalt` alarmConfigurationUpdatedTimestamp+ `Prelude.hashWithSalt` alarmDescription+ `Prelude.hashWithSalt` alarmName+ `Prelude.hashWithSalt` comparisonOperator+ `Prelude.hashWithSalt` datapointsToAlarm+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` evaluateLowSampleCountPercentile+ `Prelude.hashWithSalt` evaluationPeriods+ `Prelude.hashWithSalt` evaluationState+ `Prelude.hashWithSalt` extendedStatistic+ `Prelude.hashWithSalt` insufficientDataActions+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` metrics+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` oKActions+ `Prelude.hashWithSalt` period+ `Prelude.hashWithSalt` stateReason+ `Prelude.hashWithSalt` stateReasonData+ `Prelude.hashWithSalt` stateTransitionedTimestamp+ `Prelude.hashWithSalt` stateUpdatedTimestamp+ `Prelude.hashWithSalt` stateValue+ `Prelude.hashWithSalt` statistic+ `Prelude.hashWithSalt` threshold+ `Prelude.hashWithSalt` thresholdMetricId+ `Prelude.hashWithSalt` treatMissingData+ `Prelude.hashWithSalt` unit++instance Prelude.NFData MetricAlarm where+ rnf MetricAlarm' {..} =+ Prelude.rnf actionsEnabled+ `Prelude.seq` Prelude.rnf alarmActions+ `Prelude.seq` Prelude.rnf alarmArn+ `Prelude.seq` Prelude.rnf alarmConfigurationUpdatedTimestamp+ `Prelude.seq` Prelude.rnf alarmDescription+ `Prelude.seq` Prelude.rnf alarmName+ `Prelude.seq` Prelude.rnf comparisonOperator+ `Prelude.seq` Prelude.rnf datapointsToAlarm+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf evaluateLowSampleCountPercentile+ `Prelude.seq` Prelude.rnf evaluationPeriods+ `Prelude.seq` Prelude.rnf evaluationState+ `Prelude.seq` Prelude.rnf extendedStatistic+ `Prelude.seq` Prelude.rnf insufficientDataActions+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf metrics+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf oKActions+ `Prelude.seq` Prelude.rnf period+ `Prelude.seq` Prelude.rnf stateReason+ `Prelude.seq` Prelude.rnf stateReasonData+ `Prelude.seq` Prelude.rnf+ stateTransitionedTimestamp+ `Prelude.seq` Prelude.rnf+ stateUpdatedTimestamp+ `Prelude.seq` Prelude.rnf stateValue+ `Prelude.seq` Prelude.rnf+ statistic+ `Prelude.seq` Prelude.rnf+ threshold+ `Prelude.seq` Prelude.rnf+ thresholdMetricId+ `Prelude.seq` Prelude.rnf+ treatMissingData+ `Prelude.seq` Prelude.rnf+ unit
+ gen/Amazonka/CloudWatch/Types/MetricDataQuery.hs view
@@ -0,0 +1,340 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricDataQuery+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricDataQuery where++import Amazonka.CloudWatch.Types.MetricStat+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure is used in both @GetMetricData@ and @PutMetricAlarm@. The+-- supported use of this structure is different for those two operations.+--+-- When used in @GetMetricData@, it indicates the metric data to return,+-- and whether this call is just retrieving a batch set of data for one+-- metric, or is performing a Metrics Insights query or a math expression.+-- A single @GetMetricData@ call can include up to 500 @MetricDataQuery@+-- structures.+--+-- When used in @PutMetricAlarm@, it enables you to create an alarm based+-- on a metric math expression. Each @MetricDataQuery@ in the array+-- specifies either a metric to retrieve, or a math expression to be+-- performed on retrieved metrics. A single @PutMetricAlarm@ call can+-- include up to 20 @MetricDataQuery@ structures in the array. The 20+-- structures can include as many as 10 structures that contain a+-- @MetricStat@ parameter to retrieve a metric, and as many as 10+-- structures that contain the @Expression@ parameter to perform a math+-- expression. Of those @Expression@ structures, one must have @true@ as+-- the value for @ReturnData@. The result of this expression is the value+-- the alarm watches.+--+-- Any expression used in a @PutMetricAlarm@ operation must return a single+-- time series. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions>+-- in the /Amazon CloudWatch User Guide/.+--+-- Some of the parameters of this structure also have different uses+-- whether you are using this structure in a @GetMetricData@ operation or a+-- @PutMetricAlarm@ operation. These differences are explained in the+-- following parameter list.+--+-- /See:/ 'newMetricDataQuery' smart constructor.+data MetricDataQuery = MetricDataQuery'+ { -- | The ID of the account where the metrics are located.+ --+ -- If you are performing a @GetMetricData@ operation in a monitoring+ -- account, use this to specify which account to retrieve this metric from.+ --+ -- If you are performing a @PutMetricAlarm@ operation, use this to specify+ -- which account contains the metric that the alarm is watching.+ accountId :: Prelude.Maybe Prelude.Text,+ -- | This field can contain either a Metrics Insights query, or a metric math+ -- expression to be performed on the returned data. For more information+ -- about Metrics Insights queries, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage Metrics Insights query components and syntax>+ -- in the /Amazon CloudWatch User Guide/.+ --+ -- A math expression can use the @Id@ of the other metrics or queries to+ -- refer to those metrics, and can also use the @Id@ of other expressions+ -- to use the result of those expressions. For more information about+ -- metric math expressions, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions>+ -- in the /Amazon CloudWatch User Guide/.+ --+ -- Within each MetricDataQuery object, you must specify either @Expression@+ -- or @MetricStat@ but not both.+ expression :: Prelude.Maybe Prelude.Text,+ -- | A human-readable label for this metric or expression. This is especially+ -- useful if this is an expression, so that you know what the value+ -- represents. If the metric or expression is shown in a CloudWatch+ -- dashboard widget, the label is shown. If Label is omitted, CloudWatch+ -- generates a default.+ --+ -- You can put dynamic expressions into a label, so that it is more+ -- descriptive. For more information, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html Using Dynamic Labels>.+ label :: Prelude.Maybe Prelude.Text,+ -- | The metric to be returned, along with statistics, period, and units. Use+ -- this parameter only if this object is retrieving a metric and not+ -- performing a math expression on returned data.+ --+ -- Within one MetricDataQuery object, you must specify either @Expression@+ -- or @MetricStat@ but not both.+ metricStat :: Prelude.Maybe MetricStat,+ -- | The granularity, in seconds, of the returned data points. For metrics+ -- with regular resolution, a period can be as short as one minute (60+ -- seconds) and must be a multiple of 60. For high-resolution metrics that+ -- are collected at intervals of less than one minute, the period can be 1,+ -- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+ -- metrics stored by a @PutMetricData@ operation that includes a+ -- @StorageResolution of 1 second@.+ period :: Prelude.Maybe Prelude.Natural,+ -- | When used in @GetMetricData@, this option indicates whether to return+ -- the timestamps and raw data values of this metric. If you are performing+ -- this call just to do math expressions and do not also need the raw data+ -- returned, you can specify @false@. If you omit this, the default of+ -- @true@ is used.+ --+ -- When used in @PutMetricAlarm@, specify @true@ for the one expression+ -- result to use as the alarm. For all other metrics and expressions in the+ -- same @PutMetricAlarm@ operation, specify @ReturnData@ as False.+ returnData :: Prelude.Maybe Prelude.Bool,+ -- | A short name used to tie this object to the results in the response.+ -- This name must be unique within a single call to @GetMetricData@. If you+ -- are performing math expressions on this set of data, this name+ -- represents that data and can serve as a variable in the mathematical+ -- expression. The valid characters are letters, numbers, and underscore.+ -- The first character must be a lowercase letter.+ id :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricDataQuery' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'accountId', 'metricDataQuery_accountId' - The ID of the account where the metrics are located.+--+-- If you are performing a @GetMetricData@ operation in a monitoring+-- account, use this to specify which account to retrieve this metric from.+--+-- If you are performing a @PutMetricAlarm@ operation, use this to specify+-- which account contains the metric that the alarm is watching.+--+-- 'expression', 'metricDataQuery_expression' - This field can contain either a Metrics Insights query, or a metric math+-- expression to be performed on the returned data. For more information+-- about Metrics Insights queries, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage Metrics Insights query components and syntax>+-- in the /Amazon CloudWatch User Guide/.+--+-- A math expression can use the @Id@ of the other metrics or queries to+-- refer to those metrics, and can also use the @Id@ of other expressions+-- to use the result of those expressions. For more information about+-- metric math expressions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions>+-- in the /Amazon CloudWatch User Guide/.+--+-- Within each MetricDataQuery object, you must specify either @Expression@+-- or @MetricStat@ but not both.+--+-- 'label', 'metricDataQuery_label' - A human-readable label for this metric or expression. This is especially+-- useful if this is an expression, so that you know what the value+-- represents. If the metric or expression is shown in a CloudWatch+-- dashboard widget, the label is shown. If Label is omitted, CloudWatch+-- generates a default.+--+-- You can put dynamic expressions into a label, so that it is more+-- descriptive. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html Using Dynamic Labels>.+--+-- 'metricStat', 'metricDataQuery_metricStat' - The metric to be returned, along with statistics, period, and units. Use+-- this parameter only if this object is retrieving a metric and not+-- performing a math expression on returned data.+--+-- Within one MetricDataQuery object, you must specify either @Expression@+-- or @MetricStat@ but not both.+--+-- 'period', 'metricDataQuery_period' - The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ operation that includes a+-- @StorageResolution of 1 second@.+--+-- 'returnData', 'metricDataQuery_returnData' - When used in @GetMetricData@, this option indicates whether to return+-- the timestamps and raw data values of this metric. If you are performing+-- this call just to do math expressions and do not also need the raw data+-- returned, you can specify @false@. If you omit this, the default of+-- @true@ is used.+--+-- When used in @PutMetricAlarm@, specify @true@ for the one expression+-- result to use as the alarm. For all other metrics and expressions in the+-- same @PutMetricAlarm@ operation, specify @ReturnData@ as False.+--+-- 'id', 'metricDataQuery_id' - A short name used to tie this object to the results in the response.+-- This name must be unique within a single call to @GetMetricData@. If you+-- are performing math expressions on this set of data, this name+-- represents that data and can serve as a variable in the mathematical+-- expression. The valid characters are letters, numbers, and underscore.+-- The first character must be a lowercase letter.+newMetricDataQuery ::+ -- | 'id'+ Prelude.Text ->+ MetricDataQuery+newMetricDataQuery pId_ =+ MetricDataQuery'+ { accountId = Prelude.Nothing,+ expression = Prelude.Nothing,+ label = Prelude.Nothing,+ metricStat = Prelude.Nothing,+ period = Prelude.Nothing,+ returnData = Prelude.Nothing,+ id = pId_+ }++-- | The ID of the account where the metrics are located.+--+-- If you are performing a @GetMetricData@ operation in a monitoring+-- account, use this to specify which account to retrieve this metric from.+--+-- If you are performing a @PutMetricAlarm@ operation, use this to specify+-- which account contains the metric that the alarm is watching.+metricDataQuery_accountId :: Lens.Lens' MetricDataQuery (Prelude.Maybe Prelude.Text)+metricDataQuery_accountId = Lens.lens (\MetricDataQuery' {accountId} -> accountId) (\s@MetricDataQuery' {} a -> s {accountId = a} :: MetricDataQuery)++-- | This field can contain either a Metrics Insights query, or a metric math+-- expression to be performed on the returned data. For more information+-- about Metrics Insights queries, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage Metrics Insights query components and syntax>+-- in the /Amazon CloudWatch User Guide/.+--+-- A math expression can use the @Id@ of the other metrics or queries to+-- refer to those metrics, and can also use the @Id@ of other expressions+-- to use the result of those expressions. For more information about+-- metric math expressions, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions>+-- in the /Amazon CloudWatch User Guide/.+--+-- Within each MetricDataQuery object, you must specify either @Expression@+-- or @MetricStat@ but not both.+metricDataQuery_expression :: Lens.Lens' MetricDataQuery (Prelude.Maybe Prelude.Text)+metricDataQuery_expression = Lens.lens (\MetricDataQuery' {expression} -> expression) (\s@MetricDataQuery' {} a -> s {expression = a} :: MetricDataQuery)++-- | A human-readable label for this metric or expression. This is especially+-- useful if this is an expression, so that you know what the value+-- represents. If the metric or expression is shown in a CloudWatch+-- dashboard widget, the label is shown. If Label is omitted, CloudWatch+-- generates a default.+--+-- You can put dynamic expressions into a label, so that it is more+-- descriptive. For more information, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html Using Dynamic Labels>.+metricDataQuery_label :: Lens.Lens' MetricDataQuery (Prelude.Maybe Prelude.Text)+metricDataQuery_label = Lens.lens (\MetricDataQuery' {label} -> label) (\s@MetricDataQuery' {} a -> s {label = a} :: MetricDataQuery)++-- | The metric to be returned, along with statistics, period, and units. Use+-- this parameter only if this object is retrieving a metric and not+-- performing a math expression on returned data.+--+-- Within one MetricDataQuery object, you must specify either @Expression@+-- or @MetricStat@ but not both.+metricDataQuery_metricStat :: Lens.Lens' MetricDataQuery (Prelude.Maybe MetricStat)+metricDataQuery_metricStat = Lens.lens (\MetricDataQuery' {metricStat} -> metricStat) (\s@MetricDataQuery' {} a -> s {metricStat = a} :: MetricDataQuery)++-- | The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ operation that includes a+-- @StorageResolution of 1 second@.+metricDataQuery_period :: Lens.Lens' MetricDataQuery (Prelude.Maybe Prelude.Natural)+metricDataQuery_period = Lens.lens (\MetricDataQuery' {period} -> period) (\s@MetricDataQuery' {} a -> s {period = a} :: MetricDataQuery)++-- | When used in @GetMetricData@, this option indicates whether to return+-- the timestamps and raw data values of this metric. If you are performing+-- this call just to do math expressions and do not also need the raw data+-- returned, you can specify @false@. If you omit this, the default of+-- @true@ is used.+--+-- When used in @PutMetricAlarm@, specify @true@ for the one expression+-- result to use as the alarm. For all other metrics and expressions in the+-- same @PutMetricAlarm@ operation, specify @ReturnData@ as False.+metricDataQuery_returnData :: Lens.Lens' MetricDataQuery (Prelude.Maybe Prelude.Bool)+metricDataQuery_returnData = Lens.lens (\MetricDataQuery' {returnData} -> returnData) (\s@MetricDataQuery' {} a -> s {returnData = a} :: MetricDataQuery)++-- | A short name used to tie this object to the results in the response.+-- This name must be unique within a single call to @GetMetricData@. If you+-- are performing math expressions on this set of data, this name+-- represents that data and can serve as a variable in the mathematical+-- expression. The valid characters are letters, numbers, and underscore.+-- The first character must be a lowercase letter.+metricDataQuery_id :: Lens.Lens' MetricDataQuery Prelude.Text+metricDataQuery_id = Lens.lens (\MetricDataQuery' {id} -> id) (\s@MetricDataQuery' {} a -> s {id = a} :: MetricDataQuery)++instance Data.FromXML MetricDataQuery where+ parseXML x =+ MetricDataQuery'+ Prelude.<$> (x Data..@? "AccountId")+ Prelude.<*> (x Data..@? "Expression")+ Prelude.<*> (x Data..@? "Label")+ Prelude.<*> (x Data..@? "MetricStat")+ Prelude.<*> (x Data..@? "Period")+ Prelude.<*> (x Data..@? "ReturnData")+ Prelude.<*> (x Data..@ "Id")++instance Prelude.Hashable MetricDataQuery where+ hashWithSalt _salt MetricDataQuery' {..} =+ _salt+ `Prelude.hashWithSalt` accountId+ `Prelude.hashWithSalt` expression+ `Prelude.hashWithSalt` label+ `Prelude.hashWithSalt` metricStat+ `Prelude.hashWithSalt` period+ `Prelude.hashWithSalt` returnData+ `Prelude.hashWithSalt` id++instance Prelude.NFData MetricDataQuery where+ rnf MetricDataQuery' {..} =+ Prelude.rnf accountId+ `Prelude.seq` Prelude.rnf expression+ `Prelude.seq` Prelude.rnf label+ `Prelude.seq` Prelude.rnf metricStat+ `Prelude.seq` Prelude.rnf period+ `Prelude.seq` Prelude.rnf returnData+ `Prelude.seq` Prelude.rnf id++instance Data.ToQuery MetricDataQuery where+ toQuery MetricDataQuery' {..} =+ Prelude.mconcat+ [ "AccountId" Data.=: accountId,+ "Expression" Data.=: expression,+ "Label" Data.=: label,+ "MetricStat" Data.=: metricStat,+ "Period" Data.=: period,+ "ReturnData" Data.=: returnData,+ "Id" Data.=: id+ ]
+ gen/Amazonka/CloudWatch/Types/MetricDataResult.hs view
@@ -0,0 +1,175 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricDataResult+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricDataResult where++import Amazonka.CloudWatch.Types.MessageData+import Amazonka.CloudWatch.Types.StatusCode+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A @GetMetricData@ call returns an array of @MetricDataResult@+-- structures. Each of these structures includes the data points for that+-- metric, along with the timestamps of those data points and other+-- identifying information.+--+-- /See:/ 'newMetricDataResult' smart constructor.+data MetricDataResult = MetricDataResult'+ { -- | The short name you specified to represent this metric.+ id :: Prelude.Maybe Prelude.Text,+ -- | The human-readable label associated with the data.+ label :: Prelude.Maybe Prelude.Text,+ -- | A list of messages with additional information about the data returned.+ messages :: Prelude.Maybe [MessageData],+ -- | The status of the returned data. @Complete@ indicates that all data+ -- points in the requested time range were returned. @PartialData@ means+ -- that an incomplete set of data points were returned. You can use the+ -- @NextToken@ value that was returned and repeat your request to get more+ -- data points. @NextToken@ is not returned if you are performing a math+ -- expression. @InternalError@ indicates that an error occurred. Retry your+ -- request using @NextToken@, if present.+ statusCode :: Prelude.Maybe StatusCode,+ -- | The timestamps for the data points, formatted in Unix timestamp format.+ -- The number of timestamps always matches the number of values and the+ -- value for Timestamps[x] is Values[x].+ timestamps :: Prelude.Maybe [Data.ISO8601],+ -- | The data points for the metric corresponding to @Timestamps@. The number+ -- of values always matches the number of timestamps and the timestamp for+ -- Values[x] is Timestamps[x].+ values :: Prelude.Maybe [Prelude.Double]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricDataResult' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'id', 'metricDataResult_id' - The short name you specified to represent this metric.+--+-- 'label', 'metricDataResult_label' - The human-readable label associated with the data.+--+-- 'messages', 'metricDataResult_messages' - A list of messages with additional information about the data returned.+--+-- 'statusCode', 'metricDataResult_statusCode' - The status of the returned data. @Complete@ indicates that all data+-- points in the requested time range were returned. @PartialData@ means+-- that an incomplete set of data points were returned. You can use the+-- @NextToken@ value that was returned and repeat your request to get more+-- data points. @NextToken@ is not returned if you are performing a math+-- expression. @InternalError@ indicates that an error occurred. Retry your+-- request using @NextToken@, if present.+--+-- 'timestamps', 'metricDataResult_timestamps' - The timestamps for the data points, formatted in Unix timestamp format.+-- The number of timestamps always matches the number of values and the+-- value for Timestamps[x] is Values[x].+--+-- 'values', 'metricDataResult_values' - The data points for the metric corresponding to @Timestamps@. The number+-- of values always matches the number of timestamps and the timestamp for+-- Values[x] is Timestamps[x].+newMetricDataResult ::+ MetricDataResult+newMetricDataResult =+ MetricDataResult'+ { id = Prelude.Nothing,+ label = Prelude.Nothing,+ messages = Prelude.Nothing,+ statusCode = Prelude.Nothing,+ timestamps = Prelude.Nothing,+ values = Prelude.Nothing+ }++-- | The short name you specified to represent this metric.+metricDataResult_id :: Lens.Lens' MetricDataResult (Prelude.Maybe Prelude.Text)+metricDataResult_id = Lens.lens (\MetricDataResult' {id} -> id) (\s@MetricDataResult' {} a -> s {id = a} :: MetricDataResult)++-- | The human-readable label associated with the data.+metricDataResult_label :: Lens.Lens' MetricDataResult (Prelude.Maybe Prelude.Text)+metricDataResult_label = Lens.lens (\MetricDataResult' {label} -> label) (\s@MetricDataResult' {} a -> s {label = a} :: MetricDataResult)++-- | A list of messages with additional information about the data returned.+metricDataResult_messages :: Lens.Lens' MetricDataResult (Prelude.Maybe [MessageData])+metricDataResult_messages = Lens.lens (\MetricDataResult' {messages} -> messages) (\s@MetricDataResult' {} a -> s {messages = a} :: MetricDataResult) Prelude.. Lens.mapping Lens.coerced++-- | The status of the returned data. @Complete@ indicates that all data+-- points in the requested time range were returned. @PartialData@ means+-- that an incomplete set of data points were returned. You can use the+-- @NextToken@ value that was returned and repeat your request to get more+-- data points. @NextToken@ is not returned if you are performing a math+-- expression. @InternalError@ indicates that an error occurred. Retry your+-- request using @NextToken@, if present.+metricDataResult_statusCode :: Lens.Lens' MetricDataResult (Prelude.Maybe StatusCode)+metricDataResult_statusCode = Lens.lens (\MetricDataResult' {statusCode} -> statusCode) (\s@MetricDataResult' {} a -> s {statusCode = a} :: MetricDataResult)++-- | The timestamps for the data points, formatted in Unix timestamp format.+-- The number of timestamps always matches the number of values and the+-- value for Timestamps[x] is Values[x].+metricDataResult_timestamps :: Lens.Lens' MetricDataResult (Prelude.Maybe [Prelude.UTCTime])+metricDataResult_timestamps = Lens.lens (\MetricDataResult' {timestamps} -> timestamps) (\s@MetricDataResult' {} a -> s {timestamps = a} :: MetricDataResult) Prelude.. Lens.mapping Lens.coerced++-- | The data points for the metric corresponding to @Timestamps@. The number+-- of values always matches the number of timestamps and the timestamp for+-- Values[x] is Timestamps[x].+metricDataResult_values :: Lens.Lens' MetricDataResult (Prelude.Maybe [Prelude.Double])+metricDataResult_values = Lens.lens (\MetricDataResult' {values} -> values) (\s@MetricDataResult' {} a -> s {values = a} :: MetricDataResult) Prelude.. Lens.mapping Lens.coerced++instance Data.FromXML MetricDataResult where+ parseXML x =+ MetricDataResult'+ Prelude.<$> (x Data..@? "Id")+ Prelude.<*> (x Data..@? "Label")+ Prelude.<*> ( x+ Data..@? "Messages"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "StatusCode")+ Prelude.<*> ( x+ Data..@? "Timestamps"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> ( x+ Data..@? "Values"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )++instance Prelude.Hashable MetricDataResult where+ hashWithSalt _salt MetricDataResult' {..} =+ _salt+ `Prelude.hashWithSalt` id+ `Prelude.hashWithSalt` label+ `Prelude.hashWithSalt` messages+ `Prelude.hashWithSalt` statusCode+ `Prelude.hashWithSalt` timestamps+ `Prelude.hashWithSalt` values++instance Prelude.NFData MetricDataResult where+ rnf MetricDataResult' {..} =+ Prelude.rnf id+ `Prelude.seq` Prelude.rnf label+ `Prelude.seq` Prelude.rnf messages+ `Prelude.seq` Prelude.rnf statusCode+ `Prelude.seq` Prelude.rnf timestamps+ `Prelude.seq` Prelude.rnf values
+ gen/Amazonka/CloudWatch/Types/MetricDatum.hs view
@@ -0,0 +1,282 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricDatum+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricDatum where++import Amazonka.CloudWatch.Types.Dimension+import Amazonka.CloudWatch.Types.StandardUnit+import Amazonka.CloudWatch.Types.StatisticSet+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Encapsulates the information sent to either create a metric or add new+-- values to be aggregated into an existing metric.+--+-- /See:/ 'newMetricDatum' smart constructor.+data MetricDatum = MetricDatum'+ { -- | Array of numbers that is used along with the @Values@ array. Each number+ -- in the @Count@ array is the number of times the corresponding value in+ -- the @Values@ array occurred during the period.+ --+ -- If you omit the @Counts@ array, the default of 1 is used as the value+ -- for each count. If you include a @Counts@ array, it must include the+ -- same amount of values as the @Values@ array.+ counts :: Prelude.Maybe [Prelude.Double],+ -- | The dimensions associated with the metric.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The statistical values for the metric.+ statisticValues :: Prelude.Maybe StatisticSet,+ -- | Valid values are 1 and 60. Setting this to 1 specifies this metric as a+ -- high-resolution metric, so that CloudWatch stores the metric with+ -- sub-minute resolution down to one second. Setting this to 60 specifies+ -- this metric as a regular-resolution metric, which CloudWatch stores at+ -- 1-minute resolution. Currently, high resolution is available only for+ -- custom metrics. For more information about high-resolution metrics, see+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics High-Resolution Metrics>+ -- in the /Amazon CloudWatch User Guide/.+ --+ -- This field is optional, if you do not specify it the default of 60 is+ -- used.+ storageResolution :: Prelude.Maybe Prelude.Natural,+ -- | The time the metric data was received, expressed as the number of+ -- milliseconds since Jan 1, 1970 00:00:00 UTC.+ timestamp :: Prelude.Maybe Data.ISO8601,+ -- | When you are using a @Put@ operation, this defines what unit you want to+ -- use when storing the metric.+ --+ -- In a @Get@ operation, this displays the unit that is used for the+ -- metric.+ unit :: Prelude.Maybe StandardUnit,+ -- | The value for the metric.+ --+ -- Although the parameter accepts numbers of type Double, CloudWatch+ -- rejects values that are either too small or too large. Values must be in+ -- the range of -2^360 to 2^360. In addition, special values (for example,+ -- NaN, +Infinity, -Infinity) are not supported.+ value :: Prelude.Maybe Prelude.Double,+ -- | Array of numbers representing the values for the metric during the+ -- period. Each unique value is listed just once in this array, and the+ -- corresponding number in the @Counts@ array specifies the number of times+ -- that value occurred during the period. You can include up to 150 unique+ -- values in each @PutMetricData@ action that specifies a @Values@ array.+ --+ -- Although the @Values@ array accepts numbers of type @Double@, CloudWatch+ -- rejects values that are either too small or too large. Values must be in+ -- the range of -2^360 to 2^360. In addition, special values (for example,+ -- NaN, +Infinity, -Infinity) are not supported.+ values :: Prelude.Maybe [Prelude.Double],+ -- | The name of the metric.+ metricName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricDatum' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'counts', 'metricDatum_counts' - Array of numbers that is used along with the @Values@ array. Each number+-- in the @Count@ array is the number of times the corresponding value in+-- the @Values@ array occurred during the period.+--+-- If you omit the @Counts@ array, the default of 1 is used as the value+-- for each count. If you include a @Counts@ array, it must include the+-- same amount of values as the @Values@ array.+--+-- 'dimensions', 'metricDatum_dimensions' - The dimensions associated with the metric.+--+-- 'statisticValues', 'metricDatum_statisticValues' - The statistical values for the metric.+--+-- 'storageResolution', 'metricDatum_storageResolution' - Valid values are 1 and 60. Setting this to 1 specifies this metric as a+-- high-resolution metric, so that CloudWatch stores the metric with+-- sub-minute resolution down to one second. Setting this to 60 specifies+-- this metric as a regular-resolution metric, which CloudWatch stores at+-- 1-minute resolution. Currently, high resolution is available only for+-- custom metrics. For more information about high-resolution metrics, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics High-Resolution Metrics>+-- in the /Amazon CloudWatch User Guide/.+--+-- This field is optional, if you do not specify it the default of 60 is+-- used.+--+-- 'timestamp', 'metricDatum_timestamp' - The time the metric data was received, expressed as the number of+-- milliseconds since Jan 1, 1970 00:00:00 UTC.+--+-- 'unit', 'metricDatum_unit' - When you are using a @Put@ operation, this defines what unit you want to+-- use when storing the metric.+--+-- In a @Get@ operation, this displays the unit that is used for the+-- metric.+--+-- 'value', 'metricDatum_value' - The value for the metric.+--+-- Although the parameter accepts numbers of type Double, CloudWatch+-- rejects values that are either too small or too large. Values must be in+-- the range of -2^360 to 2^360. In addition, special values (for example,+-- NaN, +Infinity, -Infinity) are not supported.+--+-- 'values', 'metricDatum_values' - Array of numbers representing the values for the metric during the+-- period. Each unique value is listed just once in this array, and the+-- corresponding number in the @Counts@ array specifies the number of times+-- that value occurred during the period. You can include up to 150 unique+-- values in each @PutMetricData@ action that specifies a @Values@ array.+--+-- Although the @Values@ array accepts numbers of type @Double@, CloudWatch+-- rejects values that are either too small or too large. Values must be in+-- the range of -2^360 to 2^360. In addition, special values (for example,+-- NaN, +Infinity, -Infinity) are not supported.+--+-- 'metricName', 'metricDatum_metricName' - The name of the metric.+newMetricDatum ::+ -- | 'metricName'+ Prelude.Text ->+ MetricDatum+newMetricDatum pMetricName_ =+ MetricDatum'+ { counts = Prelude.Nothing,+ dimensions = Prelude.Nothing,+ statisticValues = Prelude.Nothing,+ storageResolution = Prelude.Nothing,+ timestamp = Prelude.Nothing,+ unit = Prelude.Nothing,+ value = Prelude.Nothing,+ values = Prelude.Nothing,+ metricName = pMetricName_+ }++-- | Array of numbers that is used along with the @Values@ array. Each number+-- in the @Count@ array is the number of times the corresponding value in+-- the @Values@ array occurred during the period.+--+-- If you omit the @Counts@ array, the default of 1 is used as the value+-- for each count. If you include a @Counts@ array, it must include the+-- same amount of values as the @Values@ array.+metricDatum_counts :: Lens.Lens' MetricDatum (Prelude.Maybe [Prelude.Double])+metricDatum_counts = Lens.lens (\MetricDatum' {counts} -> counts) (\s@MetricDatum' {} a -> s {counts = a} :: MetricDatum) Prelude.. Lens.mapping Lens.coerced++-- | The dimensions associated with the metric.+metricDatum_dimensions :: Lens.Lens' MetricDatum (Prelude.Maybe [Dimension])+metricDatum_dimensions = Lens.lens (\MetricDatum' {dimensions} -> dimensions) (\s@MetricDatum' {} a -> s {dimensions = a} :: MetricDatum) Prelude.. Lens.mapping Lens.coerced++-- | The statistical values for the metric.+metricDatum_statisticValues :: Lens.Lens' MetricDatum (Prelude.Maybe StatisticSet)+metricDatum_statisticValues = Lens.lens (\MetricDatum' {statisticValues} -> statisticValues) (\s@MetricDatum' {} a -> s {statisticValues = a} :: MetricDatum)++-- | Valid values are 1 and 60. Setting this to 1 specifies this metric as a+-- high-resolution metric, so that CloudWatch stores the metric with+-- sub-minute resolution down to one second. Setting this to 60 specifies+-- this metric as a regular-resolution metric, which CloudWatch stores at+-- 1-minute resolution. Currently, high resolution is available only for+-- custom metrics. For more information about high-resolution metrics, see+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics High-Resolution Metrics>+-- in the /Amazon CloudWatch User Guide/.+--+-- This field is optional, if you do not specify it the default of 60 is+-- used.+metricDatum_storageResolution :: Lens.Lens' MetricDatum (Prelude.Maybe Prelude.Natural)+metricDatum_storageResolution = Lens.lens (\MetricDatum' {storageResolution} -> storageResolution) (\s@MetricDatum' {} a -> s {storageResolution = a} :: MetricDatum)++-- | The time the metric data was received, expressed as the number of+-- milliseconds since Jan 1, 1970 00:00:00 UTC.+metricDatum_timestamp :: Lens.Lens' MetricDatum (Prelude.Maybe Prelude.UTCTime)+metricDatum_timestamp = Lens.lens (\MetricDatum' {timestamp} -> timestamp) (\s@MetricDatum' {} a -> s {timestamp = a} :: MetricDatum) Prelude.. Lens.mapping Data._Time++-- | When you are using a @Put@ operation, this defines what unit you want to+-- use when storing the metric.+--+-- In a @Get@ operation, this displays the unit that is used for the+-- metric.+metricDatum_unit :: Lens.Lens' MetricDatum (Prelude.Maybe StandardUnit)+metricDatum_unit = Lens.lens (\MetricDatum' {unit} -> unit) (\s@MetricDatum' {} a -> s {unit = a} :: MetricDatum)++-- | The value for the metric.+--+-- Although the parameter accepts numbers of type Double, CloudWatch+-- rejects values that are either too small or too large. Values must be in+-- the range of -2^360 to 2^360. In addition, special values (for example,+-- NaN, +Infinity, -Infinity) are not supported.+metricDatum_value :: Lens.Lens' MetricDatum (Prelude.Maybe Prelude.Double)+metricDatum_value = Lens.lens (\MetricDatum' {value} -> value) (\s@MetricDatum' {} a -> s {value = a} :: MetricDatum)++-- | Array of numbers representing the values for the metric during the+-- period. Each unique value is listed just once in this array, and the+-- corresponding number in the @Counts@ array specifies the number of times+-- that value occurred during the period. You can include up to 150 unique+-- values in each @PutMetricData@ action that specifies a @Values@ array.+--+-- Although the @Values@ array accepts numbers of type @Double@, CloudWatch+-- rejects values that are either too small or too large. Values must be in+-- the range of -2^360 to 2^360. In addition, special values (for example,+-- NaN, +Infinity, -Infinity) are not supported.+metricDatum_values :: Lens.Lens' MetricDatum (Prelude.Maybe [Prelude.Double])+metricDatum_values = Lens.lens (\MetricDatum' {values} -> values) (\s@MetricDatum' {} a -> s {values = a} :: MetricDatum) Prelude.. Lens.mapping Lens.coerced++-- | The name of the metric.+metricDatum_metricName :: Lens.Lens' MetricDatum Prelude.Text+metricDatum_metricName = Lens.lens (\MetricDatum' {metricName} -> metricName) (\s@MetricDatum' {} a -> s {metricName = a} :: MetricDatum)++instance Prelude.Hashable MetricDatum where+ hashWithSalt _salt MetricDatum' {..} =+ _salt+ `Prelude.hashWithSalt` counts+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` statisticValues+ `Prelude.hashWithSalt` storageResolution+ `Prelude.hashWithSalt` timestamp+ `Prelude.hashWithSalt` unit+ `Prelude.hashWithSalt` value+ `Prelude.hashWithSalt` values+ `Prelude.hashWithSalt` metricName++instance Prelude.NFData MetricDatum where+ rnf MetricDatum' {..} =+ Prelude.rnf counts+ `Prelude.seq` Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf statisticValues+ `Prelude.seq` Prelude.rnf storageResolution+ `Prelude.seq` Prelude.rnf timestamp+ `Prelude.seq` Prelude.rnf unit+ `Prelude.seq` Prelude.rnf value+ `Prelude.seq` Prelude.rnf values+ `Prelude.seq` Prelude.rnf metricName++instance Data.ToQuery MetricDatum where+ toQuery MetricDatum' {..} =+ Prelude.mconcat+ [ "Counts"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> counts),+ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "StatisticValues" Data.=: statisticValues,+ "StorageResolution" Data.=: storageResolution,+ "Timestamp" Data.=: timestamp,+ "Unit" Data.=: unit,+ "Value" Data.=: value,+ "Values"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> values),+ "MetricName" Data.=: metricName+ ]
+ gen/Amazonka/CloudWatch/Types/MetricMathAnomalyDetector.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricMathAnomalyDetector+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricMathAnomalyDetector where++import Amazonka.CloudWatch.Types.MetricDataQuery+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Indicates the CloudWatch math expression that provides the time series+-- the anomaly detector uses as input. The designated math expression must+-- return a single time series.+--+-- /See:/ 'newMetricMathAnomalyDetector' smart constructor.+data MetricMathAnomalyDetector = MetricMathAnomalyDetector'+ { -- | An array of metric data query structures that enables you to create an+ -- anomaly detector based on the result of a metric math expression. Each+ -- item in @MetricDataQueries@ gets a metric or performs a math expression.+ -- One item in @MetricDataQueries@ is the expression that provides the time+ -- series that the anomaly detector uses as input. Designate the expression+ -- by setting @ReturnData@ to @true@ for this object in the array. For all+ -- other expressions and metrics, set @ReturnData@ to @false@. The+ -- designated expression must return a single time series.+ metricDataQueries :: Prelude.Maybe [MetricDataQuery]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricMathAnomalyDetector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'metricDataQueries', 'metricMathAnomalyDetector_metricDataQueries' - An array of metric data query structures that enables you to create an+-- anomaly detector based on the result of a metric math expression. Each+-- item in @MetricDataQueries@ gets a metric or performs a math expression.+-- One item in @MetricDataQueries@ is the expression that provides the time+-- series that the anomaly detector uses as input. Designate the expression+-- by setting @ReturnData@ to @true@ for this object in the array. For all+-- other expressions and metrics, set @ReturnData@ to @false@. The+-- designated expression must return a single time series.+newMetricMathAnomalyDetector ::+ MetricMathAnomalyDetector+newMetricMathAnomalyDetector =+ MetricMathAnomalyDetector'+ { metricDataQueries =+ Prelude.Nothing+ }++-- | An array of metric data query structures that enables you to create an+-- anomaly detector based on the result of a metric math expression. Each+-- item in @MetricDataQueries@ gets a metric or performs a math expression.+-- One item in @MetricDataQueries@ is the expression that provides the time+-- series that the anomaly detector uses as input. Designate the expression+-- by setting @ReturnData@ to @true@ for this object in the array. For all+-- other expressions and metrics, set @ReturnData@ to @false@. The+-- designated expression must return a single time series.+metricMathAnomalyDetector_metricDataQueries :: Lens.Lens' MetricMathAnomalyDetector (Prelude.Maybe [MetricDataQuery])+metricMathAnomalyDetector_metricDataQueries = Lens.lens (\MetricMathAnomalyDetector' {metricDataQueries} -> metricDataQueries) (\s@MetricMathAnomalyDetector' {} a -> s {metricDataQueries = a} :: MetricMathAnomalyDetector) Prelude.. Lens.mapping Lens.coerced++instance Data.FromXML MetricMathAnomalyDetector where+ parseXML x =+ MetricMathAnomalyDetector'+ Prelude.<$> ( x+ Data..@? "MetricDataQueries"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )++instance Prelude.Hashable MetricMathAnomalyDetector where+ hashWithSalt _salt MetricMathAnomalyDetector' {..} =+ _salt `Prelude.hashWithSalt` metricDataQueries++instance Prelude.NFData MetricMathAnomalyDetector where+ rnf MetricMathAnomalyDetector' {..} =+ Prelude.rnf metricDataQueries++instance Data.ToQuery MetricMathAnomalyDetector where+ toQuery MetricMathAnomalyDetector' {..} =+ Prelude.mconcat+ [ "MetricDataQueries"+ Data.=: Data.toQuery+ ( Data.toQueryList "member"+ Prelude.<$> metricDataQueries+ )+ ]
+ gen/Amazonka/CloudWatch/Types/MetricStat.hs view
@@ -0,0 +1,212 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStat+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStat where++import Amazonka.CloudWatch.Types.Metric+import Amazonka.CloudWatch.Types.StandardUnit+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure defines the metric to be returned, along with the+-- statistics, period, and units.+--+-- /See:/ 'newMetricStat' smart constructor.+data MetricStat = MetricStat'+ { -- | When you are using a @Put@ operation, this defines what unit you want to+ -- use when storing the metric.+ --+ -- In a @Get@ operation, if you omit @Unit@ then all data that was+ -- collected with any unit is returned, along with the corresponding units+ -- that were specified when the data was reported to CloudWatch. If you+ -- specify a unit, the operation returns only data that was collected with+ -- that unit specified. If you specify a unit that does not match the data+ -- collected, the results of the operation are null. CloudWatch does not+ -- perform unit conversions.+ unit :: Prelude.Maybe StandardUnit,+ -- | The metric to return, including the metric name, namespace, and+ -- dimensions.+ metric :: Metric,+ -- | The granularity, in seconds, of the returned data points. For metrics+ -- with regular resolution, a period can be as short as one minute (60+ -- seconds) and must be a multiple of 60. For high-resolution metrics that+ -- are collected at intervals of less than one minute, the period can be 1,+ -- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+ -- metrics stored by a @PutMetricData@ call that includes a+ -- @StorageResolution@ of 1 second.+ --+ -- If the @StartTime@ parameter specifies a time stamp that is greater than+ -- 3 hours ago, you must specify the period as follows or no data points in+ -- that time range is returned:+ --+ -- - Start time between 3 hours and 15 days ago - Use a multiple of 60+ -- seconds (1 minute).+ --+ -- - Start time between 15 and 63 days ago - Use a multiple of 300+ -- seconds (5 minutes).+ --+ -- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+ -- (1 hour).+ period :: Prelude.Natural,+ -- | The statistic to return. It can include any CloudWatch statistic or+ -- extended statistic.+ stat :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricStat' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'unit', 'metricStat_unit' - When you are using a @Put@ operation, this defines what unit you want to+-- use when storing the metric.+--+-- In a @Get@ operation, if you omit @Unit@ then all data that was+-- collected with any unit is returned, along with the corresponding units+-- that were specified when the data was reported to CloudWatch. If you+-- specify a unit, the operation returns only data that was collected with+-- that unit specified. If you specify a unit that does not match the data+-- collected, the results of the operation are null. CloudWatch does not+-- perform unit conversions.+--+-- 'metric', 'metricStat_metric' - The metric to return, including the metric name, namespace, and+-- dimensions.+--+-- 'period', 'metricStat_period' - The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ call that includes a+-- @StorageResolution@ of 1 second.+--+-- If the @StartTime@ parameter specifies a time stamp that is greater than+-- 3 hours ago, you must specify the period as follows or no data points in+-- that time range is returned:+--+-- - Start time between 3 hours and 15 days ago - Use a multiple of 60+-- seconds (1 minute).+--+-- - Start time between 15 and 63 days ago - Use a multiple of 300+-- seconds (5 minutes).+--+-- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+-- (1 hour).+--+-- 'stat', 'metricStat_stat' - The statistic to return. It can include any CloudWatch statistic or+-- extended statistic.+newMetricStat ::+ -- | 'metric'+ Metric ->+ -- | 'period'+ Prelude.Natural ->+ -- | 'stat'+ Prelude.Text ->+ MetricStat+newMetricStat pMetric_ pPeriod_ pStat_ =+ MetricStat'+ { unit = Prelude.Nothing,+ metric = pMetric_,+ period = pPeriod_,+ stat = pStat_+ }++-- | When you are using a @Put@ operation, this defines what unit you want to+-- use when storing the metric.+--+-- In a @Get@ operation, if you omit @Unit@ then all data that was+-- collected with any unit is returned, along with the corresponding units+-- that were specified when the data was reported to CloudWatch. If you+-- specify a unit, the operation returns only data that was collected with+-- that unit specified. If you specify a unit that does not match the data+-- collected, the results of the operation are null. CloudWatch does not+-- perform unit conversions.+metricStat_unit :: Lens.Lens' MetricStat (Prelude.Maybe StandardUnit)+metricStat_unit = Lens.lens (\MetricStat' {unit} -> unit) (\s@MetricStat' {} a -> s {unit = a} :: MetricStat)++-- | The metric to return, including the metric name, namespace, and+-- dimensions.+metricStat_metric :: Lens.Lens' MetricStat Metric+metricStat_metric = Lens.lens (\MetricStat' {metric} -> metric) (\s@MetricStat' {} a -> s {metric = a} :: MetricStat)++-- | The granularity, in seconds, of the returned data points. For metrics+-- with regular resolution, a period can be as short as one minute (60+-- seconds) and must be a multiple of 60. For high-resolution metrics that+-- are collected at intervals of less than one minute, the period can be 1,+-- 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those+-- metrics stored by a @PutMetricData@ call that includes a+-- @StorageResolution@ of 1 second.+--+-- If the @StartTime@ parameter specifies a time stamp that is greater than+-- 3 hours ago, you must specify the period as follows or no data points in+-- that time range is returned:+--+-- - Start time between 3 hours and 15 days ago - Use a multiple of 60+-- seconds (1 minute).+--+-- - Start time between 15 and 63 days ago - Use a multiple of 300+-- seconds (5 minutes).+--+-- - Start time greater than 63 days ago - Use a multiple of 3600 seconds+-- (1 hour).+metricStat_period :: Lens.Lens' MetricStat Prelude.Natural+metricStat_period = Lens.lens (\MetricStat' {period} -> period) (\s@MetricStat' {} a -> s {period = a} :: MetricStat)++-- | The statistic to return. It can include any CloudWatch statistic or+-- extended statistic.+metricStat_stat :: Lens.Lens' MetricStat Prelude.Text+metricStat_stat = Lens.lens (\MetricStat' {stat} -> stat) (\s@MetricStat' {} a -> s {stat = a} :: MetricStat)++instance Data.FromXML MetricStat where+ parseXML x =+ MetricStat'+ Prelude.<$> (x Data..@? "Unit")+ Prelude.<*> (x Data..@ "Metric")+ Prelude.<*> (x Data..@ "Period")+ Prelude.<*> (x Data..@ "Stat")++instance Prelude.Hashable MetricStat where+ hashWithSalt _salt MetricStat' {..} =+ _salt+ `Prelude.hashWithSalt` unit+ `Prelude.hashWithSalt` metric+ `Prelude.hashWithSalt` period+ `Prelude.hashWithSalt` stat++instance Prelude.NFData MetricStat where+ rnf MetricStat' {..} =+ Prelude.rnf unit+ `Prelude.seq` Prelude.rnf metric+ `Prelude.seq` Prelude.rnf period+ `Prelude.seq` Prelude.rnf stat++instance Data.ToQuery MetricStat where+ toQuery MetricStat' {..} =+ Prelude.mconcat+ [ "Unit" Data.=: unit,+ "Metric" Data.=: metric,+ "Period" Data.=: period,+ "Stat" Data.=: stat+ ]
+ gen/Amazonka/CloudWatch/Types/MetricStreamEntry.hs view
@@ -0,0 +1,154 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStreamEntry+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStreamEntry where++import Amazonka.CloudWatch.Types.MetricStreamOutputFormat+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure contains the configuration information about one metric+-- stream.+--+-- /See:/ 'newMetricStreamEntry' smart constructor.+data MetricStreamEntry = MetricStreamEntry'+ { -- | The ARN of the metric stream.+ arn :: Prelude.Maybe Prelude.Text,+ -- | The date that the metric stream was originally created.+ creationDate :: Prelude.Maybe Data.ISO8601,+ -- | The ARN of the Kinesis Firehose devlivery stream that is used for this+ -- metric stream.+ firehoseArn :: Prelude.Maybe Prelude.Text,+ -- | The date that the configuration of this metric stream was most recently+ -- updated.+ lastUpdateDate :: Prelude.Maybe Data.ISO8601,+ -- | The name of the metric stream.+ name :: Prelude.Maybe Prelude.Text,+ -- | The output format of this metric stream. Valid values are @json@ and+ -- @opentelemetry0.7@.+ outputFormat :: Prelude.Maybe MetricStreamOutputFormat,+ -- | The current state of this stream. Valid values are @running@ and+ -- @stopped@.+ state :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricStreamEntry' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'arn', 'metricStreamEntry_arn' - The ARN of the metric stream.+--+-- 'creationDate', 'metricStreamEntry_creationDate' - The date that the metric stream was originally created.+--+-- 'firehoseArn', 'metricStreamEntry_firehoseArn' - The ARN of the Kinesis Firehose devlivery stream that is used for this+-- metric stream.+--+-- 'lastUpdateDate', 'metricStreamEntry_lastUpdateDate' - The date that the configuration of this metric stream was most recently+-- updated.+--+-- 'name', 'metricStreamEntry_name' - The name of the metric stream.+--+-- 'outputFormat', 'metricStreamEntry_outputFormat' - The output format of this metric stream. Valid values are @json@ and+-- @opentelemetry0.7@.+--+-- 'state', 'metricStreamEntry_state' - The current state of this stream. Valid values are @running@ and+-- @stopped@.+newMetricStreamEntry ::+ MetricStreamEntry+newMetricStreamEntry =+ MetricStreamEntry'+ { arn = Prelude.Nothing,+ creationDate = Prelude.Nothing,+ firehoseArn = Prelude.Nothing,+ lastUpdateDate = Prelude.Nothing,+ name = Prelude.Nothing,+ outputFormat = Prelude.Nothing,+ state = Prelude.Nothing+ }++-- | The ARN of the metric stream.+metricStreamEntry_arn :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.Text)+metricStreamEntry_arn = Lens.lens (\MetricStreamEntry' {arn} -> arn) (\s@MetricStreamEntry' {} a -> s {arn = a} :: MetricStreamEntry)++-- | The date that the metric stream was originally created.+metricStreamEntry_creationDate :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.UTCTime)+metricStreamEntry_creationDate = Lens.lens (\MetricStreamEntry' {creationDate} -> creationDate) (\s@MetricStreamEntry' {} a -> s {creationDate = a} :: MetricStreamEntry) Prelude.. Lens.mapping Data._Time++-- | The ARN of the Kinesis Firehose devlivery stream that is used for this+-- metric stream.+metricStreamEntry_firehoseArn :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.Text)+metricStreamEntry_firehoseArn = Lens.lens (\MetricStreamEntry' {firehoseArn} -> firehoseArn) (\s@MetricStreamEntry' {} a -> s {firehoseArn = a} :: MetricStreamEntry)++-- | The date that the configuration of this metric stream was most recently+-- updated.+metricStreamEntry_lastUpdateDate :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.UTCTime)+metricStreamEntry_lastUpdateDate = Lens.lens (\MetricStreamEntry' {lastUpdateDate} -> lastUpdateDate) (\s@MetricStreamEntry' {} a -> s {lastUpdateDate = a} :: MetricStreamEntry) Prelude.. Lens.mapping Data._Time++-- | The name of the metric stream.+metricStreamEntry_name :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.Text)+metricStreamEntry_name = Lens.lens (\MetricStreamEntry' {name} -> name) (\s@MetricStreamEntry' {} a -> s {name = a} :: MetricStreamEntry)++-- | The output format of this metric stream. Valid values are @json@ and+-- @opentelemetry0.7@.+metricStreamEntry_outputFormat :: Lens.Lens' MetricStreamEntry (Prelude.Maybe MetricStreamOutputFormat)+metricStreamEntry_outputFormat = Lens.lens (\MetricStreamEntry' {outputFormat} -> outputFormat) (\s@MetricStreamEntry' {} a -> s {outputFormat = a} :: MetricStreamEntry)++-- | The current state of this stream. Valid values are @running@ and+-- @stopped@.+metricStreamEntry_state :: Lens.Lens' MetricStreamEntry (Prelude.Maybe Prelude.Text)+metricStreamEntry_state = Lens.lens (\MetricStreamEntry' {state} -> state) (\s@MetricStreamEntry' {} a -> s {state = a} :: MetricStreamEntry)++instance Data.FromXML MetricStreamEntry where+ parseXML x =+ MetricStreamEntry'+ Prelude.<$> (x Data..@? "Arn")+ Prelude.<*> (x Data..@? "CreationDate")+ Prelude.<*> (x Data..@? "FirehoseArn")+ Prelude.<*> (x Data..@? "LastUpdateDate")+ Prelude.<*> (x Data..@? "Name")+ Prelude.<*> (x Data..@? "OutputFormat")+ Prelude.<*> (x Data..@? "State")++instance Prelude.Hashable MetricStreamEntry where+ hashWithSalt _salt MetricStreamEntry' {..} =+ _salt+ `Prelude.hashWithSalt` arn+ `Prelude.hashWithSalt` creationDate+ `Prelude.hashWithSalt` firehoseArn+ `Prelude.hashWithSalt` lastUpdateDate+ `Prelude.hashWithSalt` name+ `Prelude.hashWithSalt` outputFormat+ `Prelude.hashWithSalt` state++instance Prelude.NFData MetricStreamEntry where+ rnf MetricStreamEntry' {..} =+ Prelude.rnf arn+ `Prelude.seq` Prelude.rnf creationDate+ `Prelude.seq` Prelude.rnf firehoseArn+ `Prelude.seq` Prelude.rnf lastUpdateDate+ `Prelude.seq` Prelude.rnf name+ `Prelude.seq` Prelude.rnf outputFormat+ `Prelude.seq` Prelude.rnf state
+ gen/Amazonka/CloudWatch/Types/MetricStreamFilter.hs view
@@ -0,0 +1,69 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStreamFilter+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStreamFilter where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This structure contains the name of one of the metric namespaces that is+-- listed in a filter of a metric stream.+--+-- /See:/ 'newMetricStreamFilter' smart constructor.+data MetricStreamFilter = MetricStreamFilter'+ { -- | The name of the metric namespace in the filter.+ namespace :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricStreamFilter' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'namespace', 'metricStreamFilter_namespace' - The name of the metric namespace in the filter.+newMetricStreamFilter ::+ MetricStreamFilter+newMetricStreamFilter =+ MetricStreamFilter' {namespace = Prelude.Nothing}++-- | The name of the metric namespace in the filter.+metricStreamFilter_namespace :: Lens.Lens' MetricStreamFilter (Prelude.Maybe Prelude.Text)+metricStreamFilter_namespace = Lens.lens (\MetricStreamFilter' {namespace} -> namespace) (\s@MetricStreamFilter' {} a -> s {namespace = a} :: MetricStreamFilter)++instance Data.FromXML MetricStreamFilter where+ parseXML x =+ MetricStreamFilter'+ Prelude.<$> (x Data..@? "Namespace")++instance Prelude.Hashable MetricStreamFilter where+ hashWithSalt _salt MetricStreamFilter' {..} =+ _salt `Prelude.hashWithSalt` namespace++instance Prelude.NFData MetricStreamFilter where+ rnf MetricStreamFilter' {..} = Prelude.rnf namespace++instance Data.ToQuery MetricStreamFilter where+ toQuery MetricStreamFilter' {..} =+ Prelude.mconcat ["Namespace" Data.=: namespace]
+ gen/Amazonka/CloudWatch/Types/MetricStreamOutputFormat.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStreamOutputFormat+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStreamOutputFormat+ ( MetricStreamOutputFormat+ ( ..,+ MetricStreamOutputFormat_Json,+ MetricStreamOutputFormat_Opentelemetry0_7+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype MetricStreamOutputFormat = MetricStreamOutputFormat'+ { fromMetricStreamOutputFormat ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern MetricStreamOutputFormat_Json :: MetricStreamOutputFormat+pattern MetricStreamOutputFormat_Json = MetricStreamOutputFormat' "json"++pattern MetricStreamOutputFormat_Opentelemetry0_7 :: MetricStreamOutputFormat+pattern MetricStreamOutputFormat_Opentelemetry0_7 = MetricStreamOutputFormat' "opentelemetry0.7"++{-# COMPLETE+ MetricStreamOutputFormat_Json,+ MetricStreamOutputFormat_Opentelemetry0_7,+ MetricStreamOutputFormat'+ #-}
+ gen/Amazonka/CloudWatch/Types/MetricStreamStatisticsConfiguration.hs view
@@ -0,0 +1,166 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStreamStatisticsConfiguration where++import Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | By default, a metric stream always sends the @MAX@, @MIN@, @SUM@, and+-- @SAMPLECOUNT@ statistics for each metric that is streamed. This+-- structure contains information for one metric that includes additional+-- statistics in the stream. For more information about statistics, see+-- CloudWatch, listed in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+--+-- /See:/ 'newMetricStreamStatisticsConfiguration' smart constructor.+data MetricStreamStatisticsConfiguration = MetricStreamStatisticsConfiguration'+ { -- | An array of metric name and namespace pairs that stream the additional+ -- statistics listed in the value of the @AdditionalStatistics@ parameter.+ -- There can be as many as 100 pairs in the array.+ --+ -- All metrics that match the combination of metric name and namespace will+ -- be streamed with the additional statistics, no matter their dimensions.+ includeMetrics :: [MetricStreamStatisticsMetric],+ -- | The list of additional statistics that are to be streamed for the+ -- metrics listed in the @IncludeMetrics@ array in this structure. This+ -- list can include as many as 20 statistics.+ --+ -- If the @OutputFormat@ for the stream is @opentelemetry0.7@, the only+ -- valid values are @p@/@??@/@ @ percentile statistics such as @p90@, @p99@+ -- and so on.+ --+ -- If the @OutputFormat@ for the stream is @json@, the valid values include+ -- the abbreviations for all of the statistics listed in+ -- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+ -- For example, this includes @tm98, @ @wm90@, @PR(:300)@, and so on.+ additionalStatistics :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricStreamStatisticsConfiguration' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'includeMetrics', 'metricStreamStatisticsConfiguration_includeMetrics' - An array of metric name and namespace pairs that stream the additional+-- statistics listed in the value of the @AdditionalStatistics@ parameter.+-- There can be as many as 100 pairs in the array.+--+-- All metrics that match the combination of metric name and namespace will+-- be streamed with the additional statistics, no matter their dimensions.+--+-- 'additionalStatistics', 'metricStreamStatisticsConfiguration_additionalStatistics' - The list of additional statistics that are to be streamed for the+-- metrics listed in the @IncludeMetrics@ array in this structure. This+-- list can include as many as 20 statistics.+--+-- If the @OutputFormat@ for the stream is @opentelemetry0.7@, the only+-- valid values are @p@/@??@/@ @ percentile statistics such as @p90@, @p99@+-- and so on.+--+-- If the @OutputFormat@ for the stream is @json@, the valid values include+-- the abbreviations for all of the statistics listed in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+-- For example, this includes @tm98, @ @wm90@, @PR(:300)@, and so on.+newMetricStreamStatisticsConfiguration ::+ MetricStreamStatisticsConfiguration+newMetricStreamStatisticsConfiguration =+ MetricStreamStatisticsConfiguration'+ { includeMetrics =+ Prelude.mempty,+ additionalStatistics = Prelude.mempty+ }++-- | An array of metric name and namespace pairs that stream the additional+-- statistics listed in the value of the @AdditionalStatistics@ parameter.+-- There can be as many as 100 pairs in the array.+--+-- All metrics that match the combination of metric name and namespace will+-- be streamed with the additional statistics, no matter their dimensions.+metricStreamStatisticsConfiguration_includeMetrics :: Lens.Lens' MetricStreamStatisticsConfiguration [MetricStreamStatisticsMetric]+metricStreamStatisticsConfiguration_includeMetrics = Lens.lens (\MetricStreamStatisticsConfiguration' {includeMetrics} -> includeMetrics) (\s@MetricStreamStatisticsConfiguration' {} a -> s {includeMetrics = a} :: MetricStreamStatisticsConfiguration) Prelude.. Lens.coerced++-- | The list of additional statistics that are to be streamed for the+-- metrics listed in the @IncludeMetrics@ array in this structure. This+-- list can include as many as 20 statistics.+--+-- If the @OutputFormat@ for the stream is @opentelemetry0.7@, the only+-- valid values are @p@/@??@/@ @ percentile statistics such as @p90@, @p99@+-- and so on.+--+-- If the @OutputFormat@ for the stream is @json@, the valid values include+-- the abbreviations for all of the statistics listed in+-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html CloudWatch statistics definitions>.+-- For example, this includes @tm98, @ @wm90@, @PR(:300)@, and so on.+metricStreamStatisticsConfiguration_additionalStatistics :: Lens.Lens' MetricStreamStatisticsConfiguration [Prelude.Text]+metricStreamStatisticsConfiguration_additionalStatistics = Lens.lens (\MetricStreamStatisticsConfiguration' {additionalStatistics} -> additionalStatistics) (\s@MetricStreamStatisticsConfiguration' {} a -> s {additionalStatistics = a} :: MetricStreamStatisticsConfiguration) Prelude.. Lens.coerced++instance+ Data.FromXML+ MetricStreamStatisticsConfiguration+ where+ parseXML x =+ MetricStreamStatisticsConfiguration'+ Prelude.<$> ( x+ Data..@? "IncludeMetrics"+ Core..!@ Prelude.mempty+ Prelude.>>= Data.parseXMLList "member"+ )+ Prelude.<*> ( x+ Data..@? "AdditionalStatistics"+ Core..!@ Prelude.mempty+ Prelude.>>= Data.parseXMLList "member"+ )++instance+ Prelude.Hashable+ MetricStreamStatisticsConfiguration+ where+ hashWithSalt+ _salt+ MetricStreamStatisticsConfiguration' {..} =+ _salt+ `Prelude.hashWithSalt` includeMetrics+ `Prelude.hashWithSalt` additionalStatistics++instance+ Prelude.NFData+ MetricStreamStatisticsConfiguration+ where+ rnf MetricStreamStatisticsConfiguration' {..} =+ Prelude.rnf includeMetrics+ `Prelude.seq` Prelude.rnf additionalStatistics++instance+ Data.ToQuery+ MetricStreamStatisticsConfiguration+ where+ toQuery MetricStreamStatisticsConfiguration' {..} =+ Prelude.mconcat+ [ "IncludeMetrics"+ Data.=: Data.toQueryList "member" includeMetrics,+ "AdditionalStatistics"+ Data.=: Data.toQueryList "member" additionalStatistics+ ]
+ gen/Amazonka/CloudWatch/Types/MetricStreamStatisticsMetric.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.MetricStreamStatisticsMetric where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This object contains the information for one metric that is to be+-- streamed with additional statistics.+--+-- /See:/ 'newMetricStreamStatisticsMetric' smart constructor.+data MetricStreamStatisticsMetric = MetricStreamStatisticsMetric'+ { -- | The namespace of the metric.+ namespace :: Prelude.Text,+ -- | The name of the metric.+ metricName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MetricStreamStatisticsMetric' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'namespace', 'metricStreamStatisticsMetric_namespace' - The namespace of the metric.+--+-- 'metricName', 'metricStreamStatisticsMetric_metricName' - The name of the metric.+newMetricStreamStatisticsMetric ::+ -- | 'namespace'+ Prelude.Text ->+ -- | 'metricName'+ Prelude.Text ->+ MetricStreamStatisticsMetric+newMetricStreamStatisticsMetric+ pNamespace_+ pMetricName_ =+ MetricStreamStatisticsMetric'+ { namespace =+ pNamespace_,+ metricName = pMetricName_+ }++-- | The namespace of the metric.+metricStreamStatisticsMetric_namespace :: Lens.Lens' MetricStreamStatisticsMetric Prelude.Text+metricStreamStatisticsMetric_namespace = Lens.lens (\MetricStreamStatisticsMetric' {namespace} -> namespace) (\s@MetricStreamStatisticsMetric' {} a -> s {namespace = a} :: MetricStreamStatisticsMetric)++-- | The name of the metric.+metricStreamStatisticsMetric_metricName :: Lens.Lens' MetricStreamStatisticsMetric Prelude.Text+metricStreamStatisticsMetric_metricName = Lens.lens (\MetricStreamStatisticsMetric' {metricName} -> metricName) (\s@MetricStreamStatisticsMetric' {} a -> s {metricName = a} :: MetricStreamStatisticsMetric)++instance Data.FromXML MetricStreamStatisticsMetric where+ parseXML x =+ MetricStreamStatisticsMetric'+ Prelude.<$> (x Data..@ "Namespace")+ Prelude.<*> (x Data..@ "MetricName")++instance+ Prelude.Hashable+ MetricStreamStatisticsMetric+ where+ hashWithSalt _salt MetricStreamStatisticsMetric' {..} =+ _salt+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` metricName++instance Prelude.NFData MetricStreamStatisticsMetric where+ rnf MetricStreamStatisticsMetric' {..} =+ Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf metricName++instance Data.ToQuery MetricStreamStatisticsMetric where+ toQuery MetricStreamStatisticsMetric' {..} =+ Prelude.mconcat+ [ "Namespace" Data.=: namespace,+ "MetricName" Data.=: metricName+ ]
+ gen/Amazonka/CloudWatch/Types/PartialFailure.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.PartialFailure+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.PartialFailure where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | This array is empty if the API operation was successful for all the+-- rules specified in the request. If the operation could not process one+-- of the rules, the following data is returned for each of those rules.+--+-- /See:/ 'newPartialFailure' smart constructor.+data PartialFailure = PartialFailure'+ { -- | The type of error.+ exceptionType :: Prelude.Maybe Prelude.Text,+ -- | The code of the error.+ failureCode :: Prelude.Maybe Prelude.Text,+ -- | A description of the error.+ failureDescription :: Prelude.Maybe Prelude.Text,+ -- | The specified rule that could not be deleted.+ failureResource :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PartialFailure' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'exceptionType', 'partialFailure_exceptionType' - The type of error.+--+-- 'failureCode', 'partialFailure_failureCode' - The code of the error.+--+-- 'failureDescription', 'partialFailure_failureDescription' - A description of the error.+--+-- 'failureResource', 'partialFailure_failureResource' - The specified rule that could not be deleted.+newPartialFailure ::+ PartialFailure+newPartialFailure =+ PartialFailure'+ { exceptionType = Prelude.Nothing,+ failureCode = Prelude.Nothing,+ failureDescription = Prelude.Nothing,+ failureResource = Prelude.Nothing+ }++-- | The type of error.+partialFailure_exceptionType :: Lens.Lens' PartialFailure (Prelude.Maybe Prelude.Text)+partialFailure_exceptionType = Lens.lens (\PartialFailure' {exceptionType} -> exceptionType) (\s@PartialFailure' {} a -> s {exceptionType = a} :: PartialFailure)++-- | The code of the error.+partialFailure_failureCode :: Lens.Lens' PartialFailure (Prelude.Maybe Prelude.Text)+partialFailure_failureCode = Lens.lens (\PartialFailure' {failureCode} -> failureCode) (\s@PartialFailure' {} a -> s {failureCode = a} :: PartialFailure)++-- | A description of the error.+partialFailure_failureDescription :: Lens.Lens' PartialFailure (Prelude.Maybe Prelude.Text)+partialFailure_failureDescription = Lens.lens (\PartialFailure' {failureDescription} -> failureDescription) (\s@PartialFailure' {} a -> s {failureDescription = a} :: PartialFailure)++-- | The specified rule that could not be deleted.+partialFailure_failureResource :: Lens.Lens' PartialFailure (Prelude.Maybe Prelude.Text)+partialFailure_failureResource = Lens.lens (\PartialFailure' {failureResource} -> failureResource) (\s@PartialFailure' {} a -> s {failureResource = a} :: PartialFailure)++instance Data.FromXML PartialFailure where+ parseXML x =+ PartialFailure'+ Prelude.<$> (x Data..@? "ExceptionType")+ Prelude.<*> (x Data..@? "FailureCode")+ Prelude.<*> (x Data..@? "FailureDescription")+ Prelude.<*> (x Data..@? "FailureResource")++instance Prelude.Hashable PartialFailure where+ hashWithSalt _salt PartialFailure' {..} =+ _salt+ `Prelude.hashWithSalt` exceptionType+ `Prelude.hashWithSalt` failureCode+ `Prelude.hashWithSalt` failureDescription+ `Prelude.hashWithSalt` failureResource++instance Prelude.NFData PartialFailure where+ rnf PartialFailure' {..} =+ Prelude.rnf exceptionType+ `Prelude.seq` Prelude.rnf failureCode+ `Prelude.seq` Prelude.rnf failureDescription+ `Prelude.seq` Prelude.rnf failureResource
+ gen/Amazonka/CloudWatch/Types/Range.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Range+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Range where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Specifies one range of days or times to exclude from use for training an+-- anomaly detection model.+--+-- /See:/ 'newRange' smart constructor.+data Range = Range'+ { -- | The start time of the range to exclude. The format is+ -- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+ startTime :: Data.ISO8601,+ -- | The end time of the range to exclude. The format is+ -- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+ endTime :: Data.ISO8601+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Range' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'startTime', 'range_startTime' - The start time of the range to exclude. The format is+-- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+--+-- 'endTime', 'range_endTime' - The end time of the range to exclude. The format is+-- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+newRange ::+ -- | 'startTime'+ Prelude.UTCTime ->+ -- | 'endTime'+ Prelude.UTCTime ->+ Range+newRange pStartTime_ pEndTime_ =+ Range'+ { startTime = Data._Time Lens.# pStartTime_,+ endTime = Data._Time Lens.# pEndTime_+ }++-- | The start time of the range to exclude. The format is+-- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+range_startTime :: Lens.Lens' Range Prelude.UTCTime+range_startTime = Lens.lens (\Range' {startTime} -> startTime) (\s@Range' {} a -> s {startTime = a} :: Range) Prelude.. Data._Time++-- | The end time of the range to exclude. The format is+-- @yyyy-MM-dd\'T\'HH:mm:ss@. For example, @2019-07-01T23:59:59@.+range_endTime :: Lens.Lens' Range Prelude.UTCTime+range_endTime = Lens.lens (\Range' {endTime} -> endTime) (\s@Range' {} a -> s {endTime = a} :: Range) Prelude.. Data._Time++instance Data.FromXML Range where+ parseXML x =+ Range'+ Prelude.<$> (x Data..@ "StartTime")+ Prelude.<*> (x Data..@ "EndTime")++instance Prelude.Hashable Range where+ hashWithSalt _salt Range' {..} =+ _salt+ `Prelude.hashWithSalt` startTime+ `Prelude.hashWithSalt` endTime++instance Prelude.NFData Range where+ rnf Range' {..} =+ Prelude.rnf startTime+ `Prelude.seq` Prelude.rnf endTime++instance Data.ToQuery Range where+ toQuery Range' {..} =+ Prelude.mconcat+ [ "StartTime" Data.=: startTime,+ "EndTime" Data.=: endTime+ ]
+ gen/Amazonka/CloudWatch/Types/RecentlyActive.hs view
@@ -0,0 +1,66 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.RecentlyActive+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.RecentlyActive+ ( RecentlyActive+ ( ..,+ RecentlyActive_PT3H+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype RecentlyActive = RecentlyActive'+ { fromRecentlyActive ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern RecentlyActive_PT3H :: RecentlyActive+pattern RecentlyActive_PT3H = RecentlyActive' "PT3H"++{-# COMPLETE+ RecentlyActive_PT3H,+ RecentlyActive'+ #-}
+ gen/Amazonka/CloudWatch/Types/ScanBy.hs view
@@ -0,0 +1,68 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.ScanBy+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.ScanBy+ ( ScanBy+ ( ..,+ ScanBy_TimestampAscending,+ ScanBy_TimestampDescending+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ScanBy = ScanBy' {fromScanBy :: Data.Text}+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern ScanBy_TimestampAscending :: ScanBy+pattern ScanBy_TimestampAscending = ScanBy' "TimestampAscending"++pattern ScanBy_TimestampDescending :: ScanBy+pattern ScanBy_TimestampDescending = ScanBy' "TimestampDescending"++{-# COMPLETE+ ScanBy_TimestampAscending,+ ScanBy_TimestampDescending,+ ScanBy'+ #-}
+ gen/Amazonka/CloudWatch/Types/SingleMetricAnomalyDetector.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.SingleMetricAnomalyDetector where++import Amazonka.CloudWatch.Types.Dimension+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Designates the CloudWatch metric and statistic that provides the time+-- series the anomaly detector uses as input.+--+-- /See:/ 'newSingleMetricAnomalyDetector' smart constructor.+data SingleMetricAnomalyDetector = SingleMetricAnomalyDetector'+ { -- | The metric dimensions to create the anomaly detection model for.+ dimensions :: Prelude.Maybe [Dimension],+ -- | The name of the metric to create the anomaly detection model for.+ metricName :: Prelude.Maybe Prelude.Text,+ -- | The namespace of the metric to create the anomaly detection model for.+ namespace :: Prelude.Maybe Prelude.Text,+ -- | The statistic to use for the metric and anomaly detection model.+ stat :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SingleMetricAnomalyDetector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dimensions', 'singleMetricAnomalyDetector_dimensions' - The metric dimensions to create the anomaly detection model for.+--+-- 'metricName', 'singleMetricAnomalyDetector_metricName' - The name of the metric to create the anomaly detection model for.+--+-- 'namespace', 'singleMetricAnomalyDetector_namespace' - The namespace of the metric to create the anomaly detection model for.+--+-- 'stat', 'singleMetricAnomalyDetector_stat' - The statistic to use for the metric and anomaly detection model.+newSingleMetricAnomalyDetector ::+ SingleMetricAnomalyDetector+newSingleMetricAnomalyDetector =+ SingleMetricAnomalyDetector'+ { dimensions =+ Prelude.Nothing,+ metricName = Prelude.Nothing,+ namespace = Prelude.Nothing,+ stat = Prelude.Nothing+ }++-- | The metric dimensions to create the anomaly detection model for.+singleMetricAnomalyDetector_dimensions :: Lens.Lens' SingleMetricAnomalyDetector (Prelude.Maybe [Dimension])+singleMetricAnomalyDetector_dimensions = Lens.lens (\SingleMetricAnomalyDetector' {dimensions} -> dimensions) (\s@SingleMetricAnomalyDetector' {} a -> s {dimensions = a} :: SingleMetricAnomalyDetector) Prelude.. Lens.mapping Lens.coerced++-- | The name of the metric to create the anomaly detection model for.+singleMetricAnomalyDetector_metricName :: Lens.Lens' SingleMetricAnomalyDetector (Prelude.Maybe Prelude.Text)+singleMetricAnomalyDetector_metricName = Lens.lens (\SingleMetricAnomalyDetector' {metricName} -> metricName) (\s@SingleMetricAnomalyDetector' {} a -> s {metricName = a} :: SingleMetricAnomalyDetector)++-- | The namespace of the metric to create the anomaly detection model for.+singleMetricAnomalyDetector_namespace :: Lens.Lens' SingleMetricAnomalyDetector (Prelude.Maybe Prelude.Text)+singleMetricAnomalyDetector_namespace = Lens.lens (\SingleMetricAnomalyDetector' {namespace} -> namespace) (\s@SingleMetricAnomalyDetector' {} a -> s {namespace = a} :: SingleMetricAnomalyDetector)++-- | The statistic to use for the metric and anomaly detection model.+singleMetricAnomalyDetector_stat :: Lens.Lens' SingleMetricAnomalyDetector (Prelude.Maybe Prelude.Text)+singleMetricAnomalyDetector_stat = Lens.lens (\SingleMetricAnomalyDetector' {stat} -> stat) (\s@SingleMetricAnomalyDetector' {} a -> s {stat = a} :: SingleMetricAnomalyDetector)++instance Data.FromXML SingleMetricAnomalyDetector where+ parseXML x =+ SingleMetricAnomalyDetector'+ Prelude.<$> ( x+ Data..@? "Dimensions"+ Core..!@ Prelude.mempty+ Prelude.>>= Core.may (Data.parseXMLList "member")+ )+ Prelude.<*> (x Data..@? "MetricName")+ Prelude.<*> (x Data..@? "Namespace")+ Prelude.<*> (x Data..@? "Stat")++instance Prelude.Hashable SingleMetricAnomalyDetector where+ hashWithSalt _salt SingleMetricAnomalyDetector' {..} =+ _salt+ `Prelude.hashWithSalt` dimensions+ `Prelude.hashWithSalt` metricName+ `Prelude.hashWithSalt` namespace+ `Prelude.hashWithSalt` stat++instance Prelude.NFData SingleMetricAnomalyDetector where+ rnf SingleMetricAnomalyDetector' {..} =+ Prelude.rnf dimensions+ `Prelude.seq` Prelude.rnf metricName+ `Prelude.seq` Prelude.rnf namespace+ `Prelude.seq` Prelude.rnf stat++instance Data.ToQuery SingleMetricAnomalyDetector where+ toQuery SingleMetricAnomalyDetector' {..} =+ Prelude.mconcat+ [ "Dimensions"+ Data.=: Data.toQuery+ (Data.toQueryList "member" Prelude.<$> dimensions),+ "MetricName" Data.=: metricName,+ "Namespace" Data.=: namespace,+ "Stat" Data.=: stat+ ]
+ gen/Amazonka/CloudWatch/Types/StandardUnit.hs view
@@ -0,0 +1,196 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.StandardUnit+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.StandardUnit+ ( StandardUnit+ ( ..,+ StandardUnit_Bits,+ StandardUnit_Bits_Second,+ StandardUnit_Bytes,+ StandardUnit_Bytes_Second,+ StandardUnit_Count,+ StandardUnit_Count_Second,+ StandardUnit_Gigabits,+ StandardUnit_Gigabits_Second,+ StandardUnit_Gigabytes,+ StandardUnit_Gigabytes_Second,+ StandardUnit_Kilobits,+ StandardUnit_Kilobits_Second,+ StandardUnit_Kilobytes,+ StandardUnit_Kilobytes_Second,+ StandardUnit_Megabits,+ StandardUnit_Megabits_Second,+ StandardUnit_Megabytes,+ StandardUnit_Megabytes_Second,+ StandardUnit_Microseconds,+ StandardUnit_Milliseconds,+ StandardUnit_None,+ StandardUnit_Percent,+ StandardUnit_Seconds,+ StandardUnit_Terabits,+ StandardUnit_Terabits_Second,+ StandardUnit_Terabytes,+ StandardUnit_Terabytes_Second+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype StandardUnit = StandardUnit'+ { fromStandardUnit ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern StandardUnit_Bits :: StandardUnit+pattern StandardUnit_Bits = StandardUnit' "Bits"++pattern StandardUnit_Bits_Second :: StandardUnit+pattern StandardUnit_Bits_Second = StandardUnit' "Bits/Second"++pattern StandardUnit_Bytes :: StandardUnit+pattern StandardUnit_Bytes = StandardUnit' "Bytes"++pattern StandardUnit_Bytes_Second :: StandardUnit+pattern StandardUnit_Bytes_Second = StandardUnit' "Bytes/Second"++pattern StandardUnit_Count :: StandardUnit+pattern StandardUnit_Count = StandardUnit' "Count"++pattern StandardUnit_Count_Second :: StandardUnit+pattern StandardUnit_Count_Second = StandardUnit' "Count/Second"++pattern StandardUnit_Gigabits :: StandardUnit+pattern StandardUnit_Gigabits = StandardUnit' "Gigabits"++pattern StandardUnit_Gigabits_Second :: StandardUnit+pattern StandardUnit_Gigabits_Second = StandardUnit' "Gigabits/Second"++pattern StandardUnit_Gigabytes :: StandardUnit+pattern StandardUnit_Gigabytes = StandardUnit' "Gigabytes"++pattern StandardUnit_Gigabytes_Second :: StandardUnit+pattern StandardUnit_Gigabytes_Second = StandardUnit' "Gigabytes/Second"++pattern StandardUnit_Kilobits :: StandardUnit+pattern StandardUnit_Kilobits = StandardUnit' "Kilobits"++pattern StandardUnit_Kilobits_Second :: StandardUnit+pattern StandardUnit_Kilobits_Second = StandardUnit' "Kilobits/Second"++pattern StandardUnit_Kilobytes :: StandardUnit+pattern StandardUnit_Kilobytes = StandardUnit' "Kilobytes"++pattern StandardUnit_Kilobytes_Second :: StandardUnit+pattern StandardUnit_Kilobytes_Second = StandardUnit' "Kilobytes/Second"++pattern StandardUnit_Megabits :: StandardUnit+pattern StandardUnit_Megabits = StandardUnit' "Megabits"++pattern StandardUnit_Megabits_Second :: StandardUnit+pattern StandardUnit_Megabits_Second = StandardUnit' "Megabits/Second"++pattern StandardUnit_Megabytes :: StandardUnit+pattern StandardUnit_Megabytes = StandardUnit' "Megabytes"++pattern StandardUnit_Megabytes_Second :: StandardUnit+pattern StandardUnit_Megabytes_Second = StandardUnit' "Megabytes/Second"++pattern StandardUnit_Microseconds :: StandardUnit+pattern StandardUnit_Microseconds = StandardUnit' "Microseconds"++pattern StandardUnit_Milliseconds :: StandardUnit+pattern StandardUnit_Milliseconds = StandardUnit' "Milliseconds"++pattern StandardUnit_None :: StandardUnit+pattern StandardUnit_None = StandardUnit' "None"++pattern StandardUnit_Percent :: StandardUnit+pattern StandardUnit_Percent = StandardUnit' "Percent"++pattern StandardUnit_Seconds :: StandardUnit+pattern StandardUnit_Seconds = StandardUnit' "Seconds"++pattern StandardUnit_Terabits :: StandardUnit+pattern StandardUnit_Terabits = StandardUnit' "Terabits"++pattern StandardUnit_Terabits_Second :: StandardUnit+pattern StandardUnit_Terabits_Second = StandardUnit' "Terabits/Second"++pattern StandardUnit_Terabytes :: StandardUnit+pattern StandardUnit_Terabytes = StandardUnit' "Terabytes"++pattern StandardUnit_Terabytes_Second :: StandardUnit+pattern StandardUnit_Terabytes_Second = StandardUnit' "Terabytes/Second"++{-# COMPLETE+ StandardUnit_Bits,+ StandardUnit_Bits_Second,+ StandardUnit_Bytes,+ StandardUnit_Bytes_Second,+ StandardUnit_Count,+ StandardUnit_Count_Second,+ StandardUnit_Gigabits,+ StandardUnit_Gigabits_Second,+ StandardUnit_Gigabytes,+ StandardUnit_Gigabytes_Second,+ StandardUnit_Kilobits,+ StandardUnit_Kilobits_Second,+ StandardUnit_Kilobytes,+ StandardUnit_Kilobytes_Second,+ StandardUnit_Megabits,+ StandardUnit_Megabits_Second,+ StandardUnit_Megabytes,+ StandardUnit_Megabytes_Second,+ StandardUnit_Microseconds,+ StandardUnit_Milliseconds,+ StandardUnit_None,+ StandardUnit_Percent,+ StandardUnit_Seconds,+ StandardUnit_Terabits,+ StandardUnit_Terabits_Second,+ StandardUnit_Terabytes,+ StandardUnit_Terabytes_Second,+ StandardUnit'+ #-}
+ gen/Amazonka/CloudWatch/Types/StateValue.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.StateValue+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.StateValue+ ( StateValue+ ( ..,+ StateValue_ALARM,+ StateValue_INSUFFICIENT_DATA,+ StateValue_OK+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype StateValue = StateValue'+ { fromStateValue ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern StateValue_ALARM :: StateValue+pattern StateValue_ALARM = StateValue' "ALARM"++pattern StateValue_INSUFFICIENT_DATA :: StateValue+pattern StateValue_INSUFFICIENT_DATA = StateValue' "INSUFFICIENT_DATA"++pattern StateValue_OK :: StateValue+pattern StateValue_OK = StateValue' "OK"++{-# COMPLETE+ StateValue_ALARM,+ StateValue_INSUFFICIENT_DATA,+ StateValue_OK,+ StateValue'+ #-}
+ gen/Amazonka/CloudWatch/Types/Statistic.hs view
@@ -0,0 +1,86 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Statistic+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Statistic+ ( Statistic+ ( ..,+ Statistic_Average,+ Statistic_Maximum,+ Statistic_Minimum,+ Statistic_SampleCount,+ Statistic_Sum+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype Statistic = Statistic'+ { fromStatistic ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern Statistic_Average :: Statistic+pattern Statistic_Average = Statistic' "Average"++pattern Statistic_Maximum :: Statistic+pattern Statistic_Maximum = Statistic' "Maximum"++pattern Statistic_Minimum :: Statistic+pattern Statistic_Minimum = Statistic' "Minimum"++pattern Statistic_SampleCount :: Statistic+pattern Statistic_SampleCount = Statistic' "SampleCount"++pattern Statistic_Sum :: Statistic+pattern Statistic_Sum = Statistic' "Sum"++{-# COMPLETE+ Statistic_Average,+ Statistic_Maximum,+ Statistic_Minimum,+ Statistic_SampleCount,+ Statistic_Sum,+ Statistic'+ #-}
+ gen/Amazonka/CloudWatch/Types/StatisticSet.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.StatisticSet+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.StatisticSet where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Represents a set of statistics that describes a specific metric.+--+-- /See:/ 'newStatisticSet' smart constructor.+data StatisticSet = StatisticSet'+ { -- | The number of samples used for the statistic set.+ sampleCount :: Prelude.Double,+ -- | The sum of values for the sample set.+ sum :: Prelude.Double,+ -- | The minimum value of the sample set.+ minimum :: Prelude.Double,+ -- | The maximum value of the sample set.+ maximum :: Prelude.Double+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StatisticSet' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'sampleCount', 'statisticSet_sampleCount' - The number of samples used for the statistic set.+--+-- 'sum', 'statisticSet_sum' - The sum of values for the sample set.+--+-- 'minimum', 'statisticSet_minimum' - The minimum value of the sample set.+--+-- 'maximum', 'statisticSet_maximum' - The maximum value of the sample set.+newStatisticSet ::+ -- | 'sampleCount'+ Prelude.Double ->+ -- | 'sum'+ Prelude.Double ->+ -- | 'minimum'+ Prelude.Double ->+ -- | 'maximum'+ Prelude.Double ->+ StatisticSet+newStatisticSet+ pSampleCount_+ pSum_+ pMinimum_+ pMaximum_ =+ StatisticSet'+ { sampleCount = pSampleCount_,+ sum = pSum_,+ minimum = pMinimum_,+ maximum = pMaximum_+ }++-- | The number of samples used for the statistic set.+statisticSet_sampleCount :: Lens.Lens' StatisticSet Prelude.Double+statisticSet_sampleCount = Lens.lens (\StatisticSet' {sampleCount} -> sampleCount) (\s@StatisticSet' {} a -> s {sampleCount = a} :: StatisticSet)++-- | The sum of values for the sample set.+statisticSet_sum :: Lens.Lens' StatisticSet Prelude.Double+statisticSet_sum = Lens.lens (\StatisticSet' {sum} -> sum) (\s@StatisticSet' {} a -> s {sum = a} :: StatisticSet)++-- | The minimum value of the sample set.+statisticSet_minimum :: Lens.Lens' StatisticSet Prelude.Double+statisticSet_minimum = Lens.lens (\StatisticSet' {minimum} -> minimum) (\s@StatisticSet' {} a -> s {minimum = a} :: StatisticSet)++-- | The maximum value of the sample set.+statisticSet_maximum :: Lens.Lens' StatisticSet Prelude.Double+statisticSet_maximum = Lens.lens (\StatisticSet' {maximum} -> maximum) (\s@StatisticSet' {} a -> s {maximum = a} :: StatisticSet)++instance Prelude.Hashable StatisticSet where+ hashWithSalt _salt StatisticSet' {..} =+ _salt+ `Prelude.hashWithSalt` sampleCount+ `Prelude.hashWithSalt` sum+ `Prelude.hashWithSalt` minimum+ `Prelude.hashWithSalt` maximum++instance Prelude.NFData StatisticSet where+ rnf StatisticSet' {..} =+ Prelude.rnf sampleCount+ `Prelude.seq` Prelude.rnf sum+ `Prelude.seq` Prelude.rnf minimum+ `Prelude.seq` Prelude.rnf maximum++instance Data.ToQuery StatisticSet where+ toQuery StatisticSet' {..} =+ Prelude.mconcat+ [ "SampleCount" Data.=: sampleCount,+ "Sum" Data.=: sum,+ "Minimum" Data.=: minimum,+ "Maximum" Data.=: maximum+ ]
+ gen/Amazonka/CloudWatch/Types/StatusCode.hs view
@@ -0,0 +1,81 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.StatusCode+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.StatusCode+ ( StatusCode+ ( ..,+ StatusCode_Complete,+ StatusCode_Forbidden,+ StatusCode_InternalError,+ StatusCode_PartialData+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype StatusCode = StatusCode'+ { fromStatusCode ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern StatusCode_Complete :: StatusCode+pattern StatusCode_Complete = StatusCode' "Complete"++pattern StatusCode_Forbidden :: StatusCode+pattern StatusCode_Forbidden = StatusCode' "Forbidden"++pattern StatusCode_InternalError :: StatusCode+pattern StatusCode_InternalError = StatusCode' "InternalError"++pattern StatusCode_PartialData :: StatusCode+pattern StatusCode_PartialData = StatusCode' "PartialData"++{-# COMPLETE+ StatusCode_Complete,+ StatusCode_Forbidden,+ StatusCode_InternalError,+ StatusCode_PartialData,+ StatusCode'+ #-}
+ gen/Amazonka/CloudWatch/Types/Tag.hs view
@@ -0,0 +1,88 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Types.Tag+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Types.Tag where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A key-value pair associated with a CloudWatch resource.+--+-- /See:/ 'newTag' smart constructor.+data Tag = Tag'+ { -- | A string that you can use to assign a value. The combination of tag keys+ -- and values can help you organize and categorize your resources.+ key :: Prelude.Text,+ -- | The value for the specified tag key.+ value :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Tag' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'key', 'tag_key' - A string that you can use to assign a value. The combination of tag keys+-- and values can help you organize and categorize your resources.+--+-- 'value', 'tag_value' - The value for the specified tag key.+newTag ::+ -- | 'key'+ Prelude.Text ->+ -- | 'value'+ Prelude.Text ->+ Tag+newTag pKey_ pValue_ =+ Tag' {key = pKey_, value = pValue_}++-- | A string that you can use to assign a value. The combination of tag keys+-- and values can help you organize and categorize your resources.+tag_key :: Lens.Lens' Tag Prelude.Text+tag_key = Lens.lens (\Tag' {key} -> key) (\s@Tag' {} a -> s {key = a} :: Tag)++-- | The value for the specified tag key.+tag_value :: Lens.Lens' Tag Prelude.Text+tag_value = Lens.lens (\Tag' {value} -> value) (\s@Tag' {} a -> s {value = a} :: Tag)++instance Data.FromXML Tag where+ parseXML x =+ Tag'+ Prelude.<$> (x Data..@ "Key")+ Prelude.<*> (x Data..@ "Value")++instance Prelude.Hashable Tag where+ hashWithSalt _salt Tag' {..} =+ _salt+ `Prelude.hashWithSalt` key+ `Prelude.hashWithSalt` value++instance Prelude.NFData Tag where+ rnf Tag' {..} =+ Prelude.rnf key `Prelude.seq` Prelude.rnf value++instance Data.ToQuery Tag where+ toQuery Tag' {..} =+ Prelude.mconcat+ ["Key" Data.=: key, "Value" Data.=: value]
+ gen/Amazonka/CloudWatch/UntagResource.hs view
@@ -0,0 +1,189 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.UntagResource+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes one or more tags from the specified resource.+module Amazonka.CloudWatch.UntagResource+ ( -- * Creating a Request+ UntagResource (..),+ newUntagResource,++ -- * Request Lenses+ untagResource_resourceARN,+ untagResource_tagKeys,++ -- * Destructuring the Response+ UntagResourceResponse (..),+ newUntagResourceResponse,++ -- * Response Lenses+ untagResourceResponse_httpStatus,+ )+where++import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUntagResource' smart constructor.+data UntagResource = UntagResource'+ { -- | The ARN of the CloudWatch resource that you\'re removing tags from.+ --+ -- The ARN format of an alarm is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+ --+ -- The ARN format of a Contributor Insights rule is+ -- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+ --+ -- For more information about ARN format, see+ -- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+ -- in the /Amazon Web Services General Reference/.+ resourceARN :: Prelude.Text,+ -- | The list of tag keys to remove from the resource.+ tagKeys :: [Prelude.Text]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UntagResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceARN', 'untagResource_resourceARN' - The ARN of the CloudWatch resource that you\'re removing tags from.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+--+-- 'tagKeys', 'untagResource_tagKeys' - The list of tag keys to remove from the resource.+newUntagResource ::+ -- | 'resourceARN'+ Prelude.Text ->+ UntagResource+newUntagResource pResourceARN_ =+ UntagResource'+ { resourceARN = pResourceARN_,+ tagKeys = Prelude.mempty+ }++-- | The ARN of the CloudWatch resource that you\'re removing tags from.+--+-- The ARN format of an alarm is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:alarm:@/@alarm-name@/@ @+--+-- The ARN format of a Contributor Insights rule is+-- @arn:aws:cloudwatch:@/@Region@/@:@/@account-id@/@:insight-rule:@/@insight-rule-name@/@ @+--+-- For more information about ARN format, see+-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies Resource Types Defined by Amazon CloudWatch>+-- in the /Amazon Web Services General Reference/.+untagResource_resourceARN :: Lens.Lens' UntagResource Prelude.Text+untagResource_resourceARN = Lens.lens (\UntagResource' {resourceARN} -> resourceARN) (\s@UntagResource' {} a -> s {resourceARN = a} :: UntagResource)++-- | The list of tag keys to remove from the resource.+untagResource_tagKeys :: Lens.Lens' UntagResource [Prelude.Text]+untagResource_tagKeys = Lens.lens (\UntagResource' {tagKeys} -> tagKeys) (\s@UntagResource' {} a -> s {tagKeys = a} :: UntagResource) Prelude.. Lens.coerced++instance Core.AWSRequest UntagResource where+ type+ AWSResponse UntagResource =+ UntagResourceResponse+ request overrides =+ Request.postQuery (overrides defaultService)+ response =+ Response.receiveXMLWrapper+ "UntagResourceResult"+ ( \s h x ->+ UntagResourceResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable UntagResource where+ hashWithSalt _salt UntagResource' {..} =+ _salt+ `Prelude.hashWithSalt` resourceARN+ `Prelude.hashWithSalt` tagKeys++instance Prelude.NFData UntagResource where+ rnf UntagResource' {..} =+ Prelude.rnf resourceARN+ `Prelude.seq` Prelude.rnf tagKeys++instance Data.ToHeaders UntagResource where+ toHeaders = Prelude.const Prelude.mempty++instance Data.ToPath UntagResource where+ toPath = Prelude.const "/"++instance Data.ToQuery UntagResource where+ toQuery UntagResource' {..} =+ Prelude.mconcat+ [ "Action"+ Data.=: ("UntagResource" :: Prelude.ByteString),+ "Version"+ Data.=: ("2010-08-01" :: Prelude.ByteString),+ "ResourceARN" Data.=: resourceARN,+ "TagKeys" Data.=: Data.toQueryList "member" tagKeys+ ]++-- | /See:/ 'newUntagResourceResponse' smart constructor.+data UntagResourceResponse = UntagResourceResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UntagResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'untagResourceResponse_httpStatus' - The response's http status code.+newUntagResourceResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ UntagResourceResponse+newUntagResourceResponse pHttpStatus_ =+ UntagResourceResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+untagResourceResponse_httpStatus :: Lens.Lens' UntagResourceResponse Prelude.Int+untagResourceResponse_httpStatus = Lens.lens (\UntagResourceResponse' {httpStatus} -> httpStatus) (\s@UntagResourceResponse' {} a -> s {httpStatus = a} :: UntagResourceResponse)++instance Prelude.NFData UntagResourceResponse where+ rnf UntagResourceResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/CloudWatch/Waiters.hs view
@@ -0,0 +1,67 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.CloudWatch.Waiters+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudWatch.Waiters where++import Amazonka.CloudWatch.DescribeAlarms+import Amazonka.CloudWatch.Lens+import Amazonka.CloudWatch.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Polls 'Amazonka.CloudWatch.DescribeAlarms' every 5 seconds until a successful state is reached. An error is returned after 40 failed checks.+newAlarmExists :: Core.Wait DescribeAlarms+newAlarmExists =+ Core.Wait+ { Core.name = "AlarmExists",+ Core.attempts = 40,+ Core.delay = 5,+ Core.acceptors =+ [ Core.matchNonEmpty+ Prelude.True+ Core.AcceptSuccess+ ( Lens.folding+ ( Lens.concatOf+ ( describeAlarmsResponse_metricAlarms+ Prelude.. Lens._Just+ )+ )+ )+ ]+ }++-- | Polls 'Amazonka.CloudWatch.DescribeAlarms' every 5 seconds until a successful state is reached. An error is returned after 40 failed checks.+newCompositeAlarmExists :: Core.Wait DescribeAlarms+newCompositeAlarmExists =+ Core.Wait+ { Core.name = "CompositeAlarmExists",+ Core.attempts = 40,+ Core.delay = 5,+ Core.acceptors =+ [ Core.matchNonEmpty+ Prelude.True+ Core.AcceptSuccess+ ( Lens.folding+ ( Lens.concatOf+ ( describeAlarmsResponse_compositeAlarms+ Prelude.. Lens._Just+ )+ )+ )+ ]+ }
− gen/Network/AWS/CloudWatch.hs
@@ -1,322 +0,0 @@-{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- 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.--------- CloudWatch alarms send notifications or automatically change 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 EC2 instances. 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.----module Network.AWS.CloudWatch- (- -- * Service Configuration- cloudWatch-- -- * Errors- -- $errors-- -- ** LimitExceededFault- , _LimitExceededFault-- -- ** DashboardNotFoundError- , _DashboardNotFoundError-- -- ** InvalidNextToken- , _InvalidNextToken-- -- ** InternalServiceFault- , _InternalServiceFault-- -- ** DashboardInvalidInputError- , _DashboardInvalidInputError-- -- ** InvalidParameterValueException- , _InvalidParameterValueException-- -- ** InvalidFormatFault- , _InvalidFormatFault-- -- ** MissingRequiredParameterException- , _MissingRequiredParameterException-- -- ** InvalidParameterCombinationException- , _InvalidParameterCombinationException-- -- ** ResourceNotFound- , _ResourceNotFound-- -- * Waiters- -- $waiters-- -- ** AlarmExists- , alarmExists-- -- * Operations- -- $operations-- -- ** EnableAlarmActions- , module Network.AWS.CloudWatch.EnableAlarmActions-- -- ** GetDashboard- , module Network.AWS.CloudWatch.GetDashboard-- -- ** GetMetricData- , module Network.AWS.CloudWatch.GetMetricData-- -- ** PutMetricData- , module Network.AWS.CloudWatch.PutMetricData-- -- ** ListDashboards (Paginated)- , module Network.AWS.CloudWatch.ListDashboards-- -- ** DescribeAlarms (Paginated)- , module Network.AWS.CloudWatch.DescribeAlarms-- -- ** ListMetrics (Paginated)- , module Network.AWS.CloudWatch.ListMetrics-- -- ** DeleteDashboards- , module Network.AWS.CloudWatch.DeleteDashboards-- -- ** DeleteAlarms- , module Network.AWS.CloudWatch.DeleteAlarms-- -- ** DescribeAlarmHistory (Paginated)- , module Network.AWS.CloudWatch.DescribeAlarmHistory-- -- ** GetMetricStatistics- , module Network.AWS.CloudWatch.GetMetricStatistics-- -- ** DescribeAlarmsForMetric- , module Network.AWS.CloudWatch.DescribeAlarmsForMetric-- -- ** DisableAlarmActions- , module Network.AWS.CloudWatch.DisableAlarmActions-- -- ** PutDashboard- , module Network.AWS.CloudWatch.PutDashboard-- -- ** PutMetricAlarm- , module Network.AWS.CloudWatch.PutMetricAlarm-- -- ** SetAlarmState- , module Network.AWS.CloudWatch.SetAlarmState-- -- * Types-- -- ** ComparisonOperator- , ComparisonOperator (..)-- -- ** HistoryItemType- , HistoryItemType (..)-- -- ** ScanBy- , ScanBy (..)-- -- ** StandardUnit- , StandardUnit (..)-- -- ** StateValue- , StateValue (..)-- -- ** Statistic- , Statistic (..)-- -- ** StatusCode- , StatusCode (..)-- -- ** AlarmHistoryItem- , AlarmHistoryItem- , alarmHistoryItem- , ahiAlarmName- , ahiHistoryItemType- , ahiHistoryData- , ahiHistorySummary- , ahiTimestamp-- -- ** DashboardEntry- , DashboardEntry- , dashboardEntry- , deSize- , deDashboardName- , deLastModified- , deDashboardARN-- -- ** DashboardValidationMessage- , DashboardValidationMessage- , dashboardValidationMessage- , dvmDataPath- , dvmMessage-- -- ** Datapoint- , Datapoint- , datapoint- , dSampleCount- , dMaximum- , dAverage- , dMinimum- , dExtendedStatistics- , dSum- , dUnit- , dTimestamp-- -- ** Dimension- , Dimension- , dimension- , dName- , dValue-- -- ** DimensionFilter- , DimensionFilter- , dimensionFilter- , dfValue- , dfName-- -- ** MessageData- , MessageData- , messageData- , mValue- , mCode-- -- ** Metric- , Metric- , metric- , mMetricName- , mNamespace- , mDimensions-- -- ** MetricAlarm- , MetricAlarm- , metricAlarm- , maAlarmName- , maStateUpdatedTimestamp- , maTreatMissingData- , maPeriod- , maAlarmDescription- , maEvaluationPeriods- , maMetricName- , maNamespace- , maComparisonOperator- , maOKActions- , maEvaluateLowSampleCountPercentile- , maStateValue- , maDatapointsToAlarm- , maThreshold- , maAlarmConfigurationUpdatedTimestamp- , maActionsEnabled- , maInsufficientDataActions- , maStateReason- , maStateReasonData- , maDimensions- , maAlarmARN- , maAlarmActions- , maUnit- , maStatistic- , maExtendedStatistic-- -- ** MetricDataQuery- , MetricDataQuery- , metricDataQuery- , mdqReturnData- , mdqExpression- , mdqLabel- , mdqMetricStat- , mdqId-- -- ** MetricDataResult- , MetricDataResult- , metricDataResult- , mdrValues- , mdrId- , mdrTimestamps- , mdrMessages- , mdrLabel- , mdrStatusCode-- -- ** MetricDatum- , MetricDatum- , metricDatum- , mdValue- , mdStorageResolution- , mdDimensions- , mdUnit- , mdTimestamp- , mdStatisticValues- , mdMetricName-- -- ** MetricStat- , MetricStat- , metricStat- , msUnit- , msMetric- , msPeriod- , msStat-- -- ** StatisticSet- , StatisticSet- , statisticSet- , ssSampleCount- , ssSum- , ssMinimum- , ssMaximum- ) where--import Network.AWS.CloudWatch.DeleteAlarms-import Network.AWS.CloudWatch.DeleteDashboards-import Network.AWS.CloudWatch.DescribeAlarmHistory-import Network.AWS.CloudWatch.DescribeAlarms-import Network.AWS.CloudWatch.DescribeAlarmsForMetric-import Network.AWS.CloudWatch.DisableAlarmActions-import Network.AWS.CloudWatch.EnableAlarmActions-import Network.AWS.CloudWatch.GetDashboard-import Network.AWS.CloudWatch.GetMetricData-import Network.AWS.CloudWatch.GetMetricStatistics-import Network.AWS.CloudWatch.ListDashboards-import Network.AWS.CloudWatch.ListMetrics-import Network.AWS.CloudWatch.PutDashboard-import Network.AWS.CloudWatch.PutMetricAlarm-import Network.AWS.CloudWatch.PutMetricData-import Network.AWS.CloudWatch.SetAlarmState-import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Waiters--{- $errors-Error matchers are designed for use with the functions provided by-<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.-This allows catching (and rethrowing) service specific errors returned-by 'CloudWatch'.--}--{- $operations-Some AWS operations return results that are incomplete and require subsequent-requests in order to obtain the entire result set. The process of sending-subsequent requests to continue where a previous request left off is called-pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to-1000 objects at a time, and you must send subsequent requests with the-appropriate Marker in order to retrieve the next page of results.--Operations that have an 'AWSPager' instance can transparently perform subsequent-requests, correctly setting Markers and other request facets to iterate through-the entire result set of a truncated API operation. Operations which support-this have an additional note in the documentation.--Many operations have the ability to filter results on the server side. See the-individual operation parameters for details.--}--{- $waiters-Waiters poll by repeatedly sending a request until some remote success condition-configured by the 'Wait' specification is fulfilled. The 'Wait' specification-determines how many attempts should be made, in addition to delay and retry strategies.--}
− gen/Network/AWS/CloudWatch/DeleteAlarms.hs
@@ -1,99 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DeleteAlarms--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes the specified alarms. In the event of an error, no alarms are deleted.-------module Network.AWS.CloudWatch.DeleteAlarms- (- -- * Creating a Request- deleteAlarms- , DeleteAlarms- -- * Request Lenses- , dAlarmNames-- -- * Destructuring the Response- , deleteAlarmsResponse- , DeleteAlarmsResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'deleteAlarms' smart constructor.-newtype DeleteAlarms = DeleteAlarms'- { _dAlarmNames :: [Text]- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteAlarms' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dAlarmNames' - The alarms to be deleted.-deleteAlarms- :: DeleteAlarms-deleteAlarms = DeleteAlarms' {_dAlarmNames = mempty}----- | The alarms to be deleted.-dAlarmNames :: Lens' DeleteAlarms [Text]-dAlarmNames = lens _dAlarmNames (\ s a -> s{_dAlarmNames = a}) . _Coerce--instance AWSRequest DeleteAlarms where- type Rs DeleteAlarms = DeleteAlarmsResponse- request = postQuery cloudWatch- response = receiveNull DeleteAlarmsResponse'--instance Hashable DeleteAlarms where--instance NFData DeleteAlarms where--instance ToHeaders DeleteAlarms where- toHeaders = const mempty--instance ToPath DeleteAlarms where- toPath = const "/"--instance ToQuery DeleteAlarms where- toQuery DeleteAlarms'{..}- = mconcat- ["Action" =: ("DeleteAlarms" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "AlarmNames" =: toQueryList "member" _dAlarmNames]---- | /See:/ 'deleteAlarmsResponse' smart constructor.-data DeleteAlarmsResponse =- DeleteAlarmsResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteAlarmsResponse' with the minimum fields required to make a request.----deleteAlarmsResponse- :: DeleteAlarmsResponse-deleteAlarmsResponse = DeleteAlarmsResponse'---instance NFData DeleteAlarmsResponse where
− gen/Network/AWS/CloudWatch/DeleteDashboards.hs
@@ -1,114 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DeleteDashboards--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes all dashboards that you specify. You may specify up to 100 dashboards to delete. If there is an error during this call, no dashboards are deleted.-------module Network.AWS.CloudWatch.DeleteDashboards- (- -- * Creating a Request- deleteDashboards- , DeleteDashboards- -- * Request Lenses- , ddDashboardNames-- -- * Destructuring the Response- , deleteDashboardsResponse- , DeleteDashboardsResponse- -- * Response Lenses- , ddrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'deleteDashboards' smart constructor.-newtype DeleteDashboards = DeleteDashboards'- { _ddDashboardNames :: [Text]- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteDashboards' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ddDashboardNames' - The dashboards to be deleted. This parameter is required.-deleteDashboards- :: DeleteDashboards-deleteDashboards = DeleteDashboards' {_ddDashboardNames = mempty}----- | The dashboards to be deleted. This parameter is required.-ddDashboardNames :: Lens' DeleteDashboards [Text]-ddDashboardNames = lens _ddDashboardNames (\ s a -> s{_ddDashboardNames = a}) . _Coerce--instance AWSRequest DeleteDashboards where- type Rs DeleteDashboards = DeleteDashboardsResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "DeleteDashboardsResult"- (\ s h x ->- DeleteDashboardsResponse' <$> (pure (fromEnum s)))--instance Hashable DeleteDashboards where--instance NFData DeleteDashboards where--instance ToHeaders DeleteDashboards where- toHeaders = const mempty--instance ToPath DeleteDashboards where- toPath = const "/"--instance ToQuery DeleteDashboards where- toQuery DeleteDashboards'{..}- = mconcat- ["Action" =: ("DeleteDashboards" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "DashboardNames" =:- toQueryList "member" _ddDashboardNames]---- | /See:/ 'deleteDashboardsResponse' smart constructor.-newtype DeleteDashboardsResponse = DeleteDashboardsResponse'- { _ddrsResponseStatus :: Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteDashboardsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ddrsResponseStatus' - -- | The response status code.-deleteDashboardsResponse- :: Int -- ^ 'ddrsResponseStatus'- -> DeleteDashboardsResponse-deleteDashboardsResponse pResponseStatus_ =- DeleteDashboardsResponse' {_ddrsResponseStatus = pResponseStatus_}----- | -- | The response status code.-ddrsResponseStatus :: Lens' DeleteDashboardsResponse Int-ddrsResponseStatus = lens _ddrsResponseStatus (\ s a -> s{_ddrsResponseStatus = a})--instance NFData DeleteDashboardsResponse where
− gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs
@@ -1,203 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DescribeAlarmHistory--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.--------- CloudWatch retains the history of an alarm even if you delete the alarm.--------- This operation returns paginated results.-module Network.AWS.CloudWatch.DescribeAlarmHistory- (- -- * Creating a Request- describeAlarmHistory- , DescribeAlarmHistory- -- * Request Lenses- , dahAlarmName- , dahHistoryItemType- , dahEndDate- , dahStartDate- , dahNextToken- , dahMaxRecords-- -- * Destructuring the Response- , describeAlarmHistoryResponse- , DescribeAlarmHistoryResponse- -- * Response Lenses- , dahrsAlarmHistoryItems- , dahrsNextToken- , dahrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Pager-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'describeAlarmHistory' smart constructor.-data DescribeAlarmHistory = DescribeAlarmHistory'- { _dahAlarmName :: !(Maybe Text)- , _dahHistoryItemType :: !(Maybe HistoryItemType)- , _dahEndDate :: !(Maybe ISO8601)- , _dahStartDate :: !(Maybe ISO8601)- , _dahNextToken :: !(Maybe Text)- , _dahMaxRecords :: !(Maybe Nat)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarmHistory' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dahAlarmName' - The name of the alarm.------ * 'dahHistoryItemType' - The type of alarm histories to retrieve.------ * 'dahEndDate' - The ending date to retrieve alarm history.------ * 'dahStartDate' - The starting date to retrieve alarm history.------ * 'dahNextToken' - The token returned by a previous call to indicate that there is more data available.------ * 'dahMaxRecords' - The maximum number of alarm history records to retrieve.-describeAlarmHistory- :: DescribeAlarmHistory-describeAlarmHistory =- DescribeAlarmHistory'- { _dahAlarmName = Nothing- , _dahHistoryItemType = Nothing- , _dahEndDate = Nothing- , _dahStartDate = Nothing- , _dahNextToken = Nothing- , _dahMaxRecords = Nothing- }----- | The name of the alarm.-dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text)-dahAlarmName = lens _dahAlarmName (\ s a -> s{_dahAlarmName = a})---- | The type of alarm histories to retrieve.-dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)-dahHistoryItemType = lens _dahHistoryItemType (\ s a -> s{_dahHistoryItemType = a})---- | The ending date to retrieve alarm history.-dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)-dahEndDate = lens _dahEndDate (\ s a -> s{_dahEndDate = a}) . mapping _Time---- | The starting date to retrieve alarm history.-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.-dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text)-dahNextToken = lens _dahNextToken (\ s a -> s{_dahNextToken = a})---- | The maximum number of alarm history records to retrieve.-dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)-dahMaxRecords = lens _dahMaxRecords (\ s a -> s{_dahMaxRecords = a}) . mapping _Nat--instance AWSPager DescribeAlarmHistory where- page rq rs- | stop (rs ^. dahrsNextToken) = Nothing- | stop (rs ^. dahrsAlarmHistoryItems) = Nothing- | otherwise =- Just $ rq & dahNextToken .~ rs ^. dahrsNextToken--instance AWSRequest DescribeAlarmHistory where- type Rs DescribeAlarmHistory =- DescribeAlarmHistoryResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "DescribeAlarmHistoryResult"- (\ s h x ->- DescribeAlarmHistoryResponse' <$>- (x .@? "AlarmHistoryItems" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "NextToken")- <*> (pure (fromEnum s)))--instance Hashable DescribeAlarmHistory where--instance NFData DescribeAlarmHistory where--instance ToHeaders DescribeAlarmHistory where- toHeaders = const mempty--instance ToPath DescribeAlarmHistory where- toPath = const "/"--instance ToQuery DescribeAlarmHistory where- toQuery DescribeAlarmHistory'{..}- = mconcat- ["Action" =: ("DescribeAlarmHistory" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "AlarmName" =: _dahAlarmName,- "HistoryItemType" =: _dahHistoryItemType,- "EndDate" =: _dahEndDate,- "StartDate" =: _dahStartDate,- "NextToken" =: _dahNextToken,- "MaxRecords" =: _dahMaxRecords]---- | /See:/ 'describeAlarmHistoryResponse' smart constructor.-data DescribeAlarmHistoryResponse = DescribeAlarmHistoryResponse'- { _dahrsAlarmHistoryItems :: !(Maybe [AlarmHistoryItem])- , _dahrsNextToken :: !(Maybe Text)- , _dahrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarmHistoryResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dahrsAlarmHistoryItems' - The alarm histories, in JSON format.------ * 'dahrsNextToken' - The token that marks the start of the next batch of returned results.------ * 'dahrsResponseStatus' - -- | The response status code.-describeAlarmHistoryResponse- :: Int -- ^ 'dahrsResponseStatus'- -> DescribeAlarmHistoryResponse-describeAlarmHistoryResponse pResponseStatus_ =- DescribeAlarmHistoryResponse'- { _dahrsAlarmHistoryItems = Nothing- , _dahrsNextToken = Nothing- , _dahrsResponseStatus = pResponseStatus_- }----- | The alarm histories, in JSON format.-dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem]-dahrsAlarmHistoryItems = lens _dahrsAlarmHistoryItems (\ s a -> s{_dahrsAlarmHistoryItems = a}) . _Default . _Coerce---- | The token that marks the start of the next batch of returned results.-dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)-dahrsNextToken = lens _dahrsNextToken (\ s a -> s{_dahrsNextToken = a})---- | -- | The response status code.-dahrsResponseStatus :: Lens' DescribeAlarmHistoryResponse Int-dahrsResponseStatus = lens _dahrsResponseStatus (\ s a -> s{_dahrsResponseStatus = a})--instance NFData DescribeAlarmHistoryResponse where
− gen/Network/AWS/CloudWatch/DescribeAlarms.hs
@@ -1,201 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DescribeAlarms--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the specified alarms. If no alarms are specified, all alarms 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- (- -- * Creating a Request- describeAlarms- , DescribeAlarms- -- * Request Lenses- , daAlarmNamePrefix- , daActionPrefix- , daNextToken- , daStateValue- , daAlarmNames- , daMaxRecords-- -- * Destructuring the Response- , describeAlarmsResponse- , DescribeAlarmsResponse- -- * Response Lenses- , darsMetricAlarms- , darsNextToken- , darsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Pager-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'describeAlarms' smart constructor.-data DescribeAlarms = DescribeAlarms'- { _daAlarmNamePrefix :: !(Maybe Text)- , _daActionPrefix :: !(Maybe Text)- , _daNextToken :: !(Maybe Text)- , _daStateValue :: !(Maybe StateValue)- , _daAlarmNames :: !(Maybe [Text])- , _daMaxRecords :: !(Maybe Nat)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarms' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'daAlarmNamePrefix' - The alarm name prefix. If this parameter is specified, you cannot specify @AlarmNames@ .------ * 'daActionPrefix' - The action name prefix.------ * 'daNextToken' - The token returned by a previous call to indicate that there is more data available.------ * 'daStateValue' - The state value to be used in matching alarms.------ * 'daAlarmNames' - The names of the alarms.------ * 'daMaxRecords' - The maximum number of alarm descriptions to retrieve.-describeAlarms- :: DescribeAlarms-describeAlarms =- DescribeAlarms'- { _daAlarmNamePrefix = Nothing- , _daActionPrefix = Nothing- , _daNextToken = Nothing- , _daStateValue = Nothing- , _daAlarmNames = Nothing- , _daMaxRecords = Nothing- }----- | The alarm name prefix. If this parameter is specified, you cannot specify @AlarmNames@ .-daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text)-daAlarmNamePrefix = lens _daAlarmNamePrefix (\ s a -> s{_daAlarmNamePrefix = a})---- | The action name prefix.-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.-daNextToken :: Lens' DescribeAlarms (Maybe Text)-daNextToken = lens _daNextToken (\ s a -> s{_daNextToken = a})---- | The state value to be used in matching alarms.-daStateValue :: Lens' DescribeAlarms (Maybe StateValue)-daStateValue = lens _daStateValue (\ s a -> s{_daStateValue = a})---- | The names of the alarms.-daAlarmNames :: Lens' DescribeAlarms [Text]-daAlarmNames = lens _daAlarmNames (\ s a -> s{_daAlarmNames = a}) . _Default . _Coerce---- | The maximum number of alarm descriptions to retrieve.-daMaxRecords :: Lens' DescribeAlarms (Maybe Natural)-daMaxRecords = lens _daMaxRecords (\ s a -> s{_daMaxRecords = a}) . mapping _Nat--instance AWSPager DescribeAlarms where- page rq rs- | stop (rs ^. darsNextToken) = Nothing- | stop (rs ^. darsMetricAlarms) = Nothing- | otherwise =- Just $ rq & daNextToken .~ rs ^. darsNextToken--instance AWSRequest DescribeAlarms where- type Rs DescribeAlarms = DescribeAlarmsResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "DescribeAlarmsResult"- (\ s h x ->- DescribeAlarmsResponse' <$>- (x .@? "MetricAlarms" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "NextToken")- <*> (pure (fromEnum s)))--instance Hashable DescribeAlarms where--instance NFData DescribeAlarms where--instance ToHeaders DescribeAlarms where- toHeaders = const mempty--instance ToPath DescribeAlarms where- toPath = const "/"--instance ToQuery DescribeAlarms where- toQuery DescribeAlarms'{..}- = mconcat- ["Action" =: ("DescribeAlarms" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "AlarmNamePrefix" =: _daAlarmNamePrefix,- "ActionPrefix" =: _daActionPrefix,- "NextToken" =: _daNextToken,- "StateValue" =: _daStateValue,- "AlarmNames" =:- toQuery (toQueryList "member" <$> _daAlarmNames),- "MaxRecords" =: _daMaxRecords]---- | /See:/ 'describeAlarmsResponse' smart constructor.-data DescribeAlarmsResponse = DescribeAlarmsResponse'- { _darsMetricAlarms :: !(Maybe [MetricAlarm])- , _darsNextToken :: !(Maybe Text)- , _darsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarmsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'darsMetricAlarms' - The information for the specified alarms.------ * 'darsNextToken' - The token that marks the start of the next batch of returned results.------ * 'darsResponseStatus' - -- | The response status code.-describeAlarmsResponse- :: Int -- ^ 'darsResponseStatus'- -> DescribeAlarmsResponse-describeAlarmsResponse pResponseStatus_ =- DescribeAlarmsResponse'- { _darsMetricAlarms = Nothing- , _darsNextToken = Nothing- , _darsResponseStatus = pResponseStatus_- }----- | The information for the specified alarms.-darsMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm]-darsMetricAlarms = lens _darsMetricAlarms (\ s a -> s{_darsMetricAlarms = a}) . _Default . _Coerce---- | The token that marks the start of the next batch of returned results.-darsNextToken :: Lens' DescribeAlarmsResponse (Maybe Text)-darsNextToken = lens _darsNextToken (\ s a -> s{_darsNextToken = a})---- | -- | The response status code.-darsResponseStatus :: Lens' DescribeAlarmsResponse Int-darsResponseStatus = lens _darsResponseStatus (\ s a -> s{_darsResponseStatus = a})--instance NFData DescribeAlarmsResponse where
− gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs
@@ -1,192 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DescribeAlarmsForMetric--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.-------module Network.AWS.CloudWatch.DescribeAlarmsForMetric- (- -- * Creating a Request- describeAlarmsForMetric- , DescribeAlarmsForMetric- -- * Request Lenses- , dafmPeriod- , dafmDimensions- , dafmUnit- , dafmStatistic- , dafmExtendedStatistic- , dafmMetricName- , dafmNamespace-- -- * Destructuring the Response- , describeAlarmsForMetricResponse- , DescribeAlarmsForMetricResponse- -- * Response Lenses- , dafmrsMetricAlarms- , dafmrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'describeAlarmsForMetric' smart constructor.-data DescribeAlarmsForMetric = DescribeAlarmsForMetric'- { _dafmPeriod :: !(Maybe Nat)- , _dafmDimensions :: !(Maybe [Dimension])- , _dafmUnit :: !(Maybe StandardUnit)- , _dafmStatistic :: !(Maybe Statistic)- , _dafmExtendedStatistic :: !(Maybe Text)- , _dafmMetricName :: !Text- , _dafmNamespace :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarmsForMetric' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dafmPeriod' - The period, in seconds, over which the statistic is applied.------ * 'dafmDimensions' - The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.------ * 'dafmUnit' - The unit for the metric.------ * 'dafmStatistic' - The statistic for the metric, other than percentiles. For percentile statistics, use @ExtendedStatistics@ .------ * 'dafmExtendedStatistic' - The percentile statistic for the metric. Specify a value between p0.0 and p100.------ * 'dafmMetricName' - The name of the metric.------ * 'dafmNamespace' - The namespace of the metric.-describeAlarmsForMetric- :: Text -- ^ 'dafmMetricName'- -> Text -- ^ 'dafmNamespace'- -> DescribeAlarmsForMetric-describeAlarmsForMetric pMetricName_ pNamespace_ =- DescribeAlarmsForMetric'- { _dafmPeriod = Nothing- , _dafmDimensions = Nothing- , _dafmUnit = Nothing- , _dafmStatistic = Nothing- , _dafmExtendedStatistic = Nothing- , _dafmMetricName = pMetricName_- , _dafmNamespace = pNamespace_- }----- | The period, in seconds, over which the statistic is applied.-dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)-dafmPeriod = lens _dafmPeriod (\ s a -> s{_dafmPeriod = a}) . mapping _Nat---- | The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.-dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]-dafmDimensions = lens _dafmDimensions (\ s a -> s{_dafmDimensions = a}) . _Default . _Coerce---- | The unit for the metric.-dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)-dafmUnit = lens _dafmUnit (\ s a -> s{_dafmUnit = a})---- | The statistic for the metric, other than percentiles. For percentile statistics, use @ExtendedStatistics@ .-dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)-dafmStatistic = lens _dafmStatistic (\ s a -> s{_dafmStatistic = a})---- | The percentile statistic for the metric. Specify a value between p0.0 and p100.-dafmExtendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text)-dafmExtendedStatistic = lens _dafmExtendedStatistic (\ s a -> s{_dafmExtendedStatistic = a})---- | The name of the metric.-dafmMetricName :: Lens' DescribeAlarmsForMetric Text-dafmMetricName = lens _dafmMetricName (\ s a -> s{_dafmMetricName = a})---- | The namespace of the metric.-dafmNamespace :: Lens' DescribeAlarmsForMetric Text-dafmNamespace = lens _dafmNamespace (\ s a -> s{_dafmNamespace = a})--instance AWSRequest DescribeAlarmsForMetric where- type Rs DescribeAlarmsForMetric =- DescribeAlarmsForMetricResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "DescribeAlarmsForMetricResult"- (\ s h x ->- DescribeAlarmsForMetricResponse' <$>- (x .@? "MetricAlarms" .!@ mempty >>=- may (parseXMLList "member"))- <*> (pure (fromEnum s)))--instance Hashable DescribeAlarmsForMetric where--instance NFData DescribeAlarmsForMetric where--instance ToHeaders DescribeAlarmsForMetric where- toHeaders = const mempty--instance ToPath DescribeAlarmsForMetric where- toPath = const "/"--instance ToQuery DescribeAlarmsForMetric where- toQuery DescribeAlarmsForMetric'{..}- = mconcat- ["Action" =:- ("DescribeAlarmsForMetric" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "Period" =: _dafmPeriod,- "Dimensions" =:- toQuery (toQueryList "member" <$> _dafmDimensions),- "Unit" =: _dafmUnit, "Statistic" =: _dafmStatistic,- "ExtendedStatistic" =: _dafmExtendedStatistic,- "MetricName" =: _dafmMetricName,- "Namespace" =: _dafmNamespace]---- | /See:/ 'describeAlarmsForMetricResponse' smart constructor.-data DescribeAlarmsForMetricResponse = DescribeAlarmsForMetricResponse'- { _dafmrsMetricAlarms :: !(Maybe [MetricAlarm])- , _dafmrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeAlarmsForMetricResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dafmrsMetricAlarms' - The information for each alarm with the specified metric.------ * 'dafmrsResponseStatus' - -- | The response status code.-describeAlarmsForMetricResponse- :: Int -- ^ 'dafmrsResponseStatus'- -> DescribeAlarmsForMetricResponse-describeAlarmsForMetricResponse pResponseStatus_ =- DescribeAlarmsForMetricResponse'- {_dafmrsMetricAlarms = Nothing, _dafmrsResponseStatus = pResponseStatus_}----- | The information for each alarm with the specified metric.-dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]-dafmrsMetricAlarms = lens _dafmrsMetricAlarms (\ s a -> s{_dafmrsMetricAlarms = a}) . _Default . _Coerce---- | -- | The response status code.-dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int-dafmrsResponseStatus = lens _dafmrsResponseStatus (\ s a -> s{_dafmrsResponseStatus = a})--instance NFData DescribeAlarmsForMetricResponse where
− gen/Network/AWS/CloudWatch/DisableAlarmActions.hs
@@ -1,100 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.DisableAlarmActions--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Disables the actions for the specified alarms. When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.-------module Network.AWS.CloudWatch.DisableAlarmActions- (- -- * Creating a Request- disableAlarmActions- , DisableAlarmActions- -- * Request Lenses- , daaAlarmNames-- -- * Destructuring the Response- , disableAlarmActionsResponse- , DisableAlarmActionsResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'disableAlarmActions' smart constructor.-newtype DisableAlarmActions = DisableAlarmActions'- { _daaAlarmNames :: [Text]- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DisableAlarmActions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'daaAlarmNames' - The names of the alarms.-disableAlarmActions- :: DisableAlarmActions-disableAlarmActions = DisableAlarmActions' {_daaAlarmNames = mempty}----- | The names of the alarms.-daaAlarmNames :: Lens' DisableAlarmActions [Text]-daaAlarmNames = lens _daaAlarmNames (\ s a -> s{_daaAlarmNames = a}) . _Coerce--instance AWSRequest DisableAlarmActions where- type Rs DisableAlarmActions =- DisableAlarmActionsResponse- request = postQuery cloudWatch- response = receiveNull DisableAlarmActionsResponse'--instance Hashable DisableAlarmActions where--instance NFData DisableAlarmActions where--instance ToHeaders DisableAlarmActions where- toHeaders = const mempty--instance ToPath DisableAlarmActions where- toPath = const "/"--instance ToQuery DisableAlarmActions where- toQuery DisableAlarmActions'{..}- = mconcat- ["Action" =: ("DisableAlarmActions" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "AlarmNames" =: toQueryList "member" _daaAlarmNames]---- | /See:/ 'disableAlarmActionsResponse' smart constructor.-data DisableAlarmActionsResponse =- DisableAlarmActionsResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DisableAlarmActionsResponse' with the minimum fields required to make a request.----disableAlarmActionsResponse- :: DisableAlarmActionsResponse-disableAlarmActionsResponse = DisableAlarmActionsResponse'---instance NFData DisableAlarmActionsResponse where
− gen/Network/AWS/CloudWatch/EnableAlarmActions.hs
@@ -1,100 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.EnableAlarmActions--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Enables the actions for the specified alarms.-------module Network.AWS.CloudWatch.EnableAlarmActions- (- -- * Creating a Request- enableAlarmActions- , EnableAlarmActions- -- * Request Lenses- , eaaAlarmNames-- -- * Destructuring the Response- , enableAlarmActionsResponse- , EnableAlarmActionsResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'enableAlarmActions' smart constructor.-newtype EnableAlarmActions = EnableAlarmActions'- { _eaaAlarmNames :: [Text]- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'EnableAlarmActions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eaaAlarmNames' - The names of the alarms.-enableAlarmActions- :: EnableAlarmActions-enableAlarmActions = EnableAlarmActions' {_eaaAlarmNames = mempty}----- | The names of the alarms.-eaaAlarmNames :: Lens' EnableAlarmActions [Text]-eaaAlarmNames = lens _eaaAlarmNames (\ s a -> s{_eaaAlarmNames = a}) . _Coerce--instance AWSRequest EnableAlarmActions where- type Rs EnableAlarmActions =- EnableAlarmActionsResponse- request = postQuery cloudWatch- response = receiveNull EnableAlarmActionsResponse'--instance Hashable EnableAlarmActions where--instance NFData EnableAlarmActions where--instance ToHeaders EnableAlarmActions where- toHeaders = const mempty--instance ToPath EnableAlarmActions where- toPath = const "/"--instance ToQuery EnableAlarmActions where- toQuery EnableAlarmActions'{..}- = mconcat- ["Action" =: ("EnableAlarmActions" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "AlarmNames" =: toQueryList "member" _eaaAlarmNames]---- | /See:/ 'enableAlarmActionsResponse' smart constructor.-data EnableAlarmActionsResponse =- EnableAlarmActionsResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'EnableAlarmActionsResponse' with the minimum fields required to make a request.----enableAlarmActionsResponse- :: EnableAlarmActionsResponse-enableAlarmActionsResponse = EnableAlarmActionsResponse'---instance NFData EnableAlarmActionsResponse where
− gen/Network/AWS/CloudWatch/GetDashboard.hs
@@ -1,149 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.GetDashboard--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Displays the details of the dashboard that you specify.--------- To copy an existing dashboard, use @GetDashboard@ , and then use the data returned within @DashboardBody@ as the template for the new dashboard when you call @PutDashboard@ to create the copy.----module Network.AWS.CloudWatch.GetDashboard- (- -- * Creating a Request- getDashboard- , GetDashboard- -- * Request Lenses- , gdDashboardName-- -- * Destructuring the Response- , getDashboardResponse- , GetDashboardResponse- -- * Response Lenses- , gdrsDashboardName- , gdrsDashboardBody- , gdrsDashboardARN- , gdrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'getDashboard' smart constructor.-newtype GetDashboard = GetDashboard'- { _gdDashboardName :: Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetDashboard' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gdDashboardName' - The name of the dashboard to be described.-getDashboard- :: Text -- ^ 'gdDashboardName'- -> GetDashboard-getDashboard pDashboardName_ =- GetDashboard' {_gdDashboardName = pDashboardName_}----- | The name of the dashboard to be described.-gdDashboardName :: Lens' GetDashboard Text-gdDashboardName = lens _gdDashboardName (\ s a -> s{_gdDashboardName = a})--instance AWSRequest GetDashboard where- type Rs GetDashboard = GetDashboardResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "GetDashboardResult"- (\ s h x ->- GetDashboardResponse' <$>- (x .@? "DashboardName") <*> (x .@? "DashboardBody")- <*> (x .@? "DashboardArn")- <*> (pure (fromEnum s)))--instance Hashable GetDashboard where--instance NFData GetDashboard where--instance ToHeaders GetDashboard where- toHeaders = const mempty--instance ToPath GetDashboard where- toPath = const "/"--instance ToQuery GetDashboard where- toQuery GetDashboard'{..}- = mconcat- ["Action" =: ("GetDashboard" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "DashboardName" =: _gdDashboardName]---- | /See:/ 'getDashboardResponse' smart constructor.-data GetDashboardResponse = GetDashboardResponse'- { _gdrsDashboardName :: !(Maybe Text)- , _gdrsDashboardBody :: !(Maybe Text)- , _gdrsDashboardARN :: !(Maybe Text)- , _gdrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetDashboardResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gdrsDashboardName' - The name of the dashboard.------ * 'gdrsDashboardBody' - The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the @DashboardBody@ syntax, see 'CloudWatch-Dashboard-Body-Structure' .------ * 'gdrsDashboardARN' - The Amazon Resource Name (ARN) of the dashboard.------ * 'gdrsResponseStatus' - -- | The response status code.-getDashboardResponse- :: Int -- ^ 'gdrsResponseStatus'- -> GetDashboardResponse-getDashboardResponse pResponseStatus_ =- GetDashboardResponse'- { _gdrsDashboardName = Nothing- , _gdrsDashboardBody = Nothing- , _gdrsDashboardARN = Nothing- , _gdrsResponseStatus = pResponseStatus_- }----- | The name of the dashboard.-gdrsDashboardName :: Lens' GetDashboardResponse (Maybe Text)-gdrsDashboardName = lens _gdrsDashboardName (\ s a -> s{_gdrsDashboardName = a})---- | The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the @DashboardBody@ syntax, see 'CloudWatch-Dashboard-Body-Structure' .-gdrsDashboardBody :: Lens' GetDashboardResponse (Maybe Text)-gdrsDashboardBody = lens _gdrsDashboardBody (\ s a -> s{_gdrsDashboardBody = a})---- | The Amazon Resource Name (ARN) of the dashboard.-gdrsDashboardARN :: Lens' GetDashboardResponse (Maybe Text)-gdrsDashboardARN = lens _gdrsDashboardARN (\ s a -> s{_gdrsDashboardARN = a})---- | -- | The response status code.-gdrsResponseStatus :: Lens' GetDashboardResponse Int-gdrsResponseStatus = lens _gdrsResponseStatus (\ s a -> s{_gdrsResponseStatus = a})--instance NFData GetDashboardResponse where
− gen/Network/AWS/CloudWatch/GetMetricData.hs
@@ -1,194 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.GetMetricData--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ You can use the @GetMetricData@ API to retrieve as many as 100 different metrics in a single request, with a total of as many as 100,800 datapoints. You can also optionally perform math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions> in the /Amazon CloudWatch User Guide/ .--------- Calls to the @GetMetricData@ API have a different pricing structure than calls to @GetMetricStatistics@ . For more information about pricing, see <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing> .----module Network.AWS.CloudWatch.GetMetricData- (- -- * Creating a Request- getMetricData- , GetMetricData- -- * Request Lenses- , gmdMaxDatapoints- , gmdNextToken- , gmdScanBy- , gmdMetricDataQueries- , gmdStartTime- , gmdEndTime-- -- * Destructuring the Response- , getMetricDataResponse- , GetMetricDataResponse- -- * Response Lenses- , gmdrsMetricDataResults- , gmdrsNextToken- , gmdrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'getMetricData' smart constructor.-data GetMetricData = GetMetricData'- { _gmdMaxDatapoints :: !(Maybe Int)- , _gmdNextToken :: !(Maybe Text)- , _gmdScanBy :: !(Maybe ScanBy)- , _gmdMetricDataQueries :: ![MetricDataQuery]- , _gmdStartTime :: !ISO8601- , _gmdEndTime :: !ISO8601- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetMetricData' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gmdMaxDatapoints' - The maximum number of data points the request should return before paginating. If you omit this, the default of 100,800 is used.------ * 'gmdNextToken' - Include this value, if it was returned by the previous call, to get the next set of data points.------ * 'gmdScanBy' - The order in which data points should be returned. @TimestampDescending@ returns the newest data first and paginates when the @MaxDatapoints@ limit is reached. @TimestampAscending@ returns the oldest data first and paginates when the @MaxDatapoints@ limit is reached.------ * 'gmdMetricDataQueries' - The metric queries to be returned. A single @GetMetricData@ call can include as many as 100 @MetricDataQuery@ structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.------ * 'gmdStartTime' - The time stamp indicating the earliest data to be returned.------ * 'gmdEndTime' - The time stamp indicating the latest data to be returned.-getMetricData- :: UTCTime -- ^ 'gmdStartTime'- -> UTCTime -- ^ 'gmdEndTime'- -> GetMetricData-getMetricData pStartTime_ pEndTime_ =- GetMetricData'- { _gmdMaxDatapoints = Nothing- , _gmdNextToken = Nothing- , _gmdScanBy = Nothing- , _gmdMetricDataQueries = mempty- , _gmdStartTime = _Time # pStartTime_- , _gmdEndTime = _Time # pEndTime_- }----- | The maximum number of data points the request should return before paginating. If you omit this, the default of 100,800 is used.-gmdMaxDatapoints :: Lens' GetMetricData (Maybe Int)-gmdMaxDatapoints = lens _gmdMaxDatapoints (\ s a -> s{_gmdMaxDatapoints = a})---- | Include this value, if it was returned by the previous call, to get the next set of data points.-gmdNextToken :: Lens' GetMetricData (Maybe Text)-gmdNextToken = lens _gmdNextToken (\ s a -> s{_gmdNextToken = a})---- | The order in which data points should be returned. @TimestampDescending@ returns the newest data first and paginates when the @MaxDatapoints@ limit is reached. @TimestampAscending@ returns the oldest data first and paginates when the @MaxDatapoints@ limit is reached.-gmdScanBy :: Lens' GetMetricData (Maybe ScanBy)-gmdScanBy = lens _gmdScanBy (\ s a -> s{_gmdScanBy = a})---- | The metric queries to be returned. A single @GetMetricData@ call can include as many as 100 @MetricDataQuery@ structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.-gmdMetricDataQueries :: Lens' GetMetricData [MetricDataQuery]-gmdMetricDataQueries = lens _gmdMetricDataQueries (\ s a -> s{_gmdMetricDataQueries = a}) . _Coerce---- | The time stamp indicating the earliest data to be returned.-gmdStartTime :: Lens' GetMetricData UTCTime-gmdStartTime = lens _gmdStartTime (\ s a -> s{_gmdStartTime = a}) . _Time---- | The time stamp indicating the latest data to be returned.-gmdEndTime :: Lens' GetMetricData UTCTime-gmdEndTime = lens _gmdEndTime (\ s a -> s{_gmdEndTime = a}) . _Time--instance AWSRequest GetMetricData where- type Rs GetMetricData = GetMetricDataResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "GetMetricDataResult"- (\ s h x ->- GetMetricDataResponse' <$>- (x .@? "MetricDataResults" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "NextToken")- <*> (pure (fromEnum s)))--instance Hashable GetMetricData where--instance NFData GetMetricData where--instance ToHeaders GetMetricData where- toHeaders = const mempty--instance ToPath GetMetricData where- toPath = const "/"--instance ToQuery GetMetricData where- toQuery GetMetricData'{..}- = mconcat- ["Action" =: ("GetMetricData" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "MaxDatapoints" =: _gmdMaxDatapoints,- "NextToken" =: _gmdNextToken, "ScanBy" =: _gmdScanBy,- "MetricDataQueries" =:- toQueryList "member" _gmdMetricDataQueries,- "StartTime" =: _gmdStartTime,- "EndTime" =: _gmdEndTime]---- | /See:/ 'getMetricDataResponse' smart constructor.-data GetMetricDataResponse = GetMetricDataResponse'- { _gmdrsMetricDataResults :: !(Maybe [MetricDataResult])- , _gmdrsNextToken :: !(Maybe Text)- , _gmdrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetMetricDataResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gmdrsMetricDataResults' - The metrics that are returned, including the metric name, namespace, and dimensions.------ * 'gmdrsNextToken' - A token that marks the next batch of returned results.------ * 'gmdrsResponseStatus' - -- | The response status code.-getMetricDataResponse- :: Int -- ^ 'gmdrsResponseStatus'- -> GetMetricDataResponse-getMetricDataResponse pResponseStatus_ =- GetMetricDataResponse'- { _gmdrsMetricDataResults = Nothing- , _gmdrsNextToken = Nothing- , _gmdrsResponseStatus = pResponseStatus_- }----- | The metrics that are returned, including the metric name, namespace, and dimensions.-gmdrsMetricDataResults :: Lens' GetMetricDataResponse [MetricDataResult]-gmdrsMetricDataResults = lens _gmdrsMetricDataResults (\ s a -> s{_gmdrsMetricDataResults = a}) . _Default . _Coerce---- | A token that marks the next batch of returned results.-gmdrsNextToken :: Lens' GetMetricDataResponse (Maybe Text)-gmdrsNextToken = lens _gmdrsNextToken (\ s a -> s{_gmdrsNextToken = a})---- | -- | The response status code.-gmdrsResponseStatus :: Lens' GetMetricDataResponse Int-gmdrsResponseStatus = lens _gmdrsResponseStatus (\ s a -> s{_gmdrsResponseStatus = a})--instance NFData GetMetricDataResponse where
− gen/Network/AWS/CloudWatch/GetMetricStatistics.hs
@@ -1,258 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.GetMetricStatistics--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets statistics for the specified metric.--------- The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, CloudWatch returns an error. To reduce the number of data points, you can narrow the specified time range and make multiple requests across adjacent time ranges, or you can increase the specified period. Data points are not returned in chronological order.------ CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-hour period, CloudWatch aggregates all data points with time stamps that fall within each one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than the number of data points returned.------ CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:------ * The SampleCount value of the statistic set is 1.------ * The Min and the Max values of the statistic set are equal.------------ Amazon CloudWatch retains metric data as follows:------ * Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a @StorageResolution@ of 1.------ * Data points with a period of 60 seconds (1-minute) are available for 15 days.------ * Data points with a period of 300 seconds (5-minute) are available for 63 days.------ * Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months).------------ Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.------ CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.------ For information about metrics and dimensions supported by AWS services, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html Amazon CloudWatch Metrics and Dimensions Reference> in the /Amazon CloudWatch User Guide/ .----module Network.AWS.CloudWatch.GetMetricStatistics- (- -- * Creating a Request- getMetricStatistics- , GetMetricStatistics- -- * Request Lenses- , gmsExtendedStatistics- , gmsStatistics- , gmsDimensions- , gmsUnit- , gmsNamespace- , gmsMetricName- , gmsStartTime- , gmsEndTime- , gmsPeriod-- -- * Destructuring the Response- , getMetricStatisticsResponse- , GetMetricStatisticsResponse- -- * Response Lenses- , gmsrsDatapoints- , gmsrsLabel- , gmsrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'getMetricStatistics' smart constructor.-data GetMetricStatistics = GetMetricStatistics'- { _gmsExtendedStatistics :: !(Maybe (List1 Text))- , _gmsStatistics :: !(Maybe (List1 Statistic))- , _gmsDimensions :: !(Maybe [Dimension])- , _gmsUnit :: !(Maybe StandardUnit)- , _gmsNamespace :: !Text- , _gmsMetricName :: !Text- , _gmsStartTime :: !ISO8601- , _gmsEndTime :: !ISO8601- , _gmsPeriod :: !Nat- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetMetricStatistics' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gmsExtendedStatistics' - The percentile statistics. Specify values between p0.0 and p100. When calling @GetMetricStatistics@ , you must specify either @Statistics@ or @ExtendedStatistics@ , but not both.------ * 'gmsStatistics' - The metric statistics, other than percentile. For percentile statistics, use @ExtendedStatistics@ . When calling @GetMetricStatistics@ , you must specify either @Statistics@ or @ExtendedStatistics@ , but not both.------ * 'gmsDimensions' - The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric. If a specific combination of dimensions was not published, you can't retrieve statistics for it. You must specify the same dimensions that were used when the metrics were created. For an example, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations Dimension Combinations> in the /Amazon CloudWatch User Guide/ . For more information about specifying dimensions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics> in the /Amazon CloudWatch User Guide/ .------ * 'gmsUnit' - The unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If you specify only a unit that the metric does not report, the results of the call are null.------ * 'gmsNamespace' - The namespace of the metric, with or without spaces.------ * 'gmsMetricName' - The name of the metric, with or without spaces.------ * 'gmsStartTime' - The time stamp that determines the first data point to return. Start times are evaluated relative to the time that CloudWatch receives the request. The value specified is inclusive; results include data points with the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z). CloudWatch rounds the specified time stamp as follows: * Start time less than 15 days ago - Round down to the nearest whole minute. For example, 12:32:34 is rounded down to 12:32:00. * Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. For example, 12:32:34 is rounded down to 12:30:00. * Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. For example, 12:32:34 is rounded down to 12:00:00. If you set @Period@ to 5, 10, or 30, the start time of your request is rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a period of 5 seconds, you receive data timestamped between 15:02:15 and 15:07:15.------ * 'gmsEndTime' - The time stamp that determines the last data point to return. The value specified is exclusive; results include data points up to the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).------ * 'gmsPeriod' - The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a @PutMetricData@ call that includes a @StorageResolution@ of 1 second. If the @StartTime@ parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: * Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). * Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). * Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).-getMetricStatistics- :: Text -- ^ 'gmsNamespace'- -> Text -- ^ 'gmsMetricName'- -> UTCTime -- ^ 'gmsStartTime'- -> UTCTime -- ^ 'gmsEndTime'- -> Natural -- ^ 'gmsPeriod'- -> GetMetricStatistics-getMetricStatistics pNamespace_ pMetricName_ pStartTime_ pEndTime_ pPeriod_ =- GetMetricStatistics'- { _gmsExtendedStatistics = Nothing- , _gmsStatistics = Nothing- , _gmsDimensions = Nothing- , _gmsUnit = Nothing- , _gmsNamespace = pNamespace_- , _gmsMetricName = pMetricName_- , _gmsStartTime = _Time # pStartTime_- , _gmsEndTime = _Time # pEndTime_- , _gmsPeriod = _Nat # pPeriod_- }----- | The percentile statistics. Specify values between p0.0 and p100. When calling @GetMetricStatistics@ , you must specify either @Statistics@ or @ExtendedStatistics@ , but not both.-gmsExtendedStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Text))-gmsExtendedStatistics = lens _gmsExtendedStatistics (\ s a -> s{_gmsExtendedStatistics = a}) . mapping _List1---- | The metric statistics, other than percentile. For percentile statistics, use @ExtendedStatistics@ . When calling @GetMetricStatistics@ , you must specify either @Statistics@ or @ExtendedStatistics@ , but not both.-gmsStatistics :: Lens' GetMetricStatistics (Maybe (NonEmpty Statistic))-gmsStatistics = lens _gmsStatistics (\ s a -> s{_gmsStatistics = a}) . mapping _List1---- | The dimensions. If the metric contains multiple dimensions, you must include a value for each dimension. CloudWatch treats each unique combination of dimensions as a separate metric. If a specific combination of dimensions was not published, you can't retrieve statistics for it. You must specify the same dimensions that were used when the metrics were created. For an example, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#dimension-combinations Dimension Combinations> in the /Amazon CloudWatch User Guide/ . For more information about specifying dimensions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics> in the /Amazon CloudWatch User Guide/ .-gmsDimensions :: Lens' GetMetricStatistics [Dimension]-gmsDimensions = lens _gmsDimensions (\ s a -> s{_gmsDimensions = a}) . _Default . _Coerce---- | The unit for a given metric. Metrics may be reported in multiple units. Not supplying a unit results in all units being returned. If you specify only a unit that the metric does not report, the results of the call are null.-gmsUnit :: Lens' GetMetricStatistics (Maybe StandardUnit)-gmsUnit = lens _gmsUnit (\ s a -> s{_gmsUnit = a})---- | The namespace of the metric, with or without spaces.-gmsNamespace :: Lens' GetMetricStatistics Text-gmsNamespace = lens _gmsNamespace (\ s a -> s{_gmsNamespace = a})---- | The name of the metric, with or without spaces.-gmsMetricName :: Lens' GetMetricStatistics Text-gmsMetricName = lens _gmsMetricName (\ s a -> s{_gmsMetricName = a})---- | The time stamp that determines the first data point to return. Start times are evaluated relative to the time that CloudWatch receives the request. The value specified is inclusive; results include data points with the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-03T23:00:00Z). CloudWatch rounds the specified time stamp as follows: * Start time less than 15 days ago - Round down to the nearest whole minute. For example, 12:32:34 is rounded down to 12:32:00. * Start time between 15 and 63 days ago - Round down to the nearest 5-minute clock interval. For example, 12:32:34 is rounded down to 12:30:00. * Start time greater than 63 days ago - Round down to the nearest 1-hour clock interval. For example, 12:32:34 is rounded down to 12:00:00. If you set @Period@ to 5, 10, or 30, the start time of your request is rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a period of 5 seconds, you receive data timestamped between 15:02:15 and 15:07:15.-gmsStartTime :: Lens' GetMetricStatistics UTCTime-gmsStartTime = lens _gmsStartTime (\ s a -> s{_gmsStartTime = a}) . _Time---- | The time stamp that determines the last data point to return. The value specified is exclusive; results include data points up to the specified time stamp. The time stamp must be in ISO 8601 UTC format (for example, 2016-10-10T23:00:00Z).-gmsEndTime :: Lens' GetMetricStatistics UTCTime-gmsEndTime = lens _gmsEndTime (\ s a -> s{_gmsEndTime = a}) . _Time---- | The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a @PutMetricData@ call that includes a @StorageResolution@ of 1 second. If the @StartTime@ parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned: * Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute). * Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). * Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).-gmsPeriod :: Lens' GetMetricStatistics Natural-gmsPeriod = lens _gmsPeriod (\ s a -> s{_gmsPeriod = a}) . _Nat--instance AWSRequest GetMetricStatistics where- type Rs GetMetricStatistics =- GetMetricStatisticsResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "GetMetricStatisticsResult"- (\ s h x ->- GetMetricStatisticsResponse' <$>- (x .@? "Datapoints" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "Label")- <*> (pure (fromEnum s)))--instance Hashable GetMetricStatistics where--instance NFData GetMetricStatistics where--instance ToHeaders GetMetricStatistics where- toHeaders = const mempty--instance ToPath GetMetricStatistics where- toPath = const "/"--instance ToQuery GetMetricStatistics where- toQuery GetMetricStatistics'{..}- = mconcat- ["Action" =: ("GetMetricStatistics" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "ExtendedStatistics" =:- toQuery- (toQueryList "member" <$> _gmsExtendedStatistics),- "Statistics" =:- toQuery (toQueryList "member" <$> _gmsStatistics),- "Dimensions" =:- toQuery (toQueryList "member" <$> _gmsDimensions),- "Unit" =: _gmsUnit, "Namespace" =: _gmsNamespace,- "MetricName" =: _gmsMetricName,- "StartTime" =: _gmsStartTime,- "EndTime" =: _gmsEndTime, "Period" =: _gmsPeriod]---- | /See:/ 'getMetricStatisticsResponse' smart constructor.-data GetMetricStatisticsResponse = GetMetricStatisticsResponse'- { _gmsrsDatapoints :: !(Maybe [Datapoint])- , _gmsrsLabel :: !(Maybe Text)- , _gmsrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetMetricStatisticsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gmsrsDatapoints' - The data points for the specified metric.------ * 'gmsrsLabel' - A label for the specified metric.------ * 'gmsrsResponseStatus' - -- | The response status code.-getMetricStatisticsResponse- :: Int -- ^ 'gmsrsResponseStatus'- -> GetMetricStatisticsResponse-getMetricStatisticsResponse pResponseStatus_ =- GetMetricStatisticsResponse'- { _gmsrsDatapoints = Nothing- , _gmsrsLabel = Nothing- , _gmsrsResponseStatus = pResponseStatus_- }----- | The data points for the specified metric.-gmsrsDatapoints :: Lens' GetMetricStatisticsResponse [Datapoint]-gmsrsDatapoints = lens _gmsrsDatapoints (\ s a -> s{_gmsrsDatapoints = a}) . _Default . _Coerce---- | A label for the specified metric.-gmsrsLabel :: Lens' GetMetricStatisticsResponse (Maybe Text)-gmsrsLabel = lens _gmsrsLabel (\ s a -> s{_gmsrsLabel = a})---- | -- | The response status code.-gmsrsResponseStatus :: Lens' GetMetricStatisticsResponse Int-gmsrsResponseStatus = lens _gmsrsResponseStatus (\ s a -> s{_gmsrsResponseStatus = a})--instance NFData GetMetricStatisticsResponse where
− gen/Network/AWS/CloudWatch/ListDashboards.hs
@@ -1,157 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.ListDashboards--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns a list of the dashboards for your account. If you include @DashboardNamePrefix@ , only those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are listed.------------ This operation returns paginated results.-module Network.AWS.CloudWatch.ListDashboards- (- -- * Creating a Request- listDashboards- , ListDashboards- -- * Request Lenses- , ldDashboardNamePrefix- , ldNextToken-- -- * Destructuring the Response- , listDashboardsResponse- , ListDashboardsResponse- -- * Response Lenses- , ldrsDashboardEntries- , ldrsNextToken- , ldrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Pager-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'listDashboards' smart constructor.-data ListDashboards = ListDashboards'- { _ldDashboardNamePrefix :: !(Maybe Text)- , _ldNextToken :: !(Maybe Text)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListDashboards' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ldDashboardNamePrefix' - If you specify this parameter, only the dashboards with names starting with the specified string are listed. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and "_".------ * 'ldNextToken' - The token returned by a previous call to indicate that there is more data available.-listDashboards- :: ListDashboards-listDashboards =- ListDashboards' {_ldDashboardNamePrefix = Nothing, _ldNextToken = Nothing}----- | If you specify this parameter, only the dashboards with names starting with the specified string are listed. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and "_".-ldDashboardNamePrefix :: Lens' ListDashboards (Maybe Text)-ldDashboardNamePrefix = lens _ldDashboardNamePrefix (\ s a -> s{_ldDashboardNamePrefix = a})---- | The token returned by a previous call to indicate that there is more data available.-ldNextToken :: Lens' ListDashboards (Maybe Text)-ldNextToken = lens _ldNextToken (\ s a -> s{_ldNextToken = a})--instance AWSPager ListDashboards where- page rq rs- | stop (rs ^. ldrsNextToken) = Nothing- | stop (rs ^. ldrsDashboardEntries) = Nothing- | otherwise =- Just $ rq & ldNextToken .~ rs ^. ldrsNextToken--instance AWSRequest ListDashboards where- type Rs ListDashboards = ListDashboardsResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "ListDashboardsResult"- (\ s h x ->- ListDashboardsResponse' <$>- (x .@? "DashboardEntries" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "NextToken")- <*> (pure (fromEnum s)))--instance Hashable ListDashboards where--instance NFData ListDashboards where--instance ToHeaders ListDashboards where- toHeaders = const mempty--instance ToPath ListDashboards where- toPath = const "/"--instance ToQuery ListDashboards where- toQuery ListDashboards'{..}- = mconcat- ["Action" =: ("ListDashboards" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "DashboardNamePrefix" =: _ldDashboardNamePrefix,- "NextToken" =: _ldNextToken]---- | /See:/ 'listDashboardsResponse' smart constructor.-data ListDashboardsResponse = ListDashboardsResponse'- { _ldrsDashboardEntries :: !(Maybe [DashboardEntry])- , _ldrsNextToken :: !(Maybe Text)- , _ldrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListDashboardsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ldrsDashboardEntries' - The list of matching dashboards.------ * 'ldrsNextToken' - The token that marks the start of the next batch of returned results.------ * 'ldrsResponseStatus' - -- | The response status code.-listDashboardsResponse- :: Int -- ^ 'ldrsResponseStatus'- -> ListDashboardsResponse-listDashboardsResponse pResponseStatus_ =- ListDashboardsResponse'- { _ldrsDashboardEntries = Nothing- , _ldrsNextToken = Nothing- , _ldrsResponseStatus = pResponseStatus_- }----- | The list of matching dashboards.-ldrsDashboardEntries :: Lens' ListDashboardsResponse [DashboardEntry]-ldrsDashboardEntries = lens _ldrsDashboardEntries (\ s a -> s{_ldrsDashboardEntries = a}) . _Default . _Coerce---- | The token that marks the start of the next batch of returned results.-ldrsNextToken :: Lens' ListDashboardsResponse (Maybe Text)-ldrsNextToken = lens _ldrsNextToken (\ s a -> s{_ldrsNextToken = a})---- | -- | The response status code.-ldrsResponseStatus :: Lens' ListDashboardsResponse Int-ldrsResponseStatus = lens _ldrsResponseStatus (\ s a -> s{_ldrsResponseStatus = a})--instance NFData ListDashboardsResponse where
− gen/Network/AWS/CloudWatch/ListMetrics.hs
@@ -1,185 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.ListMetrics--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ List the specified metrics. You can use the returned metrics with 'GetMetricStatistics' to obtain statistical data.--------- Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.------ After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using 'GetMetricStatistics' .--------- This operation returns paginated results.-module Network.AWS.CloudWatch.ListMetrics- (- -- * Creating a Request- listMetrics- , ListMetrics- -- * Request Lenses- , lmMetricName- , lmNamespace- , lmNextToken- , lmDimensions-- -- * Destructuring the Response- , listMetricsResponse- , ListMetricsResponse- -- * Response Lenses- , lmrsMetrics- , lmrsNextToken- , lmrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Pager-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'listMetrics' smart constructor.-data ListMetrics = ListMetrics'- { _lmMetricName :: !(Maybe Text)- , _lmNamespace :: !(Maybe Text)- , _lmNextToken :: !(Maybe Text)- , _lmDimensions :: !(Maybe [DimensionFilter])- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListMetrics' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lmMetricName' - The name of the metric to filter against.------ * 'lmNamespace' - The namespace to filter against.------ * 'lmNextToken' - The token returned by a previous call to indicate that there is more data available.------ * 'lmDimensions' - The dimensions to filter against.-listMetrics- :: ListMetrics-listMetrics =- ListMetrics'- { _lmMetricName = Nothing- , _lmNamespace = Nothing- , _lmNextToken = Nothing- , _lmDimensions = Nothing- }----- | The name of the metric to filter against.-lmMetricName :: Lens' ListMetrics (Maybe Text)-lmMetricName = lens _lmMetricName (\ s a -> s{_lmMetricName = a})---- | The namespace to filter against.-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.-lmNextToken :: Lens' ListMetrics (Maybe Text)-lmNextToken = lens _lmNextToken (\ s a -> s{_lmNextToken = a})---- | The dimensions to filter against.-lmDimensions :: Lens' ListMetrics [DimensionFilter]-lmDimensions = lens _lmDimensions (\ s a -> s{_lmDimensions = a}) . _Default . _Coerce--instance AWSPager ListMetrics where- page rq rs- | stop (rs ^. lmrsNextToken) = Nothing- | stop (rs ^. lmrsMetrics) = Nothing- | otherwise =- Just $ rq & lmNextToken .~ rs ^. lmrsNextToken--instance AWSRequest ListMetrics where- type Rs ListMetrics = ListMetricsResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "ListMetricsResult"- (\ s h x ->- ListMetricsResponse' <$>- (x .@? "Metrics" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "NextToken")- <*> (pure (fromEnum s)))--instance Hashable ListMetrics where--instance NFData ListMetrics where--instance ToHeaders ListMetrics where- toHeaders = const mempty--instance ToPath ListMetrics where- toPath = const "/"--instance ToQuery ListMetrics where- toQuery ListMetrics'{..}- = mconcat- ["Action" =: ("ListMetrics" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "MetricName" =: _lmMetricName,- "Namespace" =: _lmNamespace,- "NextToken" =: _lmNextToken,- "Dimensions" =:- toQuery (toQueryList "member" <$> _lmDimensions)]---- | /See:/ 'listMetricsResponse' smart constructor.-data ListMetricsResponse = ListMetricsResponse'- { _lmrsMetrics :: !(Maybe [Metric])- , _lmrsNextToken :: !(Maybe Text)- , _lmrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListMetricsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lmrsMetrics' - The metrics.------ * 'lmrsNextToken' - The token that marks the start of the next batch of returned results.------ * 'lmrsResponseStatus' - -- | The response status code.-listMetricsResponse- :: Int -- ^ 'lmrsResponseStatus'- -> ListMetricsResponse-listMetricsResponse pResponseStatus_ =- ListMetricsResponse'- { _lmrsMetrics = Nothing- , _lmrsNextToken = Nothing- , _lmrsResponseStatus = pResponseStatus_- }----- | The metrics.-lmrsMetrics :: Lens' ListMetricsResponse [Metric]-lmrsMetrics = lens _lmrsMetrics (\ s a -> s{_lmrsMetrics = a}) . _Default . _Coerce---- | The token that marks the start of the next batch of returned results.-lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text)-lmrsNextToken = lens _lmrsNextToken (\ s a -> s{_lmrsNextToken = a})---- | -- | The response status code.-lmrsResponseStatus :: Lens' ListMetricsResponse Int-lmrsResponseStatus = lens _lmrsResponseStatus (\ s a -> s{_lmrsResponseStatus = a})--instance NFData ListMetricsResponse where
− gen/Network/AWS/CloudWatch/PutDashboard.hs
@@ -1,146 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.PutDashboard--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard, the entire contents are replaced with what you specify here.--------- You can have up to 500 dashboards per account. All dashboards in your account are global, not region-specific.------ A simple way to create a dashboard using @PutDashboard@ is to copy an existing dashboard. To copy an existing dashboard using the console, you can load the dashboard and then use the View/edit source command in the Actions menu to display the JSON block for that dashboard. Another way to copy a dashboard is to use @GetDashboard@ , and then use the data returned within @DashboardBody@ as the template for the new dashboard when you call @PutDashboard@ .------ When you create a dashboard with @PutDashboard@ , a good practice is to add a text widget at the top of the dashboard with a message that the dashboard was created by script and should not be changed in the console. This message could also point console users to the location of the @DashboardBody@ script or the CloudFormation template used to create the dashboard.----module Network.AWS.CloudWatch.PutDashboard- (- -- * Creating a Request- putDashboard- , PutDashboard- -- * Request Lenses- , pdDashboardName- , pdDashboardBody-- -- * Destructuring the Response- , putDashboardResponse- , PutDashboardResponse- -- * Response Lenses- , pdrsDashboardValidationMessages- , pdrsResponseStatus- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'putDashboard' smart constructor.-data PutDashboard = PutDashboard'- { _pdDashboardName :: !Text- , _pdDashboardBody :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutDashboard' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdDashboardName' - The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, "-", and "_". This parameter is required.------ * 'pdDashboardBody' - The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required. For more information about the syntax, see 'CloudWatch-Dashboard-Body-Structure' .-putDashboard- :: Text -- ^ 'pdDashboardName'- -> Text -- ^ 'pdDashboardBody'- -> PutDashboard-putDashboard pDashboardName_ pDashboardBody_ =- PutDashboard'- {_pdDashboardName = pDashboardName_, _pdDashboardBody = pDashboardBody_}----- | The name of the dashboard. If a dashboard with this name already exists, this call modifies that dashboard, replacing its current contents. Otherwise, a new dashboard is created. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, "-", and "_". This parameter is required.-pdDashboardName :: Lens' PutDashboard Text-pdDashboardName = lens _pdDashboardName (\ s a -> s{_pdDashboardName = a})---- | The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required. For more information about the syntax, see 'CloudWatch-Dashboard-Body-Structure' .-pdDashboardBody :: Lens' PutDashboard Text-pdDashboardBody = lens _pdDashboardBody (\ s a -> s{_pdDashboardBody = a})--instance AWSRequest PutDashboard where- type Rs PutDashboard = PutDashboardResponse- request = postQuery cloudWatch- response- = receiveXMLWrapper "PutDashboardResult"- (\ s h x ->- PutDashboardResponse' <$>- (x .@? "DashboardValidationMessages" .!@ mempty >>=- may (parseXMLList "member"))- <*> (pure (fromEnum s)))--instance Hashable PutDashboard where--instance NFData PutDashboard where--instance ToHeaders PutDashboard where- toHeaders = const mempty--instance ToPath PutDashboard where- toPath = const "/"--instance ToQuery PutDashboard where- toQuery PutDashboard'{..}- = mconcat- ["Action" =: ("PutDashboard" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "DashboardName" =: _pdDashboardName,- "DashboardBody" =: _pdDashboardBody]---- | /See:/ 'putDashboardResponse' smart constructor.-data PutDashboardResponse = PutDashboardResponse'- { _pdrsDashboardValidationMessages :: !(Maybe [DashboardValidationMessage])- , _pdrsResponseStatus :: !Int- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutDashboardResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pdrsDashboardValidationMessages' - If the input for @PutDashboard@ was correct and the dashboard was successfully created or modified, this result is empty. If this result includes only warning messages, then the input was valid enough for the dashboard to be created or modified, but some elements of the dashboard may not render. If this result includes error messages, the input was not valid and the operation failed.------ * 'pdrsResponseStatus' - -- | The response status code.-putDashboardResponse- :: Int -- ^ 'pdrsResponseStatus'- -> PutDashboardResponse-putDashboardResponse pResponseStatus_ =- PutDashboardResponse'- { _pdrsDashboardValidationMessages = Nothing- , _pdrsResponseStatus = pResponseStatus_- }----- | If the input for @PutDashboard@ was correct and the dashboard was successfully created or modified, this result is empty. If this result includes only warning messages, then the input was valid enough for the dashboard to be created or modified, but some elements of the dashboard may not render. If this result includes error messages, the input was not valid and the operation failed.-pdrsDashboardValidationMessages :: Lens' PutDashboardResponse [DashboardValidationMessage]-pdrsDashboardValidationMessages = lens _pdrsDashboardValidationMessages (\ s a -> s{_pdrsDashboardValidationMessages = a}) . _Default . _Coerce---- | -- | The response status code.-pdrsResponseStatus :: Lens' PutDashboardResponse Int-pdrsResponseStatus = lens _pdrsResponseStatus (\ s a -> s{_pdrsResponseStatus = a})--instance NFData PutDashboardResponse where
− gen/Network/AWS/CloudWatch/PutMetricAlarm.hs
@@ -1,320 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.PutMetricAlarm--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Creates or updates an alarm and associates it with the specified metric. Optionally, this operation can associate one or more Amazon SNS 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 state is set appropriately. Any actions associated with the state are then executed.------ When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.------ If you are an IAM user, you must have Amazon EC2 permissions for some operations:------ * @iam:CreateServiceLinkedRole@ for all alarms with EC2 actions------ * @ec2:DescribeInstanceStatus@ and @ec2:DescribeInstances@ for all alarms on 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------------ 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 are not performed. However, if you are later granted the required permissions, the alarm actions that you created earlier are performed.------ If you are using an IAM role (for example, an 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 AWS STS, you cannot stop or terminate an EC2 instance using alarm actions.------ You must create at least one stop, terminate, or reboot alarm using either the Amazon EC2 or CloudWatch consoles to create the __EC2ActionsAccess__ IAM role. After this IAM role is created, you can create stop, terminate, or reboot alarms using a command-line interface or API.----module Network.AWS.CloudWatch.PutMetricAlarm- (- -- * Creating a Request- putMetricAlarm- , PutMetricAlarm- -- * Request Lenses- , pmaTreatMissingData- , pmaAlarmDescription- , pmaOKActions- , pmaEvaluateLowSampleCountPercentile- , pmaDatapointsToAlarm- , pmaActionsEnabled- , pmaInsufficientDataActions- , pmaDimensions- , pmaAlarmActions- , pmaUnit- , pmaStatistic- , pmaExtendedStatistic- , pmaAlarmName- , pmaMetricName- , pmaNamespace- , pmaPeriod- , pmaEvaluationPeriods- , pmaThreshold- , pmaComparisonOperator-- -- * Destructuring the Response- , putMetricAlarmResponse- , PutMetricAlarmResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'putMetricAlarm' smart constructor.-data PutMetricAlarm = PutMetricAlarm'- { _pmaTreatMissingData :: !(Maybe Text)- , _pmaAlarmDescription :: !(Maybe Text)- , _pmaOKActions :: !(Maybe [Text])- , _pmaEvaluateLowSampleCountPercentile :: !(Maybe Text)- , _pmaDatapointsToAlarm :: !(Maybe Nat)- , _pmaActionsEnabled :: !(Maybe Bool)- , _pmaInsufficientDataActions :: !(Maybe [Text])- , _pmaDimensions :: !(Maybe [Dimension])- , _pmaAlarmActions :: !(Maybe [Text])- , _pmaUnit :: !(Maybe StandardUnit)- , _pmaStatistic :: !(Maybe Statistic)- , _pmaExtendedStatistic :: !(Maybe Text)- , _pmaAlarmName :: !Text- , _pmaMetricName :: !Text- , _pmaNamespace :: !Text- , _pmaPeriod :: !Nat- , _pmaEvaluationPeriods :: !Nat- , _pmaThreshold :: !Double- , _pmaComparisonOperator :: !ComparisonOperator- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutMetricAlarm' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pmaTreatMissingData' - Sets how this alarm is to handle missing data points. If @TreatMissingData@ is omitted, the default behavior of @missing@ is used. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring How CloudWatch Alarms Treats Missing Data> . Valid Values: @breaching | notBreaching | ignore | missing@------ * 'pmaAlarmDescription' - The description for the alarm.------ * 'pmaOKActions' - The actions to execute when this alarm transitions to an @OK@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0------ * 'pmaEvaluateLowSampleCountPercentile' - Used only for alarms based on percentiles. If you specify @ignore@ , the alarm state does not change during periods with too few data points to be statistically significant. If you specify @evaluate@ or omit this parameter, the alarm is always evaluated and possibly changes state no matter how many data points are available. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples Percentile-Based CloudWatch Alarms and Low Data Samples> . Valid Values: @evaluate | ignore@------ * 'pmaDatapointsToAlarm' - The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation Evaluating an Alarm> in the /Amazon CloudWatch User Guide/ .------ * 'pmaActionsEnabled' - Indicates whether actions should be executed during any changes to the alarm state.------ * 'pmaInsufficientDataActions' - The actions to execute when this alarm transitions to the @INSUFFICIENT_DATA@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0------ * 'pmaDimensions' - The dimensions for the metric associated with the alarm.------ * 'pmaAlarmActions' - The actions to execute when this alarm transitions to the @ALARM@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0------ * 'pmaUnit' - The unit of measure for the statistic. 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. If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, the CloudWatch alarm can get stuck in the @INSUFFICIENT DATA@ state.------ * 'pmaStatistic' - The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use @ExtendedStatistic@ . When you call @PutMetricAlarm@ , you must specify either @Statistic@ or @ExtendedStatistic,@ but not both.------ * 'pmaExtendedStatistic' - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. When you call @PutMetricAlarm@ , you must specify either @Statistic@ or @ExtendedStatistic,@ but not both.------ * 'pmaAlarmName' - The name for the alarm. This name must be unique within the AWS account.------ * 'pmaMetricName' - The name for the metric associated with the alarm.------ * 'pmaNamespace' - The namespace for the metric associated with the alarm.------ * 'pmaPeriod' - The period, in seconds, over which the specified statistic is applied. Valid values are 10, 30, and any multiple of 60. Be sure to specify 10 or 30 only for metrics that are stored by a @PutMetricData@ call with a @StorageResolution@ of 1. If you specify a period of 10 or 30 for a metric that does not have sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm may often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, which has a higher charge than other alarms. For more information about pricing, see <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing> . An alarm's total current evaluation period can be no longer than one day, so @Period@ multiplied by @EvaluationPeriods@ cannot be more than 86,400 seconds.------ * 'pmaEvaluationPeriods' - The number of periods over which data is compared to the specified threshold. If you are setting an alarm which requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N. An alarm's total current evaluation period can be no longer than one day, so this number multiplied by @Period@ cannot be more than 86,400 seconds.------ * 'pmaThreshold' - The value against which the specified statistic is compared.------ * 'pmaComparisonOperator' - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.-putMetricAlarm- :: Text -- ^ 'pmaAlarmName'- -> Text -- ^ 'pmaMetricName'- -> Text -- ^ 'pmaNamespace'- -> Natural -- ^ 'pmaPeriod'- -> Natural -- ^ 'pmaEvaluationPeriods'- -> Double -- ^ 'pmaThreshold'- -> ComparisonOperator -- ^ 'pmaComparisonOperator'- -> PutMetricAlarm-putMetricAlarm pAlarmName_ pMetricName_ pNamespace_ pPeriod_ pEvaluationPeriods_ pThreshold_ pComparisonOperator_ =- PutMetricAlarm'- { _pmaTreatMissingData = Nothing- , _pmaAlarmDescription = Nothing- , _pmaOKActions = Nothing- , _pmaEvaluateLowSampleCountPercentile = Nothing- , _pmaDatapointsToAlarm = Nothing- , _pmaActionsEnabled = Nothing- , _pmaInsufficientDataActions = Nothing- , _pmaDimensions = Nothing- , _pmaAlarmActions = Nothing- , _pmaUnit = Nothing- , _pmaStatistic = Nothing- , _pmaExtendedStatistic = Nothing- , _pmaAlarmName = pAlarmName_- , _pmaMetricName = pMetricName_- , _pmaNamespace = pNamespace_- , _pmaPeriod = _Nat # pPeriod_- , _pmaEvaluationPeriods = _Nat # pEvaluationPeriods_- , _pmaThreshold = pThreshold_- , _pmaComparisonOperator = pComparisonOperator_- }----- | Sets how this alarm is to handle missing data points. If @TreatMissingData@ is omitted, the default behavior of @missing@ is used. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data Configuring How CloudWatch Alarms Treats Missing Data> . Valid Values: @breaching | notBreaching | ignore | missing@-pmaTreatMissingData :: Lens' PutMetricAlarm (Maybe Text)-pmaTreatMissingData = lens _pmaTreatMissingData (\ s a -> s{_pmaTreatMissingData = a})---- | The description for the alarm.-pmaAlarmDescription :: Lens' PutMetricAlarm (Maybe Text)-pmaAlarmDescription = lens _pmaAlarmDescription (\ s a -> s{_pmaAlarmDescription = a})---- | The actions to execute when this alarm transitions to an @OK@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0-pmaOKActions :: Lens' PutMetricAlarm [Text]-pmaOKActions = lens _pmaOKActions (\ s a -> s{_pmaOKActions = a}) . _Default . _Coerce---- | Used only for alarms based on percentiles. If you specify @ignore@ , the alarm state does not change during periods with too few data points to be statistically significant. If you specify @evaluate@ or omit this parameter, the alarm is always evaluated and possibly changes state no matter how many data points are available. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#percentiles-with-low-samples Percentile-Based CloudWatch Alarms and Low Data Samples> . Valid Values: @evaluate | ignore@-pmaEvaluateLowSampleCountPercentile :: Lens' PutMetricAlarm (Maybe Text)-pmaEvaluateLowSampleCountPercentile = lens _pmaEvaluateLowSampleCountPercentile (\ s a -> s{_pmaEvaluateLowSampleCountPercentile = a})---- | The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation Evaluating an Alarm> in the /Amazon CloudWatch User Guide/ .-pmaDatapointsToAlarm :: Lens' PutMetricAlarm (Maybe Natural)-pmaDatapointsToAlarm = lens _pmaDatapointsToAlarm (\ s a -> s{_pmaDatapointsToAlarm = a}) . mapping _Nat---- | Indicates whether actions should be executed during any changes to the alarm state.-pmaActionsEnabled :: Lens' PutMetricAlarm (Maybe Bool)-pmaActionsEnabled = lens _pmaActionsEnabled (\ s a -> s{_pmaActionsEnabled = a})---- | The actions to execute when this alarm transitions to the @INSUFFICIENT_DATA@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0-pmaInsufficientDataActions :: Lens' PutMetricAlarm [Text]-pmaInsufficientDataActions = lens _pmaInsufficientDataActions (\ s a -> s{_pmaInsufficientDataActions = a}) . _Default . _Coerce---- | The dimensions for the metric associated with the alarm.-pmaDimensions :: Lens' PutMetricAlarm [Dimension]-pmaDimensions = lens _pmaDimensions (\ s a -> s{_pmaDimensions = a}) . _Default . _Coerce---- | The actions to execute when this alarm transitions to the @ALARM@ state from any other state. Each action is specified as an Amazon Resource Name (ARN). Valid Values: arn:aws:automate:/region/ :ec2:stop | arn:aws:automate:/region/ :ec2:terminate | arn:aws:automate:/region/ :ec2:recover | arn:aws:sns:/region/ :/account-id/ :/sns-topic-name/ | arn:aws:autoscaling:/region/ :/account-id/ :scalingPolicy:/policy-id/ autoScalingGroupName//group-friendly-name/ :policyName//policy-friendly-name/ Valid Values (for use with IAM roles): arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:/region/ :{/account-id/ }:action/actions/AWS_EC2.InstanceId.Reboot/1.0-pmaAlarmActions :: Lens' PutMetricAlarm [Text]-pmaAlarmActions = lens _pmaAlarmActions (\ s a -> s{_pmaAlarmActions = a}) . _Default . _Coerce---- | The unit of measure for the statistic. 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. If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, the CloudWatch alarm can get stuck in the @INSUFFICIENT DATA@ state.-pmaUnit :: Lens' PutMetricAlarm (Maybe StandardUnit)-pmaUnit = lens _pmaUnit (\ s a -> s{_pmaUnit = a})---- | The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use @ExtendedStatistic@ . When you call @PutMetricAlarm@ , you must specify either @Statistic@ or @ExtendedStatistic,@ but not both.-pmaStatistic :: Lens' PutMetricAlarm (Maybe Statistic)-pmaStatistic = lens _pmaStatistic (\ s a -> s{_pmaStatistic = a})---- | The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. When you call @PutMetricAlarm@ , you must specify either @Statistic@ or @ExtendedStatistic,@ but not both.-pmaExtendedStatistic :: Lens' PutMetricAlarm (Maybe Text)-pmaExtendedStatistic = lens _pmaExtendedStatistic (\ s a -> s{_pmaExtendedStatistic = a})---- | The name for the alarm. This name must be unique within the AWS account.-pmaAlarmName :: Lens' PutMetricAlarm Text-pmaAlarmName = lens _pmaAlarmName (\ s a -> s{_pmaAlarmName = a})---- | The name for the metric associated with the alarm.-pmaMetricName :: Lens' PutMetricAlarm Text-pmaMetricName = lens _pmaMetricName (\ s a -> s{_pmaMetricName = a})---- | The namespace for the metric associated with the alarm.-pmaNamespace :: Lens' PutMetricAlarm Text-pmaNamespace = lens _pmaNamespace (\ s a -> s{_pmaNamespace = a})---- | The period, in seconds, over which the specified statistic is applied. Valid values are 10, 30, and any multiple of 60. Be sure to specify 10 or 30 only for metrics that are stored by a @PutMetricData@ call with a @StorageResolution@ of 1. If you specify a period of 10 or 30 for a metric that does not have sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm may often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, which has a higher charge than other alarms. For more information about pricing, see <https://aws.amazon.com/cloudwatch/pricing/ Amazon CloudWatch Pricing> . An alarm's total current evaluation period can be no longer than one day, so @Period@ multiplied by @EvaluationPeriods@ cannot be more than 86,400 seconds.-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. If you are setting an alarm which requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N. An alarm's total current evaluation period can be no longer than one day, so this number multiplied by @Period@ cannot be more than 86,400 seconds.-pmaEvaluationPeriods :: Lens' PutMetricAlarm Natural-pmaEvaluationPeriods = lens _pmaEvaluationPeriods (\ s a -> s{_pmaEvaluationPeriods = a}) . _Nat---- | The value against which the specified statistic is compared.-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.-pmaComparisonOperator :: Lens' PutMetricAlarm ComparisonOperator-pmaComparisonOperator = lens _pmaComparisonOperator (\ s a -> s{_pmaComparisonOperator = a})--instance AWSRequest PutMetricAlarm where- type Rs PutMetricAlarm = PutMetricAlarmResponse- request = postQuery cloudWatch- response = receiveNull PutMetricAlarmResponse'--instance Hashable PutMetricAlarm where--instance NFData PutMetricAlarm where--instance ToHeaders PutMetricAlarm where- toHeaders = const mempty--instance ToPath PutMetricAlarm where- toPath = const "/"--instance ToQuery PutMetricAlarm where- toQuery PutMetricAlarm'{..}- = mconcat- ["Action" =: ("PutMetricAlarm" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "TreatMissingData" =: _pmaTreatMissingData,- "AlarmDescription" =: _pmaAlarmDescription,- "OKActions" =:- toQuery (toQueryList "member" <$> _pmaOKActions),- "EvaluateLowSampleCountPercentile" =:- _pmaEvaluateLowSampleCountPercentile,- "DatapointsToAlarm" =: _pmaDatapointsToAlarm,- "ActionsEnabled" =: _pmaActionsEnabled,- "InsufficientDataActions" =:- toQuery- (toQueryList "member" <$>- _pmaInsufficientDataActions),- "Dimensions" =:- toQuery (toQueryList "member" <$> _pmaDimensions),- "AlarmActions" =:- toQuery (toQueryList "member" <$> _pmaAlarmActions),- "Unit" =: _pmaUnit, "Statistic" =: _pmaStatistic,- "ExtendedStatistic" =: _pmaExtendedStatistic,- "AlarmName" =: _pmaAlarmName,- "MetricName" =: _pmaMetricName,- "Namespace" =: _pmaNamespace, "Period" =: _pmaPeriod,- "EvaluationPeriods" =: _pmaEvaluationPeriods,- "Threshold" =: _pmaThreshold,- "ComparisonOperator" =: _pmaComparisonOperator]---- | /See:/ 'putMetricAlarmResponse' smart constructor.-data PutMetricAlarmResponse =- PutMetricAlarmResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutMetricAlarmResponse' with the minimum fields required to make a request.----putMetricAlarmResponse- :: PutMetricAlarmResponse-putMetricAlarmResponse = PutMetricAlarmResponse'---instance NFData PutMetricAlarmResponse where
− gen/Network/AWS/CloudWatch/PutMetricData.hs
@@ -1,126 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.PutMetricData--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to 'ListMetrics' .--------- Each @PutMetricData@ request is limited to 40 KB in size for HTTP POST requests.------ Although the @Value@ parameter accepts numbers of type @Double@ , 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 (for example, NaN, +Infinity, -Infinity) are not supported.------ You can use up to 10 dimensions per metric to further clarify what data the metric collects. For more information about specifying dimensions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html Publishing Metrics> in the /Amazon CloudWatch User Guide/ .------ Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for 'GetMetricStatistics' from the time they are submitted.------ CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:------ * The SampleCount value of the statistic set is 1------ * The Min and the Max values of the statistic set are equal----------module Network.AWS.CloudWatch.PutMetricData- (- -- * Creating a Request- putMetricData- , PutMetricData- -- * Request Lenses- , pmdNamespace- , pmdMetricData-- -- * Destructuring the Response- , putMetricDataResponse- , PutMetricDataResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'putMetricData' smart constructor.-data PutMetricData = PutMetricData'- { _pmdNamespace :: !Text- , _pmdMetricData :: ![MetricDatum]- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutMetricData' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pmdNamespace' - The namespace for the metric data. You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for use by Amazon Web Services products.------ * 'pmdMetricData' - The data for the metric.-putMetricData- :: Text -- ^ 'pmdNamespace'- -> PutMetricData-putMetricData pNamespace_ =- PutMetricData' {_pmdNamespace = pNamespace_, _pmdMetricData = mempty}----- | The namespace for the metric data. You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for use by Amazon Web Services products.-pmdNamespace :: Lens' PutMetricData Text-pmdNamespace = lens _pmdNamespace (\ s a -> s{_pmdNamespace = a})---- | The data for the metric.-pmdMetricData :: Lens' PutMetricData [MetricDatum]-pmdMetricData = lens _pmdMetricData (\ s a -> s{_pmdMetricData = a}) . _Coerce--instance AWSRequest PutMetricData where- type Rs PutMetricData = PutMetricDataResponse- request = postQuery cloudWatch- response = receiveNull PutMetricDataResponse'--instance Hashable PutMetricData where--instance NFData PutMetricData where--instance ToHeaders PutMetricData where- toHeaders = const mempty--instance ToPath PutMetricData where- toPath = const "/"--instance ToQuery PutMetricData where- toQuery PutMetricData'{..}- = mconcat- ["Action" =: ("PutMetricData" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "Namespace" =: _pmdNamespace,- "MetricData" =: toQueryList "member" _pmdMetricData]---- | /See:/ 'putMetricDataResponse' smart constructor.-data PutMetricDataResponse =- PutMetricDataResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutMetricDataResponse' with the minimum fields required to make a request.----putMetricDataResponse- :: PutMetricDataResponse-putMetricDataResponse = PutMetricDataResponse'---instance NFData PutMetricDataResponse where
− gen/Network/AWS/CloudWatch/SetAlarmState.hs
@@ -1,135 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.SetAlarmState--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Temporarily sets the state of an alarm for testing purposes. When the updated state 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 state to @ALARM@ sends an SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens quickly, it is typically only visible in the alarm's __History__ tab in the Amazon CloudWatch console or through 'DescribeAlarmHistory' .-------module Network.AWS.CloudWatch.SetAlarmState- (- -- * Creating a Request- setAlarmState- , SetAlarmState- -- * Request Lenses- , sasStateReasonData- , sasAlarmName- , sasStateValue- , sasStateReason-- -- * Destructuring the Response- , setAlarmStateResponse- , SetAlarmStateResponse- ) where--import Network.AWS.CloudWatch.Types-import Network.AWS.CloudWatch.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'setAlarmState' smart constructor.-data SetAlarmState = SetAlarmState'- { _sasStateReasonData :: !(Maybe Text)- , _sasAlarmName :: !Text- , _sasStateValue :: !StateValue- , _sasStateReason :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'SetAlarmState' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sasStateReasonData' - The reason that this alarm is set to this specific state, in JSON format.------ * 'sasAlarmName' - The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.------ * 'sasStateValue' - The value of the state.------ * 'sasStateReason' - The reason that this alarm is set to this specific state, in text format.-setAlarmState- :: Text -- ^ 'sasAlarmName'- -> StateValue -- ^ 'sasStateValue'- -> Text -- ^ 'sasStateReason'- -> SetAlarmState-setAlarmState pAlarmName_ pStateValue_ pStateReason_ =- SetAlarmState'- { _sasStateReasonData = Nothing- , _sasAlarmName = pAlarmName_- , _sasStateValue = pStateValue_- , _sasStateReason = pStateReason_- }----- | The reason that this alarm is set to this specific state, in JSON format.-sasStateReasonData :: Lens' SetAlarmState (Maybe Text)-sasStateReasonData = lens _sasStateReasonData (\ s a -> s{_sasStateReasonData = a})---- | The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.-sasAlarmName :: Lens' SetAlarmState Text-sasAlarmName = lens _sasAlarmName (\ s a -> s{_sasAlarmName = a})---- | The value of the state.-sasStateValue :: Lens' SetAlarmState StateValue-sasStateValue = lens _sasStateValue (\ s a -> s{_sasStateValue = a})---- | The reason that this alarm is set to this specific state, in text format.-sasStateReason :: Lens' SetAlarmState Text-sasStateReason = lens _sasStateReason (\ s a -> s{_sasStateReason = a})--instance AWSRequest SetAlarmState where- type Rs SetAlarmState = SetAlarmStateResponse- request = postQuery cloudWatch- response = receiveNull SetAlarmStateResponse'--instance Hashable SetAlarmState where--instance NFData SetAlarmState where--instance ToHeaders SetAlarmState where- toHeaders = const mempty--instance ToPath SetAlarmState where- toPath = const "/"--instance ToQuery SetAlarmState where- toQuery SetAlarmState'{..}- = mconcat- ["Action" =: ("SetAlarmState" :: ByteString),- "Version" =: ("2010-08-01" :: ByteString),- "StateReasonData" =: _sasStateReasonData,- "AlarmName" =: _sasAlarmName,- "StateValue" =: _sasStateValue,- "StateReason" =: _sasStateReason]---- | /See:/ 'setAlarmStateResponse' smart constructor.-data SetAlarmStateResponse =- SetAlarmStateResponse'- deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'SetAlarmStateResponse' with the minimum fields required to make a request.----setAlarmStateResponse- :: SetAlarmStateResponse-setAlarmStateResponse = SetAlarmStateResponse'---instance NFData SetAlarmStateResponse where
− gen/Network/AWS/CloudWatch/Types.hs
@@ -1,310 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.Types--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudWatch.Types- (- -- * Service Configuration- cloudWatch-- -- * Errors- , _LimitExceededFault- , _DashboardNotFoundError- , _InvalidNextToken- , _InternalServiceFault- , _DashboardInvalidInputError- , _InvalidParameterValueException- , _InvalidFormatFault- , _MissingRequiredParameterException- , _InvalidParameterCombinationException- , _ResourceNotFound-- -- * ComparisonOperator- , ComparisonOperator (..)-- -- * HistoryItemType- , HistoryItemType (..)-- -- * ScanBy- , ScanBy (..)-- -- * StandardUnit- , StandardUnit (..)-- -- * StateValue- , StateValue (..)-- -- * Statistic- , Statistic (..)-- -- * StatusCode- , StatusCode (..)-- -- * AlarmHistoryItem- , AlarmHistoryItem- , alarmHistoryItem- , ahiAlarmName- , ahiHistoryItemType- , ahiHistoryData- , ahiHistorySummary- , ahiTimestamp-- -- * DashboardEntry- , DashboardEntry- , dashboardEntry- , deSize- , deDashboardName- , deLastModified- , deDashboardARN-- -- * DashboardValidationMessage- , DashboardValidationMessage- , dashboardValidationMessage- , dvmDataPath- , dvmMessage-- -- * Datapoint- , Datapoint- , datapoint- , dSampleCount- , dMaximum- , dAverage- , dMinimum- , dExtendedStatistics- , dSum- , dUnit- , dTimestamp-- -- * Dimension- , Dimension- , dimension- , dName- , dValue-- -- * DimensionFilter- , DimensionFilter- , dimensionFilter- , dfValue- , dfName-- -- * MessageData- , MessageData- , messageData- , mValue- , mCode-- -- * Metric- , Metric- , metric- , mMetricName- , mNamespace- , mDimensions-- -- * MetricAlarm- , MetricAlarm- , metricAlarm- , maAlarmName- , maStateUpdatedTimestamp- , maTreatMissingData- , maPeriod- , maAlarmDescription- , maEvaluationPeriods- , maMetricName- , maNamespace- , maComparisonOperator- , maOKActions- , maEvaluateLowSampleCountPercentile- , maStateValue- , maDatapointsToAlarm- , maThreshold- , maAlarmConfigurationUpdatedTimestamp- , maActionsEnabled- , maInsufficientDataActions- , maStateReason- , maStateReasonData- , maDimensions- , maAlarmARN- , maAlarmActions- , maUnit- , maStatistic- , maExtendedStatistic-- -- * MetricDataQuery- , MetricDataQuery- , metricDataQuery- , mdqReturnData- , mdqExpression- , mdqLabel- , mdqMetricStat- , mdqId-- -- * MetricDataResult- , MetricDataResult- , metricDataResult- , mdrValues- , mdrId- , mdrTimestamps- , mdrMessages- , mdrLabel- , mdrStatusCode-- -- * MetricDatum- , MetricDatum- , metricDatum- , mdValue- , mdStorageResolution- , mdDimensions- , mdUnit- , mdTimestamp- , mdStatisticValues- , mdMetricName-- -- * MetricStat- , MetricStat- , metricStat- , msUnit- , msMetric- , msPeriod- , msStat-- -- * StatisticSet- , StatisticSet- , statisticSet- , ssSampleCount- , ssSum- , ssMinimum- , ssMaximum- ) where--import Network.AWS.CloudWatch.Types.Product-import Network.AWS.CloudWatch.Types.Sum-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Sign.V4---- | API version @2010-08-01@ of the Amazon CloudWatch SDK configuration.-cloudWatch :: Service-cloudWatch =- Service- { _svcAbbrev = "CloudWatch"- , _svcSigner = v4- , _svcPrefix = "monitoring"- , _svcVersion = "2010-08-01"- , _svcEndpoint = defaultEndpoint cloudWatch- , _svcTimeout = Just 70- , _svcCheck = statusSuccess- , _svcError = parseXMLError "CloudWatch"- , _svcRetry = retry- }- where- retry =- Exponential- { _retryBase = 5.0e-2- , _retryGrowth = 2- , _retryAttempts = 5- , _retryCheck = check- }- check e- | has (hasCode "ThrottledException" . hasStatus 400) e =- Just "throttled_exception"- | has (hasStatus 429) e = Just "too_many_requests"- | has (hasCode "ThrottlingException" . hasStatus 400) e =- Just "throttling_exception"- | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"- | has (hasStatus 504) e = Just "gateway_timeout"- | has (hasCode "RequestThrottledException" . hasStatus 400) e =- Just "request_throttled_exception"- | has (hasStatus 502) e = Just "bad_gateway"- | has (hasStatus 503) e = Just "service_unavailable"- | has (hasStatus 500) e = Just "general_server_error"- | has (hasStatus 509) e = Just "limit_exceeded"- | otherwise = Nothing----- | The quota for alarms for this customer has already been reached.-------_LimitExceededFault :: AsError a => Getting (First ServiceError) a ServiceError-_LimitExceededFault =- _MatchServiceError cloudWatch "LimitExceeded" . hasStatus 400----- | The specified dashboard does not exist.-------_DashboardNotFoundError :: AsError a => Getting (First ServiceError) a ServiceError-_DashboardNotFoundError =- _MatchServiceError cloudWatch "ResourceNotFound" . hasStatus 404----- | The next token specified is invalid.-------_InvalidNextToken :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidNextToken =- _MatchServiceError cloudWatch "InvalidNextToken" . hasStatus 400----- | Request processing has failed due to some unknown error, exception, or failure.-------_InternalServiceFault :: AsError a => Getting (First ServiceError) a ServiceError-_InternalServiceFault =- _MatchServiceError cloudWatch "InternalServiceError" . hasStatus 500----- | Some part of the dashboard data is invalid.-------_DashboardInvalidInputError :: AsError a => Getting (First ServiceError) a ServiceError-_DashboardInvalidInputError =- _MatchServiceError cloudWatch "InvalidParameterInput" . hasStatus 400----- | The value of an input parameter is bad or out-of-range.-------_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidParameterValueException =- _MatchServiceError cloudWatch "InvalidParameterValue" . hasStatus 400----- | Data was not syntactically valid JSON.-------_InvalidFormatFault :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidFormatFault =- _MatchServiceError cloudWatch "InvalidFormat" . hasStatus 400----- | An input parameter that is required is missing.-------_MissingRequiredParameterException :: AsError a => Getting (First ServiceError) a ServiceError-_MissingRequiredParameterException =- _MatchServiceError cloudWatch "MissingParameter" . hasStatus 400----- | Parameters were used together that cannot be used together.-------_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidParameterCombinationException =- _MatchServiceError cloudWatch "InvalidParameterCombination" . hasStatus 400----- | The named resource does not exist.-------_ResourceNotFound :: AsError a => Getting (First ServiceError) a ServiceError-_ResourceNotFound =- _MatchServiceError cloudWatch "ResourceNotFound" . hasStatus 404-
− gen/Network/AWS/CloudWatch/Types/Product.hs
@@ -1,1116 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.Types.Product--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudWatch.Types.Product where--import Network.AWS.CloudWatch.Types.Sum-import Network.AWS.Lens-import Network.AWS.Prelude---- | Represents the history of a specific alarm.------------ /See:/ 'alarmHistoryItem' smart constructor.-data AlarmHistoryItem = AlarmHistoryItem'- { _ahiAlarmName :: !(Maybe Text)- , _ahiHistoryItemType :: !(Maybe HistoryItemType)- , _ahiHistoryData :: !(Maybe Text)- , _ahiHistorySummary :: !(Maybe Text)- , _ahiTimestamp :: !(Maybe ISO8601)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'AlarmHistoryItem' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ahiAlarmName' - The descriptive name for the alarm.------ * 'ahiHistoryItemType' - The type of alarm history item.------ * 'ahiHistoryData' - Data about the alarm, in JSON format.------ * 'ahiHistorySummary' - A summary of the alarm history, in text format.------ * 'ahiTimestamp' - The time stamp for the alarm history item.-alarmHistoryItem- :: AlarmHistoryItem-alarmHistoryItem =- AlarmHistoryItem'- { _ahiAlarmName = Nothing- , _ahiHistoryItemType = Nothing- , _ahiHistoryData = Nothing- , _ahiHistorySummary = Nothing- , _ahiTimestamp = Nothing- }----- | The descriptive name for the alarm.-ahiAlarmName :: Lens' AlarmHistoryItem (Maybe Text)-ahiAlarmName = lens _ahiAlarmName (\ s a -> s{_ahiAlarmName = a})---- | The type of alarm history item.-ahiHistoryItemType :: Lens' AlarmHistoryItem (Maybe HistoryItemType)-ahiHistoryItemType = lens _ahiHistoryItemType (\ s a -> s{_ahiHistoryItemType = a})---- | Data about the alarm, in JSON format.-ahiHistoryData :: Lens' AlarmHistoryItem (Maybe Text)-ahiHistoryData = lens _ahiHistoryData (\ s a -> s{_ahiHistoryData = a})---- | A summary of the alarm history, in text format.-ahiHistorySummary :: Lens' AlarmHistoryItem (Maybe Text)-ahiHistorySummary = lens _ahiHistorySummary (\ s a -> s{_ahiHistorySummary = a})---- | The time stamp for the alarm history item.-ahiTimestamp :: Lens' AlarmHistoryItem (Maybe UTCTime)-ahiTimestamp = lens _ahiTimestamp (\ s a -> s{_ahiTimestamp = a}) . mapping _Time--instance FromXML AlarmHistoryItem where- parseXML x- = AlarmHistoryItem' <$>- (x .@? "AlarmName") <*> (x .@? "HistoryItemType") <*>- (x .@? "HistoryData")- <*> (x .@? "HistorySummary")- <*> (x .@? "Timestamp")--instance Hashable AlarmHistoryItem where--instance NFData AlarmHistoryItem where---- | Represents a specific dashboard.------------ /See:/ 'dashboardEntry' smart constructor.-data DashboardEntry = DashboardEntry'- { _deSize :: !(Maybe Integer)- , _deDashboardName :: !(Maybe Text)- , _deLastModified :: !(Maybe ISO8601)- , _deDashboardARN :: !(Maybe Text)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DashboardEntry' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'deSize' - The size of the dashboard, in bytes.------ * 'deDashboardName' - The name of the dashboard.------ * 'deLastModified' - The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.------ * 'deDashboardARN' - The Amazon Resource Name (ARN) of the dashboard.-dashboardEntry- :: DashboardEntry-dashboardEntry =- DashboardEntry'- { _deSize = Nothing- , _deDashboardName = Nothing- , _deLastModified = Nothing- , _deDashboardARN = Nothing- }----- | The size of the dashboard, in bytes.-deSize :: Lens' DashboardEntry (Maybe Integer)-deSize = lens _deSize (\ s a -> s{_deSize = a})---- | The name of the dashboard.-deDashboardName :: Lens' DashboardEntry (Maybe Text)-deDashboardName = lens _deDashboardName (\ s a -> s{_deDashboardName = a})---- | The time stamp of when the dashboard was last modified, either by an API call or through the console. This number is expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.-deLastModified :: Lens' DashboardEntry (Maybe UTCTime)-deLastModified = lens _deLastModified (\ s a -> s{_deLastModified = a}) . mapping _Time---- | The Amazon Resource Name (ARN) of the dashboard.-deDashboardARN :: Lens' DashboardEntry (Maybe Text)-deDashboardARN = lens _deDashboardARN (\ s a -> s{_deDashboardARN = a})--instance FromXML DashboardEntry where- parseXML x- = DashboardEntry' <$>- (x .@? "Size") <*> (x .@? "DashboardName") <*>- (x .@? "LastModified")- <*> (x .@? "DashboardArn")--instance Hashable DashboardEntry where--instance NFData DashboardEntry where---- | An error or warning for the operation.------------ /See:/ 'dashboardValidationMessage' smart constructor.-data DashboardValidationMessage = DashboardValidationMessage'- { _dvmDataPath :: !(Maybe Text)- , _dvmMessage :: !(Maybe Text)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DashboardValidationMessage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dvmDataPath' - The data path related to the message.------ * 'dvmMessage' - A message describing the error or warning.-dashboardValidationMessage- :: DashboardValidationMessage-dashboardValidationMessage =- DashboardValidationMessage' {_dvmDataPath = Nothing, _dvmMessage = Nothing}----- | The data path related to the message.-dvmDataPath :: Lens' DashboardValidationMessage (Maybe Text)-dvmDataPath = lens _dvmDataPath (\ s a -> s{_dvmDataPath = a})---- | A message describing the error or warning.-dvmMessage :: Lens' DashboardValidationMessage (Maybe Text)-dvmMessage = lens _dvmMessage (\ s a -> s{_dvmMessage = a})--instance FromXML DashboardValidationMessage where- parseXML x- = DashboardValidationMessage' <$>- (x .@? "DataPath") <*> (x .@? "Message")--instance Hashable DashboardValidationMessage where--instance NFData DashboardValidationMessage where---- | Encapsulates the statistical data that CloudWatch computes from metric data.------------ /See:/ 'datapoint' smart constructor.-data Datapoint = Datapoint'- { _dSampleCount :: !(Maybe Double)- , _dMaximum :: !(Maybe Double)- , _dAverage :: !(Maybe Double)- , _dMinimum :: !(Maybe Double)- , _dExtendedStatistics :: !(Maybe (Map Text Double))- , _dSum :: !(Maybe Double)- , _dUnit :: !(Maybe StandardUnit)- , _dTimestamp :: !(Maybe ISO8601)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'Datapoint' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dSampleCount' - The number of metric values that contributed to the aggregate value of this data point.------ * 'dMaximum' - The maximum metric value for the data point.------ * 'dAverage' - The average of the metric values that correspond to the data point.------ * 'dMinimum' - The minimum metric value for the data point.------ * 'dExtendedStatistics' - The percentile statistic for the data point.------ * 'dSum' - The sum of the metric values for the data point.------ * 'dUnit' - The standard unit for the data point.------ * 'dTimestamp' - The time stamp used for the data point.-datapoint- :: Datapoint-datapoint =- Datapoint'- { _dSampleCount = Nothing- , _dMaximum = Nothing- , _dAverage = Nothing- , _dMinimum = Nothing- , _dExtendedStatistics = Nothing- , _dSum = Nothing- , _dUnit = Nothing- , _dTimestamp = Nothing- }----- | The number of metric values that contributed to the aggregate value of this data point.-dSampleCount :: Lens' Datapoint (Maybe Double)-dSampleCount = lens _dSampleCount (\ s a -> s{_dSampleCount = a})---- | The maximum metric value for the data point.-dMaximum :: Lens' Datapoint (Maybe Double)-dMaximum = lens _dMaximum (\ s a -> s{_dMaximum = a})---- | The average of the metric values that correspond to the data point.-dAverage :: Lens' Datapoint (Maybe Double)-dAverage = lens _dAverage (\ s a -> s{_dAverage = a})---- | The minimum metric value for the data point.-dMinimum :: Lens' Datapoint (Maybe Double)-dMinimum = lens _dMinimum (\ s a -> s{_dMinimum = a})---- | The percentile statistic for the data point.-dExtendedStatistics :: Lens' Datapoint (HashMap Text Double)-dExtendedStatistics = lens _dExtendedStatistics (\ s a -> s{_dExtendedStatistics = a}) . _Default . _Map---- | The sum of the metric values for the data point.-dSum :: Lens' Datapoint (Maybe Double)-dSum = lens _dSum (\ s a -> s{_dSum = a})---- | The standard unit for the data point.-dUnit :: Lens' Datapoint (Maybe StandardUnit)-dUnit = lens _dUnit (\ s a -> s{_dUnit = a})---- | The time stamp used for the data point.-dTimestamp :: Lens' Datapoint (Maybe UTCTime)-dTimestamp = lens _dTimestamp (\ s a -> s{_dTimestamp = a}) . mapping _Time--instance FromXML Datapoint where- parseXML x- = Datapoint' <$>- (x .@? "SampleCount") <*> (x .@? "Maximum") <*>- (x .@? "Average")- <*> (x .@? "Minimum")- <*>- (x .@? "ExtendedStatistics" .!@ mempty >>=- may (parseXMLMap "entry" "key" "value"))- <*> (x .@? "Sum")- <*> (x .@? "Unit")- <*> (x .@? "Timestamp")--instance Hashable Datapoint where--instance NFData Datapoint where---- | Expands the identity of a metric.------------ /See:/ 'dimension' smart constructor.-data Dimension = Dimension'- { _dName :: !Text- , _dValue :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'Dimension' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dName' - The name of the dimension.------ * 'dValue' - The value representing the dimension measurement.-dimension- :: Text -- ^ 'dName'- -> Text -- ^ 'dValue'- -> Dimension-dimension pName_ pValue_ = Dimension' {_dName = pName_, _dValue = pValue_}----- | The name of the dimension.-dName :: Lens' Dimension Text-dName = lens _dName (\ s a -> s{_dName = a})---- | The value representing the dimension measurement.-dValue :: Lens' Dimension Text-dValue = lens _dValue (\ s a -> s{_dValue = a})--instance FromXML Dimension where- parseXML x- = Dimension' <$> (x .@ "Name") <*> (x .@ "Value")--instance Hashable Dimension where--instance NFData Dimension where--instance ToQuery Dimension where- toQuery Dimension'{..}- = mconcat ["Name" =: _dName, "Value" =: _dValue]---- | Represents filters for a dimension.------------ /See:/ 'dimensionFilter' smart constructor.-data DimensionFilter = DimensionFilter'- { _dfValue :: !(Maybe Text)- , _dfName :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DimensionFilter' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dfValue' - The value of the dimension to be matched.------ * 'dfName' - The dimension name to be matched.-dimensionFilter- :: Text -- ^ 'dfName'- -> DimensionFilter-dimensionFilter pName_ = DimensionFilter' {_dfValue = Nothing, _dfName = pName_}----- | The value of the dimension to be matched.-dfValue :: Lens' DimensionFilter (Maybe Text)-dfValue = lens _dfValue (\ s a -> s{_dfValue = a})---- | The dimension name to be matched.-dfName :: Lens' DimensionFilter Text-dfName = lens _dfName (\ s a -> s{_dfName = a})--instance Hashable DimensionFilter where--instance NFData DimensionFilter where--instance ToQuery DimensionFilter where- toQuery DimensionFilter'{..}- = mconcat ["Value" =: _dfValue, "Name" =: _dfName]---- | A message returned by the @GetMetricData@ API, including a code and a description.------------ /See:/ 'messageData' smart constructor.-data MessageData = MessageData'- { _mValue :: !(Maybe Text)- , _mCode :: !(Maybe Text)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MessageData' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mValue' - The message text.------ * 'mCode' - The error code or status code associated with the message.-messageData- :: MessageData-messageData = MessageData' {_mValue = Nothing, _mCode = Nothing}----- | The message text.-mValue :: Lens' MessageData (Maybe Text)-mValue = lens _mValue (\ s a -> s{_mValue = a})---- | The error code or status code associated with the message.-mCode :: Lens' MessageData (Maybe Text)-mCode = lens _mCode (\ s a -> s{_mCode = a})--instance FromXML MessageData where- parseXML x- = MessageData' <$> (x .@? "Value") <*> (x .@? "Code")--instance Hashable MessageData where--instance NFData MessageData where---- | Represents a specific metric.------------ /See:/ 'metric' smart constructor.-data Metric = Metric'- { _mMetricName :: !(Maybe Text)- , _mNamespace :: !(Maybe Text)- , _mDimensions :: !(Maybe [Dimension])- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'Metric' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mMetricName' - The name of the metric.------ * 'mNamespace' - The namespace of the metric.------ * 'mDimensions' - The dimensions for the metric.-metric- :: Metric-metric =- Metric'- {_mMetricName = Nothing, _mNamespace = Nothing, _mDimensions = Nothing}----- | The name of the metric.-mMetricName :: Lens' Metric (Maybe Text)-mMetricName = lens _mMetricName (\ s a -> s{_mMetricName = a})---- | The namespace of the metric.-mNamespace :: Lens' Metric (Maybe Text)-mNamespace = lens _mNamespace (\ s a -> s{_mNamespace = a})---- | The dimensions for the metric.-mDimensions :: Lens' Metric [Dimension]-mDimensions = lens _mDimensions (\ s a -> s{_mDimensions = a}) . _Default . _Coerce--instance FromXML Metric where- parseXML x- = Metric' <$>- (x .@? "MetricName") <*> (x .@? "Namespace") <*>- (x .@? "Dimensions" .!@ mempty >>=- may (parseXMLList "member"))--instance Hashable Metric where--instance NFData Metric where--instance ToQuery Metric where- toQuery Metric'{..}- = mconcat- ["MetricName" =: _mMetricName,- "Namespace" =: _mNamespace,- "Dimensions" =:- toQuery (toQueryList "member" <$> _mDimensions)]---- | Represents an alarm.------------ /See:/ 'metricAlarm' smart constructor.-data MetricAlarm = MetricAlarm'- { _maAlarmName :: !(Maybe Text)- , _maStateUpdatedTimestamp :: !(Maybe ISO8601)- , _maTreatMissingData :: !(Maybe Text)- , _maPeriod :: !(Maybe Nat)- , _maAlarmDescription :: !(Maybe Text)- , _maEvaluationPeriods :: !(Maybe Nat)- , _maMetricName :: !(Maybe Text)- , _maNamespace :: !(Maybe Text)- , _maComparisonOperator :: !(Maybe ComparisonOperator)- , _maOKActions :: !(Maybe [Text])- , _maEvaluateLowSampleCountPercentile :: !(Maybe Text)- , _maStateValue :: !(Maybe StateValue)- , _maDatapointsToAlarm :: !(Maybe Nat)- , _maThreshold :: !(Maybe Double)- , _maAlarmConfigurationUpdatedTimestamp :: !(Maybe ISO8601)- , _maActionsEnabled :: !(Maybe Bool)- , _maInsufficientDataActions :: !(Maybe [Text])- , _maStateReason :: !(Maybe Text)- , _maStateReasonData :: !(Maybe Text)- , _maDimensions :: !(Maybe [Dimension])- , _maAlarmARN :: !(Maybe Text)- , _maAlarmActions :: !(Maybe [Text])- , _maUnit :: !(Maybe StandardUnit)- , _maStatistic :: !(Maybe Statistic)- , _maExtendedStatistic :: !(Maybe Text)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MetricAlarm' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'maAlarmName' - The name of the alarm.------ * 'maStateUpdatedTimestamp' - The time stamp of the last update to the alarm state.------ * 'maTreatMissingData' - Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of @missing@ is used.------ * 'maPeriod' - The period, in seconds, over which the statistic is applied.------ * 'maAlarmDescription' - The description of the alarm.------ * 'maEvaluationPeriods' - The number of periods over which data is compared to the specified threshold.------ * 'maMetricName' - The name of the metric associated with the alarm.------ * 'maNamespace' - The namespace of the metric associated with the alarm.------ * 'maComparisonOperator' - The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.------ * 'maOKActions' - The actions to execute when this alarm transitions to the @OK@ state from any other state. Each action is specified as an Amazon Resource Name (ARN).------ * 'maEvaluateLowSampleCountPercentile' - Used only for alarms based on percentiles. If @ignore@ , the alarm state does not change during periods with too few data points to be statistically significant. If @evaluate@ or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.------ * 'maStateValue' - The state value for the alarm.------ * 'maDatapointsToAlarm' - The number of datapoints that must be breaching to trigger the alarm.------ * 'maThreshold' - The value to compare with the specified statistic.------ * 'maAlarmConfigurationUpdatedTimestamp' - The time stamp of the last update to the alarm configuration.------ * 'maActionsEnabled' - Indicates whether actions should be executed during any changes to the alarm state.------ * 'maInsufficientDataActions' - The actions to execute when this alarm transitions to the @INSUFFICIENT_DATA@ state from any other state. Each action is specified as an Amazon Resource Name (ARN).------ * 'maStateReason' - An explanation for the alarm state, in text format.------ * 'maStateReasonData' - An explanation for the alarm state, in JSON format.------ * 'maDimensions' - The dimensions for the metric associated with the alarm.------ * 'maAlarmARN' - The Amazon Resource Name (ARN) of the alarm.------ * 'maAlarmActions' - The actions to execute when this alarm transitions to the @ALARM@ state from any other state. Each action is specified as an Amazon Resource Name (ARN).------ * 'maUnit' - The unit of the metric associated with the alarm.------ * 'maStatistic' - The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use @ExtendedStatistic@ .------ * 'maExtendedStatistic' - The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.-metricAlarm- :: MetricAlarm-metricAlarm =- MetricAlarm'- { _maAlarmName = Nothing- , _maStateUpdatedTimestamp = Nothing- , _maTreatMissingData = Nothing- , _maPeriod = Nothing- , _maAlarmDescription = Nothing- , _maEvaluationPeriods = Nothing- , _maMetricName = Nothing- , _maNamespace = Nothing- , _maComparisonOperator = Nothing- , _maOKActions = Nothing- , _maEvaluateLowSampleCountPercentile = Nothing- , _maStateValue = Nothing- , _maDatapointsToAlarm = Nothing- , _maThreshold = Nothing- , _maAlarmConfigurationUpdatedTimestamp = Nothing- , _maActionsEnabled = Nothing- , _maInsufficientDataActions = Nothing- , _maStateReason = Nothing- , _maStateReasonData = Nothing- , _maDimensions = Nothing- , _maAlarmARN = Nothing- , _maAlarmActions = Nothing- , _maUnit = Nothing- , _maStatistic = Nothing- , _maExtendedStatistic = Nothing- }----- | The name of the alarm.-maAlarmName :: Lens' MetricAlarm (Maybe Text)-maAlarmName = lens _maAlarmName (\ s a -> s{_maAlarmName = a})---- | The time stamp of the last update to the alarm state.-maStateUpdatedTimestamp :: Lens' MetricAlarm (Maybe UTCTime)-maStateUpdatedTimestamp = lens _maStateUpdatedTimestamp (\ s a -> s{_maStateUpdatedTimestamp = a}) . mapping _Time---- | Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of @missing@ is used.-maTreatMissingData :: Lens' MetricAlarm (Maybe Text)-maTreatMissingData = lens _maTreatMissingData (\ s a -> s{_maTreatMissingData = a})---- | The period, in seconds, over which the statistic is applied.-maPeriod :: Lens' MetricAlarm (Maybe Natural)-maPeriod = lens _maPeriod (\ s a -> s{_maPeriod = a}) . mapping _Nat---- | The description of the alarm.-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.-maEvaluationPeriods :: Lens' MetricAlarm (Maybe Natural)-maEvaluationPeriods = lens _maEvaluationPeriods (\ s a -> s{_maEvaluationPeriods = a}) . mapping _Nat---- | The name of the metric associated with the alarm.-maMetricName :: Lens' MetricAlarm (Maybe Text)-maMetricName = lens _maMetricName (\ s a -> s{_maMetricName = a})---- | The namespace of the metric associated with the alarm.-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.-maComparisonOperator :: Lens' MetricAlarm (Maybe ComparisonOperator)-maComparisonOperator = lens _maComparisonOperator (\ s a -> s{_maComparisonOperator = a})---- | The actions to execute when this alarm transitions to the @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---- | Used only for alarms based on percentiles. If @ignore@ , the alarm state does not change during periods with too few data points to be statistically significant. If @evaluate@ or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.-maEvaluateLowSampleCountPercentile :: Lens' MetricAlarm (Maybe Text)-maEvaluateLowSampleCountPercentile = lens _maEvaluateLowSampleCountPercentile (\ s a -> s{_maEvaluateLowSampleCountPercentile = a})---- | The state value for the alarm.-maStateValue :: Lens' MetricAlarm (Maybe StateValue)-maStateValue = lens _maStateValue (\ s a -> s{_maStateValue = a})---- | The number of datapoints that must be breaching to trigger the alarm.-maDatapointsToAlarm :: Lens' MetricAlarm (Maybe Natural)-maDatapointsToAlarm = lens _maDatapointsToAlarm (\ s a -> s{_maDatapointsToAlarm = a}) . mapping _Nat---- | The value to compare with the specified statistic.-maThreshold :: Lens' MetricAlarm (Maybe Double)-maThreshold = lens _maThreshold (\ s a -> s{_maThreshold = a})---- | The time stamp of the last update to the alarm configuration.-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 state.-maActionsEnabled :: Lens' MetricAlarm (Maybe Bool)-maActionsEnabled = lens _maActionsEnabled (\ s a -> s{_maActionsEnabled = a})---- | The actions to execute when this alarm transitions to the @INSUFFICIENT_DATA@ state from any other state. Each action is specified as an Amazon Resource Name (ARN).-maInsufficientDataActions :: Lens' MetricAlarm [Text]-maInsufficientDataActions = lens _maInsufficientDataActions (\ s a -> s{_maInsufficientDataActions = a}) . _Default . _Coerce---- | An explanation for the alarm state, in text format.-maStateReason :: Lens' MetricAlarm (Maybe Text)-maStateReason = lens _maStateReason (\ s a -> s{_maStateReason = a})---- | An explanation for the alarm state, in JSON format.-maStateReasonData :: Lens' MetricAlarm (Maybe Text)-maStateReasonData = lens _maStateReasonData (\ s a -> s{_maStateReasonData = a})---- | The dimensions for the metric associated with the alarm.-maDimensions :: Lens' MetricAlarm [Dimension]-maDimensions = lens _maDimensions (\ s a -> s{_maDimensions = a}) . _Default . _Coerce---- | The Amazon Resource Name (ARN) of the alarm.-maAlarmARN :: Lens' MetricAlarm (Maybe Text)-maAlarmARN = lens _maAlarmARN (\ s a -> s{_maAlarmARN = a})---- | The actions to execute when this alarm transitions to the @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---- | The unit of the metric associated with the alarm.-maUnit :: Lens' MetricAlarm (Maybe StandardUnit)-maUnit = lens _maUnit (\ s a -> s{_maUnit = a})---- | The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use @ExtendedStatistic@ .-maStatistic :: Lens' MetricAlarm (Maybe Statistic)-maStatistic = lens _maStatistic (\ s a -> s{_maStatistic = a})---- | The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.-maExtendedStatistic :: Lens' MetricAlarm (Maybe Text)-maExtendedStatistic = lens _maExtendedStatistic (\ s a -> s{_maExtendedStatistic = a})--instance FromXML MetricAlarm where- parseXML x- = MetricAlarm' <$>- (x .@? "AlarmName") <*>- (x .@? "StateUpdatedTimestamp")- <*> (x .@? "TreatMissingData")- <*> (x .@? "Period")- <*> (x .@? "AlarmDescription")- <*> (x .@? "EvaluationPeriods")- <*> (x .@? "MetricName")- <*> (x .@? "Namespace")- <*> (x .@? "ComparisonOperator")- <*>- (x .@? "OKActions" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "EvaluateLowSampleCountPercentile")- <*> (x .@? "StateValue")- <*> (x .@? "DatapointsToAlarm")- <*> (x .@? "Threshold")- <*> (x .@? "AlarmConfigurationUpdatedTimestamp")- <*> (x .@? "ActionsEnabled")- <*>- (x .@? "InsufficientDataActions" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "StateReason")- <*> (x .@? "StateReasonData")- <*>- (x .@? "Dimensions" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "AlarmArn")- <*>- (x .@? "AlarmActions" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "Unit")- <*> (x .@? "Statistic")- <*> (x .@? "ExtendedStatistic")--instance Hashable MetricAlarm where--instance NFData MetricAlarm where---- | This structure indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single @GetMetricData@ call can include up to 100 @MetricDataQuery@ structures.------------ /See:/ 'metricDataQuery' smart constructor.-data MetricDataQuery = MetricDataQuery'- { _mdqReturnData :: !(Maybe Bool)- , _mdqExpression :: !(Maybe Text)- , _mdqLabel :: !(Maybe Text)- , _mdqMetricStat :: !(Maybe MetricStat)- , _mdqId :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MetricDataQuery' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mdqReturnData' - Indicates whether to return the time stamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify @False@ . If you omit this, the default of @True@ is used.------ * 'mdqExpression' - The math expression to be performed on the returned data, if this structure is performing a math expression. For more information about metric math expressions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions> in the /Amazon CloudWatch User Guide/ . Within one MetricDataQuery structure, you must specify either @Expression@ or @MetricStat@ but not both.------ * 'mdqLabel' - A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.------ * 'mdqMetricStat' - The metric to be returned, along with statistics, period, and units. Use this parameter only if this structure is performing a data retrieval and not performing a math expression on the returned data. Within one MetricDataQuery structure, you must specify either @Expression@ or @MetricStat@ but not both.------ * 'mdqId' - A short name used to tie this structure to the results in the response. This name must be unique within a single call to @GetMetricData@ . If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.-metricDataQuery- :: Text -- ^ 'mdqId'- -> MetricDataQuery-metricDataQuery pId_ =- MetricDataQuery'- { _mdqReturnData = Nothing- , _mdqExpression = Nothing- , _mdqLabel = Nothing- , _mdqMetricStat = Nothing- , _mdqId = pId_- }----- | Indicates whether to return the time stamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify @False@ . If you omit this, the default of @True@ is used.-mdqReturnData :: Lens' MetricDataQuery (Maybe Bool)-mdqReturnData = lens _mdqReturnData (\ s a -> s{_mdqReturnData = a})---- | The math expression to be performed on the returned data, if this structure is performing a math expression. For more information about metric math expressions, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax Metric Math Syntax and Functions> in the /Amazon CloudWatch User Guide/ . Within one MetricDataQuery structure, you must specify either @Expression@ or @MetricStat@ but not both.-mdqExpression :: Lens' MetricDataQuery (Maybe Text)-mdqExpression = lens _mdqExpression (\ s a -> s{_mdqExpression = a})---- | A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.-mdqLabel :: Lens' MetricDataQuery (Maybe Text)-mdqLabel = lens _mdqLabel (\ s a -> s{_mdqLabel = a})---- | The metric to be returned, along with statistics, period, and units. Use this parameter only if this structure is performing a data retrieval and not performing a math expression on the returned data. Within one MetricDataQuery structure, you must specify either @Expression@ or @MetricStat@ but not both.-mdqMetricStat :: Lens' MetricDataQuery (Maybe MetricStat)-mdqMetricStat = lens _mdqMetricStat (\ s a -> s{_mdqMetricStat = a})---- | A short name used to tie this structure to the results in the response. This name must be unique within a single call to @GetMetricData@ . If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.-mdqId :: Lens' MetricDataQuery Text-mdqId = lens _mdqId (\ s a -> s{_mdqId = a})--instance Hashable MetricDataQuery where--instance NFData MetricDataQuery where--instance ToQuery MetricDataQuery where- toQuery MetricDataQuery'{..}- = mconcat- ["ReturnData" =: _mdqReturnData,- "Expression" =: _mdqExpression, "Label" =: _mdqLabel,- "MetricStat" =: _mdqMetricStat, "Id" =: _mdqId]---- | A @GetMetricData@ call returns an array of @MetricDataResult@ structures. Each of these structures includes the data points for that metric, along with the time stamps of those data points and other identifying information.------------ /See:/ 'metricDataResult' smart constructor.-data MetricDataResult = MetricDataResult'- { _mdrValues :: !(Maybe [Double])- , _mdrId :: !(Maybe Text)- , _mdrTimestamps :: !(Maybe [ISO8601])- , _mdrMessages :: !(Maybe [MessageData])- , _mdrLabel :: !(Maybe Text)- , _mdrStatusCode :: !(Maybe StatusCode)- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MetricDataResult' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mdrValues' - The data points for the metric corresponding to @Timestamps@ . The number of values always matches the number of time stamps and the time stamp for Values[x] is Timestamps[x].------ * 'mdrId' - The short name you specified to represent this metric.------ * 'mdrTimestamps' - The time stamps for the data points, formatted in Unix timestamp format. The number of time stamps always matches the number of values and the value for Timestamps[x] is Values[x].------ * 'mdrMessages' - A list of messages with additional information about the data returned.------ * 'mdrLabel' - The human-readable label associated with the data.------ * 'mdrStatusCode' - The status of the returned data. @Complete@ indicates that all data points in the requested time range were returned. @PartialData@ means that an incomplete set of data points were returned. You can use the @NextToken@ value that was returned and repeat your request to get more data points. @NextToken@ is not returned if you are performing a math expression. @InternalError@ indicates that an error occurred. Retry your request using @NextToken@ , if present.-metricDataResult- :: MetricDataResult-metricDataResult =- MetricDataResult'- { _mdrValues = Nothing- , _mdrId = Nothing- , _mdrTimestamps = Nothing- , _mdrMessages = Nothing- , _mdrLabel = Nothing- , _mdrStatusCode = Nothing- }----- | The data points for the metric corresponding to @Timestamps@ . The number of values always matches the number of time stamps and the time stamp for Values[x] is Timestamps[x].-mdrValues :: Lens' MetricDataResult [Double]-mdrValues = lens _mdrValues (\ s a -> s{_mdrValues = a}) . _Default . _Coerce---- | The short name you specified to represent this metric.-mdrId :: Lens' MetricDataResult (Maybe Text)-mdrId = lens _mdrId (\ s a -> s{_mdrId = a})---- | The time stamps for the data points, formatted in Unix timestamp format. The number of time stamps always matches the number of values and the value for Timestamps[x] is Values[x].-mdrTimestamps :: Lens' MetricDataResult [UTCTime]-mdrTimestamps = lens _mdrTimestamps (\ s a -> s{_mdrTimestamps = a}) . _Default . _Coerce---- | A list of messages with additional information about the data returned.-mdrMessages :: Lens' MetricDataResult [MessageData]-mdrMessages = lens _mdrMessages (\ s a -> s{_mdrMessages = a}) . _Default . _Coerce---- | The human-readable label associated with the data.-mdrLabel :: Lens' MetricDataResult (Maybe Text)-mdrLabel = lens _mdrLabel (\ s a -> s{_mdrLabel = a})---- | The status of the returned data. @Complete@ indicates that all data points in the requested time range were returned. @PartialData@ means that an incomplete set of data points were returned. You can use the @NextToken@ value that was returned and repeat your request to get more data points. @NextToken@ is not returned if you are performing a math expression. @InternalError@ indicates that an error occurred. Retry your request using @NextToken@ , if present.-mdrStatusCode :: Lens' MetricDataResult (Maybe StatusCode)-mdrStatusCode = lens _mdrStatusCode (\ s a -> s{_mdrStatusCode = a})--instance FromXML MetricDataResult where- parseXML x- = MetricDataResult' <$>- (x .@? "Values" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "Id")- <*>- (x .@? "Timestamps" .!@ mempty >>=- may (parseXMLList "member"))- <*>- (x .@? "Messages" .!@ mempty >>=- may (parseXMLList "member"))- <*> (x .@? "Label")- <*> (x .@? "StatusCode")--instance Hashable MetricDataResult where--instance NFData MetricDataResult where---- | Encapsulates the information sent to either create a metric or add new values to be aggregated into an existing metric.------------ /See:/ 'metricDatum' smart constructor.-data MetricDatum = MetricDatum'- { _mdValue :: !(Maybe Double)- , _mdStorageResolution :: !(Maybe Nat)- , _mdDimensions :: !(Maybe [Dimension])- , _mdUnit :: !(Maybe StandardUnit)- , _mdTimestamp :: !(Maybe ISO8601)- , _mdStatisticValues :: !(Maybe StatisticSet)- , _mdMetricName :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MetricDatum' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mdValue' - The value for the metric. Although the parameter accepts numbers of type Double, 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 (for example, NaN, +Infinity, -Infinity) are not supported.------ * 'mdStorageResolution' - Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics High-Resolution Metrics> in the /Amazon CloudWatch User Guide/ . This field is optional, if you do not specify it the default of 60 is used.------ * 'mdDimensions' - The dimensions associated with the metric.------ * 'mdUnit' - The unit of the metric.------ * 'mdTimestamp' - The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.------ * 'mdStatisticValues' - The statistical values for the metric.------ * 'mdMetricName' - The name of the metric.-metricDatum- :: Text -- ^ 'mdMetricName'- -> MetricDatum-metricDatum pMetricName_ =- MetricDatum'- { _mdValue = Nothing- , _mdStorageResolution = Nothing- , _mdDimensions = Nothing- , _mdUnit = Nothing- , _mdTimestamp = Nothing- , _mdStatisticValues = Nothing- , _mdMetricName = pMetricName_- }----- | The value for the metric. Although the parameter accepts numbers of type Double, 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 (for example, NaN, +Infinity, -Infinity) are not supported.-mdValue :: Lens' MetricDatum (Maybe Double)-mdValue = lens _mdValue (\ s a -> s{_mdValue = a})---- | Valid values are 1 and 60. Setting this to 1 specifies this metric as a high-resolution metric, so that CloudWatch stores the metric with sub-minute resolution down to one second. Setting this to 60 specifies this metric as a regular-resolution metric, which CloudWatch stores at 1-minute resolution. Currently, high resolution is available only for custom metrics. For more information about high-resolution metrics, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#high-resolution-metrics High-Resolution Metrics> in the /Amazon CloudWatch User Guide/ . This field is optional, if you do not specify it the default of 60 is used.-mdStorageResolution :: Lens' MetricDatum (Maybe Natural)-mdStorageResolution = lens _mdStorageResolution (\ s a -> s{_mdStorageResolution = a}) . mapping _Nat---- | The dimensions associated with the metric.-mdDimensions :: Lens' MetricDatum [Dimension]-mdDimensions = lens _mdDimensions (\ s a -> s{_mdDimensions = a}) . _Default . _Coerce---- | The unit of the metric.-mdUnit :: Lens' MetricDatum (Maybe StandardUnit)-mdUnit = lens _mdUnit (\ s a -> s{_mdUnit = a})---- | The time the metric data was received, expressed as the number of milliseconds since Jan 1, 1970 00:00:00 UTC.-mdTimestamp :: Lens' MetricDatum (Maybe UTCTime)-mdTimestamp = lens _mdTimestamp (\ s a -> s{_mdTimestamp = a}) . mapping _Time---- | The statistical values for the metric.-mdStatisticValues :: Lens' MetricDatum (Maybe StatisticSet)-mdStatisticValues = lens _mdStatisticValues (\ s a -> s{_mdStatisticValues = a})---- | The name of the metric.-mdMetricName :: Lens' MetricDatum Text-mdMetricName = lens _mdMetricName (\ s a -> s{_mdMetricName = a})--instance Hashable MetricDatum where--instance NFData MetricDatum where--instance ToQuery MetricDatum where- toQuery MetricDatum'{..}- = mconcat- ["Value" =: _mdValue,- "StorageResolution" =: _mdStorageResolution,- "Dimensions" =:- toQuery (toQueryList "member" <$> _mdDimensions),- "Unit" =: _mdUnit, "Timestamp" =: _mdTimestamp,- "StatisticValues" =: _mdStatisticValues,- "MetricName" =: _mdMetricName]---- | This structure defines the metric to be returned, along with the statistics, period, and units.------------ /See:/ 'metricStat' smart constructor.-data MetricStat = MetricStat'- { _msUnit :: !(Maybe StandardUnit)- , _msMetric :: !Metric- , _msPeriod :: !Nat- , _msStat :: !Text- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'MetricStat' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'msUnit' - The unit to use for the returned data points.------ * 'msMetric' - The metric to return, including the metric name, namespace, and dimensions.------ * 'msPeriod' - The period to use when retrieving the metric.------ * 'msStat' - The statistic to return. It can include any CloudWatch statistic or extended statistic.-metricStat- :: Metric -- ^ 'msMetric'- -> Natural -- ^ 'msPeriod'- -> Text -- ^ 'msStat'- -> MetricStat-metricStat pMetric_ pPeriod_ pStat_ =- MetricStat'- { _msUnit = Nothing- , _msMetric = pMetric_- , _msPeriod = _Nat # pPeriod_- , _msStat = pStat_- }----- | The unit to use for the returned data points.-msUnit :: Lens' MetricStat (Maybe StandardUnit)-msUnit = lens _msUnit (\ s a -> s{_msUnit = a})---- | The metric to return, including the metric name, namespace, and dimensions.-msMetric :: Lens' MetricStat Metric-msMetric = lens _msMetric (\ s a -> s{_msMetric = a})---- | The period to use when retrieving the metric.-msPeriod :: Lens' MetricStat Natural-msPeriod = lens _msPeriod (\ s a -> s{_msPeriod = a}) . _Nat---- | The statistic to return. It can include any CloudWatch statistic or extended statistic.-msStat :: Lens' MetricStat Text-msStat = lens _msStat (\ s a -> s{_msStat = a})--instance Hashable MetricStat where--instance NFData MetricStat where--instance ToQuery MetricStat where- toQuery MetricStat'{..}- = mconcat- ["Unit" =: _msUnit, "Metric" =: _msMetric,- "Period" =: _msPeriod, "Stat" =: _msStat]---- | Represents a set of statistics that describes a specific metric.------------ /See:/ 'statisticSet' smart constructor.-data StatisticSet = StatisticSet'- { _ssSampleCount :: !Double- , _ssSum :: !Double- , _ssMinimum :: !Double- , _ssMaximum :: !Double- } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'StatisticSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ssSampleCount' - The number of samples used for the statistic set.------ * 'ssSum' - The sum of values for the sample set.------ * 'ssMinimum' - The minimum value of the sample set.------ * 'ssMaximum' - The maximum value of the sample set.-statisticSet- :: Double -- ^ 'ssSampleCount'- -> Double -- ^ 'ssSum'- -> Double -- ^ 'ssMinimum'- -> Double -- ^ 'ssMaximum'- -> StatisticSet-statisticSet pSampleCount_ pSum_ pMinimum_ pMaximum_ =- StatisticSet'- { _ssSampleCount = pSampleCount_- , _ssSum = pSum_- , _ssMinimum = pMinimum_- , _ssMaximum = pMaximum_- }----- | The number of samples used for the statistic set.-ssSampleCount :: Lens' StatisticSet Double-ssSampleCount = lens _ssSampleCount (\ s a -> s{_ssSampleCount = a})---- | The sum of values for the sample set.-ssSum :: Lens' StatisticSet Double-ssSum = lens _ssSum (\ s a -> s{_ssSum = a})---- | The minimum value of the sample set.-ssMinimum :: Lens' StatisticSet Double-ssMinimum = lens _ssMinimum (\ s a -> s{_ssMinimum = a})---- | The maximum value of the sample set.-ssMaximum :: Lens' StatisticSet Double-ssMaximum = lens _ssMaximum (\ s a -> s{_ssMaximum = a})--instance Hashable StatisticSet where--instance NFData StatisticSet where--instance ToQuery StatisticSet where- toQuery StatisticSet'{..}- = mconcat- ["SampleCount" =: _ssSampleCount, "Sum" =: _ssSum,- "Minimum" =: _ssMinimum, "Maximum" =: _ssMaximum]
− gen/Network/AWS/CloudWatch/Types/Sum.hs
@@ -1,305 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.Types.Sum--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudWatch.Types.Sum where--import Network.AWS.Prelude--data ComparisonOperator- = GreaterThanOrEqualToThreshold- | GreaterThanThreshold- | LessThanOrEqualToThreshold- | LessThanThreshold- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText ComparisonOperator where- parser = takeLowerText >>= \case- "greaterthanorequaltothreshold" -> pure GreaterThanOrEqualToThreshold- "greaterthanthreshold" -> pure GreaterThanThreshold- "lessthanorequaltothreshold" -> pure LessThanOrEqualToThreshold- "lessthanthreshold" -> pure LessThanThreshold- e -> fromTextError $ "Failure parsing ComparisonOperator from value: '" <> e- <> "'. Accepted values: greaterthanorequaltothreshold, greaterthanthreshold, lessthanorequaltothreshold, lessthanthreshold"--instance ToText ComparisonOperator where- toText = \case- GreaterThanOrEqualToThreshold -> "GreaterThanOrEqualToThreshold"- GreaterThanThreshold -> "GreaterThanThreshold"- LessThanOrEqualToThreshold -> "LessThanOrEqualToThreshold"- LessThanThreshold -> "LessThanThreshold"--instance Hashable ComparisonOperator-instance NFData ComparisonOperator-instance ToByteString ComparisonOperator-instance ToQuery ComparisonOperator-instance ToHeader ComparisonOperator--instance FromXML ComparisonOperator where- parseXML = parseXMLText "ComparisonOperator"--data HistoryItemType- = Action- | ConfigurationUpdate- | StateUpdate- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText HistoryItemType where- parser = takeLowerText >>= \case- "action" -> pure Action- "configurationupdate" -> pure ConfigurationUpdate- "stateupdate" -> pure StateUpdate- e -> fromTextError $ "Failure parsing HistoryItemType from value: '" <> e- <> "'. Accepted values: action, configurationupdate, stateupdate"--instance ToText HistoryItemType where- toText = \case- Action -> "Action"- ConfigurationUpdate -> "ConfigurationUpdate"- StateUpdate -> "StateUpdate"--instance Hashable HistoryItemType-instance NFData HistoryItemType-instance ToByteString HistoryItemType-instance ToQuery HistoryItemType-instance ToHeader HistoryItemType--instance FromXML HistoryItemType where- parseXML = parseXMLText "HistoryItemType"--data ScanBy- = TimestampAscending- | TimestampDescending- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText ScanBy where- parser = takeLowerText >>= \case- "timestampascending" -> pure TimestampAscending- "timestampdescending" -> pure TimestampDescending- e -> fromTextError $ "Failure parsing ScanBy from value: '" <> e- <> "'. Accepted values: timestampascending, timestampdescending"--instance ToText ScanBy where- toText = \case- TimestampAscending -> "TimestampAscending"- TimestampDescending -> "TimestampDescending"--instance Hashable ScanBy-instance NFData ScanBy-instance ToByteString ScanBy-instance ToQuery ScanBy-instance ToHeader ScanBy--data StandardUnit- = Bits- | BitsSecond- | Bytes- | BytesSecond- | Count- | CountSecond- | Gigabits- | GigabitsSecond- | Gigabytes- | GigabytesSecond- | Kilobits- | KilobitsSecond- | Kilobytes- | KilobytesSecond- | Megabits- | MegabitsSecond- | Megabytes- | MegabytesSecond- | Microseconds- | Milliseconds- | None- | Percent- | Seconds- | Terabits- | TerabitsSecond- | Terabytes- | TerabytesSecond- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText StandardUnit where- parser = takeLowerText >>= \case- "bits" -> pure Bits- "bits/second" -> pure BitsSecond- "bytes" -> pure Bytes- "bytes/second" -> pure BytesSecond- "count" -> pure Count- "count/second" -> pure CountSecond- "gigabits" -> pure Gigabits- "gigabits/second" -> pure GigabitsSecond- "gigabytes" -> pure Gigabytes- "gigabytes/second" -> pure GigabytesSecond- "kilobits" -> pure Kilobits- "kilobits/second" -> pure KilobitsSecond- "kilobytes" -> pure Kilobytes- "kilobytes/second" -> pure KilobytesSecond- "megabits" -> pure Megabits- "megabits/second" -> pure MegabitsSecond- "megabytes" -> pure Megabytes- "megabytes/second" -> pure MegabytesSecond- "microseconds" -> pure Microseconds- "milliseconds" -> pure Milliseconds- "none" -> pure None- "percent" -> pure Percent- "seconds" -> pure Seconds- "terabits" -> pure Terabits- "terabits/second" -> pure TerabitsSecond- "terabytes" -> pure Terabytes- "terabytes/second" -> pure TerabytesSecond- e -> fromTextError $ "Failure parsing StandardUnit from value: '" <> e- <> "'. Accepted values: bits, bits/second, bytes, bytes/second, count, count/second, gigabits, gigabits/second, gigabytes, gigabytes/second, kilobits, kilobits/second, kilobytes, kilobytes/second, megabits, megabits/second, megabytes, megabytes/second, microseconds, milliseconds, none, percent, seconds, terabits, terabits/second, terabytes, terabytes/second"--instance ToText StandardUnit where- toText = \case- Bits -> "Bits"- BitsSecond -> "Bits/Second"- Bytes -> "Bytes"- BytesSecond -> "Bytes/Second"- Count -> "Count"- CountSecond -> "Count/Second"- Gigabits -> "Gigabits"- GigabitsSecond -> "Gigabits/Second"- Gigabytes -> "Gigabytes"- GigabytesSecond -> "Gigabytes/Second"- Kilobits -> "Kilobits"- KilobitsSecond -> "Kilobits/Second"- Kilobytes -> "Kilobytes"- KilobytesSecond -> "Kilobytes/Second"- Megabits -> "Megabits"- MegabitsSecond -> "Megabits/Second"- Megabytes -> "Megabytes"- MegabytesSecond -> "Megabytes/Second"- Microseconds -> "Microseconds"- Milliseconds -> "Milliseconds"- None -> "None"- Percent -> "Percent"- Seconds -> "Seconds"- Terabits -> "Terabits"- TerabitsSecond -> "Terabits/Second"- Terabytes -> "Terabytes"- TerabytesSecond -> "Terabytes/Second"--instance Hashable StandardUnit-instance NFData StandardUnit-instance ToByteString StandardUnit-instance ToQuery StandardUnit-instance ToHeader StandardUnit--instance FromXML StandardUnit where- parseXML = parseXMLText "StandardUnit"--data StateValue- = Alarm- | InsufficientData- | OK- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText StateValue where- parser = takeLowerText >>= \case- "alarm" -> pure Alarm- "insufficient_data" -> pure InsufficientData- "ok" -> pure OK- e -> fromTextError $ "Failure parsing StateValue from value: '" <> e- <> "'. Accepted values: alarm, insufficient_data, ok"--instance ToText StateValue where- toText = \case- Alarm -> "ALARM"- InsufficientData -> "INSUFFICIENT_DATA"- OK -> "OK"--instance Hashable StateValue-instance NFData StateValue-instance ToByteString StateValue-instance ToQuery StateValue-instance ToHeader StateValue--instance FromXML StateValue where- parseXML = parseXMLText "StateValue"--data Statistic- = Average- | Maximum- | Minimum- | SampleCount- | Sum- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText Statistic where- parser = takeLowerText >>= \case- "average" -> pure Average- "maximum" -> pure Maximum- "minimum" -> pure Minimum- "samplecount" -> pure SampleCount- "sum" -> pure Sum- e -> fromTextError $ "Failure parsing Statistic from value: '" <> e- <> "'. Accepted values: average, maximum, minimum, samplecount, sum"--instance ToText Statistic where- toText = \case- Average -> "Average"- Maximum -> "Maximum"- Minimum -> "Minimum"- SampleCount -> "SampleCount"- Sum -> "Sum"--instance Hashable Statistic-instance NFData Statistic-instance ToByteString Statistic-instance ToQuery Statistic-instance ToHeader Statistic--instance FromXML Statistic where- parseXML = parseXMLText "Statistic"--data StatusCode- = Complete- | InternalError- | PartialData- deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText StatusCode where- parser = takeLowerText >>= \case- "complete" -> pure Complete- "internalerror" -> pure InternalError- "partialdata" -> pure PartialData- e -> fromTextError $ "Failure parsing StatusCode from value: '" <> e- <> "'. Accepted values: complete, internalerror, partialdata"--instance ToText StatusCode where- toText = \case- Complete -> "Complete"- InternalError -> "InternalError"- PartialData -> "PartialData"--instance Hashable StatusCode-instance NFData StatusCode-instance ToByteString StatusCode-instance ToQuery StatusCode-instance ToHeader StatusCode--instance FromXML StatusCode where- parseXML = parseXMLText "StatusCode"
− gen/Network/AWS/CloudWatch/Waiters.hs
@@ -1,34 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE TypeFamilies #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Network.AWS.CloudWatch.Waiters--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudWatch.Waiters where--import Network.AWS.CloudWatch.DescribeAlarms-import Network.AWS.CloudWatch.Types-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Waiter---- | Polls 'Network.AWS.CloudWatch.DescribeAlarms' every 5 seconds until a successful state is reached. An error is returned after 40 failed checks.-alarmExists :: Wait DescribeAlarms-alarmExists =- Wait- { _waitName = "AlarmExists"- , _waitAttempts = 40- , _waitDelay = 5- , _waitAcceptors =- [matchNonEmpty True AcceptSuccess (folding (concatOf darsMetricAlarms))]- }-
test/Main.hs view
@@ -2,20 +2,22 @@ -- | -- Module : Main--- Copyright : (c) 2013-2018 Brendan Hay+-- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions)--- module Main (main) where +import Test.Amazonka.CloudWatch+import Test.Amazonka.CloudWatch.Internal import Test.Tasty-import Test.AWS.CloudWatch-import Test.AWS.CloudWatch.Internal main :: IO ()-main = defaultMain $ testGroup "CloudWatch"- [ testGroup "tests" tests- , testGroup "fixtures" fixtures- ]+main =+ defaultMain $+ testGroup+ "CloudWatch"+ [ testGroup "tests" tests,+ testGroup "fixtures" fixtures+ ]
− test/Test/AWS/CloudWatch.hs
@@ -1,26 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}---- Module : Test.AWS.CloudWatch--- Copyright : (c) 2013-2018 Brendan Hay--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental--- Portability : non-portable (GHC extensions)--module Test.AWS.CloudWatch- ( tests- , fixtures- ) where--import Network.AWS.CloudWatch-import Test.AWS.Gen.CloudWatch-import Test.Tasty--tests :: [TestTree]-tests = []--fixtures :: [TestTree]-fixtures = []
− test/Test/AWS/CloudWatch/Internal.hs
@@ -1,16 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Module : Test.AWS.CloudWatch.Internal--- Copyright : (c) 2013-2018 Brendan Hay--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental--- Portability : non-portable (GHC extensions)--module Test.AWS.CloudWatch.Internal where--import Test.AWS.Prelude
− test/Test/AWS/Gen/CloudWatch.hs
@@ -1,327 +0,0 @@-{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-orphans #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module : Test.AWS.Gen.CloudWatch--- Copyright : (c) 2013-2018 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Test.AWS.Gen.CloudWatch where--import Data.Proxy-import Network.AWS.CloudWatch-import Test.AWS.CloudWatch.Internal-import Test.AWS.Fixture-import Test.AWS.Prelude-import Test.Tasty---- Auto-generated: the actual test selection needs to be manually placed into--- the top-level so that real test data can be incrementally added.------ This commented snippet is what the entire set should look like:---- fixtures :: TestTree--- fixtures =--- [ testGroup "request"--- [ requestEnableAlarmActions $--- enableAlarmActions------ , requestGetDashboard $--- getDashboard------ , requestGetMetricData $--- getMetricData------ , requestPutMetricData $--- putMetricData------ , requestListDashboards $--- listDashboards------ , requestDescribeAlarms $--- describeAlarms------ , requestListMetrics $--- listMetrics------ , requestDeleteDashboards $--- deleteDashboards------ , requestDeleteAlarms $--- deleteAlarms------ , requestDescribeAlarmHistory $--- describeAlarmHistory------ , requestGetMetricStatistics $--- getMetricStatistics------ , requestDescribeAlarmsForMetric $--- describeAlarmsForMetric------ , requestDisableAlarmActions $--- disableAlarmActions------ , requestPutDashboard $--- putDashboard------ , requestPutMetricAlarm $--- putMetricAlarm------ , requestSetAlarmState $--- setAlarmState------ ]---- , testGroup "response"--- [ responseEnableAlarmActions $--- enableAlarmActionsResponse------ , responseGetDashboard $--- getDashboardResponse------ , responseGetMetricData $--- getMetricDataResponse------ , responsePutMetricData $--- putMetricDataResponse------ , responseListDashboards $--- listDashboardsResponse------ , responseDescribeAlarms $--- describeAlarmsResponse------ , responseListMetrics $--- listMetricsResponse------ , responseDeleteDashboards $--- deleteDashboardsResponse------ , responseDeleteAlarms $--- deleteAlarmsResponse------ , responseDescribeAlarmHistory $--- describeAlarmHistoryResponse------ , responseGetMetricStatistics $--- getMetricStatisticsResponse------ , responseDescribeAlarmsForMetric $--- describeAlarmsForMetricResponse------ , responseDisableAlarmActions $--- disableAlarmActionsResponse------ , responsePutDashboard $--- putDashboardResponse------ , responsePutMetricAlarm $--- putMetricAlarmResponse------ , responseSetAlarmState $--- setAlarmStateResponse------ ]--- ]---- Requests--requestEnableAlarmActions :: EnableAlarmActions -> TestTree-requestEnableAlarmActions = req- "EnableAlarmActions"- "fixture/EnableAlarmActions.yaml"--requestGetDashboard :: GetDashboard -> TestTree-requestGetDashboard = req- "GetDashboard"- "fixture/GetDashboard.yaml"--requestGetMetricData :: GetMetricData -> TestTree-requestGetMetricData = req- "GetMetricData"- "fixture/GetMetricData.yaml"--requestPutMetricData :: PutMetricData -> TestTree-requestPutMetricData = req- "PutMetricData"- "fixture/PutMetricData.yaml"--requestListDashboards :: ListDashboards -> TestTree-requestListDashboards = req- "ListDashboards"- "fixture/ListDashboards.yaml"--requestDescribeAlarms :: DescribeAlarms -> TestTree-requestDescribeAlarms = req- "DescribeAlarms"- "fixture/DescribeAlarms.yaml"--requestListMetrics :: ListMetrics -> TestTree-requestListMetrics = req- "ListMetrics"- "fixture/ListMetrics.yaml"--requestDeleteDashboards :: DeleteDashboards -> TestTree-requestDeleteDashboards = req- "DeleteDashboards"- "fixture/DeleteDashboards.yaml"--requestDeleteAlarms :: DeleteAlarms -> TestTree-requestDeleteAlarms = req- "DeleteAlarms"- "fixture/DeleteAlarms.yaml"--requestDescribeAlarmHistory :: DescribeAlarmHistory -> TestTree-requestDescribeAlarmHistory = req- "DescribeAlarmHistory"- "fixture/DescribeAlarmHistory.yaml"--requestGetMetricStatistics :: GetMetricStatistics -> TestTree-requestGetMetricStatistics = req- "GetMetricStatistics"- "fixture/GetMetricStatistics.yaml"--requestDescribeAlarmsForMetric :: DescribeAlarmsForMetric -> TestTree-requestDescribeAlarmsForMetric = req- "DescribeAlarmsForMetric"- "fixture/DescribeAlarmsForMetric.yaml"--requestDisableAlarmActions :: DisableAlarmActions -> TestTree-requestDisableAlarmActions = req- "DisableAlarmActions"- "fixture/DisableAlarmActions.yaml"--requestPutDashboard :: PutDashboard -> TestTree-requestPutDashboard = req- "PutDashboard"- "fixture/PutDashboard.yaml"--requestPutMetricAlarm :: PutMetricAlarm -> TestTree-requestPutMetricAlarm = req- "PutMetricAlarm"- "fixture/PutMetricAlarm.yaml"--requestSetAlarmState :: SetAlarmState -> TestTree-requestSetAlarmState = req- "SetAlarmState"- "fixture/SetAlarmState.yaml"---- Responses--responseEnableAlarmActions :: EnableAlarmActionsResponse -> TestTree-responseEnableAlarmActions = res- "EnableAlarmActionsResponse"- "fixture/EnableAlarmActionsResponse.proto"- cloudWatch- (Proxy :: Proxy EnableAlarmActions)--responseGetDashboard :: GetDashboardResponse -> TestTree-responseGetDashboard = res- "GetDashboardResponse"- "fixture/GetDashboardResponse.proto"- cloudWatch- (Proxy :: Proxy GetDashboard)--responseGetMetricData :: GetMetricDataResponse -> TestTree-responseGetMetricData = res- "GetMetricDataResponse"- "fixture/GetMetricDataResponse.proto"- cloudWatch- (Proxy :: Proxy GetMetricData)--responsePutMetricData :: PutMetricDataResponse -> TestTree-responsePutMetricData = res- "PutMetricDataResponse"- "fixture/PutMetricDataResponse.proto"- cloudWatch- (Proxy :: Proxy PutMetricData)--responseListDashboards :: ListDashboardsResponse -> TestTree-responseListDashboards = res- "ListDashboardsResponse"- "fixture/ListDashboardsResponse.proto"- cloudWatch- (Proxy :: Proxy ListDashboards)--responseDescribeAlarms :: DescribeAlarmsResponse -> TestTree-responseDescribeAlarms = res- "DescribeAlarmsResponse"- "fixture/DescribeAlarmsResponse.proto"- cloudWatch- (Proxy :: Proxy DescribeAlarms)--responseListMetrics :: ListMetricsResponse -> TestTree-responseListMetrics = res- "ListMetricsResponse"- "fixture/ListMetricsResponse.proto"- cloudWatch- (Proxy :: Proxy ListMetrics)--responseDeleteDashboards :: DeleteDashboardsResponse -> TestTree-responseDeleteDashboards = res- "DeleteDashboardsResponse"- "fixture/DeleteDashboardsResponse.proto"- cloudWatch- (Proxy :: Proxy DeleteDashboards)--responseDeleteAlarms :: DeleteAlarmsResponse -> TestTree-responseDeleteAlarms = res- "DeleteAlarmsResponse"- "fixture/DeleteAlarmsResponse.proto"- cloudWatch- (Proxy :: Proxy DeleteAlarms)--responseDescribeAlarmHistory :: DescribeAlarmHistoryResponse -> TestTree-responseDescribeAlarmHistory = res- "DescribeAlarmHistoryResponse"- "fixture/DescribeAlarmHistoryResponse.proto"- cloudWatch- (Proxy :: Proxy DescribeAlarmHistory)--responseGetMetricStatistics :: GetMetricStatisticsResponse -> TestTree-responseGetMetricStatistics = res- "GetMetricStatisticsResponse"- "fixture/GetMetricStatisticsResponse.proto"- cloudWatch- (Proxy :: Proxy GetMetricStatistics)--responseDescribeAlarmsForMetric :: DescribeAlarmsForMetricResponse -> TestTree-responseDescribeAlarmsForMetric = res- "DescribeAlarmsForMetricResponse"- "fixture/DescribeAlarmsForMetricResponse.proto"- cloudWatch- (Proxy :: Proxy DescribeAlarmsForMetric)--responseDisableAlarmActions :: DisableAlarmActionsResponse -> TestTree-responseDisableAlarmActions = res- "DisableAlarmActionsResponse"- "fixture/DisableAlarmActionsResponse.proto"- cloudWatch- (Proxy :: Proxy DisableAlarmActions)--responsePutDashboard :: PutDashboardResponse -> TestTree-responsePutDashboard = res- "PutDashboardResponse"- "fixture/PutDashboardResponse.proto"- cloudWatch- (Proxy :: Proxy PutDashboard)--responsePutMetricAlarm :: PutMetricAlarmResponse -> TestTree-responsePutMetricAlarm = res- "PutMetricAlarmResponse"- "fixture/PutMetricAlarmResponse.proto"- cloudWatch- (Proxy :: Proxy PutMetricAlarm)--responseSetAlarmState :: SetAlarmStateResponse -> TestTree-responseSetAlarmState = res- "SetAlarmStateResponse"- "fixture/SetAlarmStateResponse.proto"- cloudWatch- (Proxy :: Proxy SetAlarmState)
+ test/Test/Amazonka/CloudWatch.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.Amazonka.CloudWatch+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CloudWatch+ ( tests,+ fixtures,+ )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/CloudWatch/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module : Test.Amazonka.CloudWatch.Internal+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CloudWatch.Internal where
+ test/Test/Amazonka/Gen/CloudWatch.hs view
@@ -0,0 +1,798 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.Amazonka.Gen.CloudWatch+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.CloudWatch where++import Amazonka.CloudWatch+import qualified Data.Proxy as Proxy+import Test.Amazonka.CloudWatch.Internal+import Test.Amazonka.Fixture+import Test.Amazonka.Prelude+import Test.Tasty++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+-- [ testGroup "request"+-- [ requestDeleteAlarms $+-- newDeleteAlarms+--+-- , requestDeleteAnomalyDetector $+-- newDeleteAnomalyDetector+--+-- , requestDeleteDashboards $+-- newDeleteDashboards+--+-- , requestDeleteInsightRules $+-- newDeleteInsightRules+--+-- , requestDeleteMetricStream $+-- newDeleteMetricStream+--+-- , requestDescribeAlarmHistory $+-- newDescribeAlarmHistory+--+-- , requestDescribeAlarms $+-- newDescribeAlarms+--+-- , requestDescribeAlarmsForMetric $+-- newDescribeAlarmsForMetric+--+-- , requestDescribeAnomalyDetectors $+-- newDescribeAnomalyDetectors+--+-- , requestDescribeInsightRules $+-- newDescribeInsightRules+--+-- , requestDisableAlarmActions $+-- newDisableAlarmActions+--+-- , requestDisableInsightRules $+-- newDisableInsightRules+--+-- , requestEnableAlarmActions $+-- newEnableAlarmActions+--+-- , requestEnableInsightRules $+-- newEnableInsightRules+--+-- , requestGetDashboard $+-- newGetDashboard+--+-- , requestGetInsightRuleReport $+-- newGetInsightRuleReport+--+-- , requestGetMetricData $+-- newGetMetricData+--+-- , requestGetMetricStatistics $+-- newGetMetricStatistics+--+-- , requestGetMetricStream $+-- newGetMetricStream+--+-- , requestGetMetricWidgetImage $+-- newGetMetricWidgetImage+--+-- , requestListDashboards $+-- newListDashboards+--+-- , requestListManagedInsightRules $+-- newListManagedInsightRules+--+-- , requestListMetricStreams $+-- newListMetricStreams+--+-- , requestListMetrics $+-- newListMetrics+--+-- , requestListTagsForResource $+-- newListTagsForResource+--+-- , requestPutAnomalyDetector $+-- newPutAnomalyDetector+--+-- , requestPutCompositeAlarm $+-- newPutCompositeAlarm+--+-- , requestPutDashboard $+-- newPutDashboard+--+-- , requestPutInsightRule $+-- newPutInsightRule+--+-- , requestPutManagedInsightRules $+-- newPutManagedInsightRules+--+-- , requestPutMetricAlarm $+-- newPutMetricAlarm+--+-- , requestPutMetricData $+-- newPutMetricData+--+-- , requestPutMetricStream $+-- newPutMetricStream+--+-- , requestSetAlarmState $+-- newSetAlarmState+--+-- , requestStartMetricStreams $+-- newStartMetricStreams+--+-- , requestStopMetricStreams $+-- newStopMetricStreams+--+-- , requestTagResource $+-- newTagResource+--+-- , requestUntagResource $+-- newUntagResource+--+-- ]++-- , testGroup "response"+-- [ responseDeleteAlarms $+-- newDeleteAlarmsResponse+--+-- , responseDeleteAnomalyDetector $+-- newDeleteAnomalyDetectorResponse+--+-- , responseDeleteDashboards $+-- newDeleteDashboardsResponse+--+-- , responseDeleteInsightRules $+-- newDeleteInsightRulesResponse+--+-- , responseDeleteMetricStream $+-- newDeleteMetricStreamResponse+--+-- , responseDescribeAlarmHistory $+-- newDescribeAlarmHistoryResponse+--+-- , responseDescribeAlarms $+-- newDescribeAlarmsResponse+--+-- , responseDescribeAlarmsForMetric $+-- newDescribeAlarmsForMetricResponse+--+-- , responseDescribeAnomalyDetectors $+-- newDescribeAnomalyDetectorsResponse+--+-- , responseDescribeInsightRules $+-- newDescribeInsightRulesResponse+--+-- , responseDisableAlarmActions $+-- newDisableAlarmActionsResponse+--+-- , responseDisableInsightRules $+-- newDisableInsightRulesResponse+--+-- , responseEnableAlarmActions $+-- newEnableAlarmActionsResponse+--+-- , responseEnableInsightRules $+-- newEnableInsightRulesResponse+--+-- , responseGetDashboard $+-- newGetDashboardResponse+--+-- , responseGetInsightRuleReport $+-- newGetInsightRuleReportResponse+--+-- , responseGetMetricData $+-- newGetMetricDataResponse+--+-- , responseGetMetricStatistics $+-- newGetMetricStatisticsResponse+--+-- , responseGetMetricStream $+-- newGetMetricStreamResponse+--+-- , responseGetMetricWidgetImage $+-- newGetMetricWidgetImageResponse+--+-- , responseListDashboards $+-- newListDashboardsResponse+--+-- , responseListManagedInsightRules $+-- newListManagedInsightRulesResponse+--+-- , responseListMetricStreams $+-- newListMetricStreamsResponse+--+-- , responseListMetrics $+-- newListMetricsResponse+--+-- , responseListTagsForResource $+-- newListTagsForResourceResponse+--+-- , responsePutAnomalyDetector $+-- newPutAnomalyDetectorResponse+--+-- , responsePutCompositeAlarm $+-- newPutCompositeAlarmResponse+--+-- , responsePutDashboard $+-- newPutDashboardResponse+--+-- , responsePutInsightRule $+-- newPutInsightRuleResponse+--+-- , responsePutManagedInsightRules $+-- newPutManagedInsightRulesResponse+--+-- , responsePutMetricAlarm $+-- newPutMetricAlarmResponse+--+-- , responsePutMetricData $+-- newPutMetricDataResponse+--+-- , responsePutMetricStream $+-- newPutMetricStreamResponse+--+-- , responseSetAlarmState $+-- newSetAlarmStateResponse+--+-- , responseStartMetricStreams $+-- newStartMetricStreamsResponse+--+-- , responseStopMetricStreams $+-- newStopMetricStreamsResponse+--+-- , responseTagResource $+-- newTagResourceResponse+--+-- , responseUntagResource $+-- newUntagResourceResponse+--+-- ]+-- ]++-- Requests++requestDeleteAlarms :: DeleteAlarms -> TestTree+requestDeleteAlarms =+ req+ "DeleteAlarms"+ "fixture/DeleteAlarms.yaml"++requestDeleteAnomalyDetector :: DeleteAnomalyDetector -> TestTree+requestDeleteAnomalyDetector =+ req+ "DeleteAnomalyDetector"+ "fixture/DeleteAnomalyDetector.yaml"++requestDeleteDashboards :: DeleteDashboards -> TestTree+requestDeleteDashboards =+ req+ "DeleteDashboards"+ "fixture/DeleteDashboards.yaml"++requestDeleteInsightRules :: DeleteInsightRules -> TestTree+requestDeleteInsightRules =+ req+ "DeleteInsightRules"+ "fixture/DeleteInsightRules.yaml"++requestDeleteMetricStream :: DeleteMetricStream -> TestTree+requestDeleteMetricStream =+ req+ "DeleteMetricStream"+ "fixture/DeleteMetricStream.yaml"++requestDescribeAlarmHistory :: DescribeAlarmHistory -> TestTree+requestDescribeAlarmHistory =+ req+ "DescribeAlarmHistory"+ "fixture/DescribeAlarmHistory.yaml"++requestDescribeAlarms :: DescribeAlarms -> TestTree+requestDescribeAlarms =+ req+ "DescribeAlarms"+ "fixture/DescribeAlarms.yaml"++requestDescribeAlarmsForMetric :: DescribeAlarmsForMetric -> TestTree+requestDescribeAlarmsForMetric =+ req+ "DescribeAlarmsForMetric"+ "fixture/DescribeAlarmsForMetric.yaml"++requestDescribeAnomalyDetectors :: DescribeAnomalyDetectors -> TestTree+requestDescribeAnomalyDetectors =+ req+ "DescribeAnomalyDetectors"+ "fixture/DescribeAnomalyDetectors.yaml"++requestDescribeInsightRules :: DescribeInsightRules -> TestTree+requestDescribeInsightRules =+ req+ "DescribeInsightRules"+ "fixture/DescribeInsightRules.yaml"++requestDisableAlarmActions :: DisableAlarmActions -> TestTree+requestDisableAlarmActions =+ req+ "DisableAlarmActions"+ "fixture/DisableAlarmActions.yaml"++requestDisableInsightRules :: DisableInsightRules -> TestTree+requestDisableInsightRules =+ req+ "DisableInsightRules"+ "fixture/DisableInsightRules.yaml"++requestEnableAlarmActions :: EnableAlarmActions -> TestTree+requestEnableAlarmActions =+ req+ "EnableAlarmActions"+ "fixture/EnableAlarmActions.yaml"++requestEnableInsightRules :: EnableInsightRules -> TestTree+requestEnableInsightRules =+ req+ "EnableInsightRules"+ "fixture/EnableInsightRules.yaml"++requestGetDashboard :: GetDashboard -> TestTree+requestGetDashboard =+ req+ "GetDashboard"+ "fixture/GetDashboard.yaml"++requestGetInsightRuleReport :: GetInsightRuleReport -> TestTree+requestGetInsightRuleReport =+ req+ "GetInsightRuleReport"+ "fixture/GetInsightRuleReport.yaml"++requestGetMetricData :: GetMetricData -> TestTree+requestGetMetricData =+ req+ "GetMetricData"+ "fixture/GetMetricData.yaml"++requestGetMetricStatistics :: GetMetricStatistics -> TestTree+requestGetMetricStatistics =+ req+ "GetMetricStatistics"+ "fixture/GetMetricStatistics.yaml"++requestGetMetricStream :: GetMetricStream -> TestTree+requestGetMetricStream =+ req+ "GetMetricStream"+ "fixture/GetMetricStream.yaml"++requestGetMetricWidgetImage :: GetMetricWidgetImage -> TestTree+requestGetMetricWidgetImage =+ req+ "GetMetricWidgetImage"+ "fixture/GetMetricWidgetImage.yaml"++requestListDashboards :: ListDashboards -> TestTree+requestListDashboards =+ req+ "ListDashboards"+ "fixture/ListDashboards.yaml"++requestListManagedInsightRules :: ListManagedInsightRules -> TestTree+requestListManagedInsightRules =+ req+ "ListManagedInsightRules"+ "fixture/ListManagedInsightRules.yaml"++requestListMetricStreams :: ListMetricStreams -> TestTree+requestListMetricStreams =+ req+ "ListMetricStreams"+ "fixture/ListMetricStreams.yaml"++requestListMetrics :: ListMetrics -> TestTree+requestListMetrics =+ req+ "ListMetrics"+ "fixture/ListMetrics.yaml"++requestListTagsForResource :: ListTagsForResource -> TestTree+requestListTagsForResource =+ req+ "ListTagsForResource"+ "fixture/ListTagsForResource.yaml"++requestPutAnomalyDetector :: PutAnomalyDetector -> TestTree+requestPutAnomalyDetector =+ req+ "PutAnomalyDetector"+ "fixture/PutAnomalyDetector.yaml"++requestPutCompositeAlarm :: PutCompositeAlarm -> TestTree+requestPutCompositeAlarm =+ req+ "PutCompositeAlarm"+ "fixture/PutCompositeAlarm.yaml"++requestPutDashboard :: PutDashboard -> TestTree+requestPutDashboard =+ req+ "PutDashboard"+ "fixture/PutDashboard.yaml"++requestPutInsightRule :: PutInsightRule -> TestTree+requestPutInsightRule =+ req+ "PutInsightRule"+ "fixture/PutInsightRule.yaml"++requestPutManagedInsightRules :: PutManagedInsightRules -> TestTree+requestPutManagedInsightRules =+ req+ "PutManagedInsightRules"+ "fixture/PutManagedInsightRules.yaml"++requestPutMetricAlarm :: PutMetricAlarm -> TestTree+requestPutMetricAlarm =+ req+ "PutMetricAlarm"+ "fixture/PutMetricAlarm.yaml"++requestPutMetricData :: PutMetricData -> TestTree+requestPutMetricData =+ req+ "PutMetricData"+ "fixture/PutMetricData.yaml"++requestPutMetricStream :: PutMetricStream -> TestTree+requestPutMetricStream =+ req+ "PutMetricStream"+ "fixture/PutMetricStream.yaml"++requestSetAlarmState :: SetAlarmState -> TestTree+requestSetAlarmState =+ req+ "SetAlarmState"+ "fixture/SetAlarmState.yaml"++requestStartMetricStreams :: StartMetricStreams -> TestTree+requestStartMetricStreams =+ req+ "StartMetricStreams"+ "fixture/StartMetricStreams.yaml"++requestStopMetricStreams :: StopMetricStreams -> TestTree+requestStopMetricStreams =+ req+ "StopMetricStreams"+ "fixture/StopMetricStreams.yaml"++requestTagResource :: TagResource -> TestTree+requestTagResource =+ req+ "TagResource"+ "fixture/TagResource.yaml"++requestUntagResource :: UntagResource -> TestTree+requestUntagResource =+ req+ "UntagResource"+ "fixture/UntagResource.yaml"++-- Responses++responseDeleteAlarms :: DeleteAlarmsResponse -> TestTree+responseDeleteAlarms =+ res+ "DeleteAlarmsResponse"+ "fixture/DeleteAlarmsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteAlarms)++responseDeleteAnomalyDetector :: DeleteAnomalyDetectorResponse -> TestTree+responseDeleteAnomalyDetector =+ res+ "DeleteAnomalyDetectorResponse"+ "fixture/DeleteAnomalyDetectorResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteAnomalyDetector)++responseDeleteDashboards :: DeleteDashboardsResponse -> TestTree+responseDeleteDashboards =+ res+ "DeleteDashboardsResponse"+ "fixture/DeleteDashboardsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteDashboards)++responseDeleteInsightRules :: DeleteInsightRulesResponse -> TestTree+responseDeleteInsightRules =+ res+ "DeleteInsightRulesResponse"+ "fixture/DeleteInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteInsightRules)++responseDeleteMetricStream :: DeleteMetricStreamResponse -> TestTree+responseDeleteMetricStream =+ res+ "DeleteMetricStreamResponse"+ "fixture/DeleteMetricStreamResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteMetricStream)++responseDescribeAlarmHistory :: DescribeAlarmHistoryResponse -> TestTree+responseDescribeAlarmHistory =+ res+ "DescribeAlarmHistoryResponse"+ "fixture/DescribeAlarmHistoryResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DescribeAlarmHistory)++responseDescribeAlarms :: DescribeAlarmsResponse -> TestTree+responseDescribeAlarms =+ res+ "DescribeAlarmsResponse"+ "fixture/DescribeAlarmsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DescribeAlarms)++responseDescribeAlarmsForMetric :: DescribeAlarmsForMetricResponse -> TestTree+responseDescribeAlarmsForMetric =+ res+ "DescribeAlarmsForMetricResponse"+ "fixture/DescribeAlarmsForMetricResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DescribeAlarmsForMetric)++responseDescribeAnomalyDetectors :: DescribeAnomalyDetectorsResponse -> TestTree+responseDescribeAnomalyDetectors =+ res+ "DescribeAnomalyDetectorsResponse"+ "fixture/DescribeAnomalyDetectorsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DescribeAnomalyDetectors)++responseDescribeInsightRules :: DescribeInsightRulesResponse -> TestTree+responseDescribeInsightRules =+ res+ "DescribeInsightRulesResponse"+ "fixture/DescribeInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DescribeInsightRules)++responseDisableAlarmActions :: DisableAlarmActionsResponse -> TestTree+responseDisableAlarmActions =+ res+ "DisableAlarmActionsResponse"+ "fixture/DisableAlarmActionsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DisableAlarmActions)++responseDisableInsightRules :: DisableInsightRulesResponse -> TestTree+responseDisableInsightRules =+ res+ "DisableInsightRulesResponse"+ "fixture/DisableInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DisableInsightRules)++responseEnableAlarmActions :: EnableAlarmActionsResponse -> TestTree+responseEnableAlarmActions =+ res+ "EnableAlarmActionsResponse"+ "fixture/EnableAlarmActionsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy EnableAlarmActions)++responseEnableInsightRules :: EnableInsightRulesResponse -> TestTree+responseEnableInsightRules =+ res+ "EnableInsightRulesResponse"+ "fixture/EnableInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy EnableInsightRules)++responseGetDashboard :: GetDashboardResponse -> TestTree+responseGetDashboard =+ res+ "GetDashboardResponse"+ "fixture/GetDashboardResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetDashboard)++responseGetInsightRuleReport :: GetInsightRuleReportResponse -> TestTree+responseGetInsightRuleReport =+ res+ "GetInsightRuleReportResponse"+ "fixture/GetInsightRuleReportResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetInsightRuleReport)++responseGetMetricData :: GetMetricDataResponse -> TestTree+responseGetMetricData =+ res+ "GetMetricDataResponse"+ "fixture/GetMetricDataResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetMetricData)++responseGetMetricStatistics :: GetMetricStatisticsResponse -> TestTree+responseGetMetricStatistics =+ res+ "GetMetricStatisticsResponse"+ "fixture/GetMetricStatisticsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetMetricStatistics)++responseGetMetricStream :: GetMetricStreamResponse -> TestTree+responseGetMetricStream =+ res+ "GetMetricStreamResponse"+ "fixture/GetMetricStreamResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetMetricStream)++responseGetMetricWidgetImage :: GetMetricWidgetImageResponse -> TestTree+responseGetMetricWidgetImage =+ res+ "GetMetricWidgetImageResponse"+ "fixture/GetMetricWidgetImageResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetMetricWidgetImage)++responseListDashboards :: ListDashboardsResponse -> TestTree+responseListDashboards =+ res+ "ListDashboardsResponse"+ "fixture/ListDashboardsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListDashboards)++responseListManagedInsightRules :: ListManagedInsightRulesResponse -> TestTree+responseListManagedInsightRules =+ res+ "ListManagedInsightRulesResponse"+ "fixture/ListManagedInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListManagedInsightRules)++responseListMetricStreams :: ListMetricStreamsResponse -> TestTree+responseListMetricStreams =+ res+ "ListMetricStreamsResponse"+ "fixture/ListMetricStreamsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListMetricStreams)++responseListMetrics :: ListMetricsResponse -> TestTree+responseListMetrics =+ res+ "ListMetricsResponse"+ "fixture/ListMetricsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListMetrics)++responseListTagsForResource :: ListTagsForResourceResponse -> TestTree+responseListTagsForResource =+ res+ "ListTagsForResourceResponse"+ "fixture/ListTagsForResourceResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListTagsForResource)++responsePutAnomalyDetector :: PutAnomalyDetectorResponse -> TestTree+responsePutAnomalyDetector =+ res+ "PutAnomalyDetectorResponse"+ "fixture/PutAnomalyDetectorResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutAnomalyDetector)++responsePutCompositeAlarm :: PutCompositeAlarmResponse -> TestTree+responsePutCompositeAlarm =+ res+ "PutCompositeAlarmResponse"+ "fixture/PutCompositeAlarmResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutCompositeAlarm)++responsePutDashboard :: PutDashboardResponse -> TestTree+responsePutDashboard =+ res+ "PutDashboardResponse"+ "fixture/PutDashboardResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutDashboard)++responsePutInsightRule :: PutInsightRuleResponse -> TestTree+responsePutInsightRule =+ res+ "PutInsightRuleResponse"+ "fixture/PutInsightRuleResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutInsightRule)++responsePutManagedInsightRules :: PutManagedInsightRulesResponse -> TestTree+responsePutManagedInsightRules =+ res+ "PutManagedInsightRulesResponse"+ "fixture/PutManagedInsightRulesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutManagedInsightRules)++responsePutMetricAlarm :: PutMetricAlarmResponse -> TestTree+responsePutMetricAlarm =+ res+ "PutMetricAlarmResponse"+ "fixture/PutMetricAlarmResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutMetricAlarm)++responsePutMetricData :: PutMetricDataResponse -> TestTree+responsePutMetricData =+ res+ "PutMetricDataResponse"+ "fixture/PutMetricDataResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutMetricData)++responsePutMetricStream :: PutMetricStreamResponse -> TestTree+responsePutMetricStream =+ res+ "PutMetricStreamResponse"+ "fixture/PutMetricStreamResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy PutMetricStream)++responseSetAlarmState :: SetAlarmStateResponse -> TestTree+responseSetAlarmState =+ res+ "SetAlarmStateResponse"+ "fixture/SetAlarmStateResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy SetAlarmState)++responseStartMetricStreams :: StartMetricStreamsResponse -> TestTree+responseStartMetricStreams =+ res+ "StartMetricStreamsResponse"+ "fixture/StartMetricStreamsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy StartMetricStreams)++responseStopMetricStreams :: StopMetricStreamsResponse -> TestTree+responseStopMetricStreams =+ res+ "StopMetricStreamsResponse"+ "fixture/StopMetricStreamsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy StopMetricStreams)++responseTagResource :: TagResourceResponse -> TestTree+responseTagResource =+ res+ "TagResourceResponse"+ "fixture/TagResourceResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy TagResource)++responseUntagResource :: UntagResourceResponse -> TestTree+responseUntagResource =+ res+ "UntagResourceResponse"+ "fixture/UntagResourceResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy UntagResource)