{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DrS.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ThrottlingException,
_UninitializedAccountException,
_ValidationException,
DataReplicationErrorString (..),
DataReplicationInitiationStepName (..),
DataReplicationInitiationStepStatus (..),
DataReplicationState (..),
EC2InstanceState (..),
ExtensionStatus (..),
FailbackLaunchType (..),
FailbackReplicationError (..),
FailbackState (..),
InitiatedBy (..),
JobLogEvent (..),
JobStatus (..),
JobType (..),
LastLaunchResult (..),
LastLaunchType (..),
LaunchDisposition (..),
LaunchStatus (..),
OriginEnvironment (..),
PITPolicyRuleUnits (..),
RecoveryInstanceDataReplicationInitiationStepName (..),
RecoveryInstanceDataReplicationInitiationStepStatus (..),
RecoveryInstanceDataReplicationState (..),
RecoverySnapshotsOrder (..),
ReplicationConfigurationDataPlaneRouting (..),
ReplicationConfigurationDefaultLargeStagingDiskType (..),
ReplicationConfigurationEbsEncryption (..),
ReplicationConfigurationReplicatedDiskStagingDiskType (..),
ReplicationDirection (..),
TargetInstanceTypeRightSizingMethod (..),
Account (..),
newAccount,
account_accountID,
CPU (..),
newCPU,
cpu_cores,
cpu_modelName,
ConversionProperties (..),
newConversionProperties,
conversionProperties_dataTimestamp,
conversionProperties_forceUefi,
conversionProperties_rootVolumeName,
conversionProperties_volumeToConversionMap,
conversionProperties_volumeToVolumeSize,
DataReplicationError (..),
newDataReplicationError,
dataReplicationError_error,
dataReplicationError_rawError,
DataReplicationInfo (..),
newDataReplicationInfo,
dataReplicationInfo_dataReplicationError,
dataReplicationInfo_dataReplicationInitiation,
dataReplicationInfo_dataReplicationState,
dataReplicationInfo_etaDateTime,
dataReplicationInfo_lagDuration,
dataReplicationInfo_replicatedDisks,
DataReplicationInfoReplicatedDisk (..),
newDataReplicationInfoReplicatedDisk,
dataReplicationInfoReplicatedDisk_backloggedStorageBytes,
dataReplicationInfoReplicatedDisk_deviceName,
dataReplicationInfoReplicatedDisk_replicatedStorageBytes,
dataReplicationInfoReplicatedDisk_rescannedStorageBytes,
dataReplicationInfoReplicatedDisk_totalStorageBytes,
DataReplicationInitiation (..),
newDataReplicationInitiation,
dataReplicationInitiation_nextAttemptDateTime,
dataReplicationInitiation_startDateTime,
dataReplicationInitiation_steps,
DataReplicationInitiationStep (..),
newDataReplicationInitiationStep,
dataReplicationInitiationStep_name,
dataReplicationInitiationStep_status,
DescribeJobsRequestFilters (..),
newDescribeJobsRequestFilters,
describeJobsRequestFilters_fromDate,
describeJobsRequestFilters_jobIDs,
describeJobsRequestFilters_toDate,
DescribeRecoveryInstancesRequestFilters (..),
newDescribeRecoveryInstancesRequestFilters,
describeRecoveryInstancesRequestFilters_recoveryInstanceIDs,
describeRecoveryInstancesRequestFilters_sourceServerIDs,
DescribeRecoverySnapshotsRequestFilters (..),
newDescribeRecoverySnapshotsRequestFilters,
describeRecoverySnapshotsRequestFilters_fromDateTime,
describeRecoverySnapshotsRequestFilters_toDateTime,
DescribeSourceServersRequestFilters (..),
newDescribeSourceServersRequestFilters,
describeSourceServersRequestFilters_hardwareId,
describeSourceServersRequestFilters_sourceServerIDs,
describeSourceServersRequestFilters_stagingAccountIDs,
Disk (..),
newDisk,
disk_bytes,
disk_deviceName,
IdentificationHints (..),
newIdentificationHints,
identificationHints_awsInstanceID,
identificationHints_fqdn,
identificationHints_hostname,
identificationHints_vmWareUuid,
Job (..),
newJob,
job_arn,
job_creationDateTime,
job_endDateTime,
job_initiatedBy,
job_participatingServers,
job_status,
job_tags,
job_type,
job_jobID,
JobLog (..),
newJobLog,
jobLog_event,
jobLog_eventData,
jobLog_logDateTime,
JobLogEventData (..),
newJobLogEventData,
jobLogEventData_conversionProperties,
jobLogEventData_conversionServerID,
jobLogEventData_rawError,
jobLogEventData_sourceServerID,
jobLogEventData_targetInstanceID,
LaunchConfiguration (..),
newLaunchConfiguration,
launchConfiguration_copyPrivateIp,
launchConfiguration_copyTags,
launchConfiguration_ec2LaunchTemplateID,
launchConfiguration_launchDisposition,
launchConfiguration_licensing,
launchConfiguration_name,
launchConfiguration_sourceServerID,
launchConfiguration_targetInstanceTypeRightSizingMethod,
Licensing (..),
newLicensing,
licensing_osByol,
LifeCycle (..),
newLifeCycle,
lifeCycle_addedToServiceDateTime,
lifeCycle_elapsedReplicationDuration,
lifeCycle_firstByteDateTime,
lifeCycle_lastLaunch,
lifeCycle_lastSeenByServiceDateTime,
LifeCycleLastLaunch (..),
newLifeCycleLastLaunch,
lifeCycleLastLaunch_initiated,
LifeCycleLastLaunchInitiated (..),
newLifeCycleLastLaunchInitiated,
lifeCycleLastLaunchInitiated_apiCallDateTime,
lifeCycleLastLaunchInitiated_jobID,
lifeCycleLastLaunchInitiated_type,
NetworkInterface (..),
newNetworkInterface,
networkInterface_ips,
networkInterface_isPrimary,
networkInterface_macAddress,
OS (..),
newOS,
os_fullString,
PITPolicyRule (..),
newPITPolicyRule,
pITPolicyRule_enabled,
pITPolicyRule_ruleID,
pITPolicyRule_interval,
pITPolicyRule_retentionDuration,
pITPolicyRule_units,
ParticipatingServer (..),
newParticipatingServer,
participatingServer_launchStatus,
participatingServer_recoveryInstanceID,
participatingServer_sourceServerID,
RecoveryInstance (..),
newRecoveryInstance,
recoveryInstance_arn,
recoveryInstance_dataReplicationInfo,
recoveryInstance_ec2InstanceID,
recoveryInstance_ec2InstanceState,
recoveryInstance_failback,
recoveryInstance_isDrill,
recoveryInstance_jobID,
recoveryInstance_originEnvironment,
recoveryInstance_pointInTimeSnapshotDateTime,
recoveryInstance_recoveryInstanceID,
recoveryInstance_recoveryInstanceProperties,
recoveryInstance_sourceServerID,
recoveryInstance_tags,
RecoveryInstanceDataReplicationError (..),
newRecoveryInstanceDataReplicationError,
recoveryInstanceDataReplicationError_error,
recoveryInstanceDataReplicationError_rawError,
RecoveryInstanceDataReplicationInfo (..),
newRecoveryInstanceDataReplicationInfo,
recoveryInstanceDataReplicationInfo_dataReplicationError,
recoveryInstanceDataReplicationInfo_dataReplicationInitiation,
recoveryInstanceDataReplicationInfo_dataReplicationState,
recoveryInstanceDataReplicationInfo_etaDateTime,
recoveryInstanceDataReplicationInfo_lagDuration,
recoveryInstanceDataReplicationInfo_replicatedDisks,
RecoveryInstanceDataReplicationInfoReplicatedDisk (..),
newRecoveryInstanceDataReplicationInfoReplicatedDisk,
recoveryInstanceDataReplicationInfoReplicatedDisk_backloggedStorageBytes,
recoveryInstanceDataReplicationInfoReplicatedDisk_deviceName,
recoveryInstanceDataReplicationInfoReplicatedDisk_replicatedStorageBytes,
recoveryInstanceDataReplicationInfoReplicatedDisk_rescannedStorageBytes,
recoveryInstanceDataReplicationInfoReplicatedDisk_totalStorageBytes,
RecoveryInstanceDataReplicationInitiation (..),
newRecoveryInstanceDataReplicationInitiation,
recoveryInstanceDataReplicationInitiation_startDateTime,
recoveryInstanceDataReplicationInitiation_steps,
RecoveryInstanceDataReplicationInitiationStep (..),
newRecoveryInstanceDataReplicationInitiationStep,
recoveryInstanceDataReplicationInitiationStep_name,
recoveryInstanceDataReplicationInitiationStep_status,
RecoveryInstanceDisk (..),
newRecoveryInstanceDisk,
recoveryInstanceDisk_bytes,
recoveryInstanceDisk_ebsVolumeID,
recoveryInstanceDisk_internalDeviceName,
RecoveryInstanceFailback (..),
newRecoveryInstanceFailback,
recoveryInstanceFailback_agentLastSeenByServiceDateTime,
recoveryInstanceFailback_elapsedReplicationDuration,
recoveryInstanceFailback_failbackClientID,
recoveryInstanceFailback_failbackClientLastSeenByServiceDateTime,
recoveryInstanceFailback_failbackInitiationTime,
recoveryInstanceFailback_failbackJobID,
recoveryInstanceFailback_failbackLaunchType,
recoveryInstanceFailback_failbackToOriginalServer,
recoveryInstanceFailback_firstByteDateTime,
recoveryInstanceFailback_state,
RecoveryInstanceProperties (..),
newRecoveryInstanceProperties,
recoveryInstanceProperties_cpus,
recoveryInstanceProperties_disks,
recoveryInstanceProperties_identificationHints,
recoveryInstanceProperties_lastUpdatedDateTime,
recoveryInstanceProperties_networkInterfaces,
recoveryInstanceProperties_os,
recoveryInstanceProperties_ramBytes,
RecoverySnapshot (..),
newRecoverySnapshot,
recoverySnapshot_ebsSnapshots,
recoverySnapshot_timestamp,
recoverySnapshot_expectedTimestamp,
recoverySnapshot_snapshotID,
recoverySnapshot_sourceServerID,
ReplicationConfiguration (..),
newReplicationConfiguration,
replicationConfiguration_associateDefaultSecurityGroup,
replicationConfiguration_bandwidthThrottling,
replicationConfiguration_createPublicIP,
replicationConfiguration_dataPlaneRouting,
replicationConfiguration_defaultLargeStagingDiskType,
replicationConfiguration_ebsEncryption,
replicationConfiguration_ebsEncryptionKeyArn,
replicationConfiguration_name,
replicationConfiguration_pitPolicy,
replicationConfiguration_replicatedDisks,
replicationConfiguration_replicationServerInstanceType,
replicationConfiguration_replicationServersSecurityGroupsIDs,
replicationConfiguration_sourceServerID,
replicationConfiguration_stagingAreaSubnetId,
replicationConfiguration_stagingAreaTags,
replicationConfiguration_useDedicatedReplicationServer,
ReplicationConfigurationReplicatedDisk (..),
newReplicationConfigurationReplicatedDisk,
replicationConfigurationReplicatedDisk_deviceName,
replicationConfigurationReplicatedDisk_iops,
replicationConfigurationReplicatedDisk_isBootDisk,
replicationConfigurationReplicatedDisk_optimizedStagingDiskType,
replicationConfigurationReplicatedDisk_stagingDiskType,
replicationConfigurationReplicatedDisk_throughput,
ReplicationConfigurationTemplate (..),
newReplicationConfigurationTemplate,
replicationConfigurationTemplate_arn,
replicationConfigurationTemplate_associateDefaultSecurityGroup,
replicationConfigurationTemplate_bandwidthThrottling,
replicationConfigurationTemplate_createPublicIP,
replicationConfigurationTemplate_dataPlaneRouting,
replicationConfigurationTemplate_defaultLargeStagingDiskType,
replicationConfigurationTemplate_ebsEncryption,
replicationConfigurationTemplate_ebsEncryptionKeyArn,
replicationConfigurationTemplate_pitPolicy,
replicationConfigurationTemplate_replicationServerInstanceType,
replicationConfigurationTemplate_replicationServersSecurityGroupsIDs,
replicationConfigurationTemplate_stagingAreaSubnetId,
replicationConfigurationTemplate_stagingAreaTags,
replicationConfigurationTemplate_tags,
replicationConfigurationTemplate_useDedicatedReplicationServer,
replicationConfigurationTemplate_replicationConfigurationTemplateID,
SourceCloudProperties (..),
newSourceCloudProperties,
sourceCloudProperties_originAccountID,
sourceCloudProperties_originAvailabilityZone,
sourceCloudProperties_originRegion,
SourceProperties (..),
newSourceProperties,
sourceProperties_cpus,
sourceProperties_disks,
sourceProperties_identificationHints,
sourceProperties_lastUpdatedDateTime,
sourceProperties_networkInterfaces,
sourceProperties_os,
sourceProperties_ramBytes,
sourceProperties_recommendedInstanceType,
SourceServer (..),
newSourceServer,
sourceServer_arn,
sourceServer_dataReplicationInfo,
sourceServer_lastLaunchResult,
sourceServer_lifeCycle,
sourceServer_recoveryInstanceId,
sourceServer_replicationDirection,
sourceServer_reversedDirectionSourceServerArn,
sourceServer_sourceCloudProperties,
sourceServer_sourceProperties,
sourceServer_sourceServerID,
sourceServer_stagingArea,
sourceServer_tags,
StagingArea (..),
newStagingArea,
stagingArea_errorMessage,
stagingArea_stagingAccountID,
stagingArea_stagingSourceServerArn,
stagingArea_status,
StagingSourceServer (..),
newStagingSourceServer,
stagingSourceServer_arn,
stagingSourceServer_hostname,
stagingSourceServer_tags,
StartRecoveryRequestSourceServer (..),
newStartRecoveryRequestSourceServer,
startRecoveryRequestSourceServer_recoverySnapshotID,
startRecoveryRequestSourceServer_sourceServerID,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.DrS.Types.Account
import Amazonka.DrS.Types.CPU
import Amazonka.DrS.Types.ConversionProperties
import Amazonka.DrS.Types.DataReplicationError
import Amazonka.DrS.Types.DataReplicationErrorString
import Amazonka.DrS.Types.DataReplicationInfo
import Amazonka.DrS.Types.DataReplicationInfoReplicatedDisk
import Amazonka.DrS.Types.DataReplicationInitiation
import Amazonka.DrS.Types.DataReplicationInitiationStep
import Amazonka.DrS.Types.DataReplicationInitiationStepName
import Amazonka.DrS.Types.DataReplicationInitiationStepStatus
import Amazonka.DrS.Types.DataReplicationState
import Amazonka.DrS.Types.DescribeJobsRequestFilters
import Amazonka.DrS.Types.DescribeRecoveryInstancesRequestFilters
import Amazonka.DrS.Types.DescribeRecoverySnapshotsRequestFilters
import Amazonka.DrS.Types.DescribeSourceServersRequestFilters
import Amazonka.DrS.Types.Disk
import Amazonka.DrS.Types.EC2InstanceState
import Amazonka.DrS.Types.ExtensionStatus
import Amazonka.DrS.Types.FailbackLaunchType
import Amazonka.DrS.Types.FailbackReplicationError
import Amazonka.DrS.Types.FailbackState
import Amazonka.DrS.Types.IdentificationHints
import Amazonka.DrS.Types.InitiatedBy
import Amazonka.DrS.Types.Job
import Amazonka.DrS.Types.JobLog
import Amazonka.DrS.Types.JobLogEvent
import Amazonka.DrS.Types.JobLogEventData
import Amazonka.DrS.Types.JobStatus
import Amazonka.DrS.Types.JobType
import Amazonka.DrS.Types.LastLaunchResult
import Amazonka.DrS.Types.LastLaunchType
import Amazonka.DrS.Types.LaunchConfiguration
import Amazonka.DrS.Types.LaunchDisposition
import Amazonka.DrS.Types.LaunchStatus
import Amazonka.DrS.Types.Licensing
import Amazonka.DrS.Types.LifeCycle
import Amazonka.DrS.Types.LifeCycleLastLaunch
import Amazonka.DrS.Types.LifeCycleLastLaunchInitiated
import Amazonka.DrS.Types.NetworkInterface
import Amazonka.DrS.Types.OS
import Amazonka.DrS.Types.OriginEnvironment
import Amazonka.DrS.Types.PITPolicyRule
import Amazonka.DrS.Types.PITPolicyRuleUnits
import Amazonka.DrS.Types.ParticipatingServer
import Amazonka.DrS.Types.RecoveryInstance
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationError
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInfo
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInfoReplicatedDisk
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInitiation
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInitiationStep
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInitiationStepName
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationInitiationStepStatus
import Amazonka.DrS.Types.RecoveryInstanceDataReplicationState
import Amazonka.DrS.Types.RecoveryInstanceDisk
import Amazonka.DrS.Types.RecoveryInstanceFailback
import Amazonka.DrS.Types.RecoveryInstanceProperties
import Amazonka.DrS.Types.RecoverySnapshot
import Amazonka.DrS.Types.RecoverySnapshotsOrder
import Amazonka.DrS.Types.ReplicationConfiguration
import Amazonka.DrS.Types.ReplicationConfigurationDataPlaneRouting
import Amazonka.DrS.Types.ReplicationConfigurationDefaultLargeStagingDiskType
import Amazonka.DrS.Types.ReplicationConfigurationEbsEncryption
import Amazonka.DrS.Types.ReplicationConfigurationReplicatedDisk
import Amazonka.DrS.Types.ReplicationConfigurationReplicatedDiskStagingDiskType
import Amazonka.DrS.Types.ReplicationConfigurationTemplate
import Amazonka.DrS.Types.ReplicationDirection
import Amazonka.DrS.Types.SourceCloudProperties
import Amazonka.DrS.Types.SourceProperties
import Amazonka.DrS.Types.SourceServer
import Amazonka.DrS.Types.StagingArea
import Amazonka.DrS.Types.StagingSourceServer
import Amazonka.DrS.Types.StartRecoveryRequestSourceServer
import Amazonka.DrS.Types.TargetInstanceTypeRightSizingMethod
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
"DrS",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"drs",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"drs",
$sel:version:Service :: ByteString
Core.version = ByteString
"2020-02-26",
$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
"DrS",
$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
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
429
_UninitializedAccountException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UninitializedAccountException :: forall a. AsError a => Fold a ServiceError
_UninitializedAccountException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UninitializedAccountException"
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