{-# 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.SageMaker.Types.EdgePresetDeploymentStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.EdgePresetDeploymentStatus
  ( EdgePresetDeploymentStatus
      ( ..,
        EdgePresetDeploymentStatus_COMPLETED,
        EdgePresetDeploymentStatus_FAILED
      ),
  )
where

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

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

pattern EdgePresetDeploymentStatus_COMPLETED :: EdgePresetDeploymentStatus
pattern $bEdgePresetDeploymentStatus_COMPLETED :: EdgePresetDeploymentStatus
$mEdgePresetDeploymentStatus_COMPLETED :: forall r.
EdgePresetDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
EdgePresetDeploymentStatus_COMPLETED = EdgePresetDeploymentStatus' "COMPLETED"

pattern EdgePresetDeploymentStatus_FAILED :: EdgePresetDeploymentStatus
pattern $bEdgePresetDeploymentStatus_FAILED :: EdgePresetDeploymentStatus
$mEdgePresetDeploymentStatus_FAILED :: forall r.
EdgePresetDeploymentStatus -> (Void# -> r) -> (Void# -> r) -> r
EdgePresetDeploymentStatus_FAILED = EdgePresetDeploymentStatus' "FAILED"

{-# COMPLETE
  EdgePresetDeploymentStatus_COMPLETED,
  EdgePresetDeploymentStatus_FAILED,
  EdgePresetDeploymentStatus'
  #-}