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