{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DeviceFarm.Types
(
defaultService,
_NotEligibleException,
_CannotDeleteException,
_IdempotencyException,
_TooManyTagsException,
_ArgumentException,
_NotFoundException,
_InternalServiceException,
_TagPolicyException,
_TagOperationException,
_ServiceAccountException,
_InvalidOperationException,
_LimitExceededException,
ArtifactCategory (..),
ArtifactType (..),
BillingMethod (..),
CurrencyCode (..),
DeviceAttribute (..),
DeviceAvailability (..),
DeviceFilterAttribute (..),
DeviceFormFactor (..),
DevicePlatform (..),
DevicePoolType (..),
ExecutionResult (..),
ExecutionResultCode (..),
ExecutionStatus (..),
InstanceStatus (..),
InteractionMode (..),
NetworkProfileType (..),
OfferingTransactionType (..),
OfferingType (..),
RecurringChargeFrequency (..),
RuleOperator (..),
SampleType (..),
TestGridSessionArtifactCategory (..),
TestGridSessionArtifactType (..),
TestGridSessionStatus (..),
TestType (..),
UploadCategory (..),
UploadStatus (..),
UploadType (..),
AccountSettings (..),
newAccountSettings,
accountSettings_skipAppResign,
accountSettings_awsAccountNumber,
accountSettings_maxJobTimeoutMinutes,
accountSettings_maxSlots,
accountSettings_trialMinutes,
accountSettings_unmeteredDevices,
accountSettings_unmeteredRemoteAccessDevices,
accountSettings_defaultJobTimeoutMinutes,
Artifact (..),
newArtifact,
artifact_arn,
artifact_url,
artifact_extension,
artifact_name,
artifact_type,
CPU (..),
newCPU,
cpu_frequency,
cpu_clock,
cpu_architecture,
Counters (..),
newCounters,
counters_passed,
counters_skipped,
counters_warned,
counters_stopped,
counters_total,
counters_failed,
counters_errored,
CreateRemoteAccessSessionConfiguration (..),
newCreateRemoteAccessSessionConfiguration,
createRemoteAccessSessionConfiguration_billingMethod,
createRemoteAccessSessionConfiguration_vpceConfigurationArns,
CustomerArtifactPaths (..),
newCustomerArtifactPaths,
customerArtifactPaths_androidPaths,
customerArtifactPaths_deviceHostPaths,
customerArtifactPaths_iosPaths,
Device (..),
newDevice,
device_carrier,
device_image,
device_manufacturer,
device_platform,
device_modelId,
device_remoteAccessEnabled,
device_arn,
device_formFactor,
device_fleetType,
device_resolution,
device_availability,
device_memory,
device_radio,
device_os,
device_name,
device_model,
device_instances,
device_remoteDebugEnabled,
device_cpu,
device_heapSize,
device_fleetName,
DeviceFilter (..),
newDeviceFilter,
deviceFilter_attribute,
deviceFilter_operator,
deviceFilter_values,
DeviceInstance (..),
newDeviceInstance,
deviceInstance_status,
deviceInstance_udid,
deviceInstance_instanceProfile,
deviceInstance_arn,
deviceInstance_deviceArn,
deviceInstance_labels,
DeviceMinutes (..),
newDeviceMinutes,
deviceMinutes_metered,
deviceMinutes_total,
deviceMinutes_unmetered,
DevicePool (..),
newDevicePool,
devicePool_arn,
devicePool_rules,
devicePool_name,
devicePool_maxDevices,
devicePool_type,
devicePool_description,
DevicePoolCompatibilityResult (..),
newDevicePoolCompatibilityResult,
devicePoolCompatibilityResult_device,
devicePoolCompatibilityResult_compatible,
devicePoolCompatibilityResult_incompatibilityMessages,
DeviceSelectionConfiguration (..),
newDeviceSelectionConfiguration,
deviceSelectionConfiguration_filters,
deviceSelectionConfiguration_maxDevices,
DeviceSelectionResult (..),
newDeviceSelectionResult,
deviceSelectionResult_matchedDevicesCount,
deviceSelectionResult_filters,
deviceSelectionResult_maxDevices,
ExecutionConfiguration (..),
newExecutionConfiguration,
executionConfiguration_skipAppResign,
executionConfiguration_accountsCleanup,
executionConfiguration_appPackagesCleanup,
executionConfiguration_jobTimeoutMinutes,
executionConfiguration_videoCapture,
IncompatibilityMessage (..),
newIncompatibilityMessage,
incompatibilityMessage_type,
incompatibilityMessage_message,
InstanceProfile (..),
newInstanceProfile,
instanceProfile_arn,
instanceProfile_rebootAfterUse,
instanceProfile_name,
instanceProfile_packageCleanup,
instanceProfile_excludeAppPackagesFromCleanup,
instanceProfile_description,
Job (..),
newJob,
job_instanceArn,
job_status,
job_counters,
job_arn,
job_created,
job_device,
job_stopped,
job_result,
job_name,
job_videoEndpoint,
job_deviceMinutes,
job_videoCapture,
job_type,
job_message,
job_started,
Location (..),
newLocation,
location_latitude,
location_longitude,
MonetaryAmount (..),
newMonetaryAmount,
monetaryAmount_amount,
monetaryAmount_currencyCode,
NetworkProfile (..),
newNetworkProfile,
networkProfile_uplinkJitterMs,
networkProfile_arn,
networkProfile_uplinkLossPercent,
networkProfile_downlinkJitterMs,
networkProfile_name,
networkProfile_downlinkLossPercent,
networkProfile_type,
networkProfile_uplinkDelayMs,
networkProfile_uplinkBandwidthBits,
networkProfile_description,
networkProfile_downlinkDelayMs,
networkProfile_downlinkBandwidthBits,
Offering (..),
newOffering,
offering_platform,
offering_id,
offering_recurringCharges,
offering_type,
offering_description,
OfferingPromotion (..),
newOfferingPromotion,
offeringPromotion_id,
offeringPromotion_description,
OfferingStatus (..),
newOfferingStatus,
offeringStatus_effectiveOn,
offeringStatus_offering,
offeringStatus_quantity,
offeringStatus_type,
OfferingTransaction (..),
newOfferingTransaction,
offeringTransaction_offeringStatus,
offeringTransaction_cost,
offeringTransaction_transactionId,
offeringTransaction_offeringPromotionId,
offeringTransaction_createdOn,
Problem (..),
newProblem,
problem_device,
problem_test,
problem_result,
problem_run,
problem_job,
problem_message,
problem_suite,
ProblemDetail (..),
newProblemDetail,
problemDetail_arn,
problemDetail_name,
Project (..),
newProject,
project_arn,
project_created,
project_name,
project_defaultJobTimeoutMinutes,
Radios (..),
newRadios,
radios_nfc,
radios_gps,
radios_bluetooth,
radios_wifi,
RecurringCharge (..),
newRecurringCharge,
recurringCharge_frequency,
recurringCharge_cost,
RemoteAccessSession (..),
newRemoteAccessSession,
remoteAccessSession_billingMethod,
remoteAccessSession_clientId,
remoteAccessSession_deviceUdid,
remoteAccessSession_skipAppResign,
remoteAccessSession_instanceArn,
remoteAccessSession_status,
remoteAccessSession_remoteRecordEnabled,
remoteAccessSession_arn,
remoteAccessSession_remoteRecordAppArn,
remoteAccessSession_created,
remoteAccessSession_device,
remoteAccessSession_stopped,
remoteAccessSession_result,
remoteAccessSession_name,
remoteAccessSession_deviceMinutes,
remoteAccessSession_remoteDebugEnabled,
remoteAccessSession_endpoint,
remoteAccessSession_message,
remoteAccessSession_hostAddress,
remoteAccessSession_interactionMode,
remoteAccessSession_started,
Resolution (..),
newResolution,
resolution_height,
resolution_width,
Rule (..),
newRule,
rule_attribute,
rule_operator,
rule_value,
Run (..),
newRun,
run_billingMethod,
run_skipAppResign,
run_status,
run_customerArtifactPaths,
run_eventCount,
run_counters,
run_platform,
run_seed,
run_radios,
run_arn,
run_location,
run_created,
run_locale,
run_testSpecArn,
run_stopped,
run_result,
run_jobTimeoutMinutes,
run_completedJobs,
run_resultCode,
run_name,
run_appUpload,
run_parsingResultUrl,
run_networkProfile,
run_deviceMinutes,
run_type,
run_message,
run_webUrl,
run_totalJobs,
run_devicePoolArn,
run_started,
run_deviceSelectionResult,
Sample (..),
newSample,
sample_arn,
sample_url,
sample_type,
ScheduleRunConfiguration (..),
newScheduleRunConfiguration,
scheduleRunConfiguration_billingMethod,
scheduleRunConfiguration_customerArtifactPaths,
scheduleRunConfiguration_radios,
scheduleRunConfiguration_location,
scheduleRunConfiguration_locale,
scheduleRunConfiguration_networkProfileArn,
scheduleRunConfiguration_extraDataPackageArn,
scheduleRunConfiguration_auxiliaryApps,
scheduleRunConfiguration_vpceConfigurationArns,
ScheduleRunTest (..),
newScheduleRunTest,
scheduleRunTest_testSpecArn,
scheduleRunTest_testPackageArn,
scheduleRunTest_parameters,
scheduleRunTest_filter,
scheduleRunTest_type,
Suite (..),
newSuite,
suite_status,
suite_counters,
suite_arn,
suite_created,
suite_stopped,
suite_result,
suite_name,
suite_deviceMinutes,
suite_type,
suite_message,
suite_started,
Tag (..),
newTag,
tag_key,
tag_value,
Test (..),
newTest,
test_status,
test_counters,
test_arn,
test_created,
test_stopped,
test_result,
test_name,
test_deviceMinutes,
test_type,
test_message,
test_started,
TestGridProject (..),
newTestGridProject,
testGridProject_arn,
testGridProject_created,
testGridProject_name,
testGridProject_vpcConfig,
testGridProject_description,
TestGridSession (..),
newTestGridSession,
testGridSession_status,
testGridSession_arn,
testGridSession_created,
testGridSession_billingMinutes,
testGridSession_ended,
testGridSession_seleniumProperties,
TestGridSessionAction (..),
newTestGridSessionAction,
testGridSessionAction_action,
testGridSessionAction_duration,
testGridSessionAction_requestMethod,
testGridSessionAction_started,
testGridSessionAction_statusCode,
TestGridSessionArtifact (..),
newTestGridSessionArtifact,
testGridSessionArtifact_url,
testGridSessionArtifact_type,
testGridSessionArtifact_filename,
TestGridVpcConfig (..),
newTestGridVpcConfig,
testGridVpcConfig_securityGroupIds,
testGridVpcConfig_subnetIds,
testGridVpcConfig_vpcId,
TrialMinutes (..),
newTrialMinutes,
trialMinutes_remaining,
trialMinutes_total,
UniqueProblem (..),
newUniqueProblem,
uniqueProblem_problems,
uniqueProblem_message,
Upload (..),
newUpload,
upload_status,
upload_arn,
upload_created,
upload_category,
upload_url,
upload_name,
upload_metadata,
upload_type,
upload_message,
upload_contentType,
VPCEConfiguration (..),
newVPCEConfiguration,
vPCEConfiguration_vpceServiceName,
vPCEConfiguration_arn,
vPCEConfiguration_vpceConfigurationName,
vPCEConfiguration_serviceDnsName,
vPCEConfiguration_vpceConfigurationDescription,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.Types.AccountSettings
import Amazonka.DeviceFarm.Types.Artifact
import Amazonka.DeviceFarm.Types.ArtifactCategory
import Amazonka.DeviceFarm.Types.ArtifactType
import Amazonka.DeviceFarm.Types.BillingMethod
import Amazonka.DeviceFarm.Types.CPU
import Amazonka.DeviceFarm.Types.Counters
import Amazonka.DeviceFarm.Types.CreateRemoteAccessSessionConfiguration
import Amazonka.DeviceFarm.Types.CurrencyCode
import Amazonka.DeviceFarm.Types.CustomerArtifactPaths
import Amazonka.DeviceFarm.Types.Device
import Amazonka.DeviceFarm.Types.DeviceAttribute
import Amazonka.DeviceFarm.Types.DeviceAvailability
import Amazonka.DeviceFarm.Types.DeviceFilter
import Amazonka.DeviceFarm.Types.DeviceFilterAttribute
import Amazonka.DeviceFarm.Types.DeviceFormFactor
import Amazonka.DeviceFarm.Types.DeviceInstance
import Amazonka.DeviceFarm.Types.DeviceMinutes
import Amazonka.DeviceFarm.Types.DevicePlatform
import Amazonka.DeviceFarm.Types.DevicePool
import Amazonka.DeviceFarm.Types.DevicePoolCompatibilityResult
import Amazonka.DeviceFarm.Types.DevicePoolType
import Amazonka.DeviceFarm.Types.DeviceSelectionConfiguration
import Amazonka.DeviceFarm.Types.DeviceSelectionResult
import Amazonka.DeviceFarm.Types.ExecutionConfiguration
import Amazonka.DeviceFarm.Types.ExecutionResult
import Amazonka.DeviceFarm.Types.ExecutionResultCode
import Amazonka.DeviceFarm.Types.ExecutionStatus
import Amazonka.DeviceFarm.Types.IncompatibilityMessage
import Amazonka.DeviceFarm.Types.InstanceProfile
import Amazonka.DeviceFarm.Types.InstanceStatus
import Amazonka.DeviceFarm.Types.InteractionMode
import Amazonka.DeviceFarm.Types.Job
import Amazonka.DeviceFarm.Types.Location
import Amazonka.DeviceFarm.Types.MonetaryAmount
import Amazonka.DeviceFarm.Types.NetworkProfile
import Amazonka.DeviceFarm.Types.NetworkProfileType
import Amazonka.DeviceFarm.Types.Offering
import Amazonka.DeviceFarm.Types.OfferingPromotion
import Amazonka.DeviceFarm.Types.OfferingStatus
import Amazonka.DeviceFarm.Types.OfferingTransaction
import Amazonka.DeviceFarm.Types.OfferingTransactionType
import Amazonka.DeviceFarm.Types.OfferingType
import Amazonka.DeviceFarm.Types.Problem
import Amazonka.DeviceFarm.Types.ProblemDetail
import Amazonka.DeviceFarm.Types.Project
import Amazonka.DeviceFarm.Types.Radios
import Amazonka.DeviceFarm.Types.RecurringCharge
import Amazonka.DeviceFarm.Types.RecurringChargeFrequency
import Amazonka.DeviceFarm.Types.RemoteAccessSession
import Amazonka.DeviceFarm.Types.Resolution
import Amazonka.DeviceFarm.Types.Rule
import Amazonka.DeviceFarm.Types.RuleOperator
import Amazonka.DeviceFarm.Types.Run
import Amazonka.DeviceFarm.Types.Sample
import Amazonka.DeviceFarm.Types.SampleType
import Amazonka.DeviceFarm.Types.ScheduleRunConfiguration
import Amazonka.DeviceFarm.Types.ScheduleRunTest
import Amazonka.DeviceFarm.Types.Suite
import Amazonka.DeviceFarm.Types.Tag
import Amazonka.DeviceFarm.Types.Test
import Amazonka.DeviceFarm.Types.TestGridProject
import Amazonka.DeviceFarm.Types.TestGridSession
import Amazonka.DeviceFarm.Types.TestGridSessionAction
import Amazonka.DeviceFarm.Types.TestGridSessionArtifact
import Amazonka.DeviceFarm.Types.TestGridSessionArtifactCategory
import Amazonka.DeviceFarm.Types.TestGridSessionArtifactType
import Amazonka.DeviceFarm.Types.TestGridSessionStatus
import Amazonka.DeviceFarm.Types.TestGridVpcConfig
import Amazonka.DeviceFarm.Types.TestType
import Amazonka.DeviceFarm.Types.TrialMinutes
import Amazonka.DeviceFarm.Types.UniqueProblem
import Amazonka.DeviceFarm.Types.Upload
import Amazonka.DeviceFarm.Types.UploadCategory
import Amazonka.DeviceFarm.Types.UploadStatus
import Amazonka.DeviceFarm.Types.UploadType
import Amazonka.DeviceFarm.Types.VPCEConfiguration
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
"DeviceFarm",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"devicefarm",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"devicefarm",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2015-06-23",
$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
"DeviceFarm",
$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
_NotEligibleException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NotEligibleException :: Getting (First ServiceError) a ServiceError
_NotEligibleException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotEligibleException"
_CannotDeleteException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_CannotDeleteException :: Getting (First ServiceError) a ServiceError
_CannotDeleteException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"CannotDeleteException"
_IdempotencyException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_IdempotencyException :: Getting (First ServiceError) a ServiceError
_IdempotencyException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"IdempotencyException"
_TooManyTagsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyTagsException :: Getting (First ServiceError) a ServiceError
_TooManyTagsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
_ArgumentException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ArgumentException :: Getting (First ServiceError) a ServiceError
_ArgumentException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ArgumentException"
_NotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_NotFoundException :: Getting (First ServiceError) a ServiceError
_NotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotFoundException"
_InternalServiceException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServiceException :: Getting (First ServiceError) a ServiceError
_InternalServiceException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServiceException"
_TagPolicyException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TagPolicyException :: Getting (First ServiceError) a ServiceError
_TagPolicyException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TagPolicyException"
_TagOperationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TagOperationException :: Getting (First ServiceError) a ServiceError
_TagOperationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TagOperationException"
_ServiceAccountException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceAccountException :: Getting (First ServiceError) a ServiceError
_ServiceAccountException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceAccountException"
_InvalidOperationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidOperationException :: Getting (First ServiceError) a ServiceError
_InvalidOperationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidOperationException"
_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"