{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Route53Resolver.Types.ResolverQueryLogConfigAssociationError
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53Resolver.Types.ResolverQueryLogConfigAssociationError
  ( ResolverQueryLogConfigAssociationError
      ( ..,
        ResolverQueryLogConfigAssociationError_ACCESS_DENIED,
        ResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND,
        ResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR,
        ResolverQueryLogConfigAssociationError_NONE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ResolverQueryLogConfigAssociationError = ResolverQueryLogConfigAssociationError'
  { ResolverQueryLogConfigAssociationError -> Text
fromResolverQueryLogConfigAssociationError ::
      Core.Text
  }
  deriving stock
    ( Int -> ResolverQueryLogConfigAssociationError -> ShowS
[ResolverQueryLogConfigAssociationError] -> ShowS
ResolverQueryLogConfigAssociationError -> String
(Int -> ResolverQueryLogConfigAssociationError -> ShowS)
-> (ResolverQueryLogConfigAssociationError -> String)
-> ([ResolverQueryLogConfigAssociationError] -> ShowS)
-> Show ResolverQueryLogConfigAssociationError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResolverQueryLogConfigAssociationError] -> ShowS
$cshowList :: [ResolverQueryLogConfigAssociationError] -> ShowS
show :: ResolverQueryLogConfigAssociationError -> String
$cshow :: ResolverQueryLogConfigAssociationError -> String
showsPrec :: Int -> ResolverQueryLogConfigAssociationError -> ShowS
$cshowsPrec :: Int -> ResolverQueryLogConfigAssociationError -> ShowS
Prelude.Show,
      ReadPrec [ResolverQueryLogConfigAssociationError]
ReadPrec ResolverQueryLogConfigAssociationError
Int -> ReadS ResolverQueryLogConfigAssociationError
ReadS [ResolverQueryLogConfigAssociationError]
(Int -> ReadS ResolverQueryLogConfigAssociationError)
-> ReadS [ResolverQueryLogConfigAssociationError]
-> ReadPrec ResolverQueryLogConfigAssociationError
-> ReadPrec [ResolverQueryLogConfigAssociationError]
-> Read ResolverQueryLogConfigAssociationError
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResolverQueryLogConfigAssociationError]
$creadListPrec :: ReadPrec [ResolverQueryLogConfigAssociationError]
readPrec :: ReadPrec ResolverQueryLogConfigAssociationError
$creadPrec :: ReadPrec ResolverQueryLogConfigAssociationError
readList :: ReadS [ResolverQueryLogConfigAssociationError]
$creadList :: ReadS [ResolverQueryLogConfigAssociationError]
readsPrec :: Int -> ReadS ResolverQueryLogConfigAssociationError
$creadsPrec :: Int -> ReadS ResolverQueryLogConfigAssociationError
Prelude.Read,
      ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
(ResolverQueryLogConfigAssociationError
 -> ResolverQueryLogConfigAssociationError -> Bool)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Bool)
-> Eq ResolverQueryLogConfigAssociationError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c/= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
== :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c== :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
Prelude.Eq,
      Eq ResolverQueryLogConfigAssociationError
Eq ResolverQueryLogConfigAssociationError
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Ordering)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Bool)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Bool)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Bool)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError -> Bool)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError)
-> (ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError
    -> ResolverQueryLogConfigAssociationError)
-> Ord ResolverQueryLogConfigAssociationError
ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Ordering
ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
$cmin :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
max :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
$cmax :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError
>= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c>= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
> :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c> :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
<= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c<= :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
< :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
$c< :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Bool
compare :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Ordering
$ccompare :: ResolverQueryLogConfigAssociationError
-> ResolverQueryLogConfigAssociationError -> Ordering
$cp1Ord :: Eq ResolverQueryLogConfigAssociationError
Prelude.Ord,
      (forall x.
 ResolverQueryLogConfigAssociationError
 -> Rep ResolverQueryLogConfigAssociationError x)
-> (forall x.
    Rep ResolverQueryLogConfigAssociationError x
    -> ResolverQueryLogConfigAssociationError)
-> Generic ResolverQueryLogConfigAssociationError
forall x.
Rep ResolverQueryLogConfigAssociationError x
-> ResolverQueryLogConfigAssociationError
forall x.
ResolverQueryLogConfigAssociationError
-> Rep ResolverQueryLogConfigAssociationError x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResolverQueryLogConfigAssociationError x
-> ResolverQueryLogConfigAssociationError
$cfrom :: forall x.
ResolverQueryLogConfigAssociationError
-> Rep ResolverQueryLogConfigAssociationError x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ResolverQueryLogConfigAssociationError -> Int
ResolverQueryLogConfigAssociationError -> Int
(Int -> ResolverQueryLogConfigAssociationError -> Int)
-> (ResolverQueryLogConfigAssociationError -> Int)
-> Hashable ResolverQueryLogConfigAssociationError
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ResolverQueryLogConfigAssociationError -> Int
$chash :: ResolverQueryLogConfigAssociationError -> Int
hashWithSalt :: Int -> ResolverQueryLogConfigAssociationError -> Int
$chashWithSalt :: Int -> ResolverQueryLogConfigAssociationError -> Int
Prelude.Hashable,
      ResolverQueryLogConfigAssociationError -> ()
(ResolverQueryLogConfigAssociationError -> ())
-> NFData ResolverQueryLogConfigAssociationError
forall a. (a -> ()) -> NFData a
rnf :: ResolverQueryLogConfigAssociationError -> ()
$crnf :: ResolverQueryLogConfigAssociationError -> ()
Prelude.NFData,
      Text -> Either String ResolverQueryLogConfigAssociationError
(Text -> Either String ResolverQueryLogConfigAssociationError)
-> FromText ResolverQueryLogConfigAssociationError
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ResolverQueryLogConfigAssociationError
$cfromText :: Text -> Either String ResolverQueryLogConfigAssociationError
Core.FromText,
      ResolverQueryLogConfigAssociationError -> Text
(ResolverQueryLogConfigAssociationError -> Text)
-> ToText ResolverQueryLogConfigAssociationError
forall a. (a -> Text) -> ToText a
toText :: ResolverQueryLogConfigAssociationError -> Text
$ctoText :: ResolverQueryLogConfigAssociationError -> Text
Core.ToText,
      ResolverQueryLogConfigAssociationError -> ByteString
(ResolverQueryLogConfigAssociationError -> ByteString)
-> ToByteString ResolverQueryLogConfigAssociationError
forall a. (a -> ByteString) -> ToByteString a
toBS :: ResolverQueryLogConfigAssociationError -> ByteString
$ctoBS :: ResolverQueryLogConfigAssociationError -> ByteString
Core.ToByteString,
      ResolverQueryLogConfigAssociationError -> ByteStringBuilder
(ResolverQueryLogConfigAssociationError -> ByteStringBuilder)
-> ToLog ResolverQueryLogConfigAssociationError
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ResolverQueryLogConfigAssociationError -> ByteStringBuilder
$cbuild :: ResolverQueryLogConfigAssociationError -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ResolverQueryLogConfigAssociationError -> [Header]
(HeaderName -> ResolverQueryLogConfigAssociationError -> [Header])
-> ToHeader ResolverQueryLogConfigAssociationError
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ResolverQueryLogConfigAssociationError -> [Header]
$ctoHeader :: HeaderName -> ResolverQueryLogConfigAssociationError -> [Header]
Core.ToHeader,
      ResolverQueryLogConfigAssociationError -> QueryString
(ResolverQueryLogConfigAssociationError -> QueryString)
-> ToQuery ResolverQueryLogConfigAssociationError
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ResolverQueryLogConfigAssociationError -> QueryString
$ctoQuery :: ResolverQueryLogConfigAssociationError -> QueryString
Core.ToQuery,
      Value -> Parser [ResolverQueryLogConfigAssociationError]
Value -> Parser ResolverQueryLogConfigAssociationError
(Value -> Parser ResolverQueryLogConfigAssociationError)
-> (Value -> Parser [ResolverQueryLogConfigAssociationError])
-> FromJSON ResolverQueryLogConfigAssociationError
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ResolverQueryLogConfigAssociationError]
$cparseJSONList :: Value -> Parser [ResolverQueryLogConfigAssociationError]
parseJSON :: Value -> Parser ResolverQueryLogConfigAssociationError
$cparseJSON :: Value -> Parser ResolverQueryLogConfigAssociationError
Core.FromJSON,
      FromJSONKeyFunction [ResolverQueryLogConfigAssociationError]
FromJSONKeyFunction ResolverQueryLogConfigAssociationError
FromJSONKeyFunction ResolverQueryLogConfigAssociationError
-> FromJSONKeyFunction [ResolverQueryLogConfigAssociationError]
-> FromJSONKey ResolverQueryLogConfigAssociationError
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ResolverQueryLogConfigAssociationError]
$cfromJSONKeyList :: FromJSONKeyFunction [ResolverQueryLogConfigAssociationError]
fromJSONKey :: FromJSONKeyFunction ResolverQueryLogConfigAssociationError
$cfromJSONKey :: FromJSONKeyFunction ResolverQueryLogConfigAssociationError
Core.FromJSONKey,
      [ResolverQueryLogConfigAssociationError] -> Encoding
[ResolverQueryLogConfigAssociationError] -> Value
ResolverQueryLogConfigAssociationError -> Encoding
ResolverQueryLogConfigAssociationError -> Value
(ResolverQueryLogConfigAssociationError -> Value)
-> (ResolverQueryLogConfigAssociationError -> Encoding)
-> ([ResolverQueryLogConfigAssociationError] -> Value)
-> ([ResolverQueryLogConfigAssociationError] -> Encoding)
-> ToJSON ResolverQueryLogConfigAssociationError
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ResolverQueryLogConfigAssociationError] -> Encoding
$ctoEncodingList :: [ResolverQueryLogConfigAssociationError] -> Encoding
toJSONList :: [ResolverQueryLogConfigAssociationError] -> Value
$ctoJSONList :: [ResolverQueryLogConfigAssociationError] -> Value
toEncoding :: ResolverQueryLogConfigAssociationError -> Encoding
$ctoEncoding :: ResolverQueryLogConfigAssociationError -> Encoding
toJSON :: ResolverQueryLogConfigAssociationError -> Value
$ctoJSON :: ResolverQueryLogConfigAssociationError -> Value
Core.ToJSON,
      ToJSONKeyFunction [ResolverQueryLogConfigAssociationError]
ToJSONKeyFunction ResolverQueryLogConfigAssociationError
ToJSONKeyFunction ResolverQueryLogConfigAssociationError
-> ToJSONKeyFunction [ResolverQueryLogConfigAssociationError]
-> ToJSONKey ResolverQueryLogConfigAssociationError
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ResolverQueryLogConfigAssociationError]
$ctoJSONKeyList :: ToJSONKeyFunction [ResolverQueryLogConfigAssociationError]
toJSONKey :: ToJSONKeyFunction ResolverQueryLogConfigAssociationError
$ctoJSONKey :: ToJSONKeyFunction ResolverQueryLogConfigAssociationError
Core.ToJSONKey,
      [Node] -> Either String ResolverQueryLogConfigAssociationError
([Node] -> Either String ResolverQueryLogConfigAssociationError)
-> FromXML ResolverQueryLogConfigAssociationError
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ResolverQueryLogConfigAssociationError
$cparseXML :: [Node] -> Either String ResolverQueryLogConfigAssociationError
Core.FromXML,
      ResolverQueryLogConfigAssociationError -> XML
(ResolverQueryLogConfigAssociationError -> XML)
-> ToXML ResolverQueryLogConfigAssociationError
forall a. (a -> XML) -> ToXML a
toXML :: ResolverQueryLogConfigAssociationError -> XML
$ctoXML :: ResolverQueryLogConfigAssociationError -> XML
Core.ToXML
    )

pattern ResolverQueryLogConfigAssociationError_ACCESS_DENIED :: ResolverQueryLogConfigAssociationError
pattern $bResolverQueryLogConfigAssociationError_ACCESS_DENIED :: ResolverQueryLogConfigAssociationError
$mResolverQueryLogConfigAssociationError_ACCESS_DENIED :: forall r.
ResolverQueryLogConfigAssociationError
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationError_ACCESS_DENIED = ResolverQueryLogConfigAssociationError' "ACCESS_DENIED"

pattern ResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND :: ResolverQueryLogConfigAssociationError
pattern $bResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND :: ResolverQueryLogConfigAssociationError
$mResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND :: forall r.
ResolverQueryLogConfigAssociationError
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND = ResolverQueryLogConfigAssociationError' "DESTINATION_NOT_FOUND"

pattern ResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR :: ResolverQueryLogConfigAssociationError
pattern $bResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR :: ResolverQueryLogConfigAssociationError
$mResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR :: forall r.
ResolverQueryLogConfigAssociationError
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR = ResolverQueryLogConfigAssociationError' "INTERNAL_SERVICE_ERROR"

pattern ResolverQueryLogConfigAssociationError_NONE :: ResolverQueryLogConfigAssociationError
pattern $bResolverQueryLogConfigAssociationError_NONE :: ResolverQueryLogConfigAssociationError
$mResolverQueryLogConfigAssociationError_NONE :: forall r.
ResolverQueryLogConfigAssociationError
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationError_NONE = ResolverQueryLogConfigAssociationError' "NONE"

{-# COMPLETE
  ResolverQueryLogConfigAssociationError_ACCESS_DENIED,
  ResolverQueryLogConfigAssociationError_DESTINATION_NOT_FOUND,
  ResolverQueryLogConfigAssociationError_INTERNAL_SERVICE_ERROR,
  ResolverQueryLogConfigAssociationError_NONE,
  ResolverQueryLogConfigAssociationError'
  #-}