{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DataExchange.Types
(
defaultService,
_ValidationException,
_AccessDeniedException,
_ConflictException,
_ServiceLimitExceededException,
_ThrottlingException,
_InternalServerException,
_ResourceNotFoundException,
AssetType (..),
Code (..),
JobErrorLimitName (..),
JobErrorResourceTypes (..),
Origin (..),
ServerSideEncryptionTypes (..),
State (..),
Type (..),
Action (..),
newAction,
action_exportRevisionToS3,
AssetDestinationEntry (..),
newAssetDestinationEntry,
assetDestinationEntry_key,
assetDestinationEntry_bucket,
assetDestinationEntry_assetId,
AssetDetails (..),
newAssetDetails,
assetDetails_s3SnapshotAsset,
assetDetails_redshiftDataShareAsset,
AssetEntry (..),
newAssetEntry,
assetEntry_sourceId,
assetEntry_assetType,
assetEntry_createdAt,
assetEntry_dataSetId,
assetEntry_id,
assetEntry_arn,
assetEntry_assetDetails,
assetEntry_updatedAt,
assetEntry_revisionId,
assetEntry_name,
AssetSourceEntry (..),
newAssetSourceEntry,
assetSourceEntry_bucket,
assetSourceEntry_key,
AutoExportRevisionDestinationEntry (..),
newAutoExportRevisionDestinationEntry,
autoExportRevisionDestinationEntry_keyPattern,
autoExportRevisionDestinationEntry_bucket,
AutoExportRevisionToS3RequestDetails (..),
newAutoExportRevisionToS3RequestDetails,
autoExportRevisionToS3RequestDetails_encryption,
autoExportRevisionToS3RequestDetails_revisionDestination,
DataSetEntry (..),
newDataSetEntry,
dataSetEntry_sourceId,
dataSetEntry_originDetails,
dataSetEntry_origin,
dataSetEntry_assetType,
dataSetEntry_description,
dataSetEntry_createdAt,
dataSetEntry_id,
dataSetEntry_arn,
dataSetEntry_updatedAt,
dataSetEntry_name,
Details (..),
newDetails,
details_importAssetFromSignedUrlJobErrorDetails,
details_importAssetsFromS3JobErrorDetails,
Event (..),
newEvent,
event_revisionPublished,
EventActionEntry (..),
newEventActionEntry,
eventActionEntry_action,
eventActionEntry_createdAt,
eventActionEntry_event,
eventActionEntry_id,
eventActionEntry_arn,
eventActionEntry_updatedAt,
ExportAssetToSignedUrlRequestDetails (..),
newExportAssetToSignedUrlRequestDetails,
exportAssetToSignedUrlRequestDetails_dataSetId,
exportAssetToSignedUrlRequestDetails_assetId,
exportAssetToSignedUrlRequestDetails_revisionId,
ExportAssetToSignedUrlResponseDetails (..),
newExportAssetToSignedUrlResponseDetails,
exportAssetToSignedUrlResponseDetails_signedUrl,
exportAssetToSignedUrlResponseDetails_signedUrlExpiresAt,
exportAssetToSignedUrlResponseDetails_dataSetId,
exportAssetToSignedUrlResponseDetails_assetId,
exportAssetToSignedUrlResponseDetails_revisionId,
ExportAssetsToS3RequestDetails (..),
newExportAssetsToS3RequestDetails,
exportAssetsToS3RequestDetails_encryption,
exportAssetsToS3RequestDetails_assetDestinations,
exportAssetsToS3RequestDetails_dataSetId,
exportAssetsToS3RequestDetails_revisionId,
ExportAssetsToS3ResponseDetails (..),
newExportAssetsToS3ResponseDetails,
exportAssetsToS3ResponseDetails_encryption,
exportAssetsToS3ResponseDetails_assetDestinations,
exportAssetsToS3ResponseDetails_dataSetId,
exportAssetsToS3ResponseDetails_revisionId,
ExportRevisionsToS3RequestDetails (..),
newExportRevisionsToS3RequestDetails,
exportRevisionsToS3RequestDetails_encryption,
exportRevisionsToS3RequestDetails_revisionDestinations,
exportRevisionsToS3RequestDetails_dataSetId,
ExportRevisionsToS3ResponseDetails (..),
newExportRevisionsToS3ResponseDetails,
exportRevisionsToS3ResponseDetails_encryption,
exportRevisionsToS3ResponseDetails_eventActionArn,
exportRevisionsToS3ResponseDetails_revisionDestinations,
exportRevisionsToS3ResponseDetails_dataSetId,
ExportServerSideEncryption (..),
newExportServerSideEncryption,
exportServerSideEncryption_kmsKeyArn,
exportServerSideEncryption_type,
ImportAssetFromSignedUrlJobErrorDetails (..),
newImportAssetFromSignedUrlJobErrorDetails,
importAssetFromSignedUrlJobErrorDetails_assetName,
ImportAssetFromSignedUrlRequestDetails (..),
newImportAssetFromSignedUrlRequestDetails,
importAssetFromSignedUrlRequestDetails_dataSetId,
importAssetFromSignedUrlRequestDetails_md5Hash,
importAssetFromSignedUrlRequestDetails_assetName,
importAssetFromSignedUrlRequestDetails_revisionId,
ImportAssetFromSignedUrlResponseDetails (..),
newImportAssetFromSignedUrlResponseDetails,
importAssetFromSignedUrlResponseDetails_signedUrl,
importAssetFromSignedUrlResponseDetails_signedUrlExpiresAt,
importAssetFromSignedUrlResponseDetails_md5Hash,
importAssetFromSignedUrlResponseDetails_dataSetId,
importAssetFromSignedUrlResponseDetails_assetName,
importAssetFromSignedUrlResponseDetails_revisionId,
ImportAssetsFromRedshiftDataSharesRequestDetails (..),
newImportAssetsFromRedshiftDataSharesRequestDetails,
importAssetsFromRedshiftDataSharesRequestDetails_dataSetId,
importAssetsFromRedshiftDataSharesRequestDetails_assetSources,
importAssetsFromRedshiftDataSharesRequestDetails_revisionId,
ImportAssetsFromRedshiftDataSharesResponseDetails (..),
newImportAssetsFromRedshiftDataSharesResponseDetails,
importAssetsFromRedshiftDataSharesResponseDetails_dataSetId,
importAssetsFromRedshiftDataSharesResponseDetails_assetSources,
importAssetsFromRedshiftDataSharesResponseDetails_revisionId,
ImportAssetsFromS3RequestDetails (..),
newImportAssetsFromS3RequestDetails,
importAssetsFromS3RequestDetails_dataSetId,
importAssetsFromS3RequestDetails_assetSources,
importAssetsFromS3RequestDetails_revisionId,
ImportAssetsFromS3ResponseDetails (..),
newImportAssetsFromS3ResponseDetails,
importAssetsFromS3ResponseDetails_dataSetId,
importAssetsFromS3ResponseDetails_assetSources,
importAssetsFromS3ResponseDetails_revisionId,
JobEntry (..),
newJobEntry,
jobEntry_errors,
jobEntry_type,
jobEntry_details,
jobEntry_state,
jobEntry_createdAt,
jobEntry_id,
jobEntry_arn,
jobEntry_updatedAt,
JobError (..),
newJobError,
jobError_resourceId,
jobError_limitName,
jobError_resourceType,
jobError_details,
jobError_limitValue,
jobError_message,
jobError_code,
OriginDetails (..),
newOriginDetails,
originDetails_productId,
RedshiftDataShareAsset (..),
newRedshiftDataShareAsset,
redshiftDataShareAsset_arn,
RedshiftDataShareAssetSourceEntry (..),
newRedshiftDataShareAssetSourceEntry,
redshiftDataShareAssetSourceEntry_dataShareArn,
RequestDetails (..),
newRequestDetails,
requestDetails_exportAssetsToS3,
requestDetails_exportRevisionsToS3,
requestDetails_importAssetFromSignedUrl,
requestDetails_importAssetsFromRedshiftDataShares,
requestDetails_importAssetsFromS3,
requestDetails_exportAssetToSignedUrl,
ResponseDetails (..),
newResponseDetails,
responseDetails_exportAssetsToS3,
responseDetails_exportRevisionsToS3,
responseDetails_importAssetFromSignedUrl,
responseDetails_importAssetsFromRedshiftDataShares,
responseDetails_importAssetsFromS3,
responseDetails_exportAssetToSignedUrl,
RevisionDestinationEntry (..),
newRevisionDestinationEntry,
revisionDestinationEntry_keyPattern,
revisionDestinationEntry_bucket,
revisionDestinationEntry_revisionId,
RevisionEntry (..),
newRevisionEntry,
revisionEntry_sourceId,
revisionEntry_finalized,
revisionEntry_comment,
revisionEntry_createdAt,
revisionEntry_dataSetId,
revisionEntry_id,
revisionEntry_arn,
revisionEntry_updatedAt,
RevisionPublished (..),
newRevisionPublished,
revisionPublished_dataSetId,
S3SnapshotAsset (..),
newS3SnapshotAsset,
s3SnapshotAsset_size,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataExchange.Types.Action
import Amazonka.DataExchange.Types.AssetDestinationEntry
import Amazonka.DataExchange.Types.AssetDetails
import Amazonka.DataExchange.Types.AssetEntry
import Amazonka.DataExchange.Types.AssetSourceEntry
import Amazonka.DataExchange.Types.AssetType
import Amazonka.DataExchange.Types.AutoExportRevisionDestinationEntry
import Amazonka.DataExchange.Types.AutoExportRevisionToS3RequestDetails
import Amazonka.DataExchange.Types.Code
import Amazonka.DataExchange.Types.DataSetEntry
import Amazonka.DataExchange.Types.Details
import Amazonka.DataExchange.Types.Event
import Amazonka.DataExchange.Types.EventActionEntry
import Amazonka.DataExchange.Types.ExportAssetToSignedUrlRequestDetails
import Amazonka.DataExchange.Types.ExportAssetToSignedUrlResponseDetails
import Amazonka.DataExchange.Types.ExportAssetsToS3RequestDetails
import Amazonka.DataExchange.Types.ExportAssetsToS3ResponseDetails
import Amazonka.DataExchange.Types.ExportRevisionsToS3RequestDetails
import Amazonka.DataExchange.Types.ExportRevisionsToS3ResponseDetails
import Amazonka.DataExchange.Types.ExportServerSideEncryption
import Amazonka.DataExchange.Types.ImportAssetFromSignedUrlJobErrorDetails
import Amazonka.DataExchange.Types.ImportAssetFromSignedUrlRequestDetails
import Amazonka.DataExchange.Types.ImportAssetFromSignedUrlResponseDetails
import Amazonka.DataExchange.Types.ImportAssetsFromRedshiftDataSharesRequestDetails
import Amazonka.DataExchange.Types.ImportAssetsFromRedshiftDataSharesResponseDetails
import Amazonka.DataExchange.Types.ImportAssetsFromS3RequestDetails
import Amazonka.DataExchange.Types.ImportAssetsFromS3ResponseDetails
import Amazonka.DataExchange.Types.JobEntry
import Amazonka.DataExchange.Types.JobError
import Amazonka.DataExchange.Types.JobErrorLimitName
import Amazonka.DataExchange.Types.JobErrorResourceTypes
import Amazonka.DataExchange.Types.Origin
import Amazonka.DataExchange.Types.OriginDetails
import Amazonka.DataExchange.Types.RedshiftDataShareAsset
import Amazonka.DataExchange.Types.RedshiftDataShareAssetSourceEntry
import Amazonka.DataExchange.Types.RequestDetails
import Amazonka.DataExchange.Types.ResponseDetails
import Amazonka.DataExchange.Types.RevisionDestinationEntry
import Amazonka.DataExchange.Types.RevisionEntry
import Amazonka.DataExchange.Types.RevisionPublished
import Amazonka.DataExchange.Types.S3SnapshotAsset
import Amazonka.DataExchange.Types.ServerSideEncryptionTypes
import Amazonka.DataExchange.Types.State
import Amazonka.DataExchange.Types.Type
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
"DataExchange",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"dataexchange",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"dataexchange",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2017-07-25",
$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
"DataExchange",
$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
_ValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ValidationException :: Getting (First ServiceError) a ServiceError
_ValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"
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
_AccessDeniedException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_AccessDeniedException :: Getting (First ServiceError) a ServiceError
_AccessDeniedException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
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
403
_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
_ServiceLimitExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceLimitExceededException :: Getting (First ServiceError) a ServiceError
_ServiceLimitExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceLimitExceededException"
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
402
_ThrottlingException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ThrottlingException :: Getting (First ServiceError) a ServiceError
_ThrottlingException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
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
_InternalServerException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InternalServerException :: Getting (First ServiceError) a ServiceError
_InternalServerException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
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
_ResourceNotFoundException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceNotFoundException :: Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
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