{-# 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.OpsWorksCM.Types.NodeAssociationStatus
-- 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.OpsWorksCM.Types.NodeAssociationStatus
  ( NodeAssociationStatus
      ( ..,
        NodeAssociationStatus_FAILED,
        NodeAssociationStatus_IN_PROGRESS,
        NodeAssociationStatus_SUCCESS
      ),
  )
where

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

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

pattern NodeAssociationStatus_FAILED :: NodeAssociationStatus
pattern $bNodeAssociationStatus_FAILED :: NodeAssociationStatus
$mNodeAssociationStatus_FAILED :: forall r.
NodeAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeAssociationStatus_FAILED = NodeAssociationStatus' "FAILED"

pattern NodeAssociationStatus_IN_PROGRESS :: NodeAssociationStatus
pattern $bNodeAssociationStatus_IN_PROGRESS :: NodeAssociationStatus
$mNodeAssociationStatus_IN_PROGRESS :: forall r.
NodeAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeAssociationStatus_IN_PROGRESS = NodeAssociationStatus' "IN_PROGRESS"

pattern NodeAssociationStatus_SUCCESS :: NodeAssociationStatus
pattern $bNodeAssociationStatus_SUCCESS :: NodeAssociationStatus
$mNodeAssociationStatus_SUCCESS :: forall r.
NodeAssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeAssociationStatus_SUCCESS = NodeAssociationStatus' "SUCCESS"

{-# COMPLETE
  NodeAssociationStatus_FAILED,
  NodeAssociationStatus_IN_PROGRESS,
  NodeAssociationStatus_SUCCESS,
  NodeAssociationStatus'
  #-}