{-# 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.NetworkFirewall.Types.ConfigurationSyncState
-- 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.NetworkFirewall.Types.ConfigurationSyncState
  ( ConfigurationSyncState
      ( ..,
        ConfigurationSyncState_IN_SYNC,
        ConfigurationSyncState_PENDING
      ),
  )
where

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

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

pattern ConfigurationSyncState_IN_SYNC :: ConfigurationSyncState
pattern $bConfigurationSyncState_IN_SYNC :: ConfigurationSyncState
$mConfigurationSyncState_IN_SYNC :: forall r.
ConfigurationSyncState -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSyncState_IN_SYNC = ConfigurationSyncState' "IN_SYNC"

pattern ConfigurationSyncState_PENDING :: ConfigurationSyncState
pattern $bConfigurationSyncState_PENDING :: ConfigurationSyncState
$mConfigurationSyncState_PENDING :: forall r.
ConfigurationSyncState -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationSyncState_PENDING = ConfigurationSyncState' "PENDING"

{-# COMPLETE
  ConfigurationSyncState_IN_SYNC,
  ConfigurationSyncState_PENDING,
  ConfigurationSyncState'
  #-}