{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DevOpsGuru.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_ConflictException,
_ServiceQuotaExceededException,
_ThrottlingException,
_InternalServerException,
_ResourceNotFoundException,
AnomalySeverity (..),
AnomalyStatus (..),
CloudWatchMetricsStat (..),
CostEstimationServiceResourceState (..),
CostEstimationStatus (..),
EventClass (..),
EventDataSource (..),
InsightFeedbackOption (..),
InsightSeverity (..),
InsightStatus (..),
InsightType (..),
Locale (..),
OptInStatus (..),
ResourceCollectionType (..),
ServiceName (..),
UpdateResourceCollectionAction (..),
AnomalyReportedTimeRange (..),
newAnomalyReportedTimeRange,
anomalyReportedTimeRange_closeTime,
anomalyReportedTimeRange_openTime,
AnomalySourceDetails (..),
newAnomalySourceDetails,
anomalySourceDetails_cloudWatchMetrics,
AnomalyTimeRange (..),
newAnomalyTimeRange,
anomalyTimeRange_endTime,
anomalyTimeRange_startTime,
CloudFormationCollection (..),
newCloudFormationCollection,
cloudFormationCollection_stackNames,
CloudFormationCollectionFilter (..),
newCloudFormationCollectionFilter,
cloudFormationCollectionFilter_stackNames,
CloudFormationCostEstimationResourceCollectionFilter (..),
newCloudFormationCostEstimationResourceCollectionFilter,
cloudFormationCostEstimationResourceCollectionFilter_stackNames,
CloudFormationHealth (..),
newCloudFormationHealth,
cloudFormationHealth_insight,
cloudFormationHealth_stackName,
CloudWatchMetricsDetail (..),
newCloudWatchMetricsDetail,
cloudWatchMetricsDetail_period,
cloudWatchMetricsDetail_metricName,
cloudWatchMetricsDetail_namespace,
cloudWatchMetricsDetail_stat,
cloudWatchMetricsDetail_dimensions,
cloudWatchMetricsDetail_unit,
CloudWatchMetricsDimension (..),
newCloudWatchMetricsDimension,
cloudWatchMetricsDimension_value,
cloudWatchMetricsDimension_name,
CostEstimationResourceCollectionFilter (..),
newCostEstimationResourceCollectionFilter,
costEstimationResourceCollectionFilter_cloudFormation,
CostEstimationTimeRange (..),
newCostEstimationTimeRange,
costEstimationTimeRange_startTime,
costEstimationTimeRange_endTime,
EndTimeRange (..),
newEndTimeRange,
endTimeRange_fromTime,
endTimeRange_toTime,
Event (..),
newEvent,
event_resourceCollection,
event_eventClass,
event_time,
event_resources,
event_name,
event_id,
event_dataSource,
event_eventSource,
EventResource (..),
newEventResource,
eventResource_arn,
eventResource_name,
eventResource_type,
EventTimeRange (..),
newEventTimeRange,
eventTimeRange_fromTime,
eventTimeRange_toTime,
InsightFeedback (..),
newInsightFeedback,
insightFeedback_id,
insightFeedback_feedback,
InsightHealth (..),
newInsightHealth,
insightHealth_meanTimeToRecoverInMilliseconds,
insightHealth_openReactiveInsights,
insightHealth_openProactiveInsights,
InsightTimeRange (..),
newInsightTimeRange,
insightTimeRange_endTime,
insightTimeRange_startTime,
ListEventsFilters (..),
newListEventsFilters,
listEventsFilters_resourceCollection,
listEventsFilters_eventClass,
listEventsFilters_insightId,
listEventsFilters_dataSource,
listEventsFilters_eventTimeRange,
listEventsFilters_eventSource,
ListInsightsAnyStatusFilter (..),
newListInsightsAnyStatusFilter,
listInsightsAnyStatusFilter_type,
listInsightsAnyStatusFilter_startTimeRange,
ListInsightsClosedStatusFilter (..),
newListInsightsClosedStatusFilter,
listInsightsClosedStatusFilter_type,
listInsightsClosedStatusFilter_endTimeRange,
ListInsightsOngoingStatusFilter (..),
newListInsightsOngoingStatusFilter,
listInsightsOngoingStatusFilter_type,
ListInsightsStatusFilter (..),
newListInsightsStatusFilter,
listInsightsStatusFilter_closed,
listInsightsStatusFilter_ongoing,
listInsightsStatusFilter_any,
NotificationChannel (..),
newNotificationChannel,
notificationChannel_config,
notificationChannel_id,
NotificationChannelConfig (..),
newNotificationChannelConfig,
notificationChannelConfig_sns,
OpsCenterIntegration (..),
newOpsCenterIntegration,
opsCenterIntegration_optInStatus,
OpsCenterIntegrationConfig (..),
newOpsCenterIntegrationConfig,
opsCenterIntegrationConfig_optInStatus,
PredictionTimeRange (..),
newPredictionTimeRange,
predictionTimeRange_endTime,
predictionTimeRange_startTime,
ProactiveAnomaly (..),
newProactiveAnomaly,
proactiveAnomaly_anomalyReportedTimeRange,
proactiveAnomaly_status,
proactiveAnomaly_resourceCollection,
proactiveAnomaly_severity,
proactiveAnomaly_updateTime,
proactiveAnomaly_sourceDetails,
proactiveAnomaly_predictionTimeRange,
proactiveAnomaly_limit,
proactiveAnomaly_id,
proactiveAnomaly_associatedInsightId,
proactiveAnomaly_anomalyTimeRange,
ProactiveAnomalySummary (..),
newProactiveAnomalySummary,
proactiveAnomalySummary_anomalyReportedTimeRange,
proactiveAnomalySummary_status,
proactiveAnomalySummary_resourceCollection,
proactiveAnomalySummary_severity,
proactiveAnomalySummary_updateTime,
proactiveAnomalySummary_sourceDetails,
proactiveAnomalySummary_predictionTimeRange,
proactiveAnomalySummary_limit,
proactiveAnomalySummary_id,
proactiveAnomalySummary_associatedInsightId,
proactiveAnomalySummary_anomalyTimeRange,
ProactiveInsight (..),
newProactiveInsight,
proactiveInsight_status,
proactiveInsight_resourceCollection,
proactiveInsight_severity,
proactiveInsight_ssmOpsItemId,
proactiveInsight_insightTimeRange,
proactiveInsight_name,
proactiveInsight_predictionTimeRange,
proactiveInsight_id,
ProactiveInsightSummary (..),
newProactiveInsightSummary,
proactiveInsightSummary_status,
proactiveInsightSummary_resourceCollection,
proactiveInsightSummary_severity,
proactiveInsightSummary_insightTimeRange,
proactiveInsightSummary_name,
proactiveInsightSummary_predictionTimeRange,
proactiveInsightSummary_id,
proactiveInsightSummary_serviceCollection,
ReactiveAnomaly (..),
newReactiveAnomaly,
reactiveAnomaly_anomalyReportedTimeRange,
reactiveAnomaly_status,
reactiveAnomaly_resourceCollection,
reactiveAnomaly_severity,
reactiveAnomaly_sourceDetails,
reactiveAnomaly_id,
reactiveAnomaly_associatedInsightId,
reactiveAnomaly_anomalyTimeRange,
ReactiveAnomalySummary (..),
newReactiveAnomalySummary,
reactiveAnomalySummary_anomalyReportedTimeRange,
reactiveAnomalySummary_status,
reactiveAnomalySummary_resourceCollection,
reactiveAnomalySummary_severity,
reactiveAnomalySummary_sourceDetails,
reactiveAnomalySummary_id,
reactiveAnomalySummary_associatedInsightId,
reactiveAnomalySummary_anomalyTimeRange,
ReactiveInsight (..),
newReactiveInsight,
reactiveInsight_status,
reactiveInsight_resourceCollection,
reactiveInsight_severity,
reactiveInsight_ssmOpsItemId,
reactiveInsight_insightTimeRange,
reactiveInsight_name,
reactiveInsight_id,
ReactiveInsightSummary (..),
newReactiveInsightSummary,
reactiveInsightSummary_status,
reactiveInsightSummary_resourceCollection,
reactiveInsightSummary_severity,
reactiveInsightSummary_insightTimeRange,
reactiveInsightSummary_name,
reactiveInsightSummary_id,
reactiveInsightSummary_serviceCollection,
Recommendation (..),
newRecommendation,
recommendation_link,
recommendation_relatedAnomalies,
recommendation_reason,
recommendation_name,
recommendation_relatedEvents,
recommendation_description,
RecommendationRelatedAnomaly (..),
newRecommendationRelatedAnomaly,
recommendationRelatedAnomaly_resources,
recommendationRelatedAnomaly_sourceDetails,
RecommendationRelatedAnomalyResource (..),
newRecommendationRelatedAnomalyResource,
recommendationRelatedAnomalyResource_name,
recommendationRelatedAnomalyResource_type,
RecommendationRelatedAnomalySourceDetail (..),
newRecommendationRelatedAnomalySourceDetail,
recommendationRelatedAnomalySourceDetail_cloudWatchMetrics,
RecommendationRelatedCloudWatchMetricsSourceDetail (..),
newRecommendationRelatedCloudWatchMetricsSourceDetail,
recommendationRelatedCloudWatchMetricsSourceDetail_metricName,
recommendationRelatedCloudWatchMetricsSourceDetail_namespace,
RecommendationRelatedEvent (..),
newRecommendationRelatedEvent,
recommendationRelatedEvent_resources,
recommendationRelatedEvent_name,
RecommendationRelatedEventResource (..),
newRecommendationRelatedEventResource,
recommendationRelatedEventResource_name,
recommendationRelatedEventResource_type,
ResourceCollection (..),
newResourceCollection,
resourceCollection_cloudFormation,
ResourceCollectionFilter (..),
newResourceCollectionFilter,
resourceCollectionFilter_cloudFormation,
SearchInsightsFilters (..),
newSearchInsightsFilters,
searchInsightsFilters_resourceCollection,
searchInsightsFilters_statuses,
searchInsightsFilters_severities,
searchInsightsFilters_serviceCollection,
ServiceCollection (..),
newServiceCollection,
serviceCollection_serviceNames,
ServiceHealth (..),
newServiceHealth,
serviceHealth_insight,
serviceHealth_serviceName,
ServiceInsightHealth (..),
newServiceInsightHealth,
serviceInsightHealth_openReactiveInsights,
serviceInsightHealth_openProactiveInsights,
ServiceIntegrationConfig (..),
newServiceIntegrationConfig,
serviceIntegrationConfig_opsCenter,
ServiceResourceCost (..),
newServiceResourceCost,
serviceResourceCost_state,
serviceResourceCost_unitCost,
serviceResourceCost_count,
serviceResourceCost_cost,
serviceResourceCost_type,
SnsChannelConfig (..),
newSnsChannelConfig,
snsChannelConfig_topicArn,
StartTimeRange (..),
newStartTimeRange,
startTimeRange_fromTime,
startTimeRange_toTime,
UpdateCloudFormationCollectionFilter (..),
newUpdateCloudFormationCollectionFilter,
updateCloudFormationCollectionFilter_stackNames,
UpdateResourceCollectionFilter (..),
newUpdateResourceCollectionFilter,
updateResourceCollectionFilter_cloudFormation,
UpdateServiceIntegrationConfig (..),
newUpdateServiceIntegrationConfig,
updateServiceIntegrationConfig_opsCenter,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DevOpsGuru.Types.AnomalyReportedTimeRange
import Amazonka.DevOpsGuru.Types.AnomalySeverity
import Amazonka.DevOpsGuru.Types.AnomalySourceDetails
import Amazonka.DevOpsGuru.Types.AnomalyStatus
import Amazonka.DevOpsGuru.Types.AnomalyTimeRange
import Amazonka.DevOpsGuru.Types.CloudFormationCollection
import Amazonka.DevOpsGuru.Types.CloudFormationCollectionFilter
import Amazonka.DevOpsGuru.Types.CloudFormationCostEstimationResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.CloudFormationHealth
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsDetail
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsDimension
import Amazonka.DevOpsGuru.Types.CloudWatchMetricsStat
import Amazonka.DevOpsGuru.Types.CostEstimationResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.CostEstimationServiceResourceState
import Amazonka.DevOpsGuru.Types.CostEstimationStatus
import Amazonka.DevOpsGuru.Types.CostEstimationTimeRange
import Amazonka.DevOpsGuru.Types.EndTimeRange
import Amazonka.DevOpsGuru.Types.Event
import Amazonka.DevOpsGuru.Types.EventClass
import Amazonka.DevOpsGuru.Types.EventDataSource
import Amazonka.DevOpsGuru.Types.EventResource
import Amazonka.DevOpsGuru.Types.EventTimeRange
import Amazonka.DevOpsGuru.Types.InsightFeedback
import Amazonka.DevOpsGuru.Types.InsightFeedbackOption
import Amazonka.DevOpsGuru.Types.InsightHealth
import Amazonka.DevOpsGuru.Types.InsightSeverity
import Amazonka.DevOpsGuru.Types.InsightStatus
import Amazonka.DevOpsGuru.Types.InsightTimeRange
import Amazonka.DevOpsGuru.Types.InsightType
import Amazonka.DevOpsGuru.Types.ListEventsFilters
import Amazonka.DevOpsGuru.Types.ListInsightsAnyStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsClosedStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsOngoingStatusFilter
import Amazonka.DevOpsGuru.Types.ListInsightsStatusFilter
import Amazonka.DevOpsGuru.Types.Locale
import Amazonka.DevOpsGuru.Types.NotificationChannel
import Amazonka.DevOpsGuru.Types.NotificationChannelConfig
import Amazonka.DevOpsGuru.Types.OpsCenterIntegration
import Amazonka.DevOpsGuru.Types.OpsCenterIntegrationConfig
import Amazonka.DevOpsGuru.Types.OptInStatus
import Amazonka.DevOpsGuru.Types.PredictionTimeRange
import Amazonka.DevOpsGuru.Types.ProactiveAnomaly
import Amazonka.DevOpsGuru.Types.ProactiveAnomalySummary
import Amazonka.DevOpsGuru.Types.ProactiveInsight
import Amazonka.DevOpsGuru.Types.ProactiveInsightSummary
import Amazonka.DevOpsGuru.Types.ReactiveAnomaly
import Amazonka.DevOpsGuru.Types.ReactiveAnomalySummary
import Amazonka.DevOpsGuru.Types.ReactiveInsight
import Amazonka.DevOpsGuru.Types.ReactiveInsightSummary
import Amazonka.DevOpsGuru.Types.Recommendation
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomaly
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomalyResource
import Amazonka.DevOpsGuru.Types.RecommendationRelatedAnomalySourceDetail
import Amazonka.DevOpsGuru.Types.RecommendationRelatedCloudWatchMetricsSourceDetail
import Amazonka.DevOpsGuru.Types.RecommendationRelatedEvent
import Amazonka.DevOpsGuru.Types.RecommendationRelatedEventResource
import Amazonka.DevOpsGuru.Types.ResourceCollection
import Amazonka.DevOpsGuru.Types.ResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.ResourceCollectionType
import Amazonka.DevOpsGuru.Types.SearchInsightsFilters
import Amazonka.DevOpsGuru.Types.ServiceCollection
import Amazonka.DevOpsGuru.Types.ServiceHealth
import Amazonka.DevOpsGuru.Types.ServiceInsightHealth
import Amazonka.DevOpsGuru.Types.ServiceIntegrationConfig
import Amazonka.DevOpsGuru.Types.ServiceName
import Amazonka.DevOpsGuru.Types.ServiceResourceCost
import Amazonka.DevOpsGuru.Types.SnsChannelConfig
import Amazonka.DevOpsGuru.Types.StartTimeRange
import Amazonka.DevOpsGuru.Types.UpdateCloudFormationCollectionFilter
import Amazonka.DevOpsGuru.Types.UpdateResourceCollectionAction
import Amazonka.DevOpsGuru.Types.UpdateResourceCollectionFilter
import Amazonka.DevOpsGuru.Types.UpdateServiceIntegrationConfig
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Service :: Abbrev
-> Signer
-> ByteString
-> ByteString
-> ByteString
-> (Region -> Endpoint)
-> Maybe Seconds
-> (Status -> Bool)
-> (Status -> [Header] -> ByteStringLazy -> Error)
-> Retry
-> Service
Core.Service
{ $sel:_serviceAbbrev:Service :: Abbrev
Core._serviceAbbrev = Abbrev
"DevOpsGuru",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"devops-guru",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"devops-guru",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2020-12-01",
$sel:_serviceEndpoint:Service :: Region -> Endpoint
Core._serviceEndpoint =
Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:_serviceTimeout:Service :: Maybe Seconds
Core._serviceTimeout = Seconds -> Maybe Seconds
forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:_serviceCheck:Service :: Status -> Bool
Core._serviceCheck = Status -> Bool
Core.statusSuccess,
$sel:_serviceError:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core._serviceError =
Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"DevOpsGuru",
$sel:_serviceRetry:Service :: Retry
Core._serviceRetry = Retry
retry
}
where
retry :: Retry
retry =
Exponential :: Double -> Int -> Int -> (ServiceError -> Maybe Text) -> Retry
Core.Exponential
{ $sel:_retryBase:Exponential :: Double
Core._retryBase = Double
5.0e-2,
$sel:_retryGrowth:Exponential :: Int
Core._retryGrowth = Int
2,
$sel:_retryAttempts:Exponential :: Int
Core._retryAttempts = Int
5,
$sel:_retryCheck:Exponential :: ServiceError -> Maybe Text
Core._retryCheck = ServiceError -> Maybe Text
forall a. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has
( ErrorCode -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
-> Getting Any ServiceError ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| Getting Any ServiceError ServiceError -> ServiceError -> Bool
forall s a. Getting Any s a -> s -> Bool
Lens.has (Int -> Getting Any ServiceError ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
a -> Maybe a
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| Bool
Prelude.otherwise = Maybe a
forall a. Maybe a
Prelude.Nothing
_ValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ValidationException :: Getting (First ServiceError) a ServiceError
_ValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_ConflictException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConflictException :: Getting (First ServiceError) a ServiceError
_ConflictException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ServiceQuotaExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceQuotaExceededException :: Getting (First ServiceError) a ServiceError
_ServiceQuotaExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceQuotaExceededException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
402
_ThrottlingException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ThrottlingException :: Getting (First ServiceError) a ServiceError
_ThrottlingException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_InternalServerException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServerException :: Getting (First ServiceError) a ServiceError
_InternalServerException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404