{-# 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.Amplify.Types.DomainStatus
-- 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.Amplify.Types.DomainStatus
  ( DomainStatus
      ( ..,
        DomainStatus_AVAILABLE,
        DomainStatus_CREATING,
        DomainStatus_FAILED,
        DomainStatus_IN_PROGRESS,
        DomainStatus_PENDING_DEPLOYMENT,
        DomainStatus_PENDING_VERIFICATION,
        DomainStatus_REQUESTING_CERTIFICATE,
        DomainStatus_UPDATING
      ),
  )
where

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

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

pattern DomainStatus_AVAILABLE :: DomainStatus
pattern $bDomainStatus_AVAILABLE :: DomainStatus
$mDomainStatus_AVAILABLE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_AVAILABLE = DomainStatus' "AVAILABLE"

pattern DomainStatus_CREATING :: DomainStatus
pattern $bDomainStatus_CREATING :: DomainStatus
$mDomainStatus_CREATING :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_CREATING = DomainStatus' "CREATING"

pattern DomainStatus_FAILED :: DomainStatus
pattern $bDomainStatus_FAILED :: DomainStatus
$mDomainStatus_FAILED :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_FAILED = DomainStatus' "FAILED"

pattern DomainStatus_IN_PROGRESS :: DomainStatus
pattern $bDomainStatus_IN_PROGRESS :: DomainStatus
$mDomainStatus_IN_PROGRESS :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_IN_PROGRESS = DomainStatus' "IN_PROGRESS"

pattern DomainStatus_PENDING_DEPLOYMENT :: DomainStatus
pattern $bDomainStatus_PENDING_DEPLOYMENT :: DomainStatus
$mDomainStatus_PENDING_DEPLOYMENT :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_PENDING_DEPLOYMENT = DomainStatus' "PENDING_DEPLOYMENT"

pattern DomainStatus_PENDING_VERIFICATION :: DomainStatus
pattern $bDomainStatus_PENDING_VERIFICATION :: DomainStatus
$mDomainStatus_PENDING_VERIFICATION :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_PENDING_VERIFICATION = DomainStatus' "PENDING_VERIFICATION"

pattern DomainStatus_REQUESTING_CERTIFICATE :: DomainStatus
pattern $bDomainStatus_REQUESTING_CERTIFICATE :: DomainStatus
$mDomainStatus_REQUESTING_CERTIFICATE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_REQUESTING_CERTIFICATE = DomainStatus' "REQUESTING_CERTIFICATE"

pattern DomainStatus_UPDATING :: DomainStatus
pattern $bDomainStatus_UPDATING :: DomainStatus
$mDomainStatus_UPDATING :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_UPDATING = DomainStatus' "UPDATING"

{-# COMPLETE
  DomainStatus_AVAILABLE,
  DomainStatus_CREATING,
  DomainStatus_FAILED,
  DomainStatus_IN_PROGRESS,
  DomainStatus_PENDING_DEPLOYMENT,
  DomainStatus_PENDING_VERIFICATION,
  DomainStatus_REQUESTING_CERTIFICATE,
  DomainStatus_UPDATING,
  DomainStatus'
  #-}