{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AppSync.Types
(
defaultService,
_AccessDeniedException,
_ApiKeyLimitExceededException,
_ApiKeyValidityOutOfBoundsException,
_ApiLimitExceededException,
_BadRequestException,
_ConcurrentModificationException,
_GraphQLSchemaException,
_InternalFailureException,
_LimitExceededException,
_NotFoundException,
_UnauthorizedException,
ApiCacheStatus (..),
ApiCacheType (..),
ApiCachingBehavior (..),
AssociationStatus (..),
AuthenticationType (..),
AuthorizationType (..),
ConflictDetectionType (..),
ConflictHandlerType (..),
DataSourceType (..),
DefaultAction (..),
FieldLogLevel (..),
OutputType (..),
RelationalDatabaseSourceType (..),
ResolverKind (..),
RuntimeName (..),
SchemaStatus (..),
TypeDefinitionFormat (..),
AdditionalAuthenticationProvider (..),
newAdditionalAuthenticationProvider,
additionalAuthenticationProvider_authenticationType,
additionalAuthenticationProvider_lambdaAuthorizerConfig,
additionalAuthenticationProvider_openIDConnectConfig,
additionalAuthenticationProvider_userPoolConfig,
ApiAssociation (..),
newApiAssociation,
apiAssociation_apiId,
apiAssociation_associationStatus,
apiAssociation_deploymentDetail,
apiAssociation_domainName,
ApiCache (..),
newApiCache,
apiCache_apiCachingBehavior,
apiCache_atRestEncryptionEnabled,
apiCache_status,
apiCache_transitEncryptionEnabled,
apiCache_ttl,
apiCache_type,
ApiKey (..),
newApiKey,
apiKey_deletes,
apiKey_description,
apiKey_expires,
apiKey_id,
AppSyncRuntime (..),
newAppSyncRuntime,
appSyncRuntime_name,
appSyncRuntime_runtimeVersion,
AuthorizationConfig (..),
newAuthorizationConfig,
authorizationConfig_awsIamConfig,
authorizationConfig_authorizationType,
AwsIamConfig (..),
newAwsIamConfig,
awsIamConfig_signingRegion,
awsIamConfig_signingServiceName,
CachingConfig (..),
newCachingConfig,
cachingConfig_cachingKeys,
cachingConfig_ttl,
CodeError (..),
newCodeError,
codeError_errorType,
codeError_location,
codeError_value,
CodeErrorLocation (..),
newCodeErrorLocation,
codeErrorLocation_column,
codeErrorLocation_line,
codeErrorLocation_span,
CognitoUserPoolConfig (..),
newCognitoUserPoolConfig,
cognitoUserPoolConfig_appIdClientRegex,
cognitoUserPoolConfig_userPoolId,
cognitoUserPoolConfig_awsRegion,
DataSource (..),
newDataSource,
dataSource_dataSourceArn,
dataSource_description,
dataSource_dynamodbConfig,
dataSource_elasticsearchConfig,
dataSource_httpConfig,
dataSource_lambdaConfig,
dataSource_name,
dataSource_openSearchServiceConfig,
dataSource_relationalDatabaseConfig,
dataSource_serviceRoleArn,
dataSource_type,
DeltaSyncConfig (..),
newDeltaSyncConfig,
deltaSyncConfig_baseTableTTL,
deltaSyncConfig_deltaSyncTableName,
deltaSyncConfig_deltaSyncTableTTL,
DomainNameConfig (..),
newDomainNameConfig,
domainNameConfig_appsyncDomainName,
domainNameConfig_certificateArn,
domainNameConfig_description,
domainNameConfig_domainName,
domainNameConfig_hostedZoneId,
DynamodbDataSourceConfig (..),
newDynamodbDataSourceConfig,
dynamodbDataSourceConfig_deltaSyncConfig,
dynamodbDataSourceConfig_useCallerCredentials,
dynamodbDataSourceConfig_versioned,
dynamodbDataSourceConfig_tableName,
dynamodbDataSourceConfig_awsRegion,
ElasticsearchDataSourceConfig (..),
newElasticsearchDataSourceConfig,
elasticsearchDataSourceConfig_endpoint,
elasticsearchDataSourceConfig_awsRegion,
ErrorDetail (..),
newErrorDetail,
errorDetail_message,
EvaluateCodeErrorDetail (..),
newEvaluateCodeErrorDetail,
evaluateCodeErrorDetail_codeErrors,
evaluateCodeErrorDetail_message,
FunctionConfiguration (..),
newFunctionConfiguration,
functionConfiguration_code,
functionConfiguration_dataSourceName,
functionConfiguration_description,
functionConfiguration_functionArn,
functionConfiguration_functionId,
functionConfiguration_functionVersion,
functionConfiguration_maxBatchSize,
functionConfiguration_name,
functionConfiguration_requestMappingTemplate,
functionConfiguration_responseMappingTemplate,
functionConfiguration_runtime,
functionConfiguration_syncConfig,
GraphqlApi (..),
newGraphqlApi,
graphqlApi_additionalAuthenticationProviders,
graphqlApi_apiId,
graphqlApi_arn,
graphqlApi_authenticationType,
graphqlApi_lambdaAuthorizerConfig,
graphqlApi_logConfig,
graphqlApi_name,
graphqlApi_openIDConnectConfig,
graphqlApi_tags,
graphqlApi_uris,
graphqlApi_userPoolConfig,
graphqlApi_wafWebAclArn,
graphqlApi_xrayEnabled,
HttpDataSourceConfig (..),
newHttpDataSourceConfig,
httpDataSourceConfig_authorizationConfig,
httpDataSourceConfig_endpoint,
LambdaAuthorizerConfig (..),
newLambdaAuthorizerConfig,
lambdaAuthorizerConfig_authorizerResultTtlInSeconds,
lambdaAuthorizerConfig_identityValidationExpression,
lambdaAuthorizerConfig_authorizerUri,
LambdaConflictHandlerConfig (..),
newLambdaConflictHandlerConfig,
lambdaConflictHandlerConfig_lambdaConflictHandlerArn,
LambdaDataSourceConfig (..),
newLambdaDataSourceConfig,
lambdaDataSourceConfig_lambdaFunctionArn,
LogConfig (..),
newLogConfig,
logConfig_excludeVerboseContent,
logConfig_fieldLogLevel,
logConfig_cloudWatchLogsRoleArn,
OpenIDConnectConfig (..),
newOpenIDConnectConfig,
openIDConnectConfig_authTTL,
openIDConnectConfig_clientId,
openIDConnectConfig_iatTTL,
openIDConnectConfig_issuer,
OpenSearchServiceDataSourceConfig (..),
newOpenSearchServiceDataSourceConfig,
openSearchServiceDataSourceConfig_endpoint,
openSearchServiceDataSourceConfig_awsRegion,
PipelineConfig (..),
newPipelineConfig,
pipelineConfig_functions,
RdsHttpEndpointConfig (..),
newRdsHttpEndpointConfig,
rdsHttpEndpointConfig_awsRegion,
rdsHttpEndpointConfig_awsSecretStoreArn,
rdsHttpEndpointConfig_databaseName,
rdsHttpEndpointConfig_dbClusterIdentifier,
rdsHttpEndpointConfig_schema,
RelationalDatabaseDataSourceConfig (..),
newRelationalDatabaseDataSourceConfig,
relationalDatabaseDataSourceConfig_rdsHttpEndpointConfig,
relationalDatabaseDataSourceConfig_relationalDatabaseSourceType,
Resolver (..),
newResolver,
resolver_cachingConfig,
resolver_code,
resolver_dataSourceName,
resolver_fieldName,
resolver_kind,
resolver_maxBatchSize,
resolver_pipelineConfig,
resolver_requestMappingTemplate,
resolver_resolverArn,
resolver_responseMappingTemplate,
resolver_runtime,
resolver_syncConfig,
resolver_typeName,
SyncConfig (..),
newSyncConfig,
syncConfig_conflictDetection,
syncConfig_conflictHandler,
syncConfig_lambdaConflictHandlerConfig,
Type (..),
newType,
type_arn,
type_definition,
type_description,
type_format,
type_name,
UserPoolConfig (..),
newUserPoolConfig,
userPoolConfig_appIdClientRegex,
userPoolConfig_userPoolId,
userPoolConfig_awsRegion,
userPoolConfig_defaultAction,
)
where
import Amazonka.AppSync.Types.AdditionalAuthenticationProvider
import Amazonka.AppSync.Types.ApiAssociation
import Amazonka.AppSync.Types.ApiCache
import Amazonka.AppSync.Types.ApiCacheStatus
import Amazonka.AppSync.Types.ApiCacheType
import Amazonka.AppSync.Types.ApiCachingBehavior
import Amazonka.AppSync.Types.ApiKey
import Amazonka.AppSync.Types.AppSyncRuntime
import Amazonka.AppSync.Types.AssociationStatus
import Amazonka.AppSync.Types.AuthenticationType
import Amazonka.AppSync.Types.AuthorizationConfig
import Amazonka.AppSync.Types.AuthorizationType
import Amazonka.AppSync.Types.AwsIamConfig
import Amazonka.AppSync.Types.CachingConfig
import Amazonka.AppSync.Types.CodeError
import Amazonka.AppSync.Types.CodeErrorLocation
import Amazonka.AppSync.Types.CognitoUserPoolConfig
import Amazonka.AppSync.Types.ConflictDetectionType
import Amazonka.AppSync.Types.ConflictHandlerType
import Amazonka.AppSync.Types.DataSource
import Amazonka.AppSync.Types.DataSourceType
import Amazonka.AppSync.Types.DefaultAction
import Amazonka.AppSync.Types.DeltaSyncConfig
import Amazonka.AppSync.Types.DomainNameConfig
import Amazonka.AppSync.Types.DynamodbDataSourceConfig
import Amazonka.AppSync.Types.ElasticsearchDataSourceConfig
import Amazonka.AppSync.Types.ErrorDetail
import Amazonka.AppSync.Types.EvaluateCodeErrorDetail
import Amazonka.AppSync.Types.FieldLogLevel
import Amazonka.AppSync.Types.FunctionConfiguration
import Amazonka.AppSync.Types.GraphqlApi
import Amazonka.AppSync.Types.HttpDataSourceConfig
import Amazonka.AppSync.Types.LambdaAuthorizerConfig
import Amazonka.AppSync.Types.LambdaConflictHandlerConfig
import Amazonka.AppSync.Types.LambdaDataSourceConfig
import Amazonka.AppSync.Types.LogConfig
import Amazonka.AppSync.Types.OpenIDConnectConfig
import Amazonka.AppSync.Types.OpenSearchServiceDataSourceConfig
import Amazonka.AppSync.Types.OutputType
import Amazonka.AppSync.Types.PipelineConfig
import Amazonka.AppSync.Types.RdsHttpEndpointConfig
import Amazonka.AppSync.Types.RelationalDatabaseDataSourceConfig
import Amazonka.AppSync.Types.RelationalDatabaseSourceType
import Amazonka.AppSync.Types.Resolver
import Amazonka.AppSync.Types.ResolverKind
import Amazonka.AppSync.Types.RuntimeName
import Amazonka.AppSync.Types.SchemaStatus
import Amazonka.AppSync.Types.SyncConfig
import Amazonka.AppSync.Types.Type
import Amazonka.AppSync.Types.TypeDefinitionFormat
import Amazonka.AppSync.Types.UserPoolConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
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
"AppSync",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"appsync",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"appsync",
$sel:version:Service :: ByteString
Core.version = ByteString
"2017-07-25",
$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
"AppSync",
$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
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
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
_ApiKeyLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApiKeyLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ApiKeyLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ApiKeyLimitExceededException"
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
_ApiKeyValidityOutOfBoundsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApiKeyValidityOutOfBoundsException :: forall a. AsError a => Fold a ServiceError
_ApiKeyValidityOutOfBoundsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ApiKeyValidityOutOfBoundsException"
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
_ApiLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ApiLimitExceededException :: forall a. AsError a => Fold a ServiceError
_ApiLimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ApiLimitExceededException"
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
_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
_ConcurrentModificationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConcurrentModificationException :: forall a. AsError a => Fold a ServiceError
_ConcurrentModificationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConcurrentModificationException"
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
_GraphQLSchemaException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_GraphQLSchemaException :: forall a. AsError a => Fold a ServiceError
_GraphQLSchemaException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"GraphQLSchemaException"
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
_InternalFailureException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalFailureException :: forall a. AsError a => Fold a ServiceError
_InternalFailureException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalFailureException"
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
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
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
_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
_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