{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudWatch.Types
(
defaultService,
_ConcurrentModificationException,
_DashboardInvalidInputError,
_DashboardNotFoundError,
_InternalServiceFault,
_InvalidFormatFault,
_InvalidNextToken,
_InvalidParameterCombinationException,
_InvalidParameterValueException,
_LimitExceededException,
_LimitExceededFault,
_MissingRequiredParameterException,
_ResourceNotFound,
_ResourceNotFoundException,
ActionsSuppressedBy (..),
AlarmType (..),
AnomalyDetectorStateValue (..),
AnomalyDetectorType (..),
ComparisonOperator (..),
EvaluationState (..),
HistoryItemType (..),
MetricStreamOutputFormat (..),
RecentlyActive (..),
ScanBy (..),
StandardUnit (..),
StateValue (..),
Statistic (..),
StatusCode (..),
AlarmHistoryItem (..),
newAlarmHistoryItem,
alarmHistoryItem_alarmName,
alarmHistoryItem_alarmType,
alarmHistoryItem_historyData,
alarmHistoryItem_historyItemType,
alarmHistoryItem_historySummary,
alarmHistoryItem_timestamp,
AnomalyDetector (..),
newAnomalyDetector,
anomalyDetector_configuration,
anomalyDetector_dimensions,
anomalyDetector_metricMathAnomalyDetector,
anomalyDetector_metricName,
anomalyDetector_namespace,
anomalyDetector_singleMetricAnomalyDetector,
anomalyDetector_stat,
anomalyDetector_stateValue,
AnomalyDetectorConfiguration (..),
newAnomalyDetectorConfiguration,
anomalyDetectorConfiguration_excludedTimeRanges,
anomalyDetectorConfiguration_metricTimezone,
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 (..),
newDashboardEntry,
dashboardEntry_dashboardArn,
dashboardEntry_dashboardName,
dashboardEntry_lastModified,
dashboardEntry_size,
DashboardValidationMessage (..),
newDashboardValidationMessage,
dashboardValidationMessage_dataPath,
dashboardValidationMessage_message,
Datapoint (..),
newDatapoint,
datapoint_average,
datapoint_extendedStatistics,
datapoint_maximum,
datapoint_minimum,
datapoint_sampleCount,
datapoint_sum,
datapoint_timestamp,
datapoint_unit,
Dimension (..),
newDimension,
dimension_name,
dimension_value,
DimensionFilter (..),
newDimensionFilter,
dimensionFilter_value,
dimensionFilter_name,
InsightRule (..),
newInsightRule,
insightRule_managedRule,
insightRule_name,
insightRule_state,
insightRule_schema,
insightRule_definition,
InsightRuleContributor (..),
newInsightRuleContributor,
insightRuleContributor_keys,
insightRuleContributor_approximateAggregateValue,
insightRuleContributor_datapoints,
InsightRuleContributorDatapoint (..),
newInsightRuleContributorDatapoint,
insightRuleContributorDatapoint_timestamp,
insightRuleContributorDatapoint_approximateValue,
InsightRuleMetricDatapoint (..),
newInsightRuleMetricDatapoint,
insightRuleMetricDatapoint_average,
insightRuleMetricDatapoint_maxContributorValue,
insightRuleMetricDatapoint_maximum,
insightRuleMetricDatapoint_minimum,
insightRuleMetricDatapoint_sampleCount,
insightRuleMetricDatapoint_sum,
insightRuleMetricDatapoint_uniqueContributors,
insightRuleMetricDatapoint_timestamp,
LabelOptions (..),
newLabelOptions,
labelOptions_timezone,
ManagedRule (..),
newManagedRule,
managedRule_tags,
managedRule_templateName,
managedRule_resourceARN,
ManagedRuleDescription (..),
newManagedRuleDescription,
managedRuleDescription_resourceARN,
managedRuleDescription_ruleState,
managedRuleDescription_templateName,
ManagedRuleState (..),
newManagedRuleState,
managedRuleState_ruleName,
managedRuleState_state,
MessageData (..),
newMessageData,
messageData_code,
messageData_value,
Metric (..),
newMetric,
metric_dimensions,
metric_metricName,
metric_namespace,
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 (..),
newMetricDataQuery,
metricDataQuery_accountId,
metricDataQuery_expression,
metricDataQuery_label,
metricDataQuery_metricStat,
metricDataQuery_period,
metricDataQuery_returnData,
metricDataQuery_id,
MetricDataResult (..),
newMetricDataResult,
metricDataResult_id,
metricDataResult_label,
metricDataResult_messages,
metricDataResult_statusCode,
metricDataResult_timestamps,
metricDataResult_values,
MetricDatum (..),
newMetricDatum,
metricDatum_counts,
metricDatum_dimensions,
metricDatum_statisticValues,
metricDatum_storageResolution,
metricDatum_timestamp,
metricDatum_unit,
metricDatum_value,
metricDatum_values,
metricDatum_metricName,
MetricMathAnomalyDetector (..),
newMetricMathAnomalyDetector,
metricMathAnomalyDetector_metricDataQueries,
MetricStat (..),
newMetricStat,
metricStat_unit,
metricStat_metric,
metricStat_period,
metricStat_stat,
MetricStreamEntry (..),
newMetricStreamEntry,
metricStreamEntry_arn,
metricStreamEntry_creationDate,
metricStreamEntry_firehoseArn,
metricStreamEntry_lastUpdateDate,
metricStreamEntry_name,
metricStreamEntry_outputFormat,
metricStreamEntry_state,
MetricStreamFilter (..),
newMetricStreamFilter,
metricStreamFilter_namespace,
MetricStreamStatisticsConfiguration (..),
newMetricStreamStatisticsConfiguration,
metricStreamStatisticsConfiguration_includeMetrics,
metricStreamStatisticsConfiguration_additionalStatistics,
MetricStreamStatisticsMetric (..),
newMetricStreamStatisticsMetric,
metricStreamStatisticsMetric_namespace,
metricStreamStatisticsMetric_metricName,
PartialFailure (..),
newPartialFailure,
partialFailure_exceptionType,
partialFailure_failureCode,
partialFailure_failureDescription,
partialFailure_failureResource,
Range (..),
newRange,
range_startTime,
range_endTime,
SingleMetricAnomalyDetector (..),
newSingleMetricAnomalyDetector,
singleMetricAnomalyDetector_dimensions,
singleMetricAnomalyDetector_metricName,
singleMetricAnomalyDetector_namespace,
singleMetricAnomalyDetector_stat,
StatisticSet (..),
newStatisticSet,
statisticSet_sampleCount,
statisticSet_sum,
statisticSet_minimum,
statisticSet_maximum,
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
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"CloudWatch",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"monitoring",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"monitoring",
$sel:version:Service :: ByteString
Core.version = ByteString
"2010-08-01",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseXMLError Abbrev
"CloudWatch",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_ConcurrentModificationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConcurrentModificationException :: forall a. AsError a => Fold a ServiceError
_ConcurrentModificationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_DashboardInvalidInputError :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DashboardInvalidInputError :: forall a. AsError a => Fold a ServiceError
_DashboardInvalidInputError =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterInput"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_DashboardNotFoundError :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DashboardNotFoundError :: forall a. AsError a => Fold a ServiceError
_DashboardNotFoundError =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFound"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_InternalServiceFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServiceFault :: forall a. AsError a => Fold a ServiceError
_InternalServiceFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServiceError"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_InvalidFormatFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidFormatFault :: forall a. AsError a => Fold a ServiceError
_InvalidFormatFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidFormat"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_InvalidNextToken :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidNextToken :: forall a. AsError a => Fold a ServiceError
_InvalidNextToken =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNextToken"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_InvalidParameterCombinationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidParameterCombinationException :: forall a. AsError a => Fold a ServiceError
_InvalidParameterCombinationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterCombination"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_InvalidParameterValueException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidParameterValueException :: forall a. AsError a => Fold a ServiceError
_InvalidParameterValueException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidParameterValue"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_LimitExceededFault :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededFault :: forall a. AsError a => Fold a ServiceError
_LimitExceededFault =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceeded"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_MissingRequiredParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_MissingRequiredParameterException :: forall a. AsError a => Fold a ServiceError
_MissingRequiredParameterException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MissingParameter"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ResourceNotFound :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFound :: forall a. AsError a => Fold a ServiceError
_ResourceNotFound =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFound"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404