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