{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SESV2.Types
(
defaultService,
_AccountSuspendedException,
_AlreadyExistsException,
_BadRequestException,
_ConcurrentModificationException,
_ConflictException,
_InternalServiceErrorException,
_InvalidNextTokenException,
_LimitExceededException,
_MailFromDomainNotVerifiedException,
_MessageRejected,
_NotFoundException,
_SendingPausedException,
_TooManyRequestsException,
BehaviorOnMxFailure (..),
BulkEmailStatus (..),
ContactLanguage (..),
ContactListImportAction (..),
DataFormat (..),
DeliverabilityDashboardAccountStatus (..),
DeliverabilityTestStatus (..),
DimensionValueSource (..),
DkimSigningAttributesOrigin (..),
DkimSigningKeyLength (..),
DkimStatus (..),
EventType (..),
FeatureStatus (..),
IdentityType (..),
ImportDestinationType (..),
JobStatus (..),
ListRecommendationsFilterKey (..),
MailFromDomainStatus (..),
MailType (..),
Metric (..),
MetricDimensionName (..),
MetricNamespace (..),
QueryErrorCode (..),
RecommendationImpact (..),
RecommendationStatus (..),
RecommendationType (..),
ReviewStatus (..),
ScalingMode (..),
SubscriptionStatus (..),
SuppressionListImportAction (..),
SuppressionListReason (..),
TlsPolicy (..),
VerificationStatus (..),
WarmupStatus (..),
AccountDetails (..),
newAccountDetails,
accountDetails_additionalContactEmailAddresses,
accountDetails_contactLanguage,
accountDetails_mailType,
accountDetails_reviewDetails,
accountDetails_useCaseDescription,
accountDetails_websiteURL,
BatchGetMetricDataQuery (..),
newBatchGetMetricDataQuery,
batchGetMetricDataQuery_dimensions,
batchGetMetricDataQuery_id,
batchGetMetricDataQuery_namespace,
batchGetMetricDataQuery_metric,
batchGetMetricDataQuery_startDate,
batchGetMetricDataQuery_endDate,
BlacklistEntry (..),
newBlacklistEntry,
blacklistEntry_description,
blacklistEntry_listingTime,
blacklistEntry_rblName,
Body (..),
newBody,
body_html,
body_text,
BulkEmailContent (..),
newBulkEmailContent,
bulkEmailContent_template,
BulkEmailEntry (..),
newBulkEmailEntry,
bulkEmailEntry_replacementEmailContent,
bulkEmailEntry_replacementTags,
bulkEmailEntry_destination,
BulkEmailEntryResult (..),
newBulkEmailEntryResult,
bulkEmailEntryResult_error,
bulkEmailEntryResult_messageId,
bulkEmailEntryResult_status,
CloudWatchDestination (..),
newCloudWatchDestination,
cloudWatchDestination_dimensionConfigurations,
CloudWatchDimensionConfiguration (..),
newCloudWatchDimensionConfiguration,
cloudWatchDimensionConfiguration_dimensionName,
cloudWatchDimensionConfiguration_dimensionValueSource,
cloudWatchDimensionConfiguration_defaultDimensionValue,
Contact (..),
newContact,
contact_emailAddress,
contact_lastUpdatedTimestamp,
contact_topicDefaultPreferences,
contact_topicPreferences,
contact_unsubscribeAll,
ContactList (..),
newContactList,
contactList_contactListName,
contactList_lastUpdatedTimestamp,
ContactListDestination (..),
newContactListDestination,
contactListDestination_contactListName,
contactListDestination_contactListImportAction,
Content (..),
newContent,
content_charset,
content_data,
CustomVerificationEmailTemplateMetadata (..),
newCustomVerificationEmailTemplateMetadata,
customVerificationEmailTemplateMetadata_failureRedirectionURL,
customVerificationEmailTemplateMetadata_fromEmailAddress,
customVerificationEmailTemplateMetadata_successRedirectionURL,
customVerificationEmailTemplateMetadata_templateName,
customVerificationEmailTemplateMetadata_templateSubject,
DailyVolume (..),
newDailyVolume,
dailyVolume_domainIspPlacements,
dailyVolume_startDate,
dailyVolume_volumeStatistics,
DashboardAttributes (..),
newDashboardAttributes,
dashboardAttributes_engagementMetrics,
DashboardOptions (..),
newDashboardOptions,
dashboardOptions_engagementMetrics,
DedicatedIp (..),
newDedicatedIp,
dedicatedIp_poolName,
dedicatedIp_ip,
dedicatedIp_warmupStatus,
dedicatedIp_warmupPercentage,
DedicatedIpPool (..),
newDedicatedIpPool,
dedicatedIpPool_poolName,
dedicatedIpPool_scalingMode,
DeliverabilityTestReport (..),
newDeliverabilityTestReport,
deliverabilityTestReport_createDate,
deliverabilityTestReport_deliverabilityTestStatus,
deliverabilityTestReport_fromEmailAddress,
deliverabilityTestReport_reportId,
deliverabilityTestReport_reportName,
deliverabilityTestReport_subject,
DeliveryOptions (..),
newDeliveryOptions,
deliveryOptions_sendingPoolName,
deliveryOptions_tlsPolicy,
Destination (..),
newDestination,
destination_bccAddresses,
destination_ccAddresses,
destination_toAddresses,
DkimAttributes (..),
newDkimAttributes,
dkimAttributes_currentSigningKeyLength,
dkimAttributes_lastKeyGenerationTimestamp,
dkimAttributes_nextSigningKeyLength,
dkimAttributes_signingAttributesOrigin,
dkimAttributes_signingEnabled,
dkimAttributes_status,
dkimAttributes_tokens,
DkimSigningAttributes (..),
newDkimSigningAttributes,
dkimSigningAttributes_domainSigningPrivateKey,
dkimSigningAttributes_domainSigningSelector,
dkimSigningAttributes_nextSigningKeyLength,
DomainDeliverabilityCampaign (..),
newDomainDeliverabilityCampaign,
domainDeliverabilityCampaign_campaignId,
domainDeliverabilityCampaign_deleteRate,
domainDeliverabilityCampaign_esps,
domainDeliverabilityCampaign_firstSeenDateTime,
domainDeliverabilityCampaign_fromAddress,
domainDeliverabilityCampaign_imageUrl,
domainDeliverabilityCampaign_inboxCount,
domainDeliverabilityCampaign_lastSeenDateTime,
domainDeliverabilityCampaign_projectedVolume,
domainDeliverabilityCampaign_readDeleteRate,
domainDeliverabilityCampaign_readRate,
domainDeliverabilityCampaign_sendingIps,
domainDeliverabilityCampaign_spamCount,
domainDeliverabilityCampaign_subject,
DomainDeliverabilityTrackingOption (..),
newDomainDeliverabilityTrackingOption,
domainDeliverabilityTrackingOption_domain,
domainDeliverabilityTrackingOption_inboxPlacementTrackingOption,
domainDeliverabilityTrackingOption_subscriptionStartDate,
DomainIspPlacement (..),
newDomainIspPlacement,
domainIspPlacement_inboxPercentage,
domainIspPlacement_inboxRawCount,
domainIspPlacement_ispName,
domainIspPlacement_spamPercentage,
domainIspPlacement_spamRawCount,
EmailContent (..),
newEmailContent,
emailContent_raw,
emailContent_simple,
emailContent_template,
EmailTemplateContent (..),
newEmailTemplateContent,
emailTemplateContent_html,
emailTemplateContent_subject,
emailTemplateContent_text,
EmailTemplateMetadata (..),
newEmailTemplateMetadata,
emailTemplateMetadata_createdTimestamp,
emailTemplateMetadata_templateName,
EventDestination (..),
newEventDestination,
eventDestination_cloudWatchDestination,
eventDestination_enabled,
eventDestination_kinesisFirehoseDestination,
eventDestination_pinpointDestination,
eventDestination_snsDestination,
eventDestination_name,
eventDestination_matchingEventTypes,
EventDestinationDefinition (..),
newEventDestinationDefinition,
eventDestinationDefinition_cloudWatchDestination,
eventDestinationDefinition_enabled,
eventDestinationDefinition_kinesisFirehoseDestination,
eventDestinationDefinition_matchingEventTypes,
eventDestinationDefinition_pinpointDestination,
eventDestinationDefinition_snsDestination,
FailureInfo (..),
newFailureInfo,
failureInfo_errorMessage,
failureInfo_failedRecordsS3Url,
GuardianAttributes (..),
newGuardianAttributes,
guardianAttributes_optimizedSharedDelivery,
GuardianOptions (..),
newGuardianOptions,
guardianOptions_optimizedSharedDelivery,
IdentityInfo (..),
newIdentityInfo,
identityInfo_identityName,
identityInfo_identityType,
identityInfo_sendingEnabled,
identityInfo_verificationStatus,
ImportDataSource (..),
newImportDataSource,
importDataSource_s3Url,
importDataSource_dataFormat,
ImportDestination (..),
newImportDestination,
importDestination_contactListDestination,
importDestination_suppressionListDestination,
ImportJobSummary (..),
newImportJobSummary,
importJobSummary_createdTimestamp,
importJobSummary_failedRecordsCount,
importJobSummary_importDestination,
importJobSummary_jobId,
importJobSummary_jobStatus,
importJobSummary_processedRecordsCount,
InboxPlacementTrackingOption (..),
newInboxPlacementTrackingOption,
inboxPlacementTrackingOption_global,
inboxPlacementTrackingOption_trackedIsps,
IspPlacement (..),
newIspPlacement,
ispPlacement_ispName,
ispPlacement_placementStatistics,
KinesisFirehoseDestination (..),
newKinesisFirehoseDestination,
kinesisFirehoseDestination_iamRoleArn,
kinesisFirehoseDestination_deliveryStreamArn,
ListContactsFilter (..),
newListContactsFilter,
listContactsFilter_filteredStatus,
listContactsFilter_topicFilter,
ListManagementOptions (..),
newListManagementOptions,
listManagementOptions_topicName,
listManagementOptions_contactListName,
MailFromAttributes (..),
newMailFromAttributes,
mailFromAttributes_mailFromDomain,
mailFromAttributes_mailFromDomainStatus,
mailFromAttributes_behaviorOnMxFailure,
Message (..),
newMessage,
message_subject,
message_body,
MessageTag (..),
newMessageTag,
messageTag_name,
messageTag_value,
MetricDataError (..),
newMetricDataError,
metricDataError_code,
metricDataError_id,
metricDataError_message,
MetricDataResult (..),
newMetricDataResult,
metricDataResult_id,
metricDataResult_timestamps,
metricDataResult_values,
OverallVolume (..),
newOverallVolume,
overallVolume_domainIspPlacements,
overallVolume_readRatePercent,
overallVolume_volumeStatistics,
PinpointDestination (..),
newPinpointDestination,
pinpointDestination_applicationArn,
PlacementStatistics (..),
newPlacementStatistics,
placementStatistics_dkimPercentage,
placementStatistics_inboxPercentage,
placementStatistics_missingPercentage,
placementStatistics_spamPercentage,
placementStatistics_spfPercentage,
RawMessage (..),
newRawMessage,
rawMessage_data,
Recommendation (..),
newRecommendation,
recommendation_createdTimestamp,
recommendation_description,
recommendation_impact,
recommendation_lastUpdatedTimestamp,
recommendation_resourceArn,
recommendation_status,
recommendation_type,
ReplacementEmailContent (..),
newReplacementEmailContent,
replacementEmailContent_replacementTemplate,
ReplacementTemplate (..),
newReplacementTemplate,
replacementTemplate_replacementTemplateData,
ReputationOptions (..),
newReputationOptions,
reputationOptions_lastFreshStart,
reputationOptions_reputationMetricsEnabled,
ReviewDetails (..),
newReviewDetails,
reviewDetails_caseId,
reviewDetails_status,
SendQuota (..),
newSendQuota,
sendQuota_max24HourSend,
sendQuota_maxSendRate,
sendQuota_sentLast24Hours,
SendingOptions (..),
newSendingOptions,
sendingOptions_sendingEnabled,
SnsDestination (..),
newSnsDestination,
snsDestination_topicArn,
SuppressedDestination (..),
newSuppressedDestination,
suppressedDestination_attributes,
suppressedDestination_emailAddress,
suppressedDestination_reason,
suppressedDestination_lastUpdateTime,
SuppressedDestinationAttributes (..),
newSuppressedDestinationAttributes,
suppressedDestinationAttributes_feedbackId,
suppressedDestinationAttributes_messageId,
SuppressedDestinationSummary (..),
newSuppressedDestinationSummary,
suppressedDestinationSummary_emailAddress,
suppressedDestinationSummary_reason,
suppressedDestinationSummary_lastUpdateTime,
SuppressionAttributes (..),
newSuppressionAttributes,
suppressionAttributes_suppressedReasons,
SuppressionListDestination (..),
newSuppressionListDestination,
suppressionListDestination_suppressionListImportAction,
SuppressionOptions (..),
newSuppressionOptions,
suppressionOptions_suppressedReasons,
Tag (..),
newTag,
tag_key,
tag_value,
Template (..),
newTemplate,
template_templateArn,
template_templateData,
template_templateName,
Topic (..),
newTopic,
topic_description,
topic_topicName,
topic_displayName,
topic_defaultSubscriptionStatus,
TopicFilter (..),
newTopicFilter,
topicFilter_topicName,
topicFilter_useDefaultIfPreferenceUnavailable,
TopicPreference (..),
newTopicPreference,
topicPreference_topicName,
topicPreference_subscriptionStatus,
TrackingOptions (..),
newTrackingOptions,
trackingOptions_customRedirectDomain,
VdmAttributes (..),
newVdmAttributes,
vdmAttributes_dashboardAttributes,
vdmAttributes_guardianAttributes,
vdmAttributes_vdmEnabled,
VdmOptions (..),
newVdmOptions,
vdmOptions_dashboardOptions,
vdmOptions_guardianOptions,
VolumeStatistics (..),
newVolumeStatistics,
volumeStatistics_inboxRawCount,
volumeStatistics_projectedInbox,
volumeStatistics_projectedSpam,
volumeStatistics_spamRawCount,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SESV2.Types.AccountDetails
import Amazonka.SESV2.Types.BatchGetMetricDataQuery
import Amazonka.SESV2.Types.BehaviorOnMxFailure
import Amazonka.SESV2.Types.BlacklistEntry
import Amazonka.SESV2.Types.Body
import Amazonka.SESV2.Types.BulkEmailContent
import Amazonka.SESV2.Types.BulkEmailEntry
import Amazonka.SESV2.Types.BulkEmailEntryResult
import Amazonka.SESV2.Types.BulkEmailStatus
import Amazonka.SESV2.Types.CloudWatchDestination
import Amazonka.SESV2.Types.CloudWatchDimensionConfiguration
import Amazonka.SESV2.Types.Contact
import Amazonka.SESV2.Types.ContactLanguage
import Amazonka.SESV2.Types.ContactList
import Amazonka.SESV2.Types.ContactListDestination
import Amazonka.SESV2.Types.ContactListImportAction
import Amazonka.SESV2.Types.Content
import Amazonka.SESV2.Types.CustomVerificationEmailTemplateMetadata
import Amazonka.SESV2.Types.DailyVolume
import Amazonka.SESV2.Types.DashboardAttributes
import Amazonka.SESV2.Types.DashboardOptions
import Amazonka.SESV2.Types.DataFormat
import Amazonka.SESV2.Types.DedicatedIp
import Amazonka.SESV2.Types.DedicatedIpPool
import Amazonka.SESV2.Types.DeliverabilityDashboardAccountStatus
import Amazonka.SESV2.Types.DeliverabilityTestReport
import Amazonka.SESV2.Types.DeliverabilityTestStatus
import Amazonka.SESV2.Types.DeliveryOptions
import Amazonka.SESV2.Types.Destination
import Amazonka.SESV2.Types.DimensionValueSource
import Amazonka.SESV2.Types.DkimAttributes
import Amazonka.SESV2.Types.DkimSigningAttributes
import Amazonka.SESV2.Types.DkimSigningAttributesOrigin
import Amazonka.SESV2.Types.DkimSigningKeyLength
import Amazonka.SESV2.Types.DkimStatus
import Amazonka.SESV2.Types.DomainDeliverabilityCampaign
import Amazonka.SESV2.Types.DomainDeliverabilityTrackingOption
import Amazonka.SESV2.Types.DomainIspPlacement
import Amazonka.SESV2.Types.EmailContent
import Amazonka.SESV2.Types.EmailTemplateContent
import Amazonka.SESV2.Types.EmailTemplateMetadata
import Amazonka.SESV2.Types.EventDestination
import Amazonka.SESV2.Types.EventDestinationDefinition
import Amazonka.SESV2.Types.EventType
import Amazonka.SESV2.Types.FailureInfo
import Amazonka.SESV2.Types.FeatureStatus
import Amazonka.SESV2.Types.GuardianAttributes
import Amazonka.SESV2.Types.GuardianOptions
import Amazonka.SESV2.Types.IdentityInfo
import Amazonka.SESV2.Types.IdentityType
import Amazonka.SESV2.Types.ImportDataSource
import Amazonka.SESV2.Types.ImportDestination
import Amazonka.SESV2.Types.ImportDestinationType
import Amazonka.SESV2.Types.ImportJobSummary
import Amazonka.SESV2.Types.InboxPlacementTrackingOption
import Amazonka.SESV2.Types.IspPlacement
import Amazonka.SESV2.Types.JobStatus
import Amazonka.SESV2.Types.KinesisFirehoseDestination
import Amazonka.SESV2.Types.ListContactsFilter
import Amazonka.SESV2.Types.ListManagementOptions
import Amazonka.SESV2.Types.ListRecommendationsFilterKey
import Amazonka.SESV2.Types.MailFromAttributes
import Amazonka.SESV2.Types.MailFromDomainStatus
import Amazonka.SESV2.Types.MailType
import Amazonka.SESV2.Types.Message
import Amazonka.SESV2.Types.MessageTag
import Amazonka.SESV2.Types.Metric
import Amazonka.SESV2.Types.MetricDataError
import Amazonka.SESV2.Types.MetricDataResult
import Amazonka.SESV2.Types.MetricDimensionName
import Amazonka.SESV2.Types.MetricNamespace
import Amazonka.SESV2.Types.OverallVolume
import Amazonka.SESV2.Types.PinpointDestination
import Amazonka.SESV2.Types.PlacementStatistics
import Amazonka.SESV2.Types.QueryErrorCode
import Amazonka.SESV2.Types.RawMessage
import Amazonka.SESV2.Types.Recommendation
import Amazonka.SESV2.Types.RecommendationImpact
import Amazonka.SESV2.Types.RecommendationStatus
import Amazonka.SESV2.Types.RecommendationType
import Amazonka.SESV2.Types.ReplacementEmailContent
import Amazonka.SESV2.Types.ReplacementTemplate
import Amazonka.SESV2.Types.ReputationOptions
import Amazonka.SESV2.Types.ReviewDetails
import Amazonka.SESV2.Types.ReviewStatus
import Amazonka.SESV2.Types.ScalingMode
import Amazonka.SESV2.Types.SendQuota
import Amazonka.SESV2.Types.SendingOptions
import Amazonka.SESV2.Types.SnsDestination
import Amazonka.SESV2.Types.SubscriptionStatus
import Amazonka.SESV2.Types.SuppressedDestination
import Amazonka.SESV2.Types.SuppressedDestinationAttributes
import Amazonka.SESV2.Types.SuppressedDestinationSummary
import Amazonka.SESV2.Types.SuppressionAttributes
import Amazonka.SESV2.Types.SuppressionListDestination
import Amazonka.SESV2.Types.SuppressionListImportAction
import Amazonka.SESV2.Types.SuppressionListReason
import Amazonka.SESV2.Types.SuppressionOptions
import Amazonka.SESV2.Types.Tag
import Amazonka.SESV2.Types.Template
import Amazonka.SESV2.Types.TlsPolicy
import Amazonka.SESV2.Types.Topic
import Amazonka.SESV2.Types.TopicFilter
import Amazonka.SESV2.Types.TopicPreference
import Amazonka.SESV2.Types.TrackingOptions
import Amazonka.SESV2.Types.VdmAttributes
import Amazonka.SESV2.Types.VdmOptions
import Amazonka.SESV2.Types.VerificationStatus
import Amazonka.SESV2.Types.VolumeStatistics
import Amazonka.SESV2.Types.WarmupStatus
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"SESV2",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"email",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"ses",
$sel:version:Service :: ByteString
Core.version = ByteString
"2019-09-27",
$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
"SESV2",
$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
_AccountSuspendedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccountSuspendedException :: forall a. AsError a => Fold a ServiceError
_AccountSuspendedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccountSuspendedException"
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
_AlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AlreadyExistsException :: forall a. AsError a => Fold a ServiceError
_AlreadyExistsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AlreadyExistsException"
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
_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
_ConcurrentModificationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConcurrentModificationException :: forall a. AsError a => Fold a ServiceError
_ConcurrentModificationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
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
_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
_InternalServiceErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServiceErrorException :: forall a. AsError a => Fold a ServiceError
_InternalServiceErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServiceErrorException"
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
_InvalidNextTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidNextTokenException :: forall a. AsError a => Fold a ServiceError
_InvalidNextTokenException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNextTokenException"
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
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
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
_MailFromDomainNotVerifiedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_MailFromDomainNotVerifiedException :: forall a. AsError a => Fold a ServiceError
_MailFromDomainNotVerifiedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MailFromDomainNotVerifiedException"
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
_MessageRejected :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_MessageRejected :: forall a. AsError a => Fold a ServiceError
_MessageRejected =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MessageRejected"
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
_NotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_NotFoundException :: forall a. AsError a => Fold a ServiceError
_NotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotFoundException"
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
_SendingPausedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_SendingPausedException :: forall a. AsError a => Fold a ServiceError
_SendingPausedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"SendingPausedException"
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
_TooManyRequestsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyRequestsException :: forall a. AsError a => Fold a ServiceError
_TooManyRequestsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
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