{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MGN.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_InternalServerException,
_ResourceNotFoundException,
_ServiceQuotaExceededException,
_ThrottlingException,
_UninitializedAccountException,
_ValidationException,
ApplicationHealthStatus (..),
ApplicationProgressStatus (..),
BootMode (..),
ChangeServerLifeCycleStateSourceServerLifecycleState (..),
DataReplicationErrorString (..),
DataReplicationInitiationStepName (..),
DataReplicationInitiationStepStatus (..),
DataReplicationState (..),
FirstBoot (..),
InitiatedBy (..),
JobLogEvent (..),
JobStatus (..),
JobType (..),
LaunchDisposition (..),
LaunchStatus (..),
LifeCycleState (..),
PostLaunchActionExecutionStatus (..),
PostLaunchActionsDeploymentType (..),
ReplicationConfigurationDataPlaneRouting (..),
ReplicationConfigurationDefaultLargeStagingDiskType (..),
ReplicationConfigurationEbsEncryption (..),
ReplicationConfigurationReplicatedDiskStagingDiskType (..),
ReplicationType (..),
SsmDocumentType (..),
SsmParameterStoreParameterType (..),
TargetInstanceTypeRightSizingMethod (..),
VolumeType (..),
WaveHealthStatus (..),
WaveProgressStatus (..),
Application (..),
newApplication,
application_applicationAggregatedStatus,
application_applicationID,
application_arn,
application_creationDateTime,
application_description,
application_isArchived,
application_lastModifiedDateTime,
application_name,
application_tags,
application_waveID,
ApplicationAggregatedStatus (..),
newApplicationAggregatedStatus,
applicationAggregatedStatus_healthStatus,
applicationAggregatedStatus_lastUpdateDateTime,
applicationAggregatedStatus_progressStatus,
applicationAggregatedStatus_totalSourceServers,
CPU (..),
newCPU,
cpu_cores,
cpu_modelName,
ChangeServerLifeCycleStateSourceServerLifecycle (..),
newChangeServerLifeCycleStateSourceServerLifecycle,
changeServerLifeCycleStateSourceServerLifecycle_state,
DataReplicationError (..),
newDataReplicationError,
dataReplicationError_error,
dataReplicationError_rawError,
DataReplicationInfo (..),
newDataReplicationInfo,
dataReplicationInfo_dataReplicationError,
dataReplicationInfo_dataReplicationInitiation,
dataReplicationInfo_dataReplicationState,
dataReplicationInfo_etaDateTime,
dataReplicationInfo_lagDuration,
dataReplicationInfo_lastSnapshotDateTime,
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,
DescribeSourceServersRequestFilters (..),
newDescribeSourceServersRequestFilters,
describeSourceServersRequestFilters_applicationIDs,
describeSourceServersRequestFilters_isArchived,
describeSourceServersRequestFilters_lifeCycleStates,
describeSourceServersRequestFilters_replicationTypes,
describeSourceServersRequestFilters_sourceServerIDs,
Disk (..),
newDisk,
disk_bytes,
disk_deviceName,
IdentificationHints (..),
newIdentificationHints,
identificationHints_awsInstanceID,
identificationHints_fqdn,
identificationHints_hostname,
identificationHints_vmPath,
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_conversionServerID,
jobLogEventData_rawError,
jobLogEventData_sourceServerID,
jobLogEventData_targetInstanceID,
JobPostLaunchActionsLaunchStatus (..),
newJobPostLaunchActionsLaunchStatus,
jobPostLaunchActionsLaunchStatus_executionID,
jobPostLaunchActionsLaunchStatus_executionStatus,
jobPostLaunchActionsLaunchStatus_failureReason,
jobPostLaunchActionsLaunchStatus_ssmDocument,
jobPostLaunchActionsLaunchStatus_ssmDocumentType,
LaunchConfiguration (..),
newLaunchConfiguration,
launchConfiguration_bootMode,
launchConfiguration_copyPrivateIp,
launchConfiguration_copyTags,
launchConfiguration_ec2LaunchTemplateID,
launchConfiguration_enableMapAutoTagging,
launchConfiguration_launchDisposition,
launchConfiguration_licensing,
launchConfiguration_mapAutoTaggingMpeID,
launchConfiguration_name,
launchConfiguration_postLaunchActions,
launchConfiguration_sourceServerID,
launchConfiguration_targetInstanceTypeRightSizingMethod,
LaunchConfigurationTemplate (..),
newLaunchConfigurationTemplate,
launchConfigurationTemplate_arn,
launchConfigurationTemplate_associatePublicIpAddress,
launchConfigurationTemplate_bootMode,
launchConfigurationTemplate_copyPrivateIp,
launchConfigurationTemplate_copyTags,
launchConfigurationTemplate_ec2LaunchTemplateID,
launchConfigurationTemplate_enableMapAutoTagging,
launchConfigurationTemplate_largeVolumeConf,
launchConfigurationTemplate_launchDisposition,
launchConfigurationTemplate_licensing,
launchConfigurationTemplate_mapAutoTaggingMpeID,
launchConfigurationTemplate_postLaunchActions,
launchConfigurationTemplate_smallVolumeConf,
launchConfigurationTemplate_smallVolumeMaxSize,
launchConfigurationTemplate_tags,
launchConfigurationTemplate_targetInstanceTypeRightSizingMethod,
launchConfigurationTemplate_launchConfigurationTemplateID,
LaunchTemplateDiskConf (..),
newLaunchTemplateDiskConf,
launchTemplateDiskConf_iops,
launchTemplateDiskConf_throughput,
launchTemplateDiskConf_volumeType,
LaunchedInstance (..),
newLaunchedInstance,
launchedInstance_ec2InstanceID,
launchedInstance_firstBoot,
launchedInstance_jobID,
Licensing (..),
newLicensing,
licensing_osByol,
LifeCycle (..),
newLifeCycle,
lifeCycle_addedToServiceDateTime,
lifeCycle_elapsedReplicationDuration,
lifeCycle_firstByteDateTime,
lifeCycle_lastCutover,
lifeCycle_lastSeenByServiceDateTime,
lifeCycle_lastTest,
lifeCycle_state,
LifeCycleLastCutover (..),
newLifeCycleLastCutover,
lifeCycleLastCutover_finalized,
lifeCycleLastCutover_initiated,
lifeCycleLastCutover_reverted,
LifeCycleLastCutoverFinalized (..),
newLifeCycleLastCutoverFinalized,
lifeCycleLastCutoverFinalized_apiCallDateTime,
LifeCycleLastCutoverInitiated (..),
newLifeCycleLastCutoverInitiated,
lifeCycleLastCutoverInitiated_apiCallDateTime,
lifeCycleLastCutoverInitiated_jobID,
LifeCycleLastCutoverReverted (..),
newLifeCycleLastCutoverReverted,
lifeCycleLastCutoverReverted_apiCallDateTime,
LifeCycleLastTest (..),
newLifeCycleLastTest,
lifeCycleLastTest_finalized,
lifeCycleLastTest_initiated,
lifeCycleLastTest_reverted,
LifeCycleLastTestFinalized (..),
newLifeCycleLastTestFinalized,
lifeCycleLastTestFinalized_apiCallDateTime,
LifeCycleLastTestInitiated (..),
newLifeCycleLastTestInitiated,
lifeCycleLastTestInitiated_apiCallDateTime,
lifeCycleLastTestInitiated_jobID,
LifeCycleLastTestReverted (..),
newLifeCycleLastTestReverted,
lifeCycleLastTestReverted_apiCallDateTime,
ListApplicationsRequestFilters (..),
newListApplicationsRequestFilters,
listApplicationsRequestFilters_applicationIDs,
listApplicationsRequestFilters_isArchived,
listApplicationsRequestFilters_waveIDs,
ListWavesRequestFilters (..),
newListWavesRequestFilters,
listWavesRequestFilters_isArchived,
listWavesRequestFilters_waveIDs,
NetworkInterface (..),
newNetworkInterface,
networkInterface_ips,
networkInterface_isPrimary,
networkInterface_macAddress,
OS (..),
newOS,
os_fullString,
ParticipatingServer (..),
newParticipatingServer,
participatingServer_launchStatus,
participatingServer_launchedEc2InstanceID,
participatingServer_postLaunchActionsStatus,
participatingServer_sourceServerID,
PostLaunchActions (..),
newPostLaunchActions,
postLaunchActions_cloudWatchLogGroupName,
postLaunchActions_deployment,
postLaunchActions_s3LogBucket,
postLaunchActions_s3OutputKeyPrefix,
postLaunchActions_ssmDocuments,
PostLaunchActionsStatus (..),
newPostLaunchActionsStatus,
postLaunchActionsStatus_postLaunchActionsLaunchStatusList,
postLaunchActionsStatus_ssmAgentDiscoveryDatetime,
ReplicationConfiguration (..),
newReplicationConfiguration,
replicationConfiguration_associateDefaultSecurityGroup,
replicationConfiguration_bandwidthThrottling,
replicationConfiguration_createPublicIP,
replicationConfiguration_dataPlaneRouting,
replicationConfiguration_defaultLargeStagingDiskType,
replicationConfiguration_ebsEncryption,
replicationConfiguration_ebsEncryptionKeyArn,
replicationConfiguration_name,
replicationConfiguration_replicatedDisks,
replicationConfiguration_replicationServerInstanceType,
replicationConfiguration_replicationServersSecurityGroupsIDs,
replicationConfiguration_sourceServerID,
replicationConfiguration_stagingAreaSubnetId,
replicationConfiguration_stagingAreaTags,
replicationConfiguration_useDedicatedReplicationServer,
ReplicationConfigurationReplicatedDisk (..),
newReplicationConfigurationReplicatedDisk,
replicationConfigurationReplicatedDisk_deviceName,
replicationConfigurationReplicatedDisk_iops,
replicationConfigurationReplicatedDisk_isBootDisk,
replicationConfigurationReplicatedDisk_stagingDiskType,
replicationConfigurationReplicatedDisk_throughput,
ReplicationConfigurationTemplate (..),
newReplicationConfigurationTemplate,
replicationConfigurationTemplate_arn,
replicationConfigurationTemplate_associateDefaultSecurityGroup,
replicationConfigurationTemplate_bandwidthThrottling,
replicationConfigurationTemplate_createPublicIP,
replicationConfigurationTemplate_dataPlaneRouting,
replicationConfigurationTemplate_defaultLargeStagingDiskType,
replicationConfigurationTemplate_ebsEncryption,
replicationConfigurationTemplate_ebsEncryptionKeyArn,
replicationConfigurationTemplate_replicationServerInstanceType,
replicationConfigurationTemplate_replicationServersSecurityGroupsIDs,
replicationConfigurationTemplate_stagingAreaSubnetId,
replicationConfigurationTemplate_stagingAreaTags,
replicationConfigurationTemplate_tags,
replicationConfigurationTemplate_useDedicatedReplicationServer,
replicationConfigurationTemplate_replicationConfigurationTemplateID,
SourceProperties (..),
newSourceProperties,
sourceProperties_cpus,
sourceProperties_disks,
sourceProperties_identificationHints,
sourceProperties_lastUpdatedDateTime,
sourceProperties_networkInterfaces,
sourceProperties_os,
sourceProperties_ramBytes,
sourceProperties_recommendedInstanceType,
SourceServer (..),
newSourceServer,
sourceServer_applicationID,
sourceServer_arn,
sourceServer_dataReplicationInfo,
sourceServer_isArchived,
sourceServer_launchedInstance,
sourceServer_lifeCycle,
sourceServer_replicationType,
sourceServer_sourceProperties,
sourceServer_sourceServerID,
sourceServer_tags,
sourceServer_vcenterClientID,
SourceServerActionDocument (..),
newSourceServerActionDocument,
sourceServerActionDocument_actionID,
sourceServerActionDocument_actionName,
sourceServerActionDocument_active,
sourceServerActionDocument_documentIdentifier,
sourceServerActionDocument_documentVersion,
sourceServerActionDocument_mustSucceedForCutover,
sourceServerActionDocument_order,
sourceServerActionDocument_parameters,
sourceServerActionDocument_timeoutSeconds,
SourceServerActionsRequestFilters (..),
newSourceServerActionsRequestFilters,
sourceServerActionsRequestFilters_actionIDs,
SsmDocument (..),
newSsmDocument,
ssmDocument_mustSucceedForCutover,
ssmDocument_parameters,
ssmDocument_timeoutSeconds,
ssmDocument_actionName,
ssmDocument_ssmDocumentName,
SsmParameterStoreParameter (..),
newSsmParameterStoreParameter,
ssmParameterStoreParameter_parameterName,
ssmParameterStoreParameter_parameterType,
TemplateActionDocument (..),
newTemplateActionDocument,
templateActionDocument_actionID,
templateActionDocument_actionName,
templateActionDocument_active,
templateActionDocument_documentIdentifier,
templateActionDocument_documentVersion,
templateActionDocument_mustSucceedForCutover,
templateActionDocument_operatingSystem,
templateActionDocument_order,
templateActionDocument_parameters,
templateActionDocument_timeoutSeconds,
TemplateActionsRequestFilters (..),
newTemplateActionsRequestFilters,
templateActionsRequestFilters_actionIDs,
VcenterClient (..),
newVcenterClient,
vcenterClient_arn,
vcenterClient_datacenterName,
vcenterClient_hostname,
vcenterClient_lastSeenDatetime,
vcenterClient_sourceServerTags,
vcenterClient_tags,
vcenterClient_vcenterClientID,
vcenterClient_vcenterUUID,
Wave (..),
newWave,
wave_arn,
wave_creationDateTime,
wave_description,
wave_isArchived,
wave_lastModifiedDateTime,
wave_name,
wave_tags,
wave_waveAggregatedStatus,
wave_waveID,
WaveAggregatedStatus (..),
newWaveAggregatedStatus,
waveAggregatedStatus_healthStatus,
waveAggregatedStatus_lastUpdateDateTime,
waveAggregatedStatus_progressStatus,
waveAggregatedStatus_replicationStartedDateTime,
waveAggregatedStatus_totalApplications,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.MGN.Types.Application
import Amazonka.MGN.Types.ApplicationAggregatedStatus
import Amazonka.MGN.Types.ApplicationHealthStatus
import Amazonka.MGN.Types.ApplicationProgressStatus
import Amazonka.MGN.Types.BootMode
import Amazonka.MGN.Types.CPU
import Amazonka.MGN.Types.ChangeServerLifeCycleStateSourceServerLifecycle
import Amazonka.MGN.Types.ChangeServerLifeCycleStateSourceServerLifecycleState
import Amazonka.MGN.Types.DataReplicationError
import Amazonka.MGN.Types.DataReplicationErrorString
import Amazonka.MGN.Types.DataReplicationInfo
import Amazonka.MGN.Types.DataReplicationInfoReplicatedDisk
import Amazonka.MGN.Types.DataReplicationInitiation
import Amazonka.MGN.Types.DataReplicationInitiationStep
import Amazonka.MGN.Types.DataReplicationInitiationStepName
import Amazonka.MGN.Types.DataReplicationInitiationStepStatus
import Amazonka.MGN.Types.DataReplicationState
import Amazonka.MGN.Types.DescribeJobsRequestFilters
import Amazonka.MGN.Types.DescribeSourceServersRequestFilters
import Amazonka.MGN.Types.Disk
import Amazonka.MGN.Types.FirstBoot
import Amazonka.MGN.Types.IdentificationHints
import Amazonka.MGN.Types.InitiatedBy
import Amazonka.MGN.Types.Job
import Amazonka.MGN.Types.JobLog
import Amazonka.MGN.Types.JobLogEvent
import Amazonka.MGN.Types.JobLogEventData
import Amazonka.MGN.Types.JobPostLaunchActionsLaunchStatus
import Amazonka.MGN.Types.JobStatus
import Amazonka.MGN.Types.JobType
import Amazonka.MGN.Types.LaunchConfiguration
import Amazonka.MGN.Types.LaunchConfigurationTemplate
import Amazonka.MGN.Types.LaunchDisposition
import Amazonka.MGN.Types.LaunchStatus
import Amazonka.MGN.Types.LaunchTemplateDiskConf
import Amazonka.MGN.Types.LaunchedInstance
import Amazonka.MGN.Types.Licensing
import Amazonka.MGN.Types.LifeCycle
import Amazonka.MGN.Types.LifeCycleLastCutover
import Amazonka.MGN.Types.LifeCycleLastCutoverFinalized
import Amazonka.MGN.Types.LifeCycleLastCutoverInitiated
import Amazonka.MGN.Types.LifeCycleLastCutoverReverted
import Amazonka.MGN.Types.LifeCycleLastTest
import Amazonka.MGN.Types.LifeCycleLastTestFinalized
import Amazonka.MGN.Types.LifeCycleLastTestInitiated
import Amazonka.MGN.Types.LifeCycleLastTestReverted
import Amazonka.MGN.Types.LifeCycleState
import Amazonka.MGN.Types.ListApplicationsRequestFilters
import Amazonka.MGN.Types.ListWavesRequestFilters
import Amazonka.MGN.Types.NetworkInterface
import Amazonka.MGN.Types.OS
import Amazonka.MGN.Types.ParticipatingServer
import Amazonka.MGN.Types.PostLaunchActionExecutionStatus
import Amazonka.MGN.Types.PostLaunchActions
import Amazonka.MGN.Types.PostLaunchActionsDeploymentType
import Amazonka.MGN.Types.PostLaunchActionsStatus
import Amazonka.MGN.Types.ReplicationConfiguration
import Amazonka.MGN.Types.ReplicationConfigurationDataPlaneRouting
import Amazonka.MGN.Types.ReplicationConfigurationDefaultLargeStagingDiskType
import Amazonka.MGN.Types.ReplicationConfigurationEbsEncryption
import Amazonka.MGN.Types.ReplicationConfigurationReplicatedDisk
import Amazonka.MGN.Types.ReplicationConfigurationReplicatedDiskStagingDiskType
import Amazonka.MGN.Types.ReplicationConfigurationTemplate
import Amazonka.MGN.Types.ReplicationType
import Amazonka.MGN.Types.SourceProperties
import Amazonka.MGN.Types.SourceServer
import Amazonka.MGN.Types.SourceServerActionDocument
import Amazonka.MGN.Types.SourceServerActionsRequestFilters
import Amazonka.MGN.Types.SsmDocument
import Amazonka.MGN.Types.SsmDocumentType
import Amazonka.MGN.Types.SsmParameterStoreParameter
import Amazonka.MGN.Types.SsmParameterStoreParameterType
import Amazonka.MGN.Types.TargetInstanceTypeRightSizingMethod
import Amazonka.MGN.Types.TemplateActionDocument
import Amazonka.MGN.Types.TemplateActionsRequestFilters
import Amazonka.MGN.Types.VcenterClient
import Amazonka.MGN.Types.VolumeType
import Amazonka.MGN.Types.Wave
import Amazonka.MGN.Types.WaveAggregatedStatus
import Amazonka.MGN.Types.WaveHealthStatus
import Amazonka.MGN.Types.WaveProgressStatus
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
"MGN",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"mgn",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"mgn",
$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
"MGN",
$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