{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KinesisAnalytics.Types
(
defaultService,
_InvalidApplicationConfigurationException,
_ResourceProvisionedThroughputExceededException,
_UnsupportedOperationException,
_InvalidArgumentException,
_TooManyTagsException,
_CodeValidationException,
_ConcurrentModificationException,
_ServiceUnavailableException,
_UnableToDetectSchemaException,
_ResourceNotFoundException,
_LimitExceededException,
_ResourceInUseException,
ApplicationStatus (..),
InputStartingPosition (..),
RecordFormatType (..),
ApplicationDetail (..),
newApplicationDetail,
applicationDetail_applicationDescription,
applicationDetail_outputDescriptions,
applicationDetail_cloudWatchLoggingOptionDescriptions,
applicationDetail_referenceDataSourceDescriptions,
applicationDetail_inputDescriptions,
applicationDetail_applicationCode,
applicationDetail_createTimestamp,
applicationDetail_lastUpdateTimestamp,
applicationDetail_applicationName,
applicationDetail_applicationARN,
applicationDetail_applicationStatus,
applicationDetail_applicationVersionId,
ApplicationSummary (..),
newApplicationSummary,
applicationSummary_applicationName,
applicationSummary_applicationARN,
applicationSummary_applicationStatus,
ApplicationUpdate (..),
newApplicationUpdate,
applicationUpdate_referenceDataSourceUpdates,
applicationUpdate_inputUpdates,
applicationUpdate_cloudWatchLoggingOptionUpdates,
applicationUpdate_outputUpdates,
applicationUpdate_applicationCodeUpdate,
CSVMappingParameters (..),
newCSVMappingParameters,
cSVMappingParameters_recordRowDelimiter,
cSVMappingParameters_recordColumnDelimiter,
CloudWatchLoggingOption (..),
newCloudWatchLoggingOption,
cloudWatchLoggingOption_logStreamARN,
cloudWatchLoggingOption_roleARN,
CloudWatchLoggingOptionDescription (..),
newCloudWatchLoggingOptionDescription,
cloudWatchLoggingOptionDescription_cloudWatchLoggingOptionId,
cloudWatchLoggingOptionDescription_logStreamARN,
cloudWatchLoggingOptionDescription_roleARN,
CloudWatchLoggingOptionUpdate (..),
newCloudWatchLoggingOptionUpdate,
cloudWatchLoggingOptionUpdate_roleARNUpdate,
cloudWatchLoggingOptionUpdate_logStreamARNUpdate,
cloudWatchLoggingOptionUpdate_cloudWatchLoggingOptionId,
DestinationSchema (..),
newDestinationSchema,
destinationSchema_recordFormatType,
Input (..),
newInput,
input_inputParallelism,
input_inputProcessingConfiguration,
input_kinesisStreamsInput,
input_kinesisFirehoseInput,
input_namePrefix,
input_inputSchema,
InputConfiguration (..),
newInputConfiguration,
inputConfiguration_id,
inputConfiguration_inputStartingPositionConfiguration,
InputDescription (..),
newInputDescription,
inputDescription_inputStartingPositionConfiguration,
inputDescription_inputParallelism,
inputDescription_inputId,
inputDescription_inAppStreamNames,
inputDescription_kinesisFirehoseInputDescription,
inputDescription_inputSchema,
inputDescription_kinesisStreamsInputDescription,
inputDescription_namePrefix,
inputDescription_inputProcessingConfigurationDescription,
InputLambdaProcessor (..),
newInputLambdaProcessor,
inputLambdaProcessor_resourceARN,
inputLambdaProcessor_roleARN,
InputLambdaProcessorDescription (..),
newInputLambdaProcessorDescription,
inputLambdaProcessorDescription_resourceARN,
inputLambdaProcessorDescription_roleARN,
InputLambdaProcessorUpdate (..),
newInputLambdaProcessorUpdate,
inputLambdaProcessorUpdate_roleARNUpdate,
inputLambdaProcessorUpdate_resourceARNUpdate,
InputParallelism (..),
newInputParallelism,
inputParallelism_count,
InputParallelismUpdate (..),
newInputParallelismUpdate,
inputParallelismUpdate_countUpdate,
InputProcessingConfiguration (..),
newInputProcessingConfiguration,
inputProcessingConfiguration_inputLambdaProcessor,
InputProcessingConfigurationDescription (..),
newInputProcessingConfigurationDescription,
inputProcessingConfigurationDescription_inputLambdaProcessorDescription,
InputProcessingConfigurationUpdate (..),
newInputProcessingConfigurationUpdate,
inputProcessingConfigurationUpdate_inputLambdaProcessorUpdate,
InputSchemaUpdate (..),
newInputSchemaUpdate,
inputSchemaUpdate_recordFormatUpdate,
inputSchemaUpdate_recordEncodingUpdate,
inputSchemaUpdate_recordColumnUpdates,
InputStartingPositionConfiguration (..),
newInputStartingPositionConfiguration,
inputStartingPositionConfiguration_inputStartingPosition,
InputUpdate (..),
newInputUpdate,
inputUpdate_inputProcessingConfigurationUpdate,
inputUpdate_kinesisStreamsInputUpdate,
inputUpdate_inputParallelismUpdate,
inputUpdate_namePrefixUpdate,
inputUpdate_inputSchemaUpdate,
inputUpdate_kinesisFirehoseInputUpdate,
inputUpdate_inputId,
JSONMappingParameters (..),
newJSONMappingParameters,
jSONMappingParameters_recordRowPath,
KinesisFirehoseInput (..),
newKinesisFirehoseInput,
kinesisFirehoseInput_resourceARN,
kinesisFirehoseInput_roleARN,
KinesisFirehoseInputDescription (..),
newKinesisFirehoseInputDescription,
kinesisFirehoseInputDescription_resourceARN,
kinesisFirehoseInputDescription_roleARN,
KinesisFirehoseInputUpdate (..),
newKinesisFirehoseInputUpdate,
kinesisFirehoseInputUpdate_roleARNUpdate,
kinesisFirehoseInputUpdate_resourceARNUpdate,
KinesisFirehoseOutput (..),
newKinesisFirehoseOutput,
kinesisFirehoseOutput_resourceARN,
kinesisFirehoseOutput_roleARN,
KinesisFirehoseOutputDescription (..),
newKinesisFirehoseOutputDescription,
kinesisFirehoseOutputDescription_resourceARN,
kinesisFirehoseOutputDescription_roleARN,
KinesisFirehoseOutputUpdate (..),
newKinesisFirehoseOutputUpdate,
kinesisFirehoseOutputUpdate_roleARNUpdate,
kinesisFirehoseOutputUpdate_resourceARNUpdate,
KinesisStreamsInput (..),
newKinesisStreamsInput,
kinesisStreamsInput_resourceARN,
kinesisStreamsInput_roleARN,
KinesisStreamsInputDescription (..),
newKinesisStreamsInputDescription,
kinesisStreamsInputDescription_resourceARN,
kinesisStreamsInputDescription_roleARN,
KinesisStreamsInputUpdate (..),
newKinesisStreamsInputUpdate,
kinesisStreamsInputUpdate_roleARNUpdate,
kinesisStreamsInputUpdate_resourceARNUpdate,
KinesisStreamsOutput (..),
newKinesisStreamsOutput,
kinesisStreamsOutput_resourceARN,
kinesisStreamsOutput_roleARN,
KinesisStreamsOutputDescription (..),
newKinesisStreamsOutputDescription,
kinesisStreamsOutputDescription_resourceARN,
kinesisStreamsOutputDescription_roleARN,
KinesisStreamsOutputUpdate (..),
newKinesisStreamsOutputUpdate,
kinesisStreamsOutputUpdate_roleARNUpdate,
kinesisStreamsOutputUpdate_resourceARNUpdate,
LambdaOutput (..),
newLambdaOutput,
lambdaOutput_resourceARN,
lambdaOutput_roleARN,
LambdaOutputDescription (..),
newLambdaOutputDescription,
lambdaOutputDescription_resourceARN,
lambdaOutputDescription_roleARN,
LambdaOutputUpdate (..),
newLambdaOutputUpdate,
lambdaOutputUpdate_roleARNUpdate,
lambdaOutputUpdate_resourceARNUpdate,
MappingParameters (..),
newMappingParameters,
mappingParameters_cSVMappingParameters,
mappingParameters_jSONMappingParameters,
Output (..),
newOutput,
output_lambdaOutput,
output_kinesisStreamsOutput,
output_kinesisFirehoseOutput,
output_name,
output_destinationSchema,
OutputDescription (..),
newOutputDescription,
outputDescription_outputId,
outputDescription_destinationSchema,
outputDescription_kinesisFirehoseOutputDescription,
outputDescription_kinesisStreamsOutputDescription,
outputDescription_name,
outputDescription_lambdaOutputDescription,
OutputUpdate (..),
newOutputUpdate,
outputUpdate_kinesisStreamsOutputUpdate,
outputUpdate_destinationSchemaUpdate,
outputUpdate_kinesisFirehoseOutputUpdate,
outputUpdate_nameUpdate,
outputUpdate_lambdaOutputUpdate,
outputUpdate_outputId,
RecordColumn (..),
newRecordColumn,
recordColumn_mapping,
recordColumn_name,
recordColumn_sqlType,
RecordFormat (..),
newRecordFormat,
recordFormat_mappingParameters,
recordFormat_recordFormatType,
ReferenceDataSource (..),
newReferenceDataSource,
referenceDataSource_s3ReferenceDataSource,
referenceDataSource_tableName,
referenceDataSource_referenceSchema,
ReferenceDataSourceDescription (..),
newReferenceDataSourceDescription,
referenceDataSourceDescription_referenceSchema,
referenceDataSourceDescription_referenceId,
referenceDataSourceDescription_tableName,
referenceDataSourceDescription_s3ReferenceDataSourceDescription,
ReferenceDataSourceUpdate (..),
newReferenceDataSourceUpdate,
referenceDataSourceUpdate_tableNameUpdate,
referenceDataSourceUpdate_s3ReferenceDataSourceUpdate,
referenceDataSourceUpdate_referenceSchemaUpdate,
referenceDataSourceUpdate_referenceId,
S3Configuration (..),
newS3Configuration,
s3Configuration_roleARN,
s3Configuration_bucketARN,
s3Configuration_fileKey,
S3ReferenceDataSource (..),
newS3ReferenceDataSource,
s3ReferenceDataSource_bucketARN,
s3ReferenceDataSource_fileKey,
s3ReferenceDataSource_referenceRoleARN,
S3ReferenceDataSourceDescription (..),
newS3ReferenceDataSourceDescription,
s3ReferenceDataSourceDescription_bucketARN,
s3ReferenceDataSourceDescription_fileKey,
s3ReferenceDataSourceDescription_referenceRoleARN,
S3ReferenceDataSourceUpdate (..),
newS3ReferenceDataSourceUpdate,
s3ReferenceDataSourceUpdate_bucketARNUpdate,
s3ReferenceDataSourceUpdate_fileKeyUpdate,
s3ReferenceDataSourceUpdate_referenceRoleARNUpdate,
SourceSchema (..),
newSourceSchema,
sourceSchema_recordEncoding,
sourceSchema_recordFormat,
sourceSchema_recordColumns,
Tag (..),
newTag,
tag_value,
tag_key,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalytics.Types.ApplicationDetail
import Amazonka.KinesisAnalytics.Types.ApplicationStatus
import Amazonka.KinesisAnalytics.Types.ApplicationSummary
import Amazonka.KinesisAnalytics.Types.ApplicationUpdate
import Amazonka.KinesisAnalytics.Types.CSVMappingParameters
import Amazonka.KinesisAnalytics.Types.CloudWatchLoggingOption
import Amazonka.KinesisAnalytics.Types.CloudWatchLoggingOptionDescription
import Amazonka.KinesisAnalytics.Types.CloudWatchLoggingOptionUpdate
import Amazonka.KinesisAnalytics.Types.DestinationSchema
import Amazonka.KinesisAnalytics.Types.Input
import Amazonka.KinesisAnalytics.Types.InputConfiguration
import Amazonka.KinesisAnalytics.Types.InputDescription
import Amazonka.KinesisAnalytics.Types.InputLambdaProcessor
import Amazonka.KinesisAnalytics.Types.InputLambdaProcessorDescription
import Amazonka.KinesisAnalytics.Types.InputLambdaProcessorUpdate
import Amazonka.KinesisAnalytics.Types.InputParallelism
import Amazonka.KinesisAnalytics.Types.InputParallelismUpdate
import Amazonka.KinesisAnalytics.Types.InputProcessingConfiguration
import Amazonka.KinesisAnalytics.Types.InputProcessingConfigurationDescription
import Amazonka.KinesisAnalytics.Types.InputProcessingConfigurationUpdate
import Amazonka.KinesisAnalytics.Types.InputSchemaUpdate
import Amazonka.KinesisAnalytics.Types.InputStartingPosition
import Amazonka.KinesisAnalytics.Types.InputStartingPositionConfiguration
import Amazonka.KinesisAnalytics.Types.InputUpdate
import Amazonka.KinesisAnalytics.Types.JSONMappingParameters
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseInput
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseInputDescription
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseInputUpdate
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseOutput
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseOutputDescription
import Amazonka.KinesisAnalytics.Types.KinesisFirehoseOutputUpdate
import Amazonka.KinesisAnalytics.Types.KinesisStreamsInput
import Amazonka.KinesisAnalytics.Types.KinesisStreamsInputDescription
import Amazonka.KinesisAnalytics.Types.KinesisStreamsInputUpdate
import Amazonka.KinesisAnalytics.Types.KinesisStreamsOutput
import Amazonka.KinesisAnalytics.Types.KinesisStreamsOutputDescription
import Amazonka.KinesisAnalytics.Types.KinesisStreamsOutputUpdate
import Amazonka.KinesisAnalytics.Types.LambdaOutput
import Amazonka.KinesisAnalytics.Types.LambdaOutputDescription
import Amazonka.KinesisAnalytics.Types.LambdaOutputUpdate
import Amazonka.KinesisAnalytics.Types.MappingParameters
import Amazonka.KinesisAnalytics.Types.Output
import Amazonka.KinesisAnalytics.Types.OutputDescription
import Amazonka.KinesisAnalytics.Types.OutputUpdate
import Amazonka.KinesisAnalytics.Types.RecordColumn
import Amazonka.KinesisAnalytics.Types.RecordFormat
import Amazonka.KinesisAnalytics.Types.RecordFormatType
import Amazonka.KinesisAnalytics.Types.ReferenceDataSource
import Amazonka.KinesisAnalytics.Types.ReferenceDataSourceDescription
import Amazonka.KinesisAnalytics.Types.ReferenceDataSourceUpdate
import Amazonka.KinesisAnalytics.Types.S3Configuration
import Amazonka.KinesisAnalytics.Types.S3ReferenceDataSource
import Amazonka.KinesisAnalytics.Types.S3ReferenceDataSourceDescription
import Amazonka.KinesisAnalytics.Types.S3ReferenceDataSourceUpdate
import Amazonka.KinesisAnalytics.Types.SourceSchema
import Amazonka.KinesisAnalytics.Types.Tag
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
"KinesisAnalytics",
$sel:_serviceSigner:Service :: Signer
Core._serviceSigner = Signer
Sign.v4,
$sel:_serviceEndpointPrefix:Service :: ByteString
Core._serviceEndpointPrefix = ByteString
"kinesisanalytics",
$sel:_serviceSigningName:Service :: ByteString
Core._serviceSigningName = ByteString
"kinesisanalytics",
$sel:_serviceVersion:Service :: ByteString
Core._serviceVersion = ByteString
"2015-08-14",
$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
"KinesisAnalytics",
$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
_InvalidApplicationConfigurationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidApplicationConfigurationException :: Getting (First ServiceError) a ServiceError
_InvalidApplicationConfigurationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidApplicationConfigurationException"
_ResourceProvisionedThroughputExceededException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceProvisionedThroughputExceededException :: Getting (First ServiceError) a ServiceError
_ResourceProvisionedThroughputExceededException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceProvisionedThroughputExceededException"
_UnsupportedOperationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnsupportedOperationException :: Getting (First ServiceError) a ServiceError
_UnsupportedOperationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnsupportedOperationException"
_InvalidArgumentException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_InvalidArgumentException :: Getting (First ServiceError) a ServiceError
_InvalidArgumentException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidArgumentException"
_TooManyTagsException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_TooManyTagsException :: Getting (First ServiceError) a ServiceError
_TooManyTagsException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyTagsException"
_CodeValidationException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_CodeValidationException :: Getting (First ServiceError) a ServiceError
_CodeValidationException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"CodeValidationException"
_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"
_ServiceUnavailableException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ServiceUnavailableException :: Getting (First ServiceError) a ServiceError
_ServiceUnavailableException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
_UnableToDetectSchemaException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_UnableToDetectSchemaException :: Getting (First ServiceError) a ServiceError
_UnableToDetectSchemaException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnableToDetectSchemaException"
_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"
_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"
_ResourceInUseException :: Core.AsError a => Lens.Getting (Prelude.First Core.ServiceError) a Core.ServiceError
_ResourceInUseException :: Getting (First ServiceError) a ServiceError
_ResourceInUseException =
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
forall a.
AsError a =>
Service -> ErrorCode -> Getting (First ServiceError) a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceInUseException"