{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Kafka.Types
(
defaultService,
_BadRequestException,
_ConflictException,
_ForbiddenException,
_InternalServerErrorException,
_NotFoundException,
_ServiceUnavailableException,
_TooManyRequestsException,
_UnauthorizedException,
BrokerAZDistribution (..),
ClientBroker (..),
ClusterState (..),
ClusterType (..),
ConfigurationState (..),
EnhancedMonitoring (..),
KafkaVersionStatus (..),
NodeType (..),
StorageMode (..),
BrokerEBSVolumeInfo (..),
newBrokerEBSVolumeInfo,
brokerEBSVolumeInfo_provisionedThroughput,
brokerEBSVolumeInfo_volumeSizeGB,
brokerEBSVolumeInfo_kafkaBrokerNodeId,
BrokerLogs (..),
newBrokerLogs,
brokerLogs_cloudWatchLogs,
brokerLogs_firehose,
brokerLogs_s3,
BrokerNodeGroupInfo (..),
newBrokerNodeGroupInfo,
brokerNodeGroupInfo_brokerAZDistribution,
brokerNodeGroupInfo_connectivityInfo,
brokerNodeGroupInfo_securityGroups,
brokerNodeGroupInfo_storageInfo,
brokerNodeGroupInfo_clientSubnets,
brokerNodeGroupInfo_instanceType,
BrokerNodeInfo (..),
newBrokerNodeInfo,
brokerNodeInfo_attachedENIId,
brokerNodeInfo_brokerId,
brokerNodeInfo_clientSubnet,
brokerNodeInfo_clientVpcIpAddress,
brokerNodeInfo_currentBrokerSoftwareInfo,
brokerNodeInfo_endpoints,
BrokerSoftwareInfo (..),
newBrokerSoftwareInfo,
brokerSoftwareInfo_configurationArn,
brokerSoftwareInfo_configurationRevision,
brokerSoftwareInfo_kafkaVersion,
ClientAuthentication (..),
newClientAuthentication,
clientAuthentication_sasl,
clientAuthentication_tls,
clientAuthentication_unauthenticated,
CloudWatchLogs (..),
newCloudWatchLogs,
cloudWatchLogs_logGroup,
cloudWatchLogs_enabled,
Cluster (..),
newCluster,
cluster_activeOperationArn,
cluster_clusterArn,
cluster_clusterName,
cluster_clusterType,
cluster_creationTime,
cluster_currentVersion,
cluster_provisioned,
cluster_serverless,
cluster_state,
cluster_stateInfo,
cluster_tags,
ClusterInfo (..),
newClusterInfo,
clusterInfo_activeOperationArn,
clusterInfo_brokerNodeGroupInfo,
clusterInfo_clientAuthentication,
clusterInfo_clusterArn,
clusterInfo_clusterName,
clusterInfo_creationTime,
clusterInfo_currentBrokerSoftwareInfo,
clusterInfo_currentVersion,
clusterInfo_encryptionInfo,
clusterInfo_enhancedMonitoring,
clusterInfo_loggingInfo,
clusterInfo_numberOfBrokerNodes,
clusterInfo_openMonitoring,
clusterInfo_state,
clusterInfo_stateInfo,
clusterInfo_storageMode,
clusterInfo_tags,
clusterInfo_zookeeperConnectString,
clusterInfo_zookeeperConnectStringTls,
ClusterOperationInfo (..),
newClusterOperationInfo,
clusterOperationInfo_clientRequestId,
clusterOperationInfo_clusterArn,
clusterOperationInfo_creationTime,
clusterOperationInfo_endTime,
clusterOperationInfo_errorInfo,
clusterOperationInfo_operationArn,
clusterOperationInfo_operationState,
clusterOperationInfo_operationSteps,
clusterOperationInfo_operationType,
clusterOperationInfo_sourceClusterInfo,
clusterOperationInfo_targetClusterInfo,
ClusterOperationStep (..),
newClusterOperationStep,
clusterOperationStep_stepInfo,
clusterOperationStep_stepName,
ClusterOperationStepInfo (..),
newClusterOperationStepInfo,
clusterOperationStepInfo_stepStatus,
CompatibleKafkaVersion (..),
newCompatibleKafkaVersion,
compatibleKafkaVersion_sourceVersion,
compatibleKafkaVersion_targetVersions,
Configuration (..),
newConfiguration,
configuration_description,
configuration_latestRevision,
configuration_creationTime,
configuration_kafkaVersions,
configuration_arn,
configuration_name,
configuration_state,
ConfigurationInfo (..),
newConfigurationInfo,
configurationInfo_revision,
configurationInfo_arn,
ConfigurationRevision (..),
newConfigurationRevision,
configurationRevision_description,
configurationRevision_revision,
configurationRevision_creationTime,
ConnectivityInfo (..),
newConnectivityInfo,
connectivityInfo_publicAccess,
EBSStorageInfo (..),
newEBSStorageInfo,
eBSStorageInfo_provisionedThroughput,
eBSStorageInfo_volumeSize,
EncryptionAtRest (..),
newEncryptionAtRest,
encryptionAtRest_dataVolumeKMSKeyId,
EncryptionInTransit (..),
newEncryptionInTransit,
encryptionInTransit_clientBroker,
encryptionInTransit_inCluster,
EncryptionInfo (..),
newEncryptionInfo,
encryptionInfo_encryptionAtRest,
encryptionInfo_encryptionInTransit,
ErrorInfo (..),
newErrorInfo,
errorInfo_errorCode,
errorInfo_errorString,
Firehose (..),
newFirehose,
firehose_deliveryStream,
firehose_enabled,
Iam (..),
newIam,
iam_enabled,
JmxExporter (..),
newJmxExporter,
jmxExporter_enabledInBroker,
JmxExporterInfo (..),
newJmxExporterInfo,
jmxExporterInfo_enabledInBroker,
KafkaVersion (..),
newKafkaVersion,
kafkaVersion_status,
kafkaVersion_version,
LoggingInfo (..),
newLoggingInfo,
loggingInfo_brokerLogs,
MutableClusterInfo (..),
newMutableClusterInfo,
mutableClusterInfo_brokerEBSVolumeInfo,
mutableClusterInfo_clientAuthentication,
mutableClusterInfo_configurationInfo,
mutableClusterInfo_connectivityInfo,
mutableClusterInfo_encryptionInfo,
mutableClusterInfo_enhancedMonitoring,
mutableClusterInfo_instanceType,
mutableClusterInfo_kafkaVersion,
mutableClusterInfo_loggingInfo,
mutableClusterInfo_numberOfBrokerNodes,
mutableClusterInfo_openMonitoring,
mutableClusterInfo_storageMode,
NodeExporter (..),
newNodeExporter,
nodeExporter_enabledInBroker,
NodeExporterInfo (..),
newNodeExporterInfo,
nodeExporterInfo_enabledInBroker,
NodeInfo (..),
newNodeInfo,
nodeInfo_addedToClusterTime,
nodeInfo_brokerNodeInfo,
nodeInfo_instanceType,
nodeInfo_nodeARN,
nodeInfo_nodeType,
nodeInfo_zookeeperNodeInfo,
OpenMonitoring (..),
newOpenMonitoring,
openMonitoring_prometheus,
OpenMonitoringInfo (..),
newOpenMonitoringInfo,
openMonitoringInfo_prometheus,
Prometheus (..),
newPrometheus,
prometheus_jmxExporter,
prometheus_nodeExporter,
PrometheusInfo (..),
newPrometheusInfo,
prometheusInfo_jmxExporter,
prometheusInfo_nodeExporter,
Provisioned (..),
newProvisioned,
provisioned_clientAuthentication,
provisioned_currentBrokerSoftwareInfo,
provisioned_encryptionInfo,
provisioned_enhancedMonitoring,
provisioned_loggingInfo,
provisioned_openMonitoring,
provisioned_storageMode,
provisioned_zookeeperConnectString,
provisioned_zookeeperConnectStringTls,
provisioned_brokerNodeGroupInfo,
provisioned_numberOfBrokerNodes,
ProvisionedRequest (..),
newProvisionedRequest,
provisionedRequest_clientAuthentication,
provisionedRequest_configurationInfo,
provisionedRequest_encryptionInfo,
provisionedRequest_enhancedMonitoring,
provisionedRequest_loggingInfo,
provisionedRequest_openMonitoring,
provisionedRequest_storageMode,
provisionedRequest_brokerNodeGroupInfo,
provisionedRequest_kafkaVersion,
provisionedRequest_numberOfBrokerNodes,
ProvisionedThroughput (..),
newProvisionedThroughput,
provisionedThroughput_enabled,
provisionedThroughput_volumeThroughput,
PublicAccess (..),
newPublicAccess,
publicAccess_type,
S3 (..),
newS3,
s3_bucket,
s3_prefix,
s3_enabled,
Sasl (..),
newSasl,
sasl_iam,
sasl_scram,
Scram (..),
newScram,
scram_enabled,
Serverless (..),
newServerless,
serverless_clientAuthentication,
serverless_vpcConfigs,
ServerlessClientAuthentication (..),
newServerlessClientAuthentication,
serverlessClientAuthentication_sasl,
ServerlessRequest (..),
newServerlessRequest,
serverlessRequest_clientAuthentication,
serverlessRequest_vpcConfigs,
ServerlessSasl (..),
newServerlessSasl,
serverlessSasl_iam,
StateInfo (..),
newStateInfo,
stateInfo_code,
stateInfo_message,
StorageInfo (..),
newStorageInfo,
storageInfo_ebsStorageInfo,
Tls (..),
newTls,
tls_certificateAuthorityArnList,
tls_enabled,
Unauthenticated (..),
newUnauthenticated,
unauthenticated_enabled,
UnprocessedScramSecret (..),
newUnprocessedScramSecret,
unprocessedScramSecret_errorCode,
unprocessedScramSecret_errorMessage,
unprocessedScramSecret_secretArn,
VpcConfig (..),
newVpcConfig,
vpcConfig_securityGroupIds,
vpcConfig_subnetIds,
ZookeeperNodeInfo (..),
newZookeeperNodeInfo,
zookeeperNodeInfo_attachedENIId,
zookeeperNodeInfo_clientVpcIpAddress,
zookeeperNodeInfo_endpoints,
zookeeperNodeInfo_zookeeperId,
zookeeperNodeInfo_zookeeperVersion,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.Kafka.Types.BrokerAZDistribution
import Amazonka.Kafka.Types.BrokerEBSVolumeInfo
import Amazonka.Kafka.Types.BrokerLogs
import Amazonka.Kafka.Types.BrokerNodeGroupInfo
import Amazonka.Kafka.Types.BrokerNodeInfo
import Amazonka.Kafka.Types.BrokerSoftwareInfo
import Amazonka.Kafka.Types.ClientAuthentication
import Amazonka.Kafka.Types.ClientBroker
import Amazonka.Kafka.Types.CloudWatchLogs
import Amazonka.Kafka.Types.Cluster
import Amazonka.Kafka.Types.ClusterInfo
import Amazonka.Kafka.Types.ClusterOperationInfo
import Amazonka.Kafka.Types.ClusterOperationStep
import Amazonka.Kafka.Types.ClusterOperationStepInfo
import Amazonka.Kafka.Types.ClusterState
import Amazonka.Kafka.Types.ClusterType
import Amazonka.Kafka.Types.CompatibleKafkaVersion
import Amazonka.Kafka.Types.Configuration
import Amazonka.Kafka.Types.ConfigurationInfo
import Amazonka.Kafka.Types.ConfigurationRevision
import Amazonka.Kafka.Types.ConfigurationState
import Amazonka.Kafka.Types.ConnectivityInfo
import Amazonka.Kafka.Types.EBSStorageInfo
import Amazonka.Kafka.Types.EncryptionAtRest
import Amazonka.Kafka.Types.EncryptionInTransit
import Amazonka.Kafka.Types.EncryptionInfo
import Amazonka.Kafka.Types.EnhancedMonitoring
import Amazonka.Kafka.Types.ErrorInfo
import Amazonka.Kafka.Types.Firehose
import Amazonka.Kafka.Types.Iam
import Amazonka.Kafka.Types.JmxExporter
import Amazonka.Kafka.Types.JmxExporterInfo
import Amazonka.Kafka.Types.KafkaVersion
import Amazonka.Kafka.Types.KafkaVersionStatus
import Amazonka.Kafka.Types.LoggingInfo
import Amazonka.Kafka.Types.MutableClusterInfo
import Amazonka.Kafka.Types.NodeExporter
import Amazonka.Kafka.Types.NodeExporterInfo
import Amazonka.Kafka.Types.NodeInfo
import Amazonka.Kafka.Types.NodeType
import Amazonka.Kafka.Types.OpenMonitoring
import Amazonka.Kafka.Types.OpenMonitoringInfo
import Amazonka.Kafka.Types.Prometheus
import Amazonka.Kafka.Types.PrometheusInfo
import Amazonka.Kafka.Types.Provisioned
import Amazonka.Kafka.Types.ProvisionedRequest
import Amazonka.Kafka.Types.ProvisionedThroughput
import Amazonka.Kafka.Types.PublicAccess
import Amazonka.Kafka.Types.S3
import Amazonka.Kafka.Types.Sasl
import Amazonka.Kafka.Types.Scram
import Amazonka.Kafka.Types.Serverless
import Amazonka.Kafka.Types.ServerlessClientAuthentication
import Amazonka.Kafka.Types.ServerlessRequest
import Amazonka.Kafka.Types.ServerlessSasl
import Amazonka.Kafka.Types.StateInfo
import Amazonka.Kafka.Types.StorageInfo
import Amazonka.Kafka.Types.StorageMode
import Amazonka.Kafka.Types.Tls
import Amazonka.Kafka.Types.Unauthenticated
import Amazonka.Kafka.Types.UnprocessedScramSecret
import Amazonka.Kafka.Types.VpcConfig
import Amazonka.Kafka.Types.ZookeeperNodeInfo
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"Kafka",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"kafka",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"kafka",
$sel:version:Service :: ByteString
Core.version = ByteString
"2018-11-14",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"Kafka",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_BadRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_BadRequestException :: forall a. AsError a => Fold a ServiceError
_BadRequestException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"BadRequestException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
409
_ForbiddenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ForbiddenException :: forall a. AsError a => Fold a ServiceError
_ForbiddenException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ForbiddenException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
403
_InternalServerErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerErrorException :: forall a. AsError a => Fold a ServiceError
_InternalServerErrorException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerErrorException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500
_NotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_NotFoundException :: forall a. AsError a => Fold a ServiceError
_NotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"NotFoundException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
404
_ServiceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ServiceUnavailableException :: forall a. AsError a => Fold a ServiceError
_ServiceUnavailableException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ServiceUnavailableException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503
_TooManyRequestsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_TooManyRequestsException :: forall a. AsError a => Fold a ServiceError
_TooManyRequestsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"TooManyRequestsException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429
_UnauthorizedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_UnauthorizedException :: forall a. AsError a => Fold a ServiceError
_UnauthorizedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"UnauthorizedException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
401