{-# 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.Batch.Types.EFSTransitEncryption
-- 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.Batch.Types.EFSTransitEncryption
  ( EFSTransitEncryption
      ( ..,
        EFSTransitEncryption_DISABLED,
        EFSTransitEncryption_ENABLED
      ),
  )
where

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

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

pattern EFSTransitEncryption_DISABLED :: EFSTransitEncryption
pattern $bEFSTransitEncryption_DISABLED :: EFSTransitEncryption
$mEFSTransitEncryption_DISABLED :: forall r. EFSTransitEncryption -> (Void# -> r) -> (Void# -> r) -> r
EFSTransitEncryption_DISABLED = EFSTransitEncryption' "DISABLED"

pattern EFSTransitEncryption_ENABLED :: EFSTransitEncryption
pattern $bEFSTransitEncryption_ENABLED :: EFSTransitEncryption
$mEFSTransitEncryption_ENABLED :: forall r. EFSTransitEncryption -> (Void# -> r) -> (Void# -> r) -> r
EFSTransitEncryption_ENABLED = EFSTransitEncryption' "ENABLED"

{-# COMPLETE
  EFSTransitEncryption_DISABLED,
  EFSTransitEncryption_ENABLED,
  EFSTransitEncryption'
  #-}