{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CustomerProfiles.Types
(
defaultService,
_AccessDeniedException,
_BadRequestException,
_InternalServerException,
_ResourceNotFoundException,
_ThrottlingException,
ConflictResolvingModel (..),
DataPullMode (..),
FieldContentType (..),
Gender (..),
IdentityResolutionJobStatus (..),
JobScheduleDayOfTheWeek (..),
LogicalOperator (..),
MarketoConnectorOperator (..),
OperatorPropertiesKeys (..),
PartyType (..),
S3ConnectorOperator (..),
SalesforceConnectorOperator (..),
ServiceNowConnectorOperator (..),
SourceConnectorType (..),
StandardIdentifier (..),
Status (..),
TaskType (..),
TriggerType (..),
WorkflowType (..),
ZendeskConnectorOperator (..),
AdditionalSearchKey (..),
newAdditionalSearchKey,
additionalSearchKey_keyName,
additionalSearchKey_values,
Address (..),
newAddress,
address_address1,
address_address2,
address_address3,
address_address4,
address_city,
address_country,
address_county,
address_postalCode,
address_province,
address_state,
AppflowIntegration (..),
newAppflowIntegration,
appflowIntegration_batches,
appflowIntegration_flowDefinition,
AppflowIntegrationWorkflowAttributes (..),
newAppflowIntegrationWorkflowAttributes,
appflowIntegrationWorkflowAttributes_roleArn,
appflowIntegrationWorkflowAttributes_sourceConnectorType,
appflowIntegrationWorkflowAttributes_connectorProfileName,
AppflowIntegrationWorkflowMetrics (..),
newAppflowIntegrationWorkflowMetrics,
appflowIntegrationWorkflowMetrics_recordsProcessed,
appflowIntegrationWorkflowMetrics_stepsCompleted,
appflowIntegrationWorkflowMetrics_totalSteps,
AppflowIntegrationWorkflowStep (..),
newAppflowIntegrationWorkflowStep,
appflowIntegrationWorkflowStep_flowName,
appflowIntegrationWorkflowStep_status,
appflowIntegrationWorkflowStep_executionMessage,
appflowIntegrationWorkflowStep_recordsProcessed,
appflowIntegrationWorkflowStep_batchRecordsStartTime,
appflowIntegrationWorkflowStep_batchRecordsEndTime,
appflowIntegrationWorkflowStep_createdAt,
appflowIntegrationWorkflowStep_lastUpdatedAt,
AutoMerging (..),
newAutoMerging,
autoMerging_conflictResolution,
autoMerging_consolidation,
autoMerging_minAllowedConfidenceScoreForMerging,
autoMerging_enabled,
Batch (..),
newBatch,
batch_startTime,
batch_endTime,
ConflictResolution (..),
newConflictResolution,
conflictResolution_sourceName,
conflictResolution_conflictResolvingModel,
ConnectorOperator (..),
newConnectorOperator,
connectorOperator_marketo,
connectorOperator_s3,
connectorOperator_salesforce,
connectorOperator_serviceNow,
connectorOperator_zendesk,
Consolidation (..),
newConsolidation,
consolidation_matchingAttributesList,
DomainStats (..),
newDomainStats,
domainStats_meteringProfileCount,
domainStats_objectCount,
domainStats_profileCount,
domainStats_totalSize,
ExportingConfig (..),
newExportingConfig,
exportingConfig_s3Exporting,
ExportingLocation (..),
newExportingLocation,
exportingLocation_s3Exporting,
FieldSourceProfileIds (..),
newFieldSourceProfileIds,
fieldSourceProfileIds_accountNumber,
fieldSourceProfileIds_additionalInformation,
fieldSourceProfileIds_address,
fieldSourceProfileIds_attributes,
fieldSourceProfileIds_billingAddress,
fieldSourceProfileIds_birthDate,
fieldSourceProfileIds_businessEmailAddress,
fieldSourceProfileIds_businessName,
fieldSourceProfileIds_businessPhoneNumber,
fieldSourceProfileIds_emailAddress,
fieldSourceProfileIds_firstName,
fieldSourceProfileIds_gender,
fieldSourceProfileIds_homePhoneNumber,
fieldSourceProfileIds_lastName,
fieldSourceProfileIds_mailingAddress,
fieldSourceProfileIds_middleName,
fieldSourceProfileIds_mobilePhoneNumber,
fieldSourceProfileIds_partyType,
fieldSourceProfileIds_personalEmailAddress,
fieldSourceProfileIds_phoneNumber,
fieldSourceProfileIds_shippingAddress,
FlowDefinition (..),
newFlowDefinition,
flowDefinition_description,
flowDefinition_flowName,
flowDefinition_kmsArn,
flowDefinition_sourceFlowConfig,
flowDefinition_tasks,
flowDefinition_triggerConfig,
FoundByKeyValue (..),
newFoundByKeyValue,
foundByKeyValue_keyName,
foundByKeyValue_values,
IdentityResolutionJob (..),
newIdentityResolutionJob,
identityResolutionJob_domainName,
identityResolutionJob_exportingLocation,
identityResolutionJob_jobEndTime,
identityResolutionJob_jobId,
identityResolutionJob_jobStartTime,
identityResolutionJob_jobStats,
identityResolutionJob_message,
identityResolutionJob_status,
IncrementalPullConfig (..),
newIncrementalPullConfig,
incrementalPullConfig_datetimeTypeFieldName,
IntegrationConfig (..),
newIntegrationConfig,
integrationConfig_appflowIntegration,
JobSchedule (..),
newJobSchedule,
jobSchedule_dayOfTheWeek,
jobSchedule_time,
JobStats (..),
newJobStats,
jobStats_numberOfMatchesFound,
jobStats_numberOfMergesDone,
jobStats_numberOfProfilesReviewed,
ListDomainItem (..),
newListDomainItem,
listDomainItem_tags,
listDomainItem_domainName,
listDomainItem_createdAt,
listDomainItem_lastUpdatedAt,
ListIntegrationItem (..),
newListIntegrationItem,
listIntegrationItem_isUnstructured,
listIntegrationItem_objectTypeName,
listIntegrationItem_objectTypeNames,
listIntegrationItem_tags,
listIntegrationItem_workflowId,
listIntegrationItem_domainName,
listIntegrationItem_uri,
listIntegrationItem_createdAt,
listIntegrationItem_lastUpdatedAt,
ListProfileObjectTypeItem (..),
newListProfileObjectTypeItem,
listProfileObjectTypeItem_createdAt,
listProfileObjectTypeItem_lastUpdatedAt,
listProfileObjectTypeItem_tags,
listProfileObjectTypeItem_objectTypeName,
listProfileObjectTypeItem_description,
ListProfileObjectTypeTemplateItem (..),
newListProfileObjectTypeTemplateItem,
listProfileObjectTypeTemplateItem_sourceName,
listProfileObjectTypeTemplateItem_sourceObject,
listProfileObjectTypeTemplateItem_templateId,
ListProfileObjectsItem (..),
newListProfileObjectsItem,
listProfileObjectsItem_object,
listProfileObjectsItem_objectTypeName,
listProfileObjectsItem_profileObjectUniqueKey,
ListWorkflowsItem (..),
newListWorkflowsItem,
listWorkflowsItem_workflowType,
listWorkflowsItem_workflowId,
listWorkflowsItem_status,
listWorkflowsItem_statusDescription,
listWorkflowsItem_createdAt,
listWorkflowsItem_lastUpdatedAt,
MarketoSourceProperties (..),
newMarketoSourceProperties,
marketoSourceProperties_object,
MatchItem (..),
newMatchItem,
matchItem_confidenceScore,
matchItem_matchId,
matchItem_profileIds,
MatchingRequest (..),
newMatchingRequest,
matchingRequest_autoMerging,
matchingRequest_exportingConfig,
matchingRequest_jobSchedule,
matchingRequest_enabled,
MatchingResponse (..),
newMatchingResponse,
matchingResponse_autoMerging,
matchingResponse_enabled,
matchingResponse_exportingConfig,
matchingResponse_jobSchedule,
ObjectFilter (..),
newObjectFilter,
objectFilter_keyName,
objectFilter_values,
ObjectTypeField (..),
newObjectTypeField,
objectTypeField_contentType,
objectTypeField_source,
objectTypeField_target,
ObjectTypeKey (..),
newObjectTypeKey,
objectTypeKey_fieldNames,
objectTypeKey_standardIdentifiers,
Profile (..),
newProfile,
profile_accountNumber,
profile_additionalInformation,
profile_address,
profile_attributes,
profile_billingAddress,
profile_birthDate,
profile_businessEmailAddress,
profile_businessName,
profile_businessPhoneNumber,
profile_emailAddress,
profile_firstName,
profile_foundByItems,
profile_gender,
profile_homePhoneNumber,
profile_lastName,
profile_mailingAddress,
profile_middleName,
profile_mobilePhoneNumber,
profile_partyType,
profile_personalEmailAddress,
profile_phoneNumber,
profile_profileId,
profile_shippingAddress,
S3ExportingConfig (..),
newS3ExportingConfig,
s3ExportingConfig_s3KeyName,
s3ExportingConfig_s3BucketName,
S3ExportingLocation (..),
newS3ExportingLocation,
s3ExportingLocation_s3BucketName,
s3ExportingLocation_s3KeyName,
S3SourceProperties (..),
newS3SourceProperties,
s3SourceProperties_bucketPrefix,
s3SourceProperties_bucketName,
SalesforceSourceProperties (..),
newSalesforceSourceProperties,
salesforceSourceProperties_enableDynamicFieldUpdate,
salesforceSourceProperties_includeDeletedRecords,
salesforceSourceProperties_object,
ScheduledTriggerProperties (..),
newScheduledTriggerProperties,
scheduledTriggerProperties_dataPullMode,
scheduledTriggerProperties_firstExecutionFrom,
scheduledTriggerProperties_scheduleEndTime,
scheduledTriggerProperties_scheduleOffset,
scheduledTriggerProperties_scheduleStartTime,
scheduledTriggerProperties_timezone,
scheduledTriggerProperties_scheduleExpression,
ServiceNowSourceProperties (..),
newServiceNowSourceProperties,
serviceNowSourceProperties_object,
SourceConnectorProperties (..),
newSourceConnectorProperties,
sourceConnectorProperties_marketo,
sourceConnectorProperties_s3,
sourceConnectorProperties_salesforce,
sourceConnectorProperties_serviceNow,
sourceConnectorProperties_zendesk,
SourceFlowConfig (..),
newSourceFlowConfig,
sourceFlowConfig_connectorProfileName,
sourceFlowConfig_incrementalPullConfig,
sourceFlowConfig_connectorType,
sourceFlowConfig_sourceConnectorProperties,
Task (..),
newTask,
task_connectorOperator,
task_destinationField,
task_taskProperties,
task_sourceFields,
task_taskType,
TriggerConfig (..),
newTriggerConfig,
triggerConfig_triggerProperties,
triggerConfig_triggerType,
TriggerProperties (..),
newTriggerProperties,
triggerProperties_scheduled,
UpdateAddress (..),
newUpdateAddress,
updateAddress_address1,
updateAddress_address2,
updateAddress_address3,
updateAddress_address4,
updateAddress_city,
updateAddress_country,
updateAddress_county,
updateAddress_postalCode,
updateAddress_province,
updateAddress_state,
WorkflowAttributes (..),
newWorkflowAttributes,
workflowAttributes_appflowIntegration,
WorkflowMetrics (..),
newWorkflowMetrics,
workflowMetrics_appflowIntegration,
WorkflowStepItem (..),
newWorkflowStepItem,
workflowStepItem_appflowIntegration,
ZendeskSourceProperties (..),
newZendeskSourceProperties,
zendeskSourceProperties_object,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CustomerProfiles.Types.AdditionalSearchKey
import Amazonka.CustomerProfiles.Types.Address
import Amazonka.CustomerProfiles.Types.AppflowIntegration
import Amazonka.CustomerProfiles.Types.AppflowIntegrationWorkflowAttributes
import Amazonka.CustomerProfiles.Types.AppflowIntegrationWorkflowMetrics
import Amazonka.CustomerProfiles.Types.AppflowIntegrationWorkflowStep
import Amazonka.CustomerProfiles.Types.AutoMerging
import Amazonka.CustomerProfiles.Types.Batch
import Amazonka.CustomerProfiles.Types.ConflictResolution
import Amazonka.CustomerProfiles.Types.ConflictResolvingModel
import Amazonka.CustomerProfiles.Types.ConnectorOperator
import Amazonka.CustomerProfiles.Types.Consolidation
import Amazonka.CustomerProfiles.Types.DataPullMode
import Amazonka.CustomerProfiles.Types.DomainStats
import Amazonka.CustomerProfiles.Types.ExportingConfig
import Amazonka.CustomerProfiles.Types.ExportingLocation
import Amazonka.CustomerProfiles.Types.FieldContentType
import Amazonka.CustomerProfiles.Types.FieldSourceProfileIds
import Amazonka.CustomerProfiles.Types.FlowDefinition
import Amazonka.CustomerProfiles.Types.FoundByKeyValue
import Amazonka.CustomerProfiles.Types.Gender
import Amazonka.CustomerProfiles.Types.IdentityResolutionJob
import Amazonka.CustomerProfiles.Types.IdentityResolutionJobStatus
import Amazonka.CustomerProfiles.Types.IncrementalPullConfig
import Amazonka.CustomerProfiles.Types.IntegrationConfig
import Amazonka.CustomerProfiles.Types.JobSchedule
import Amazonka.CustomerProfiles.Types.JobScheduleDayOfTheWeek
import Amazonka.CustomerProfiles.Types.JobStats
import Amazonka.CustomerProfiles.Types.ListDomainItem
import Amazonka.CustomerProfiles.Types.ListIntegrationItem
import Amazonka.CustomerProfiles.Types.ListProfileObjectTypeItem
import Amazonka.CustomerProfiles.Types.ListProfileObjectTypeTemplateItem
import Amazonka.CustomerProfiles.Types.ListProfileObjectsItem
import Amazonka.CustomerProfiles.Types.ListWorkflowsItem
import Amazonka.CustomerProfiles.Types.LogicalOperator
import Amazonka.CustomerProfiles.Types.MarketoConnectorOperator
import Amazonka.CustomerProfiles.Types.MarketoSourceProperties
import Amazonka.CustomerProfiles.Types.MatchItem
import Amazonka.CustomerProfiles.Types.MatchingRequest
import Amazonka.CustomerProfiles.Types.MatchingResponse
import Amazonka.CustomerProfiles.Types.ObjectFilter
import Amazonka.CustomerProfiles.Types.ObjectTypeField
import Amazonka.CustomerProfiles.Types.ObjectTypeKey
import Amazonka.CustomerProfiles.Types.OperatorPropertiesKeys
import Amazonka.CustomerProfiles.Types.PartyType
import Amazonka.CustomerProfiles.Types.Profile
import Amazonka.CustomerProfiles.Types.S3ConnectorOperator
import Amazonka.CustomerProfiles.Types.S3ExportingConfig
import Amazonka.CustomerProfiles.Types.S3ExportingLocation
import Amazonka.CustomerProfiles.Types.S3SourceProperties
import Amazonka.CustomerProfiles.Types.SalesforceConnectorOperator
import Amazonka.CustomerProfiles.Types.SalesforceSourceProperties
import Amazonka.CustomerProfiles.Types.ScheduledTriggerProperties
import Amazonka.CustomerProfiles.Types.ServiceNowConnectorOperator
import Amazonka.CustomerProfiles.Types.ServiceNowSourceProperties
import Amazonka.CustomerProfiles.Types.SourceConnectorProperties
import Amazonka.CustomerProfiles.Types.SourceConnectorType
import Amazonka.CustomerProfiles.Types.SourceFlowConfig
import Amazonka.CustomerProfiles.Types.StandardIdentifier
import Amazonka.CustomerProfiles.Types.Status
import Amazonka.CustomerProfiles.Types.Task
import Amazonka.CustomerProfiles.Types.TaskType
import Amazonka.CustomerProfiles.Types.TriggerConfig
import Amazonka.CustomerProfiles.Types.TriggerProperties
import Amazonka.CustomerProfiles.Types.TriggerType
import Amazonka.CustomerProfiles.Types.UpdateAddress
import Amazonka.CustomerProfiles.Types.WorkflowAttributes
import Amazonka.CustomerProfiles.Types.WorkflowMetrics
import Amazonka.CustomerProfiles.Types.WorkflowStepItem
import Amazonka.CustomerProfiles.Types.WorkflowType
import Amazonka.CustomerProfiles.Types.ZendeskConnectorOperator
import Amazonka.CustomerProfiles.Types.ZendeskSourceProperties
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
"CustomerProfiles",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"profile",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"profile",
$sel:version:Service :: ByteString
Core.version = ByteString
"2020-08-15",
$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
"CustomerProfiles",
$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
_BadRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BadRequestException :: forall a. AsError a => Fold a ServiceError
_BadRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
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
_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
_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