{-# 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.ResolverQueryLogConfigStatus
-- 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.ResolverQueryLogConfigStatus
  ( ResolverQueryLogConfigStatus
      ( ..,
        ResolverQueryLogConfigStatus_CREATED,
        ResolverQueryLogConfigStatus_CREATING,
        ResolverQueryLogConfigStatus_DELETING,
        ResolverQueryLogConfigStatus_FAILED
      ),
  )
where

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

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

pattern ResolverQueryLogConfigStatus_CREATED :: ResolverQueryLogConfigStatus
pattern $bResolverQueryLogConfigStatus_CREATED :: ResolverQueryLogConfigStatus
$mResolverQueryLogConfigStatus_CREATED :: forall r.
ResolverQueryLogConfigStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigStatus_CREATED = ResolverQueryLogConfigStatus' "CREATED"

pattern ResolverQueryLogConfigStatus_CREATING :: ResolverQueryLogConfigStatus
pattern $bResolverQueryLogConfigStatus_CREATING :: ResolverQueryLogConfigStatus
$mResolverQueryLogConfigStatus_CREATING :: forall r.
ResolverQueryLogConfigStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigStatus_CREATING = ResolverQueryLogConfigStatus' "CREATING"

pattern ResolverQueryLogConfigStatus_DELETING :: ResolverQueryLogConfigStatus
pattern $bResolverQueryLogConfigStatus_DELETING :: ResolverQueryLogConfigStatus
$mResolverQueryLogConfigStatus_DELETING :: forall r.
ResolverQueryLogConfigStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigStatus_DELETING = ResolverQueryLogConfigStatus' "DELETING"

pattern ResolverQueryLogConfigStatus_FAILED :: ResolverQueryLogConfigStatus
pattern $bResolverQueryLogConfigStatus_FAILED :: ResolverQueryLogConfigStatus
$mResolverQueryLogConfigStatus_FAILED :: forall r.
ResolverQueryLogConfigStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigStatus_FAILED = ResolverQueryLogConfigStatus' "FAILED"

{-# COMPLETE
  ResolverQueryLogConfigStatus_CREATED,
  ResolverQueryLogConfigStatus_CREATING,
  ResolverQueryLogConfigStatus_DELETING,
  ResolverQueryLogConfigStatus_FAILED,
  ResolverQueryLogConfigStatus'
  #-}