{-# 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.ServiceCatalogAppRegistry.Types.ResourceGroupState
-- 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.ServiceCatalogAppRegistry.Types.ResourceGroupState
  ( ResourceGroupState
      ( ..,
        ResourceGroupState_CREATE_COMPLETE,
        ResourceGroupState_CREATE_FAILED,
        ResourceGroupState_CREATING,
        ResourceGroupState_UPDATE_COMPLETE,
        ResourceGroupState_UPDATE_FAILED,
        ResourceGroupState_UPDATING
      ),
  )
where

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

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

pattern ResourceGroupState_CREATE_COMPLETE :: ResourceGroupState
pattern $bResourceGroupState_CREATE_COMPLETE :: ResourceGroupState
$mResourceGroupState_CREATE_COMPLETE :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_CREATE_COMPLETE = ResourceGroupState' "CREATE_COMPLETE"

pattern ResourceGroupState_CREATE_FAILED :: ResourceGroupState
pattern $bResourceGroupState_CREATE_FAILED :: ResourceGroupState
$mResourceGroupState_CREATE_FAILED :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_CREATE_FAILED = ResourceGroupState' "CREATE_FAILED"

pattern ResourceGroupState_CREATING :: ResourceGroupState
pattern $bResourceGroupState_CREATING :: ResourceGroupState
$mResourceGroupState_CREATING :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_CREATING = ResourceGroupState' "CREATING"

pattern ResourceGroupState_UPDATE_COMPLETE :: ResourceGroupState
pattern $bResourceGroupState_UPDATE_COMPLETE :: ResourceGroupState
$mResourceGroupState_UPDATE_COMPLETE :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_UPDATE_COMPLETE = ResourceGroupState' "UPDATE_COMPLETE"

pattern ResourceGroupState_UPDATE_FAILED :: ResourceGroupState
pattern $bResourceGroupState_UPDATE_FAILED :: ResourceGroupState
$mResourceGroupState_UPDATE_FAILED :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_UPDATE_FAILED = ResourceGroupState' "UPDATE_FAILED"

pattern ResourceGroupState_UPDATING :: ResourceGroupState
pattern $bResourceGroupState_UPDATING :: ResourceGroupState
$mResourceGroupState_UPDATING :: forall r. ResourceGroupState -> (Void# -> r) -> (Void# -> r) -> r
ResourceGroupState_UPDATING = ResourceGroupState' "UPDATING"

{-# COMPLETE
  ResourceGroupState_CREATE_COMPLETE,
  ResourceGroupState_CREATE_FAILED,
  ResourceGroupState_CREATING,
  ResourceGroupState_UPDATE_COMPLETE,
  ResourceGroupState_UPDATE_FAILED,
  ResourceGroupState_UPDATING,
  ResourceGroupState'
  #-}