{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AuditManager.Types
(
defaultService,
_AccessDeniedException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ThrottlingException,
_ValidationException,
AccountStatus (..),
ActionEnum (..),
AssessmentReportDestinationType (..),
AssessmentReportStatus (..),
AssessmentStatus (..),
ControlResponse (..),
ControlSetStatus (..),
ControlStatus (..),
ControlType (..),
DelegationStatus (..),
DeleteResources (..),
EvidenceFinderBackfillStatus (..),
EvidenceFinderEnablementStatus (..),
FrameworkType (..),
KeywordInputType (..),
ObjectTypeEnum (..),
RoleType (..),
SettingAttribute (..),
ShareRequestAction (..),
ShareRequestStatus (..),
ShareRequestType (..),
SourceFrequency (..),
SourceSetUpOption (..),
SourceType (..),
AWSAccount (..),
newAWSAccount,
aWSAccount_emailAddress,
aWSAccount_id,
aWSAccount_name,
AWSService (..),
newAWSService,
aWSService_serviceName,
Assessment (..),
newAssessment,
assessment_arn,
assessment_awsAccount,
assessment_framework,
assessment_metadata,
assessment_tags,
AssessmentControl (..),
newAssessmentControl,
assessmentControl_assessmentReportEvidenceCount,
assessmentControl_comments,
assessmentControl_description,
assessmentControl_evidenceCount,
assessmentControl_evidenceSources,
assessmentControl_id,
assessmentControl_name,
assessmentControl_response,
assessmentControl_status,
AssessmentControlSet (..),
newAssessmentControlSet,
assessmentControlSet_controls,
assessmentControlSet_delegations,
assessmentControlSet_description,
assessmentControlSet_id,
assessmentControlSet_manualEvidenceCount,
assessmentControlSet_roles,
assessmentControlSet_status,
assessmentControlSet_systemEvidenceCount,
AssessmentEvidenceFolder (..),
newAssessmentEvidenceFolder,
assessmentEvidenceFolder_assessmentId,
assessmentEvidenceFolder_assessmentReportSelectionCount,
assessmentEvidenceFolder_author,
assessmentEvidenceFolder_controlId,
assessmentEvidenceFolder_controlName,
assessmentEvidenceFolder_controlSetId,
assessmentEvidenceFolder_dataSource,
assessmentEvidenceFolder_date,
assessmentEvidenceFolder_evidenceAwsServiceSourceCount,
assessmentEvidenceFolder_evidenceByTypeComplianceCheckCount,
assessmentEvidenceFolder_evidenceByTypeComplianceCheckIssuesCount,
assessmentEvidenceFolder_evidenceByTypeConfigurationDataCount,
assessmentEvidenceFolder_evidenceByTypeManualCount,
assessmentEvidenceFolder_evidenceByTypeUserActivityCount,
assessmentEvidenceFolder_evidenceResourcesIncludedCount,
assessmentEvidenceFolder_id,
assessmentEvidenceFolder_name,
assessmentEvidenceFolder_totalEvidence,
AssessmentFramework (..),
newAssessmentFramework,
assessmentFramework_arn,
assessmentFramework_controlSets,
assessmentFramework_id,
assessmentFramework_metadata,
AssessmentFrameworkMetadata (..),
newAssessmentFrameworkMetadata,
assessmentFrameworkMetadata_arn,
assessmentFrameworkMetadata_complianceType,
assessmentFrameworkMetadata_controlSetsCount,
assessmentFrameworkMetadata_controlsCount,
assessmentFrameworkMetadata_createdAt,
assessmentFrameworkMetadata_description,
assessmentFrameworkMetadata_id,
assessmentFrameworkMetadata_lastUpdatedAt,
assessmentFrameworkMetadata_logo,
assessmentFrameworkMetadata_name,
assessmentFrameworkMetadata_type,
AssessmentFrameworkShareRequest (..),
newAssessmentFrameworkShareRequest,
assessmentFrameworkShareRequest_comment,
assessmentFrameworkShareRequest_complianceType,
assessmentFrameworkShareRequest_creationTime,
assessmentFrameworkShareRequest_customControlsCount,
assessmentFrameworkShareRequest_destinationAccount,
assessmentFrameworkShareRequest_destinationRegion,
assessmentFrameworkShareRequest_expirationTime,
assessmentFrameworkShareRequest_frameworkDescription,
assessmentFrameworkShareRequest_frameworkId,
assessmentFrameworkShareRequest_frameworkName,
assessmentFrameworkShareRequest_id,
assessmentFrameworkShareRequest_lastUpdated,
assessmentFrameworkShareRequest_sourceAccount,
assessmentFrameworkShareRequest_standardControlsCount,
assessmentFrameworkShareRequest_status,
AssessmentMetadata (..),
newAssessmentMetadata,
assessmentMetadata_assessmentReportsDestination,
assessmentMetadata_complianceType,
assessmentMetadata_creationTime,
assessmentMetadata_delegations,
assessmentMetadata_description,
assessmentMetadata_id,
assessmentMetadata_lastUpdated,
assessmentMetadata_name,
assessmentMetadata_roles,
assessmentMetadata_scope,
assessmentMetadata_status,
AssessmentMetadataItem (..),
newAssessmentMetadataItem,
assessmentMetadataItem_complianceType,
assessmentMetadataItem_creationTime,
assessmentMetadataItem_delegations,
assessmentMetadataItem_id,
assessmentMetadataItem_lastUpdated,
assessmentMetadataItem_name,
assessmentMetadataItem_roles,
assessmentMetadataItem_status,
AssessmentReport (..),
newAssessmentReport,
assessmentReport_assessmentId,
assessmentReport_assessmentName,
assessmentReport_author,
assessmentReport_awsAccountId,
assessmentReport_creationTime,
assessmentReport_description,
assessmentReport_id,
assessmentReport_name,
assessmentReport_status,
AssessmentReportEvidenceError (..),
newAssessmentReportEvidenceError,
assessmentReportEvidenceError_errorCode,
assessmentReportEvidenceError_errorMessage,
assessmentReportEvidenceError_evidenceId,
AssessmentReportMetadata (..),
newAssessmentReportMetadata,
assessmentReportMetadata_assessmentId,
assessmentReportMetadata_assessmentName,
assessmentReportMetadata_author,
assessmentReportMetadata_creationTime,
assessmentReportMetadata_description,
assessmentReportMetadata_id,
assessmentReportMetadata_name,
assessmentReportMetadata_status,
AssessmentReportsDestination (..),
newAssessmentReportsDestination,
assessmentReportsDestination_destination,
assessmentReportsDestination_destinationType,
BatchCreateDelegationByAssessmentError (..),
newBatchCreateDelegationByAssessmentError,
batchCreateDelegationByAssessmentError_createDelegationRequest,
batchCreateDelegationByAssessmentError_errorCode,
batchCreateDelegationByAssessmentError_errorMessage,
BatchDeleteDelegationByAssessmentError (..),
newBatchDeleteDelegationByAssessmentError,
batchDeleteDelegationByAssessmentError_delegationId,
batchDeleteDelegationByAssessmentError_errorCode,
batchDeleteDelegationByAssessmentError_errorMessage,
BatchImportEvidenceToAssessmentControlError (..),
newBatchImportEvidenceToAssessmentControlError,
batchImportEvidenceToAssessmentControlError_errorCode,
batchImportEvidenceToAssessmentControlError_errorMessage,
batchImportEvidenceToAssessmentControlError_manualEvidence,
ChangeLog (..),
newChangeLog,
changeLog_action,
changeLog_createdAt,
changeLog_createdBy,
changeLog_objectName,
changeLog_objectType,
Control (..),
newControl,
control_actionPlanInstructions,
control_actionPlanTitle,
control_arn,
control_controlMappingSources,
control_controlSources,
control_createdAt,
control_createdBy,
control_description,
control_id,
control_lastUpdatedAt,
control_lastUpdatedBy,
control_name,
control_tags,
control_testingInformation,
control_type,
ControlComment (..),
newControlComment,
controlComment_authorName,
controlComment_commentBody,
controlComment_postedDate,
ControlDomainInsights (..),
newControlDomainInsights,
controlDomainInsights_controlsCountByNoncompliantEvidence,
controlDomainInsights_evidenceInsights,
controlDomainInsights_id,
controlDomainInsights_lastUpdated,
controlDomainInsights_name,
controlDomainInsights_totalControlsCount,
ControlInsightsMetadataByAssessmentItem (..),
newControlInsightsMetadataByAssessmentItem,
controlInsightsMetadataByAssessmentItem_controlSetName,
controlInsightsMetadataByAssessmentItem_evidenceInsights,
controlInsightsMetadataByAssessmentItem_id,
controlInsightsMetadataByAssessmentItem_lastUpdated,
controlInsightsMetadataByAssessmentItem_name,
ControlInsightsMetadataItem (..),
newControlInsightsMetadataItem,
controlInsightsMetadataItem_evidenceInsights,
controlInsightsMetadataItem_id,
controlInsightsMetadataItem_lastUpdated,
controlInsightsMetadataItem_name,
ControlMappingSource (..),
newControlMappingSource,
controlMappingSource_sourceDescription,
controlMappingSource_sourceFrequency,
controlMappingSource_sourceId,
controlMappingSource_sourceKeyword,
controlMappingSource_sourceName,
controlMappingSource_sourceSetUpOption,
controlMappingSource_sourceType,
controlMappingSource_troubleshootingText,
ControlMetadata (..),
newControlMetadata,
controlMetadata_arn,
controlMetadata_controlSources,
controlMetadata_createdAt,
controlMetadata_id,
controlMetadata_lastUpdatedAt,
controlMetadata_name,
ControlSet (..),
newControlSet,
controlSet_controls,
controlSet_id,
controlSet_name,
CreateAssessmentFrameworkControl (..),
newCreateAssessmentFrameworkControl,
createAssessmentFrameworkControl_id,
CreateAssessmentFrameworkControlSet (..),
newCreateAssessmentFrameworkControlSet,
createAssessmentFrameworkControlSet_controls,
createAssessmentFrameworkControlSet_name,
CreateControlMappingSource (..),
newCreateControlMappingSource,
createControlMappingSource_sourceDescription,
createControlMappingSource_sourceFrequency,
createControlMappingSource_sourceKeyword,
createControlMappingSource_sourceName,
createControlMappingSource_sourceSetUpOption,
createControlMappingSource_sourceType,
createControlMappingSource_troubleshootingText,
CreateDelegationRequest (..),
newCreateDelegationRequest,
createDelegationRequest_comment,
createDelegationRequest_controlSetId,
createDelegationRequest_roleArn,
createDelegationRequest_roleType,
Delegation (..),
newDelegation,
delegation_assessmentId,
delegation_assessmentName,
delegation_comment,
delegation_controlSetId,
delegation_createdBy,
delegation_creationTime,
delegation_id,
delegation_lastUpdated,
delegation_roleArn,
delegation_roleType,
delegation_status,
DelegationMetadata (..),
newDelegationMetadata,
delegationMetadata_assessmentId,
delegationMetadata_assessmentName,
delegationMetadata_controlSetName,
delegationMetadata_creationTime,
delegationMetadata_id,
delegationMetadata_roleArn,
delegationMetadata_status,
DeregistrationPolicy (..),
newDeregistrationPolicy,
deregistrationPolicy_deleteResources,
Evidence (..),
newEvidence,
evidence_assessmentReportSelection,
evidence_attributes,
evidence_awsAccountId,
evidence_awsOrganization,
evidence_complianceCheck,
evidence_dataSource,
evidence_eventName,
evidence_eventSource,
evidence_evidenceAwsAccountId,
evidence_evidenceByType,
evidence_evidenceFolderId,
evidence_iamId,
evidence_id,
evidence_resourcesIncluded,
evidence_time,
EvidenceFinderEnablement (..),
newEvidenceFinderEnablement,
evidenceFinderEnablement_backfillStatus,
evidenceFinderEnablement_enablementStatus,
evidenceFinderEnablement_error,
evidenceFinderEnablement_eventDataStoreArn,
EvidenceInsights (..),
newEvidenceInsights,
evidenceInsights_compliantEvidenceCount,
evidenceInsights_inconclusiveEvidenceCount,
evidenceInsights_noncompliantEvidenceCount,
Framework (..),
newFramework,
framework_arn,
framework_complianceType,
framework_controlSets,
framework_controlSources,
framework_createdAt,
framework_createdBy,
framework_description,
framework_id,
framework_lastUpdatedAt,
framework_lastUpdatedBy,
framework_logo,
framework_name,
framework_tags,
framework_type,
FrameworkMetadata (..),
newFrameworkMetadata,
frameworkMetadata_complianceType,
frameworkMetadata_description,
frameworkMetadata_logo,
frameworkMetadata_name,
Insights (..),
newInsights,
insights_activeAssessmentsCount,
insights_assessmentControlsCountByNoncompliantEvidence,
insights_compliantEvidenceCount,
insights_inconclusiveEvidenceCount,
insights_lastUpdated,
insights_noncompliantEvidenceCount,
insights_totalAssessmentControlsCount,
InsightsByAssessment (..),
newInsightsByAssessment,
insightsByAssessment_assessmentControlsCountByNoncompliantEvidence,
insightsByAssessment_compliantEvidenceCount,
insightsByAssessment_inconclusiveEvidenceCount,
insightsByAssessment_lastUpdated,
insightsByAssessment_noncompliantEvidenceCount,
insightsByAssessment_totalAssessmentControlsCount,
ManualEvidence (..),
newManualEvidence,
manualEvidence_s3ResourcePath,
Notification (..),
newNotification,
notification_assessmentId,
notification_assessmentName,
notification_controlSetId,
notification_controlSetName,
notification_description,
notification_eventTime,
notification_id,
notification_source,
Resource (..),
newResource,
resource_arn,
resource_complianceCheck,
resource_value,
Role (..),
newRole,
role_roleType,
role_roleArn,
Scope (..),
newScope,
scope_awsAccounts,
scope_awsServices,
ServiceMetadata (..),
newServiceMetadata,
serviceMetadata_category,
serviceMetadata_description,
serviceMetadata_displayName,
serviceMetadata_name,
Settings (..),
newSettings,
settings_defaultAssessmentReportsDestination,
settings_defaultProcessOwners,
settings_deregistrationPolicy,
settings_evidenceFinderEnablement,
settings_isAwsOrgEnabled,
settings_kmsKey,
settings_snsTopic,
SourceKeyword (..),
newSourceKeyword,
sourceKeyword_keywordInputType,
sourceKeyword_keywordValue,
URL (..),
newURL,
url_hyperlinkName,
url_link,
UpdateAssessmentFrameworkControlSet (..),
newUpdateAssessmentFrameworkControlSet,
updateAssessmentFrameworkControlSet_id,
updateAssessmentFrameworkControlSet_name,
updateAssessmentFrameworkControlSet_controls,
)
where
import Amazonka.AuditManager.Types.AWSAccount
import Amazonka.AuditManager.Types.AWSService
import Amazonka.AuditManager.Types.AccountStatus
import Amazonka.AuditManager.Types.ActionEnum
import Amazonka.AuditManager.Types.Assessment
import Amazonka.AuditManager.Types.AssessmentControl
import Amazonka.AuditManager.Types.AssessmentControlSet
import Amazonka.AuditManager.Types.AssessmentEvidenceFolder
import Amazonka.AuditManager.Types.AssessmentFramework
import Amazonka.AuditManager.Types.AssessmentFrameworkMetadata
import Amazonka.AuditManager.Types.AssessmentFrameworkShareRequest
import Amazonka.AuditManager.Types.AssessmentMetadata
import Amazonka.AuditManager.Types.AssessmentMetadataItem
import Amazonka.AuditManager.Types.AssessmentReport
import Amazonka.AuditManager.Types.AssessmentReportDestinationType
import Amazonka.AuditManager.Types.AssessmentReportEvidenceError
import Amazonka.AuditManager.Types.AssessmentReportMetadata
import Amazonka.AuditManager.Types.AssessmentReportStatus
import Amazonka.AuditManager.Types.AssessmentReportsDestination
import Amazonka.AuditManager.Types.AssessmentStatus
import Amazonka.AuditManager.Types.BatchCreateDelegationByAssessmentError
import Amazonka.AuditManager.Types.BatchDeleteDelegationByAssessmentError
import Amazonka.AuditManager.Types.BatchImportEvidenceToAssessmentControlError
import Amazonka.AuditManager.Types.ChangeLog
import Amazonka.AuditManager.Types.Control
import Amazonka.AuditManager.Types.ControlComment
import Amazonka.AuditManager.Types.ControlDomainInsights
import Amazonka.AuditManager.Types.ControlInsightsMetadataByAssessmentItem
import Amazonka.AuditManager.Types.ControlInsightsMetadataItem
import Amazonka.AuditManager.Types.ControlMappingSource
import Amazonka.AuditManager.Types.ControlMetadata
import Amazonka.AuditManager.Types.ControlResponse
import Amazonka.AuditManager.Types.ControlSet
import Amazonka.AuditManager.Types.ControlSetStatus
import Amazonka.AuditManager.Types.ControlStatus
import Amazonka.AuditManager.Types.ControlType
import Amazonka.AuditManager.Types.CreateAssessmentFrameworkControl
import Amazonka.AuditManager.Types.CreateAssessmentFrameworkControlSet
import Amazonka.AuditManager.Types.CreateControlMappingSource
import Amazonka.AuditManager.Types.CreateDelegationRequest
import Amazonka.AuditManager.Types.Delegation
import Amazonka.AuditManager.Types.DelegationMetadata
import Amazonka.AuditManager.Types.DelegationStatus
import Amazonka.AuditManager.Types.DeleteResources
import Amazonka.AuditManager.Types.DeregistrationPolicy
import Amazonka.AuditManager.Types.Evidence
import Amazonka.AuditManager.Types.EvidenceFinderBackfillStatus
import Amazonka.AuditManager.Types.EvidenceFinderEnablement
import Amazonka.AuditManager.Types.EvidenceFinderEnablementStatus
import Amazonka.AuditManager.Types.EvidenceInsights
import Amazonka.AuditManager.Types.Framework
import Amazonka.AuditManager.Types.FrameworkMetadata
import Amazonka.AuditManager.Types.FrameworkType
import Amazonka.AuditManager.Types.Insights
import Amazonka.AuditManager.Types.InsightsByAssessment
import Amazonka.AuditManager.Types.KeywordInputType
import Amazonka.AuditManager.Types.ManualEvidence
import Amazonka.AuditManager.Types.Notification
import Amazonka.AuditManager.Types.ObjectTypeEnum
import Amazonka.AuditManager.Types.Resource
import Amazonka.AuditManager.Types.Role
import Amazonka.AuditManager.Types.RoleType
import Amazonka.AuditManager.Types.Scope
import Amazonka.AuditManager.Types.ServiceMetadata
import Amazonka.AuditManager.Types.SettingAttribute
import Amazonka.AuditManager.Types.Settings
import Amazonka.AuditManager.Types.ShareRequestAction
import Amazonka.AuditManager.Types.ShareRequestStatus
import Amazonka.AuditManager.Types.ShareRequestType
import Amazonka.AuditManager.Types.SourceFrequency
import Amazonka.AuditManager.Types.SourceKeyword
import Amazonka.AuditManager.Types.SourceSetUpOption
import Amazonka.AuditManager.Types.SourceType
import Amazonka.AuditManager.Types.URL
import Amazonka.AuditManager.Types.UpdateAssessmentFrameworkControlSet
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
"AuditManager",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"auditmanager",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"auditmanager",
$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
"AuditManager",
$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
_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
404
_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
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException :: forall a. AsError a => Fold a ServiceError
_ThrottlingException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
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
_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