{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Inspector.Types
(
defaultService,
_AccessDeniedException,
_AssessmentRunInProgressException,
_NoSuchEntityException,
_UnsupportedFeatureException,
_PreviewGenerationInProgressException,
_AgentsAlreadyRunningAssessmentException,
_InvalidCrossAccountRoleException,
_InvalidInputException,
_InternalException,
_ServiceTemporarilyUnavailableException,
_LimitExceededException,
AgentHealth (..),
AgentHealthCode (..),
AssessmentRunNotificationSnsStatusCode (..),
AssessmentRunState (..),
AssetType (..),
FailedItemErrorCode (..),
InspectorEvent (..),
Locale (..),
PreviewStatus (..),
ReportFileFormat (..),
ReportStatus (..),
ReportType (..),
ScopeType (..),
Severity (..),
StopAction (..),
AgentFilter (..),
newAgentFilter,
agentFilter_agentHealths,
agentFilter_agentHealthCodes,
AgentPreview (..),
newAgentPreview,
agentPreview_hostname,
agentPreview_autoScalingGroup,
agentPreview_operatingSystem,
agentPreview_agentVersion,
agentPreview_kernelVersion,
agentPreview_agentHealth,
agentPreview_ipv4Address,
agentPreview_agentId,
AssessmentRun (..),
newAssessmentRun,
assessmentRun_startedAt,
assessmentRun_completedAt,
assessmentRun_arn,
assessmentRun_name,
assessmentRun_assessmentTemplateArn,
assessmentRun_state,
assessmentRun_durationInSeconds,
assessmentRun_rulesPackageArns,
assessmentRun_userAttributesForFindings,
assessmentRun_createdAt,
assessmentRun_stateChangedAt,
assessmentRun_dataCollected,
assessmentRun_stateChanges,
assessmentRun_notifications,
assessmentRun_findingCounts,
AssessmentRunAgent (..),
newAssessmentRunAgent,
assessmentRunAgent_autoScalingGroup,
assessmentRunAgent_agentHealthDetails,
assessmentRunAgent_agentId,
assessmentRunAgent_assessmentRunArn,
assessmentRunAgent_agentHealth,
assessmentRunAgent_agentHealthCode,
assessmentRunAgent_telemetryMetadata,
AssessmentRunFilter (..),
newAssessmentRunFilter,
assessmentRunFilter_states,
assessmentRunFilter_namePattern,
assessmentRunFilter_startTimeRange,
assessmentRunFilter_stateChangeTimeRange,
assessmentRunFilter_rulesPackageArns,
assessmentRunFilter_completionTimeRange,
assessmentRunFilter_durationRange,
AssessmentRunNotification (..),
newAssessmentRunNotification,
assessmentRunNotification_snsTopicArn,
assessmentRunNotification_snsPublishStatusCode,
assessmentRunNotification_message,
assessmentRunNotification_date,
assessmentRunNotification_event,
assessmentRunNotification_error,
AssessmentRunStateChange (..),
newAssessmentRunStateChange,
assessmentRunStateChange_stateChangedAt,
assessmentRunStateChange_state,
AssessmentTarget (..),
newAssessmentTarget,
assessmentTarget_resourceGroupArn,
assessmentTarget_arn,
assessmentTarget_name,
assessmentTarget_createdAt,
assessmentTarget_updatedAt,
AssessmentTargetFilter (..),
newAssessmentTargetFilter,
assessmentTargetFilter_assessmentTargetNamePattern,
AssessmentTemplate (..),
newAssessmentTemplate,
assessmentTemplate_lastAssessmentRunArn,
assessmentTemplate_arn,
assessmentTemplate_name,
assessmentTemplate_assessmentTargetArn,
assessmentTemplate_durationInSeconds,
assessmentTemplate_rulesPackageArns,
assessmentTemplate_userAttributesForFindings,
assessmentTemplate_assessmentRunCount,
assessmentTemplate_createdAt,
AssessmentTemplateFilter (..),
newAssessmentTemplateFilter,
assessmentTemplateFilter_namePattern,
assessmentTemplateFilter_rulesPackageArns,
assessmentTemplateFilter_durationRange,
AssetAttributes (..),
newAssetAttributes,
assetAttributes_hostname,
assetAttributes_autoScalingGroup,
assetAttributes_networkInterfaces,
assetAttributes_ipv4Addresses,
assetAttributes_agentId,
assetAttributes_amiId,
assetAttributes_tags,
assetAttributes_schemaVersion,
Attribute (..),
newAttribute,
attribute_value,
attribute_key,
DurationRange (..),
newDurationRange,
durationRange_minSeconds,
durationRange_maxSeconds,
EventSubscription (..),
newEventSubscription,
eventSubscription_event,
eventSubscription_subscribedAt,
Exclusion (..),
newExclusion,
exclusion_attributes,
exclusion_arn,
exclusion_title,
exclusion_description,
exclusion_recommendation,
exclusion_scopes,
ExclusionPreview (..),
newExclusionPreview,
exclusionPreview_attributes,
exclusionPreview_title,
exclusionPreview_description,
exclusionPreview_recommendation,
exclusionPreview_scopes,
FailedItemDetails (..),
newFailedItemDetails,
failedItemDetails_failureCode,
failedItemDetails_retryable,
Finding (..),
newFinding,
finding_service,
finding_severity,
finding_schemaVersion,
finding_confidence,
finding_assetAttributes,
finding_serviceAttributes,
finding_id,
finding_numericSeverity,
finding_assetType,
finding_title,
finding_indicatorOfCompromise,
finding_description,
finding_recommendation,
finding_arn,
finding_attributes,
finding_userAttributes,
finding_createdAt,
finding_updatedAt,
FindingFilter (..),
newFindingFilter,
findingFilter_agentIds,
findingFilter_ruleNames,
findingFilter_userAttributes,
findingFilter_rulesPackageArns,
findingFilter_attributes,
findingFilter_severities,
findingFilter_creationTimeRange,
findingFilter_autoScalingGroups,
InspectorServiceAttributes (..),
newInspectorServiceAttributes,
inspectorServiceAttributes_rulesPackageArn,
inspectorServiceAttributes_assessmentRunArn,
inspectorServiceAttributes_schemaVersion,
NetworkInterface (..),
newNetworkInterface,
networkInterface_privateIpAddresses,
networkInterface_publicDnsName,
networkInterface_securityGroups,
networkInterface_vpcId,
networkInterface_subnetId,
networkInterface_networkInterfaceId,
networkInterface_privateIpAddress,
networkInterface_publicIp,
networkInterface_privateDnsName,
networkInterface_ipv6Addresses,
PrivateIp (..),
newPrivateIp,
privateIp_privateIpAddress,
privateIp_privateDnsName,
ResourceGroup (..),
newResourceGroup,
resourceGroup_arn,
resourceGroup_tags,
resourceGroup_createdAt,
ResourceGroupTag (..),
newResourceGroupTag,
resourceGroupTag_value,
resourceGroupTag_key,
RulesPackage (..),
newRulesPackage,
rulesPackage_description,
rulesPackage_arn,
rulesPackage_name,
rulesPackage_version,
rulesPackage_provider,
Scope (..),
newScope,
scope_value,
scope_key,
SecurityGroup (..),
newSecurityGroup,
securityGroup_groupId,
securityGroup_groupName,
Subscription (..),
newSubscription,
subscription_resourceArn,
subscription_topicArn,
subscription_eventSubscriptions,
Tag (..),
newTag,
tag_value,
tag_key,
TelemetryMetadata (..),
newTelemetryMetadata,
telemetryMetadata_dataSize,
telemetryMetadata_messageType,
telemetryMetadata_count,
TimestampRange (..),
newTimestampRange,
timestampRange_endDate,
timestampRange_beginDate,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Inspector.Types.AgentFilter
import Amazonka.Inspector.Types.AgentHealth
import Amazonka.Inspector.Types.AgentHealthCode
import Amazonka.Inspector.Types.AgentPreview
import Amazonka.Inspector.Types.AssessmentRun
import Amazonka.Inspector.Types.AssessmentRunAgent
import Amazonka.Inspector.Types.AssessmentRunFilter
import Amazonka.Inspector.Types.AssessmentRunNotification
import Amazonka.Inspector.Types.AssessmentRunNotificationSnsStatusCode
import Amazonka.Inspector.Types.AssessmentRunState
import Amazonka.Inspector.Types.AssessmentRunStateChange
import Amazonka.Inspector.Types.AssessmentTarget
import Amazonka.Inspector.Types.AssessmentTargetFilter
import Amazonka.Inspector.Types.AssessmentTemplate
import Amazonka.Inspector.Types.AssessmentTemplateFilter
import Amazonka.Inspector.Types.AssetAttributes
import Amazonka.Inspector.Types.AssetType
import Amazonka.Inspector.Types.Attribute
import Amazonka.Inspector.Types.DurationRange
import Amazonka.Inspector.Types.EventSubscription
import Amazonka.Inspector.Types.Exclusion
import Amazonka.Inspector.Types.ExclusionPreview
import Amazonka.Inspector.Types.FailedItemDetails
import Amazonka.Inspector.Types.FailedItemErrorCode
import Amazonka.Inspector.Types.Finding
import Amazonka.Inspector.Types.FindingFilter
import Amazonka.Inspector.Types.InspectorEvent
import Amazonka.Inspector.Types.InspectorServiceAttributes
import Amazonka.Inspector.Types.Locale
import Amazonka.Inspector.Types.NetworkInterface
import Amazonka.Inspector.Types.PreviewStatus
import Amazonka.Inspector.Types.PrivateIp
import Amazonka.Inspector.Types.ReportFileFormat
import Amazonka.Inspector.Types.ReportStatus
import Amazonka.Inspector.Types.ReportType
import Amazonka.Inspector.Types.ResourceGroup
import Amazonka.Inspector.Types.ResourceGroupTag
import Amazonka.Inspector.Types.RulesPackage
import Amazonka.Inspector.Types.Scope
import Amazonka.Inspector.Types.ScopeType
import Amazonka.Inspector.Types.SecurityGroup
import Amazonka.Inspector.Types.Severity
import Amazonka.Inspector.Types.StopAction
import Amazonka.Inspector.Types.Subscription
import Amazonka.Inspector.Types.Tag
import Amazonka.Inspector.Types.TelemetryMetadata
import Amazonka.Inspector.Types.TimestampRange
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
"Inspector",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"inspector",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"inspector",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2016-02-16",
$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
"Inspector",
$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
_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"
_AssessmentRunInProgressException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AssessmentRunInProgressException :: Getting (First ServiceError) a ServiceError
_AssessmentRunInProgressException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AssessmentRunInProgressException"
_NoSuchEntityException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NoSuchEntityException :: Getting (First ServiceError) a ServiceError
_NoSuchEntityException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NoSuchEntityException"
_UnsupportedFeatureException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnsupportedFeatureException :: Getting (First ServiceError) a ServiceError
_UnsupportedFeatureException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedFeatureException"
_PreviewGenerationInProgressException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_PreviewGenerationInProgressException :: Getting (First ServiceError) a ServiceError
_PreviewGenerationInProgressException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"PreviewGenerationInProgressException"
_AgentsAlreadyRunningAssessmentException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AgentsAlreadyRunningAssessmentException :: Getting (First ServiceError) a ServiceError
_AgentsAlreadyRunningAssessmentException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AgentsAlreadyRunningAssessmentException"
_InvalidCrossAccountRoleException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidCrossAccountRoleException :: Getting (First ServiceError) a ServiceError
_InvalidCrossAccountRoleException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidCrossAccountRoleException"
_InvalidInputException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidInputException :: Getting (First ServiceError) a ServiceError
_InvalidInputException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidInputException"
_InternalException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalException :: Getting (First ServiceError) a ServiceError
_InternalException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalException"
_ServiceTemporarilyUnavailableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceTemporarilyUnavailableException :: Getting (First ServiceError) a ServiceError
_ServiceTemporarilyUnavailableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceTemporarilyUnavailableException"
_LimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_LimitExceededException :: Getting (First ServiceError) a ServiceError
_LimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"