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

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

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

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

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

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