{-# 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.AppConfig.Types.ReplicateTo
-- 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.AppConfig.Types.ReplicateTo
  ( ReplicateTo
      ( ..,
        ReplicateTo_NONE,
        ReplicateTo_SSM_DOCUMENT
      ),
  )
where

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

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

pattern ReplicateTo_NONE :: ReplicateTo
pattern $bReplicateTo_NONE :: ReplicateTo
$mReplicateTo_NONE :: forall r. ReplicateTo -> (Void# -> r) -> (Void# -> r) -> r
ReplicateTo_NONE = ReplicateTo' "NONE"

pattern ReplicateTo_SSM_DOCUMENT :: ReplicateTo
pattern $bReplicateTo_SSM_DOCUMENT :: ReplicateTo
$mReplicateTo_SSM_DOCUMENT :: forall r. ReplicateTo -> (Void# -> r) -> (Void# -> r) -> r
ReplicateTo_SSM_DOCUMENT = ReplicateTo' "SSM_DOCUMENT"

{-# COMPLETE
  ReplicateTo_NONE,
  ReplicateTo_SSM_DOCUMENT,
  ReplicateTo'
  #-}