module Network.AWS.Firehose.Types
(
firehose
, _InvalidStreamTypeException
, _InvalidArgumentException
, _ConcurrentModificationException
, _ServiceUnavailableException
, _ResourceNotFoundException
, _LimitExceededException
, _ResourceInUseException
, CompressionFormat (..)
, DeliveryStreamStatus (..)
, DeliveryStreamType (..)
, ElasticsearchIndexRotationPeriod (..)
, ElasticsearchS3BackupMode (..)
, NoEncryptionConfig (..)
, ProcessorParameterName (..)
, ProcessorType (..)
, RedshiftS3BackupMode (..)
, S3BackupMode (..)
, BufferingHints
, bufferingHints
, bhSizeInMBs
, bhIntervalInSeconds
, CloudWatchLoggingOptions
, cloudWatchLoggingOptions
, cwloEnabled
, cwloLogGroupName
, cwloLogStreamName
, CopyCommand
, copyCommand
, ccCopyOptions
, ccDataTableColumns
, ccDataTableName
, DeliveryStreamDescription
, deliveryStreamDescription
, dsdCreateTimestamp
, dsdSource
, dsdLastUpdateTimestamp
, dsdDeliveryStreamName
, dsdDeliveryStreamARN
, dsdDeliveryStreamStatus
, dsdDeliveryStreamType
, dsdVersionId
, dsdDestinations
, dsdHasMoreDestinations
, DestinationDescription
, destinationDescription
, ddS3DestinationDescription
, ddExtendedS3DestinationDescription
, ddElasticsearchDestinationDescription
, ddRedshiftDestinationDescription
, ddDestinationId
, ElasticsearchBufferingHints
, elasticsearchBufferingHints
, ebhSizeInMBs
, ebhIntervalInSeconds
, ElasticsearchDestinationConfiguration
, elasticsearchDestinationConfiguration
, edcIndexRotationPeriod
, edcS3BackupMode
, edcCloudWatchLoggingOptions
, edcBufferingHints
, edcRetryOptions
, edcProcessingConfiguration
, edcRoleARN
, edcDomainARN
, edcIndexName
, edcTypeName
, edcS3Configuration
, ElasticsearchDestinationDescription
, elasticsearchDestinationDescription
, eddIndexRotationPeriod
, eddTypeName
, eddS3BackupMode
, eddDomainARN
, eddCloudWatchLoggingOptions
, eddS3DestinationDescription
, eddBufferingHints
, eddRetryOptions
, eddProcessingConfiguration
, eddRoleARN
, eddIndexName
, ElasticsearchDestinationUpdate
, elasticsearchDestinationUpdate
, eduIndexRotationPeriod
, eduTypeName
, eduDomainARN
, eduCloudWatchLoggingOptions
, eduS3Update
, eduBufferingHints
, eduRetryOptions
, eduProcessingConfiguration
, eduRoleARN
, eduIndexName
, ElasticsearchRetryOptions
, elasticsearchRetryOptions
, eroDurationInSeconds
, EncryptionConfiguration
, encryptionConfiguration
, ecNoEncryptionConfig
, ecKMSEncryptionConfig
, ExtendedS3DestinationConfiguration
, extendedS3DestinationConfiguration
, esdcS3BackupMode
, esdcPrefix
, esdcCloudWatchLoggingOptions
, esdcS3BackupConfiguration
, esdcEncryptionConfiguration
, esdcCompressionFormat
, esdcBufferingHints
, esdcProcessingConfiguration
, esdcRoleARN
, esdcBucketARN
, ExtendedS3DestinationDescription
, extendedS3DestinationDescription
, esddS3BackupMode
, esddS3BackupDescription
, esddPrefix
, esddCloudWatchLoggingOptions
, esddProcessingConfiguration
, esddRoleARN
, esddBucketARN
, esddBufferingHints
, esddCompressionFormat
, esddEncryptionConfiguration
, ExtendedS3DestinationUpdate
, extendedS3DestinationUpdate
, esduS3BackupMode
, esduPrefix
, esduCloudWatchLoggingOptions
, esduS3BackupUpdate
, esduEncryptionConfiguration
, esduCompressionFormat
, esduBufferingHints
, esduBucketARN
, esduProcessingConfiguration
, esduRoleARN
, KMSEncryptionConfig
, kmsEncryptionConfig
, kecAWSKMSKeyARN
, KinesisStreamSourceConfiguration
, kinesisStreamSourceConfiguration
, ksscKinesisStreamARN
, ksscRoleARN
, KinesisStreamSourceDescription
, kinesisStreamSourceDescription
, kssdDeliveryStartTimestamp
, kssdKinesisStreamARN
, kssdRoleARN
, ProcessingConfiguration
, processingConfiguration
, pcEnabled
, pcProcessors
, Processor
, processor
, pParameters
, pType
, ProcessorParameter
, processorParameter
, ppParameterName
, ppParameterValue
, PutRecordBatchResponseEntry
, putRecordBatchResponseEntry
, prbreRecordId
, prbreErrorCode
, prbreErrorMessage
, Record
, record
, rData
, RedshiftDestinationConfiguration
, redshiftDestinationConfiguration
, rdcS3BackupMode
, rdcCloudWatchLoggingOptions
, rdcS3BackupConfiguration
, rdcRetryOptions
, rdcProcessingConfiguration
, rdcRoleARN
, rdcClusterJDBCURL
, rdcCopyCommand
, rdcUsername
, rdcPassword
, rdcS3Configuration
, RedshiftDestinationDescription
, redshiftDestinationDescription
, rddS3BackupMode
, rddS3BackupDescription
, rddCloudWatchLoggingOptions
, rddRetryOptions
, rddProcessingConfiguration
, rddRoleARN
, rddClusterJDBCURL
, rddCopyCommand
, rddUsername
, rddS3DestinationDescription
, RedshiftDestinationUpdate
, redshiftDestinationUpdate
, rduS3BackupMode
, rduCloudWatchLoggingOptions
, rduUsername
, rduS3Update
, rduPassword
, rduS3BackupUpdate
, rduCopyCommand
, rduRetryOptions
, rduProcessingConfiguration
, rduClusterJDBCURL
, rduRoleARN
, RedshiftRetryOptions
, redshiftRetryOptions
, rroDurationInSeconds
, S3DestinationConfiguration
, s3DestinationConfiguration
, sdcPrefix
, sdcCloudWatchLoggingOptions
, sdcEncryptionConfiguration
, sdcCompressionFormat
, sdcBufferingHints
, sdcRoleARN
, sdcBucketARN
, S3DestinationDescription
, s3DestinationDescription
, sddPrefix
, sddCloudWatchLoggingOptions
, sddRoleARN
, sddBucketARN
, sddBufferingHints
, sddCompressionFormat
, sddEncryptionConfiguration
, S3DestinationUpdate
, s3DestinationUpdate
, sduPrefix
, sduCloudWatchLoggingOptions
, sduEncryptionConfiguration
, sduCompressionFormat
, sduBufferingHints
, sduBucketARN
, sduRoleARN
, SessionCredentials
, sessionCredentials
, scAccessKeyId
, scSecretAccessKey
, scSessionToken
, scExpiration
, SourceDescription
, sourceDescription
, sdKinesisStreamSourceDescription
) where
import Network.AWS.Firehose.Types.Product
import Network.AWS.Firehose.Types.Sum
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Sign.V4
firehose :: Service
firehose =
Service
{ _svcAbbrev = "Firehose"
, _svcSigner = v4
, _svcPrefix = "firehose"
, _svcVersion = "2015-08-04"
, _svcEndpoint = defaultEndpoint firehose
, _svcTimeout = Just 70
, _svcCheck = statusSuccess
, _svcError = parseJSONError "Firehose"
, _svcRetry = retry
}
where
retry =
Exponential
{ _retryBase = 5.0e-2
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check e
| has (hasCode "ThrottledException" . hasStatus 400) e =
Just "throttled_exception"
| has (hasStatus 429) e = Just "too_many_requests"
| has (hasCode "ThrottlingException" . hasStatus 400) e =
Just "throttling_exception"
| has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"
| has (hasStatus 504) e = Just "gateway_timeout"
| has (hasStatus 502) e = Just "bad_gateway"
| has (hasStatus 503) e = Just "service_unavailable"
| has (hasStatus 500) e = Just "general_server_error"
| has (hasStatus 509) e = Just "limit_exceeded"
| otherwise = Nothing
_InvalidStreamTypeException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidStreamTypeException =
_MatchServiceError firehose "InvalidStreamTypeException"
_InvalidArgumentException :: AsError a => Getting (First ServiceError) a ServiceError
_InvalidArgumentException =
_MatchServiceError firehose "InvalidArgumentException"
_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError
_ConcurrentModificationException =
_MatchServiceError firehose "ConcurrentModificationException"
_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
_ServiceUnavailableException =
_MatchServiceError firehose "ServiceUnavailableException"
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceNotFoundException =
_MatchServiceError firehose "ResourceNotFoundException"
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
_LimitExceededException = _MatchServiceError firehose "LimitExceededException"
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
_ResourceInUseException = _MatchServiceError firehose "ResourceInUseException"