{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudFormation.Types.RegistryType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudFormation.Types.RegistryType
  ( RegistryType
      ( ..,
        RegistryType_HOOK,
        RegistryType_MODULE,
        RegistryType_RESOURCE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype RegistryType = RegistryType'
  { RegistryType -> Text
fromRegistryType ::
      Data.Text
  }
  deriving stock
    ( Int -> RegistryType -> ShowS
[RegistryType] -> ShowS
RegistryType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq RegistryType
Int -> RegistryType -> Int
RegistryType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: RegistryType -> ()
$crnf :: RegistryType -> ()
Prelude.NFData,
      Text -> Either String RegistryType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RegistryType
$cfromText :: Text -> Either String RegistryType
Data.FromText,
      RegistryType -> Text
forall a. (a -> Text) -> ToText a
toText :: RegistryType -> Text
$ctoText :: RegistryType -> Text
Data.ToText,
      RegistryType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: RegistryType -> ByteString
$ctoBS :: RegistryType -> ByteString
Data.ToByteString,
      RegistryType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RegistryType -> ByteStringBuilder
$cbuild :: RegistryType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> RegistryType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RegistryType -> [Header]
$ctoHeader :: HeaderName -> RegistryType -> [Header]
Data.ToHeader,
      RegistryType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RegistryType -> QueryString
$ctoQuery :: RegistryType -> QueryString
Data.ToQuery,
      Value -> Parser [RegistryType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [RegistryType]
FromJSONKeyFunction RegistryType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RegistryType]
$cfromJSONKeyList :: FromJSONKeyFunction [RegistryType]
fromJSONKey :: FromJSONKeyFunction RegistryType
$cfromJSONKey :: FromJSONKeyFunction RegistryType
Data.FromJSONKey,
      [RegistryType] -> Encoding
[RegistryType] -> Value
RegistryType -> Encoding
RegistryType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [RegistryType]
ToJSONKeyFunction RegistryType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RegistryType]
$ctoJSONKeyList :: ToJSONKeyFunction [RegistryType]
toJSONKey :: ToJSONKeyFunction RegistryType
$ctoJSONKey :: ToJSONKeyFunction RegistryType
Data.ToJSONKey,
      [Node] -> Either String RegistryType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RegistryType
$cparseXML :: [Node] -> Either String RegistryType
Data.FromXML,
      RegistryType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: RegistryType -> XML
$ctoXML :: RegistryType -> XML
Data.ToXML
    )

pattern RegistryType_HOOK :: RegistryType
pattern $bRegistryType_HOOK :: RegistryType
$mRegistryType_HOOK :: forall {r}. RegistryType -> ((# #) -> r) -> ((# #) -> r) -> r
RegistryType_HOOK = RegistryType' "HOOK"

pattern RegistryType_MODULE :: RegistryType
pattern $bRegistryType_MODULE :: RegistryType
$mRegistryType_MODULE :: forall {r}. RegistryType -> ((# #) -> r) -> ((# #) -> r) -> r
RegistryType_MODULE = RegistryType' "MODULE"

pattern RegistryType_RESOURCE :: RegistryType
pattern $bRegistryType_RESOURCE :: RegistryType
$mRegistryType_RESOURCE :: forall {r}. RegistryType -> ((# #) -> r) -> ((# #) -> r) -> r
RegistryType_RESOURCE = RegistryType' "RESOURCE"

{-# COMPLETE
  RegistryType_HOOK,
  RegistryType_MODULE,
  RegistryType_RESOURCE,
  RegistryType'
  #-}