{-# 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.RegistrationStatus
-- 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.RegistrationStatus
  ( RegistrationStatus
      ( ..,
        RegistrationStatus_COMPLETE,
        RegistrationStatus_FAILED,
        RegistrationStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern RegistrationStatus_COMPLETE :: RegistrationStatus
pattern $bRegistrationStatus_COMPLETE :: RegistrationStatus
$mRegistrationStatus_COMPLETE :: forall {r}. RegistrationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RegistrationStatus_COMPLETE = RegistrationStatus' "COMPLETE"

pattern RegistrationStatus_FAILED :: RegistrationStatus
pattern $bRegistrationStatus_FAILED :: RegistrationStatus
$mRegistrationStatus_FAILED :: forall {r}. RegistrationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RegistrationStatus_FAILED = RegistrationStatus' "FAILED"

pattern RegistrationStatus_IN_PROGRESS :: RegistrationStatus
pattern $bRegistrationStatus_IN_PROGRESS :: RegistrationStatus
$mRegistrationStatus_IN_PROGRESS :: forall {r}. RegistrationStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RegistrationStatus_IN_PROGRESS = RegistrationStatus' "IN_PROGRESS"

{-# COMPLETE
  RegistrationStatus_COMPLETE,
  RegistrationStatus_FAILED,
  RegistrationStatus_IN_PROGRESS,
  RegistrationStatus'
  #-}