{-# 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.ResolverQueryLogConfigAssociationStatus
-- 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.ResolverQueryLogConfigAssociationStatus
  ( ResolverQueryLogConfigAssociationStatus
      ( ..,
        ResolverQueryLogConfigAssociationStatus_ACTION_NEEDED,
        ResolverQueryLogConfigAssociationStatus_ACTIVE,
        ResolverQueryLogConfigAssociationStatus_CREATING,
        ResolverQueryLogConfigAssociationStatus_DELETING,
        ResolverQueryLogConfigAssociationStatus_FAILED
      ),
  )
where

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

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

pattern ResolverQueryLogConfigAssociationStatus_ACTION_NEEDED :: ResolverQueryLogConfigAssociationStatus
pattern $bResolverQueryLogConfigAssociationStatus_ACTION_NEEDED :: ResolverQueryLogConfigAssociationStatus
$mResolverQueryLogConfigAssociationStatus_ACTION_NEEDED :: forall r.
ResolverQueryLogConfigAssociationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationStatus_ACTION_NEEDED = ResolverQueryLogConfigAssociationStatus' "ACTION_NEEDED"

pattern ResolverQueryLogConfigAssociationStatus_ACTIVE :: ResolverQueryLogConfigAssociationStatus
pattern $bResolverQueryLogConfigAssociationStatus_ACTIVE :: ResolverQueryLogConfigAssociationStatus
$mResolverQueryLogConfigAssociationStatus_ACTIVE :: forall r.
ResolverQueryLogConfigAssociationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationStatus_ACTIVE = ResolverQueryLogConfigAssociationStatus' "ACTIVE"

pattern ResolverQueryLogConfigAssociationStatus_CREATING :: ResolverQueryLogConfigAssociationStatus
pattern $bResolverQueryLogConfigAssociationStatus_CREATING :: ResolverQueryLogConfigAssociationStatus
$mResolverQueryLogConfigAssociationStatus_CREATING :: forall r.
ResolverQueryLogConfigAssociationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationStatus_CREATING = ResolverQueryLogConfigAssociationStatus' "CREATING"

pattern ResolverQueryLogConfigAssociationStatus_DELETING :: ResolverQueryLogConfigAssociationStatus
pattern $bResolverQueryLogConfigAssociationStatus_DELETING :: ResolverQueryLogConfigAssociationStatus
$mResolverQueryLogConfigAssociationStatus_DELETING :: forall r.
ResolverQueryLogConfigAssociationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationStatus_DELETING = ResolverQueryLogConfigAssociationStatus' "DELETING"

pattern ResolverQueryLogConfigAssociationStatus_FAILED :: ResolverQueryLogConfigAssociationStatus
pattern $bResolverQueryLogConfigAssociationStatus_FAILED :: ResolverQueryLogConfigAssociationStatus
$mResolverQueryLogConfigAssociationStatus_FAILED :: forall r.
ResolverQueryLogConfigAssociationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ResolverQueryLogConfigAssociationStatus_FAILED = ResolverQueryLogConfigAssociationStatus' "FAILED"

{-# COMPLETE
  ResolverQueryLogConfigAssociationStatus_ACTION_NEEDED,
  ResolverQueryLogConfigAssociationStatus_ACTIVE,
  ResolverQueryLogConfigAssociationStatus_CREATING,
  ResolverQueryLogConfigAssociationStatus_DELETING,
  ResolverQueryLogConfigAssociationStatus_FAILED,
  ResolverQueryLogConfigAssociationStatus'
  #-}