{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.InstanceStorageEncryptionSupport
( InstanceStorageEncryptionSupport
( ..,
InstanceStorageEncryptionSupport_Required,
InstanceStorageEncryptionSupport_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 InstanceStorageEncryptionSupport = InstanceStorageEncryptionSupport'
{ InstanceStorageEncryptionSupport -> Text
fromInstanceStorageEncryptionSupport ::
Data.Text
}
deriving stock
( Int -> InstanceStorageEncryptionSupport -> ShowS
[InstanceStorageEncryptionSupport] -> ShowS
InstanceStorageEncryptionSupport -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceStorageEncryptionSupport] -> ShowS
$cshowList :: [InstanceStorageEncryptionSupport] -> ShowS
show :: InstanceStorageEncryptionSupport -> String
$cshow :: InstanceStorageEncryptionSupport -> String
showsPrec :: Int -> InstanceStorageEncryptionSupport -> ShowS
$cshowsPrec :: Int -> InstanceStorageEncryptionSupport -> ShowS
Prelude.Show,
ReadPrec [InstanceStorageEncryptionSupport]
ReadPrec InstanceStorageEncryptionSupport
Int -> ReadS InstanceStorageEncryptionSupport
ReadS [InstanceStorageEncryptionSupport]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceStorageEncryptionSupport]
$creadListPrec :: ReadPrec [InstanceStorageEncryptionSupport]
readPrec :: ReadPrec InstanceStorageEncryptionSupport
$creadPrec :: ReadPrec InstanceStorageEncryptionSupport
readList :: ReadS [InstanceStorageEncryptionSupport]
$creadList :: ReadS [InstanceStorageEncryptionSupport]
readsPrec :: Int -> ReadS InstanceStorageEncryptionSupport
$creadsPrec :: Int -> ReadS InstanceStorageEncryptionSupport
Prelude.Read,
InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c/= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
== :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c== :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
Prelude.Eq,
Eq InstanceStorageEncryptionSupport
InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Ordering
InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
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 :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
$cmin :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
max :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
$cmax :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport
>= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c>= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
> :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c> :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
<= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c<= :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
< :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
$c< :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Bool
compare :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Ordering
$ccompare :: InstanceStorageEncryptionSupport
-> InstanceStorageEncryptionSupport -> Ordering
Prelude.Ord,
forall x.
Rep InstanceStorageEncryptionSupport x
-> InstanceStorageEncryptionSupport
forall x.
InstanceStorageEncryptionSupport
-> Rep InstanceStorageEncryptionSupport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InstanceStorageEncryptionSupport x
-> InstanceStorageEncryptionSupport
$cfrom :: forall x.
InstanceStorageEncryptionSupport
-> Rep InstanceStorageEncryptionSupport x
Prelude.Generic
)
deriving newtype
( Eq InstanceStorageEncryptionSupport
Int -> InstanceStorageEncryptionSupport -> Int
InstanceStorageEncryptionSupport -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InstanceStorageEncryptionSupport -> Int
$chash :: InstanceStorageEncryptionSupport -> Int
hashWithSalt :: Int -> InstanceStorageEncryptionSupport -> Int
$chashWithSalt :: Int -> InstanceStorageEncryptionSupport -> Int
Prelude.Hashable,
InstanceStorageEncryptionSupport -> ()
forall a. (a -> ()) -> NFData a
rnf :: InstanceStorageEncryptionSupport -> ()
$crnf :: InstanceStorageEncryptionSupport -> ()
Prelude.NFData,
Text -> Either String InstanceStorageEncryptionSupport
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceStorageEncryptionSupport
$cfromText :: Text -> Either String InstanceStorageEncryptionSupport
Data.FromText,
InstanceStorageEncryptionSupport -> Text
forall a. (a -> Text) -> ToText a
toText :: InstanceStorageEncryptionSupport -> Text
$ctoText :: InstanceStorageEncryptionSupport -> Text
Data.ToText,
InstanceStorageEncryptionSupport -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceStorageEncryptionSupport -> ByteString
$ctoBS :: InstanceStorageEncryptionSupport -> ByteString
Data.ToByteString,
InstanceStorageEncryptionSupport -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceStorageEncryptionSupport -> ByteStringBuilder
$cbuild :: InstanceStorageEncryptionSupport -> ByteStringBuilder
Data.ToLog,
HeaderName -> InstanceStorageEncryptionSupport -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceStorageEncryptionSupport -> [Header]
$ctoHeader :: HeaderName -> InstanceStorageEncryptionSupport -> [Header]
Data.ToHeader,
InstanceStorageEncryptionSupport -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceStorageEncryptionSupport -> QueryString
$ctoQuery :: InstanceStorageEncryptionSupport -> QueryString
Data.ToQuery,
Value -> Parser [InstanceStorageEncryptionSupport]
Value -> Parser InstanceStorageEncryptionSupport
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InstanceStorageEncryptionSupport]
$cparseJSONList :: Value -> Parser [InstanceStorageEncryptionSupport]
parseJSON :: Value -> Parser InstanceStorageEncryptionSupport
$cparseJSON :: Value -> Parser InstanceStorageEncryptionSupport
Data.FromJSON,
FromJSONKeyFunction [InstanceStorageEncryptionSupport]
FromJSONKeyFunction InstanceStorageEncryptionSupport
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceStorageEncryptionSupport]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceStorageEncryptionSupport]
fromJSONKey :: FromJSONKeyFunction InstanceStorageEncryptionSupport
$cfromJSONKey :: FromJSONKeyFunction InstanceStorageEncryptionSupport
Data.FromJSONKey,
[InstanceStorageEncryptionSupport] -> Encoding
[InstanceStorageEncryptionSupport] -> Value
InstanceStorageEncryptionSupport -> Encoding
InstanceStorageEncryptionSupport -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InstanceStorageEncryptionSupport] -> Encoding
$ctoEncodingList :: [InstanceStorageEncryptionSupport] -> Encoding
toJSONList :: [InstanceStorageEncryptionSupport] -> Value
$ctoJSONList :: [InstanceStorageEncryptionSupport] -> Value
toEncoding :: InstanceStorageEncryptionSupport -> Encoding
$ctoEncoding :: InstanceStorageEncryptionSupport -> Encoding
toJSON :: InstanceStorageEncryptionSupport -> Value
$ctoJSON :: InstanceStorageEncryptionSupport -> Value
Data.ToJSON,
ToJSONKeyFunction [InstanceStorageEncryptionSupport]
ToJSONKeyFunction InstanceStorageEncryptionSupport
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceStorageEncryptionSupport]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceStorageEncryptionSupport]
toJSONKey :: ToJSONKeyFunction InstanceStorageEncryptionSupport
$ctoJSONKey :: ToJSONKeyFunction InstanceStorageEncryptionSupport
Data.ToJSONKey,
[Node] -> Either String InstanceStorageEncryptionSupport
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceStorageEncryptionSupport
$cparseXML :: [Node] -> Either String InstanceStorageEncryptionSupport
Data.FromXML,
InstanceStorageEncryptionSupport -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InstanceStorageEncryptionSupport -> XML
$ctoXML :: InstanceStorageEncryptionSupport -> XML
Data.ToXML
)
pattern InstanceStorageEncryptionSupport_Required :: InstanceStorageEncryptionSupport
pattern $bInstanceStorageEncryptionSupport_Required :: InstanceStorageEncryptionSupport
$mInstanceStorageEncryptionSupport_Required :: forall {r}.
InstanceStorageEncryptionSupport
-> ((# #) -> r) -> ((# #) -> r) -> r
InstanceStorageEncryptionSupport_Required = InstanceStorageEncryptionSupport' "required"
pattern InstanceStorageEncryptionSupport_Unsupported :: InstanceStorageEncryptionSupport
pattern $bInstanceStorageEncryptionSupport_Unsupported :: InstanceStorageEncryptionSupport
$mInstanceStorageEncryptionSupport_Unsupported :: forall {r}.
InstanceStorageEncryptionSupport
-> ((# #) -> r) -> ((# #) -> r) -> r
InstanceStorageEncryptionSupport_Unsupported = InstanceStorageEncryptionSupport' "unsupported"
{-# COMPLETE
InstanceStorageEncryptionSupport_Required,
InstanceStorageEncryptionSupport_Unsupported,
InstanceStorageEncryptionSupport'
#-}