{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.NetworkFirewall.Types.ConfigurationSyncState
  ( ConfigurationSyncState
      ( ..,
        ConfigurationSyncState_CAPACITY_CONSTRAINED,
        ConfigurationSyncState_IN_SYNC,
        ConfigurationSyncState_PENDING
      ),
  )
where

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

newtype ConfigurationSyncState = ConfigurationSyncState'
  { ConfigurationSyncState -> Text
fromConfigurationSyncState ::
      Data.Text
  }
  deriving stock
    ( Int -> ConfigurationSyncState -> ShowS
[ConfigurationSyncState] -> ShowS
ConfigurationSyncState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ConfigurationSyncState
Int -> ConfigurationSyncState -> Int
ConfigurationSyncState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ConfigurationSyncState -> ()
$crnf :: ConfigurationSyncState -> ()
Prelude.NFData,
      Text -> Either String ConfigurationSyncState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConfigurationSyncState
$cfromText :: Text -> Either String ConfigurationSyncState
Data.FromText,
      ConfigurationSyncState -> Text
forall a. (a -> Text) -> ToText a
toText :: ConfigurationSyncState -> Text
$ctoText :: ConfigurationSyncState -> Text
Data.ToText,
      ConfigurationSyncState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConfigurationSyncState -> ByteString
$ctoBS :: ConfigurationSyncState -> ByteString
Data.ToByteString,
      ConfigurationSyncState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConfigurationSyncState -> ByteStringBuilder
$cbuild :: ConfigurationSyncState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ConfigurationSyncState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConfigurationSyncState -> [Header]
$ctoHeader :: HeaderName -> ConfigurationSyncState -> [Header]
Data.ToHeader,
      ConfigurationSyncState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConfigurationSyncState -> QueryString
$ctoQuery :: ConfigurationSyncState -> QueryString
Data.ToQuery,
      Value -> Parser [ConfigurationSyncState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ConfigurationSyncState]
FromJSONKeyFunction ConfigurationSyncState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConfigurationSyncState]
$cfromJSONKeyList :: FromJSONKeyFunction [ConfigurationSyncState]
fromJSONKey :: FromJSONKeyFunction ConfigurationSyncState
$cfromJSONKey :: FromJSONKeyFunction ConfigurationSyncState
Data.FromJSONKey,
      [ConfigurationSyncState] -> Encoding
[ConfigurationSyncState] -> Value
ConfigurationSyncState -> Encoding
ConfigurationSyncState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ConfigurationSyncState]
ToJSONKeyFunction ConfigurationSyncState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConfigurationSyncState]
$ctoJSONKeyList :: ToJSONKeyFunction [ConfigurationSyncState]
toJSONKey :: ToJSONKeyFunction ConfigurationSyncState
$ctoJSONKey :: ToJSONKeyFunction ConfigurationSyncState
Data.ToJSONKey,
      [Node] -> Either String ConfigurationSyncState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConfigurationSyncState
$cparseXML :: [Node] -> Either String ConfigurationSyncState
Data.FromXML,
      ConfigurationSyncState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ConfigurationSyncState -> XML
$ctoXML :: ConfigurationSyncState -> XML
Data.ToXML
    )

pattern ConfigurationSyncState_CAPACITY_CONSTRAINED :: ConfigurationSyncState
pattern $bConfigurationSyncState_CAPACITY_CONSTRAINED :: ConfigurationSyncState
$mConfigurationSyncState_CAPACITY_CONSTRAINED :: forall {r}.
ConfigurationSyncState -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigurationSyncState_CAPACITY_CONSTRAINED = ConfigurationSyncState' "CAPACITY_CONSTRAINED"

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

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

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