{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SESV2.Types
(
defaultService,
_MessageRejected,
_MailFromDomainNotVerifiedException,
_ConflictException,
_NotFoundException,
_TooManyRequestsException,
_ConcurrentModificationException,
_InvalidNextTokenException,
_AccountSuspendedException,
_SendingPausedException,
_BadRequestException,
_AlreadyExistsException,
_LimitExceededException,
BehaviorOnMxFailure (..),
BulkEmailStatus (..),
ContactLanguage (..),
ContactListImportAction (..),
DataFormat (..),
DeliverabilityDashboardAccountStatus (..),
DeliverabilityTestStatus (..),
DimensionValueSource (..),
DkimSigningAttributesOrigin (..),
DkimSigningKeyLength (..),
DkimStatus (..),
EventType (..),
IdentityType (..),
ImportDestinationType (..),
JobStatus (..),
MailFromDomainStatus (..),
MailType (..),
ReviewStatus (..),
SubscriptionStatus (..),
SuppressionListImportAction (..),
SuppressionListReason (..),
TlsPolicy (..),
WarmupStatus (..),
AccountDetails (..),
newAccountDetails,
accountDetails_reviewDetails,
accountDetails_mailType,
accountDetails_useCaseDescription,
accountDetails_contactLanguage,
accountDetails_additionalContactEmailAddresses,
accountDetails_websiteURL,
BlacklistEntry (..),
newBlacklistEntry,
blacklistEntry_listingTime,
blacklistEntry_rblName,
blacklistEntry_description,
Body (..),
newBody,
body_text,
body_html,
BulkEmailContent (..),
newBulkEmailContent,
bulkEmailContent_template,
BulkEmailEntry (..),
newBulkEmailEntry,
bulkEmailEntry_replacementEmailContent,
bulkEmailEntry_replacementTags,
bulkEmailEntry_destination,
BulkEmailEntryResult (..),
newBulkEmailEntryResult,
bulkEmailEntryResult_status,
bulkEmailEntryResult_error,
bulkEmailEntryResult_messageId,
CloudWatchDestination (..),
newCloudWatchDestination,
cloudWatchDestination_dimensionConfigurations,
CloudWatchDimensionConfiguration (..),
newCloudWatchDimensionConfiguration,
cloudWatchDimensionConfiguration_dimensionName,
cloudWatchDimensionConfiguration_dimensionValueSource,
cloudWatchDimensionConfiguration_defaultDimensionValue,
Contact (..),
newContact,
contact_unsubscribeAll,
contact_topicDefaultPreferences,
contact_emailAddress,
contact_lastUpdatedTimestamp,
contact_topicPreferences,
ContactList (..),
newContactList,
contactList_contactListName,
contactList_lastUpdatedTimestamp,
ContactListDestination (..),
newContactListDestination,
contactListDestination_contactListName,
contactListDestination_contactListImportAction,
Content (..),
newContent,
content_charset,
content_data,
CustomVerificationEmailTemplateMetadata (..),
newCustomVerificationEmailTemplateMetadata,
customVerificationEmailTemplateMetadata_fromEmailAddress,
customVerificationEmailTemplateMetadata_templateName,
customVerificationEmailTemplateMetadata_failureRedirectionURL,
customVerificationEmailTemplateMetadata_templateSubject,
customVerificationEmailTemplateMetadata_successRedirectionURL,
DailyVolume (..),
newDailyVolume,
dailyVolume_domainIspPlacements,
dailyVolume_startDate,
dailyVolume_volumeStatistics,
DedicatedIp (..),
newDedicatedIp,
dedicatedIp_poolName,
dedicatedIp_ip,
dedicatedIp_warmupStatus,
dedicatedIp_warmupPercentage,
DeliverabilityTestReport (..),
newDeliverabilityTestReport,
deliverabilityTestReport_subject,
deliverabilityTestReport_fromEmailAddress,
deliverabilityTestReport_createDate,
deliverabilityTestReport_reportId,
deliverabilityTestReport_reportName,
deliverabilityTestReport_deliverabilityTestStatus,
DeliveryOptions (..),
newDeliveryOptions,
deliveryOptions_sendingPoolName,
deliveryOptions_tlsPolicy,
Destination (..),
newDestination,
destination_bccAddresses,
destination_ccAddresses,
destination_toAddresses,
DkimAttributes (..),
newDkimAttributes,
dkimAttributes_status,
dkimAttributes_nextSigningKeyLength,
dkimAttributes_tokens,
dkimAttributes_signingEnabled,
dkimAttributes_currentSigningKeyLength,
dkimAttributes_lastKeyGenerationTimestamp,
dkimAttributes_signingAttributesOrigin,
DkimSigningAttributes (..),
newDkimSigningAttributes,
dkimSigningAttributes_nextSigningKeyLength,
dkimSigningAttributes_domainSigningPrivateKey,
dkimSigningAttributes_domainSigningSelector,
DomainDeliverabilityCampaign (..),
newDomainDeliverabilityCampaign,
domainDeliverabilityCampaign_spamCount,
domainDeliverabilityCampaign_subject,
domainDeliverabilityCampaign_esps,
domainDeliverabilityCampaign_fromAddress,
domainDeliverabilityCampaign_deleteRate,
domainDeliverabilityCampaign_campaignId,
domainDeliverabilityCampaign_sendingIps,
domainDeliverabilityCampaign_firstSeenDateTime,
domainDeliverabilityCampaign_inboxCount,
domainDeliverabilityCampaign_readDeleteRate,
domainDeliverabilityCampaign_projectedVolume,
domainDeliverabilityCampaign_imageUrl,
domainDeliverabilityCampaign_readRate,
domainDeliverabilityCampaign_lastSeenDateTime,
DomainDeliverabilityTrackingOption (..),
newDomainDeliverabilityTrackingOption,
domainDeliverabilityTrackingOption_domain,
domainDeliverabilityTrackingOption_subscriptionStartDate,
domainDeliverabilityTrackingOption_inboxPlacementTrackingOption,
DomainIspPlacement (..),
newDomainIspPlacement,
domainIspPlacement_spamPercentage,
domainIspPlacement_inboxRawCount,
domainIspPlacement_ispName,
domainIspPlacement_inboxPercentage,
domainIspPlacement_spamRawCount,
EmailContent (..),
newEmailContent,
emailContent_raw,
emailContent_simple,
emailContent_template,
EmailTemplateContent (..),
newEmailTemplateContent,
emailTemplateContent_subject,
emailTemplateContent_text,
emailTemplateContent_html,
EmailTemplateMetadata (..),
newEmailTemplateMetadata,
emailTemplateMetadata_templateName,
emailTemplateMetadata_createdTimestamp,
EventDestination (..),
newEventDestination,
eventDestination_pinpointDestination,
eventDestination_enabled,
eventDestination_kinesisFirehoseDestination,
eventDestination_cloudWatchDestination,
eventDestination_snsDestination,
eventDestination_name,
eventDestination_matchingEventTypes,
EventDestinationDefinition (..),
newEventDestinationDefinition,
eventDestinationDefinition_matchingEventTypes,
eventDestinationDefinition_pinpointDestination,
eventDestinationDefinition_enabled,
eventDestinationDefinition_kinesisFirehoseDestination,
eventDestinationDefinition_cloudWatchDestination,
eventDestinationDefinition_snsDestination,
FailureInfo (..),
newFailureInfo,
failureInfo_failedRecordsS3Url,
failureInfo_errorMessage,
IdentityInfo (..),
newIdentityInfo,
identityInfo_identityType,
identityInfo_identityName,
identityInfo_sendingEnabled,
ImportDataSource (..),
newImportDataSource,
importDataSource_s3Url,
importDataSource_dataFormat,
ImportDestination (..),
newImportDestination,
importDestination_suppressionListDestination,
importDestination_contactListDestination,
ImportJobSummary (..),
newImportJobSummary,
importJobSummary_jobId,
importJobSummary_importDestination,
importJobSummary_jobStatus,
importJobSummary_createdTimestamp,
InboxPlacementTrackingOption (..),
newInboxPlacementTrackingOption,
inboxPlacementTrackingOption_trackedIsps,
inboxPlacementTrackingOption_global,
IspPlacement (..),
newIspPlacement,
ispPlacement_placementStatistics,
ispPlacement_ispName,
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,
OverallVolume (..),
newOverallVolume,
overallVolume_domainIspPlacements,
overallVolume_volumeStatistics,
overallVolume_readRatePercent,
PinpointDestination (..),
newPinpointDestination,
pinpointDestination_applicationArn,
PlacementStatistics (..),
newPlacementStatistics,
placementStatistics_missingPercentage,
placementStatistics_spamPercentage,
placementStatistics_spfPercentage,
placementStatistics_dkimPercentage,
placementStatistics_inboxPercentage,
RawMessage (..),
newRawMessage,
rawMessage_data,
ReplacementEmailContent (..),
newReplacementEmailContent,
replacementEmailContent_replacementTemplate,
ReplacementTemplate (..),
newReplacementTemplate,
replacementTemplate_replacementTemplateData,
ReputationOptions (..),
newReputationOptions,
reputationOptions_lastFreshStart,
reputationOptions_reputationMetricsEnabled,
ReviewDetails (..),
newReviewDetails,
reviewDetails_status,
reviewDetails_caseId,
SendQuota (..),
newSendQuota,
sendQuota_maxSendRate,
sendQuota_sentLast24Hours,
sendQuota_max24HourSend,
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_templateName,
template_templateArn,
template_templateData,
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,
VolumeStatistics (..),
newVolumeStatistics,
volumeStatistics_inboxRawCount,
volumeStatistics_projectedSpam,
volumeStatistics_projectedInbox,
volumeStatistics_spamRawCount,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SESV2.Types.AccountDetails
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.DataFormat
import Amazonka.SESV2.Types.DedicatedIp
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.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.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.OverallVolume
import Amazonka.SESV2.Types.PinpointDestination
import Amazonka.SESV2.Types.PlacementStatistics
import Amazonka.SESV2.Types.RawMessage
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.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.VolumeStatistics
import Amazonka.SESV2.Types.WarmupStatus
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
"SESV2",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"email",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"ses",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2019-09-27",
$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
"SESV2",
$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
_MessageRejected :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_MessageRejected :: Getting (First ServiceError) a ServiceError
_MessageRejected =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MessageRejected"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_MailFromDomainNotVerifiedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_MailFromDomainNotVerifiedException :: Getting (First ServiceError) a ServiceError
_MailFromDomainNotVerifiedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"MailFromDomainNotVerifiedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ConflictException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConflictException :: Getting (First ServiceError) a ServiceError
_ConflictException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_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"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_TooManyRequestsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyRequestsException :: Getting (First ServiceError) a ServiceError
_TooManyRequestsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_ConcurrentModificationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ConcurrentModificationException :: Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_InvalidNextTokenException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidNextTokenException :: Getting (First ServiceError) a ServiceError
_InvalidNextTokenException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNextTokenException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_AccountSuspendedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccountSuspendedException :: Getting (First ServiceError) a ServiceError
_AccountSuspendedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccountSuspendedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_SendingPausedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_SendingPausedException :: Getting (First ServiceError) a ServiceError
_SendingPausedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"SendingPausedException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_BadRequestException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_BadRequestException :: Getting (First ServiceError) a ServiceError
_BadRequestException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_AlreadyExistsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AlreadyExistsException :: Getting (First ServiceError) a ServiceError
_AlreadyExistsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AlreadyExistsException"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_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"
Getting (First ServiceError) a ServiceError
-> ((ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError -> Const (First ServiceError) ServiceError)
-> Getting (First ServiceError) a ServiceError
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Int
-> (ServiceError -> Const (First ServiceError) ServiceError)
-> ServiceError
-> Const (First ServiceError) ServiceError
forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400