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