{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.LookoutMetrics.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_TooManyRequestsException,
_ValidationException,
AggregationFunction (..),
AlertStatus (..),
AlertType (..),
AnomalyDetectionTaskStatus (..),
AnomalyDetectorFailureType (..),
AnomalyDetectorStatus (..),
CSVFileCompression (..),
Confidence (..),
DataQualityMetricType (..),
FilterOperation (..),
Frequency (..),
JsonFileCompression (..),
RelationshipType (..),
SnsFormat (..),
Action (..),
newAction,
action_lambdaConfiguration,
action_sNSConfiguration,
Alert (..),
newAlert,
alert_action,
alert_alertArn,
alert_alertDescription,
alert_alertFilters,
alert_alertName,
alert_alertSensitivityThreshold,
alert_alertStatus,
alert_alertType,
alert_anomalyDetectorArn,
alert_creationTime,
alert_lastModificationTime,
AlertFilters (..),
newAlertFilters,
alertFilters_dimensionFilterList,
alertFilters_metricList,
AlertSummary (..),
newAlertSummary,
alertSummary_alertArn,
alertSummary_alertName,
alertSummary_alertSensitivityThreshold,
alertSummary_alertStatus,
alertSummary_alertType,
alertSummary_anomalyDetectorArn,
alertSummary_creationTime,
alertSummary_lastModificationTime,
alertSummary_tags,
AnomalyDetectorConfig (..),
newAnomalyDetectorConfig,
anomalyDetectorConfig_anomalyDetectorFrequency,
AnomalyDetectorConfigSummary (..),
newAnomalyDetectorConfigSummary,
anomalyDetectorConfigSummary_anomalyDetectorFrequency,
AnomalyDetectorDataQualityMetric (..),
newAnomalyDetectorDataQualityMetric,
anomalyDetectorDataQualityMetric_metricSetDataQualityMetricList,
anomalyDetectorDataQualityMetric_startTimestamp,
AnomalyDetectorSummary (..),
newAnomalyDetectorSummary,
anomalyDetectorSummary_anomalyDetectorArn,
anomalyDetectorSummary_anomalyDetectorDescription,
anomalyDetectorSummary_anomalyDetectorName,
anomalyDetectorSummary_creationTime,
anomalyDetectorSummary_lastModificationTime,
anomalyDetectorSummary_status,
anomalyDetectorSummary_tags,
AnomalyGroup (..),
newAnomalyGroup,
anomalyGroup_anomalyGroupId,
anomalyGroup_anomalyGroupScore,
anomalyGroup_endTime,
anomalyGroup_metricLevelImpactList,
anomalyGroup_primaryMetricName,
anomalyGroup_startTime,
AnomalyGroupStatistics (..),
newAnomalyGroupStatistics,
anomalyGroupStatistics_evaluationStartDate,
anomalyGroupStatistics_itemizedMetricStatsList,
anomalyGroupStatistics_totalCount,
AnomalyGroupSummary (..),
newAnomalyGroupSummary,
anomalyGroupSummary_anomalyGroupId,
anomalyGroupSummary_anomalyGroupScore,
anomalyGroupSummary_endTime,
anomalyGroupSummary_primaryMetricName,
anomalyGroupSummary_startTime,
AnomalyGroupTimeSeries (..),
newAnomalyGroupTimeSeries,
anomalyGroupTimeSeries_timeSeriesId,
anomalyGroupTimeSeries_anomalyGroupId,
AnomalyGroupTimeSeriesFeedback (..),
newAnomalyGroupTimeSeriesFeedback,
anomalyGroupTimeSeriesFeedback_anomalyGroupId,
anomalyGroupTimeSeriesFeedback_timeSeriesId,
anomalyGroupTimeSeriesFeedback_isAnomaly,
AppFlowConfig (..),
newAppFlowConfig,
appFlowConfig_flowName,
appFlowConfig_roleArn,
AthenaSourceConfig (..),
newAthenaSourceConfig,
athenaSourceConfig_backTestConfiguration,
athenaSourceConfig_dataCatalog,
athenaSourceConfig_databaseName,
athenaSourceConfig_roleArn,
athenaSourceConfig_s3ResultsPath,
athenaSourceConfig_tableName,
athenaSourceConfig_workGroupName,
AttributeValue (..),
newAttributeValue,
attributeValue_b,
attributeValue_bs,
attributeValue_n,
attributeValue_ns,
attributeValue_s,
attributeValue_ss,
AutoDetectionMetricSource (..),
newAutoDetectionMetricSource,
autoDetectionMetricSource_s3SourceConfig,
AutoDetectionS3SourceConfig (..),
newAutoDetectionS3SourceConfig,
autoDetectionS3SourceConfig_historicalDataPathList,
autoDetectionS3SourceConfig_templatedPathList,
BackTestConfiguration (..),
newBackTestConfiguration,
backTestConfiguration_runBackTestMode,
CloudWatchConfig (..),
newCloudWatchConfig,
cloudWatchConfig_backTestConfiguration,
cloudWatchConfig_roleArn,
ContributionMatrix (..),
newContributionMatrix,
contributionMatrix_dimensionContributionList,
CsvFormatDescriptor (..),
newCsvFormatDescriptor,
csvFormatDescriptor_charset,
csvFormatDescriptor_containsHeader,
csvFormatDescriptor_delimiter,
csvFormatDescriptor_fileCompression,
csvFormatDescriptor_headerList,
csvFormatDescriptor_quoteSymbol,
DataQualityMetric (..),
newDataQualityMetric,
dataQualityMetric_metricDescription,
dataQualityMetric_metricType,
dataQualityMetric_metricValue,
dataQualityMetric_relatedColumnName,
DetectedCsvFormatDescriptor (..),
newDetectedCsvFormatDescriptor,
detectedCsvFormatDescriptor_charset,
detectedCsvFormatDescriptor_containsHeader,
detectedCsvFormatDescriptor_delimiter,
detectedCsvFormatDescriptor_fileCompression,
detectedCsvFormatDescriptor_headerList,
detectedCsvFormatDescriptor_quoteSymbol,
DetectedField (..),
newDetectedField,
detectedField_confidence,
detectedField_message,
detectedField_value,
DetectedFileFormatDescriptor (..),
newDetectedFileFormatDescriptor,
detectedFileFormatDescriptor_csvFormatDescriptor,
detectedFileFormatDescriptor_jsonFormatDescriptor,
DetectedJsonFormatDescriptor (..),
newDetectedJsonFormatDescriptor,
detectedJsonFormatDescriptor_charset,
detectedJsonFormatDescriptor_fileCompression,
DetectedMetricSetConfig (..),
newDetectedMetricSetConfig,
detectedMetricSetConfig_metricSetFrequency,
detectedMetricSetConfig_metricSource,
detectedMetricSetConfig_offset,
DetectedMetricSource (..),
newDetectedMetricSource,
detectedMetricSource_s3SourceConfig,
DetectedS3SourceConfig (..),
newDetectedS3SourceConfig,
detectedS3SourceConfig_fileFormatDescriptor,
DimensionContribution (..),
newDimensionContribution,
dimensionContribution_dimensionName,
dimensionContribution_dimensionValueContributionList,
DimensionFilter (..),
newDimensionFilter,
dimensionFilter_dimensionName,
dimensionFilter_dimensionValueList,
DimensionNameValue (..),
newDimensionNameValue,
dimensionNameValue_dimensionName,
dimensionNameValue_dimensionValue,
DimensionValueContribution (..),
newDimensionValueContribution,
dimensionValueContribution_contributionScore,
dimensionValueContribution_dimensionValue,
ExecutionStatus (..),
newExecutionStatus,
executionStatus_failureReason,
executionStatus_status,
executionStatus_timestamp,
FileFormatDescriptor (..),
newFileFormatDescriptor,
fileFormatDescriptor_csvFormatDescriptor,
fileFormatDescriptor_jsonFormatDescriptor,
Filter (..),
newFilter,
filter_dimensionValue,
filter_filterOperation,
InterMetricImpactDetails (..),
newInterMetricImpactDetails,
interMetricImpactDetails_anomalyGroupId,
interMetricImpactDetails_contributionPercentage,
interMetricImpactDetails_metricName,
interMetricImpactDetails_relationshipType,
ItemizedMetricStats (..),
newItemizedMetricStats,
itemizedMetricStats_metricName,
itemizedMetricStats_occurrenceCount,
JsonFormatDescriptor (..),
newJsonFormatDescriptor,
jsonFormatDescriptor_charset,
jsonFormatDescriptor_fileCompression,
LambdaConfiguration (..),
newLambdaConfiguration,
lambdaConfiguration_roleArn,
lambdaConfiguration_lambdaArn,
Metric (..),
newMetric,
metric_namespace,
metric_metricName,
metric_aggregationFunction,
MetricLevelImpact (..),
newMetricLevelImpact,
metricLevelImpact_contributionMatrix,
metricLevelImpact_metricName,
metricLevelImpact_numTimeSeries,
MetricSetDataQualityMetric (..),
newMetricSetDataQualityMetric,
metricSetDataQualityMetric_dataQualityMetricList,
metricSetDataQualityMetric_metricSetArn,
MetricSetDimensionFilter (..),
newMetricSetDimensionFilter,
metricSetDimensionFilter_filterList,
metricSetDimensionFilter_name,
MetricSetSummary (..),
newMetricSetSummary,
metricSetSummary_anomalyDetectorArn,
metricSetSummary_creationTime,
metricSetSummary_lastModificationTime,
metricSetSummary_metricSetArn,
metricSetSummary_metricSetDescription,
metricSetSummary_metricSetName,
metricSetSummary_tags,
MetricSource (..),
newMetricSource,
metricSource_appFlowConfig,
metricSource_athenaSourceConfig,
metricSource_cloudWatchConfig,
metricSource_rDSSourceConfig,
metricSource_redshiftSourceConfig,
metricSource_s3SourceConfig,
RDSSourceConfig (..),
newRDSSourceConfig,
rDSSourceConfig_dbInstanceIdentifier,
rDSSourceConfig_databaseHost,
rDSSourceConfig_databaseName,
rDSSourceConfig_databasePort,
rDSSourceConfig_roleArn,
rDSSourceConfig_secretManagerArn,
rDSSourceConfig_tableName,
rDSSourceConfig_vpcConfiguration,
RedshiftSourceConfig (..),
newRedshiftSourceConfig,
redshiftSourceConfig_clusterIdentifier,
redshiftSourceConfig_databaseHost,
redshiftSourceConfig_databaseName,
redshiftSourceConfig_databasePort,
redshiftSourceConfig_roleArn,
redshiftSourceConfig_secretManagerArn,
redshiftSourceConfig_tableName,
redshiftSourceConfig_vpcConfiguration,
S3SourceConfig (..),
newS3SourceConfig,
s3SourceConfig_fileFormatDescriptor,
s3SourceConfig_historicalDataPathList,
s3SourceConfig_roleArn,
s3SourceConfig_templatedPathList,
SNSConfiguration (..),
newSNSConfiguration,
sNSConfiguration_snsFormat,
sNSConfiguration_roleArn,
sNSConfiguration_snsTopicArn,
SampleDataS3SourceConfig (..),
newSampleDataS3SourceConfig,
sampleDataS3SourceConfig_historicalDataPathList,
sampleDataS3SourceConfig_templatedPathList,
sampleDataS3SourceConfig_roleArn,
sampleDataS3SourceConfig_fileFormatDescriptor,
TimeSeries (..),
newTimeSeries,
timeSeries_timeSeriesId,
timeSeries_dimensionList,
timeSeries_metricValueList,
TimeSeriesFeedback (..),
newTimeSeriesFeedback,
timeSeriesFeedback_isAnomaly,
timeSeriesFeedback_timeSeriesId,
TimestampColumn (..),
newTimestampColumn,
timestampColumn_columnFormat,
timestampColumn_columnName,
VpcConfiguration (..),
newVpcConfiguration,
vpcConfiguration_subnetIdList,
vpcConfiguration_securityGroupIdList,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.LookoutMetrics.Types.Action
import Amazonka.LookoutMetrics.Types.AggregationFunction
import Amazonka.LookoutMetrics.Types.Alert
import Amazonka.LookoutMetrics.Types.AlertFilters
import Amazonka.LookoutMetrics.Types.AlertStatus
import Amazonka.LookoutMetrics.Types.AlertSummary
import Amazonka.LookoutMetrics.Types.AlertType
import Amazonka.LookoutMetrics.Types.AnomalyDetectionTaskStatus
import Amazonka.LookoutMetrics.Types.AnomalyDetectorConfig
import Amazonka.LookoutMetrics.Types.AnomalyDetectorConfigSummary
import Amazonka.LookoutMetrics.Types.AnomalyDetectorDataQualityMetric
import Amazonka.LookoutMetrics.Types.AnomalyDetectorFailureType
import Amazonka.LookoutMetrics.Types.AnomalyDetectorStatus
import Amazonka.LookoutMetrics.Types.AnomalyDetectorSummary
import Amazonka.LookoutMetrics.Types.AnomalyGroup
import Amazonka.LookoutMetrics.Types.AnomalyGroupStatistics
import Amazonka.LookoutMetrics.Types.AnomalyGroupSummary
import Amazonka.LookoutMetrics.Types.AnomalyGroupTimeSeries
import Amazonka.LookoutMetrics.Types.AnomalyGroupTimeSeriesFeedback
import Amazonka.LookoutMetrics.Types.AppFlowConfig
import Amazonka.LookoutMetrics.Types.AthenaSourceConfig
import Amazonka.LookoutMetrics.Types.AttributeValue
import Amazonka.LookoutMetrics.Types.AutoDetectionMetricSource
import Amazonka.LookoutMetrics.Types.AutoDetectionS3SourceConfig
import Amazonka.LookoutMetrics.Types.BackTestConfiguration
import Amazonka.LookoutMetrics.Types.CSVFileCompression
import Amazonka.LookoutMetrics.Types.CloudWatchConfig
import Amazonka.LookoutMetrics.Types.Confidence
import Amazonka.LookoutMetrics.Types.ContributionMatrix
import Amazonka.LookoutMetrics.Types.CsvFormatDescriptor
import Amazonka.LookoutMetrics.Types.DataQualityMetric
import Amazonka.LookoutMetrics.Types.DataQualityMetricType
import Amazonka.LookoutMetrics.Types.DetectedCsvFormatDescriptor
import Amazonka.LookoutMetrics.Types.DetectedField
import Amazonka.LookoutMetrics.Types.DetectedFileFormatDescriptor
import Amazonka.LookoutMetrics.Types.DetectedJsonFormatDescriptor
import Amazonka.LookoutMetrics.Types.DetectedMetricSetConfig
import Amazonka.LookoutMetrics.Types.DetectedMetricSource
import Amazonka.LookoutMetrics.Types.DetectedS3SourceConfig
import Amazonka.LookoutMetrics.Types.DimensionContribution
import Amazonka.LookoutMetrics.Types.DimensionFilter
import Amazonka.LookoutMetrics.Types.DimensionNameValue
import Amazonka.LookoutMetrics.Types.DimensionValueContribution
import Amazonka.LookoutMetrics.Types.ExecutionStatus
import Amazonka.LookoutMetrics.Types.FileFormatDescriptor
import Amazonka.LookoutMetrics.Types.Filter
import Amazonka.LookoutMetrics.Types.FilterOperation
import Amazonka.LookoutMetrics.Types.Frequency
import Amazonka.LookoutMetrics.Types.InterMetricImpactDetails
import Amazonka.LookoutMetrics.Types.ItemizedMetricStats
import Amazonka.LookoutMetrics.Types.JsonFileCompression
import Amazonka.LookoutMetrics.Types.JsonFormatDescriptor
import Amazonka.LookoutMetrics.Types.LambdaConfiguration
import Amazonka.LookoutMetrics.Types.Metric
import Amazonka.LookoutMetrics.Types.MetricLevelImpact
import Amazonka.LookoutMetrics.Types.MetricSetDataQualityMetric
import Amazonka.LookoutMetrics.Types.MetricSetDimensionFilter
import Amazonka.LookoutMetrics.Types.MetricSetSummary
import Amazonka.LookoutMetrics.Types.MetricSource
import Amazonka.LookoutMetrics.Types.RDSSourceConfig
import Amazonka.LookoutMetrics.Types.RedshiftSourceConfig
import Amazonka.LookoutMetrics.Types.RelationshipType
import Amazonka.LookoutMetrics.Types.S3SourceConfig
import Amazonka.LookoutMetrics.Types.SNSConfiguration
import Amazonka.LookoutMetrics.Types.SampleDataS3SourceConfig
import Amazonka.LookoutMetrics.Types.SnsFormat
import Amazonka.LookoutMetrics.Types.TimeSeries
import Amazonka.LookoutMetrics.Types.TimeSeriesFeedback
import Amazonka.LookoutMetrics.Types.TimestampColumn
import Amazonka.LookoutMetrics.Types.VpcConfiguration
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
"LookoutMetrics",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"lookoutmetrics",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"lookoutmetrics",
$sel:version:Service :: ByteString
Core.version = ByteString
"2017-07-25",
$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.parseJSONError Abbrev
"LookoutMetrics",
$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
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
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
403
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
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
409
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
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
_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
400
_ServiceQuotaExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceQuotaExceededException :: forall a. AsError a => Fold a ServiceError
_ServiceQuotaExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
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
402
_TooManyRequestsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyRequestsException :: forall a. AsError a => Fold a ServiceError
_TooManyRequestsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
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
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
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