{-# 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.ResolverRuleAssociationStatus
-- 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.ResolverRuleAssociationStatus
  ( ResolverRuleAssociationStatus
      ( ..,
        ResolverRuleAssociationStatus_COMPLETE,
        ResolverRuleAssociationStatus_CREATING,
        ResolverRuleAssociationStatus_DELETING,
        ResolverRuleAssociationStatus_FAILED,
        ResolverRuleAssociationStatus_OVERRIDDEN
      ),
  )
where

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

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

pattern ResolverRuleAssociationStatus_COMPLETE :: ResolverRuleAssociationStatus
pattern $bResolverRuleAssociationStatus_COMPLETE :: ResolverRuleAssociationStatus
$mResolverRuleAssociationStatus_COMPLETE :: forall r.
ResolverRuleAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleAssociationStatus_COMPLETE = ResolverRuleAssociationStatus' "COMPLETE"

pattern ResolverRuleAssociationStatus_CREATING :: ResolverRuleAssociationStatus
pattern $bResolverRuleAssociationStatus_CREATING :: ResolverRuleAssociationStatus
$mResolverRuleAssociationStatus_CREATING :: forall r.
ResolverRuleAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleAssociationStatus_CREATING = ResolverRuleAssociationStatus' "CREATING"

pattern ResolverRuleAssociationStatus_DELETING :: ResolverRuleAssociationStatus
pattern $bResolverRuleAssociationStatus_DELETING :: ResolverRuleAssociationStatus
$mResolverRuleAssociationStatus_DELETING :: forall r.
ResolverRuleAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleAssociationStatus_DELETING = ResolverRuleAssociationStatus' "DELETING"

pattern ResolverRuleAssociationStatus_FAILED :: ResolverRuleAssociationStatus
pattern $bResolverRuleAssociationStatus_FAILED :: ResolverRuleAssociationStatus
$mResolverRuleAssociationStatus_FAILED :: forall r.
ResolverRuleAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleAssociationStatus_FAILED = ResolverRuleAssociationStatus' "FAILED"

pattern ResolverRuleAssociationStatus_OVERRIDDEN :: ResolverRuleAssociationStatus
pattern $bResolverRuleAssociationStatus_OVERRIDDEN :: ResolverRuleAssociationStatus
$mResolverRuleAssociationStatus_OVERRIDDEN :: forall r.
ResolverRuleAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleAssociationStatus_OVERRIDDEN = ResolverRuleAssociationStatus' "OVERRIDDEN"

{-# COMPLETE
  ResolverRuleAssociationStatus_COMPLETE,
  ResolverRuleAssociationStatus_CREATING,
  ResolverRuleAssociationStatus_DELETING,
  ResolverRuleAssociationStatus_FAILED,
  ResolverRuleAssociationStatus_OVERRIDDEN,
  ResolverRuleAssociationStatus'
  #-}