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