{-# 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.MGN.Types.ReplicationConfigurationEbsEncryption
-- 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.MGN.Types.ReplicationConfigurationEbsEncryption
  ( ReplicationConfigurationEbsEncryption
      ( ..,
        ReplicationConfigurationEbsEncryption_CUSTOM,
        ReplicationConfigurationEbsEncryption_DEFAULT
      ),
  )
where

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

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

pattern ReplicationConfigurationEbsEncryption_CUSTOM :: ReplicationConfigurationEbsEncryption
pattern $bReplicationConfigurationEbsEncryption_CUSTOM :: ReplicationConfigurationEbsEncryption
$mReplicationConfigurationEbsEncryption_CUSTOM :: forall r.
ReplicationConfigurationEbsEncryption
-> (Void# -> r) -> (Void# -> r) -> r
ReplicationConfigurationEbsEncryption_CUSTOM = ReplicationConfigurationEbsEncryption' "CUSTOM"

pattern ReplicationConfigurationEbsEncryption_DEFAULT :: ReplicationConfigurationEbsEncryption
pattern $bReplicationConfigurationEbsEncryption_DEFAULT :: ReplicationConfigurationEbsEncryption
$mReplicationConfigurationEbsEncryption_DEFAULT :: forall r.
ReplicationConfigurationEbsEncryption
-> (Void# -> r) -> (Void# -> r) -> r
ReplicationConfigurationEbsEncryption_DEFAULT = ReplicationConfigurationEbsEncryption' "DEFAULT"

{-# COMPLETE
  ReplicationConfigurationEbsEncryption_CUSTOM,
  ReplicationConfigurationEbsEncryption_DEFAULT,
  ReplicationConfigurationEbsEncryption'
  #-}