{-# 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.EC2.Types.EbsEncryptionSupport
-- 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.EC2.Types.EbsEncryptionSupport
  ( EbsEncryptionSupport
      ( ..,
        EbsEncryptionSupport_Supported,
        EbsEncryptionSupport_Unsupported
      ),
  )
where

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

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

pattern EbsEncryptionSupport_Supported :: EbsEncryptionSupport
pattern $bEbsEncryptionSupport_Supported :: EbsEncryptionSupport
$mEbsEncryptionSupport_Supported :: forall {r}.
EbsEncryptionSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EbsEncryptionSupport_Supported = EbsEncryptionSupport' "supported"

pattern EbsEncryptionSupport_Unsupported :: EbsEncryptionSupport
pattern $bEbsEncryptionSupport_Unsupported :: EbsEncryptionSupport
$mEbsEncryptionSupport_Unsupported :: forall {r}.
EbsEncryptionSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EbsEncryptionSupport_Unsupported = EbsEncryptionSupport' "unsupported"

{-# COMPLETE
  EbsEncryptionSupport_Supported,
  EbsEncryptionSupport_Unsupported,
  EbsEncryptionSupport'
  #-}