{-# 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.Glue.Types.BlueprintStatus
-- 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.Glue.Types.BlueprintStatus
  ( BlueprintStatus
      ( ..,
        BlueprintStatus_ACTIVE,
        BlueprintStatus_CREATING,
        BlueprintStatus_FAILED,
        BlueprintStatus_UPDATING
      ),
  )
where

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

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

pattern BlueprintStatus_ACTIVE :: BlueprintStatus
pattern $bBlueprintStatus_ACTIVE :: BlueprintStatus
$mBlueprintStatus_ACTIVE :: forall {r}. BlueprintStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BlueprintStatus_ACTIVE = BlueprintStatus' "ACTIVE"

pattern BlueprintStatus_CREATING :: BlueprintStatus
pattern $bBlueprintStatus_CREATING :: BlueprintStatus
$mBlueprintStatus_CREATING :: forall {r}. BlueprintStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BlueprintStatus_CREATING = BlueprintStatus' "CREATING"

pattern BlueprintStatus_FAILED :: BlueprintStatus
pattern $bBlueprintStatus_FAILED :: BlueprintStatus
$mBlueprintStatus_FAILED :: forall {r}. BlueprintStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BlueprintStatus_FAILED = BlueprintStatus' "FAILED"

pattern BlueprintStatus_UPDATING :: BlueprintStatus
pattern $bBlueprintStatus_UPDATING :: BlueprintStatus
$mBlueprintStatus_UPDATING :: forall {r}. BlueprintStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BlueprintStatus_UPDATING = BlueprintStatus' "UPDATING"

{-# COMPLETE
  BlueprintStatus_ACTIVE,
  BlueprintStatus_CREATING,
  BlueprintStatus_FAILED,
  BlueprintStatus_UPDATING,
  BlueprintStatus'
  #-}