{-# 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.GameLift.Types.ScalingStatusType
-- 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.GameLift.Types.ScalingStatusType
  ( ScalingStatusType
      ( ..,
        ScalingStatusType_ACTIVE,
        ScalingStatusType_DELETED,
        ScalingStatusType_DELETE_REQUESTED,
        ScalingStatusType_DELETING,
        ScalingStatusType_ERROR,
        ScalingStatusType_UPDATE_REQUESTED,
        ScalingStatusType_UPDATING
      ),
  )
where

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

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

pattern ScalingStatusType_ACTIVE :: ScalingStatusType
pattern $bScalingStatusType_ACTIVE :: ScalingStatusType
$mScalingStatusType_ACTIVE :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_ACTIVE = ScalingStatusType' "ACTIVE"

pattern ScalingStatusType_DELETED :: ScalingStatusType
pattern $bScalingStatusType_DELETED :: ScalingStatusType
$mScalingStatusType_DELETED :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_DELETED = ScalingStatusType' "DELETED"

pattern ScalingStatusType_DELETE_REQUESTED :: ScalingStatusType
pattern $bScalingStatusType_DELETE_REQUESTED :: ScalingStatusType
$mScalingStatusType_DELETE_REQUESTED :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_DELETE_REQUESTED = ScalingStatusType' "DELETE_REQUESTED"

pattern ScalingStatusType_DELETING :: ScalingStatusType
pattern $bScalingStatusType_DELETING :: ScalingStatusType
$mScalingStatusType_DELETING :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_DELETING = ScalingStatusType' "DELETING"

pattern ScalingStatusType_ERROR :: ScalingStatusType
pattern $bScalingStatusType_ERROR :: ScalingStatusType
$mScalingStatusType_ERROR :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_ERROR = ScalingStatusType' "ERROR"

pattern ScalingStatusType_UPDATE_REQUESTED :: ScalingStatusType
pattern $bScalingStatusType_UPDATE_REQUESTED :: ScalingStatusType
$mScalingStatusType_UPDATE_REQUESTED :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_UPDATE_REQUESTED = ScalingStatusType' "UPDATE_REQUESTED"

pattern ScalingStatusType_UPDATING :: ScalingStatusType
pattern $bScalingStatusType_UPDATING :: ScalingStatusType
$mScalingStatusType_UPDATING :: forall {r}. ScalingStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ScalingStatusType_UPDATING = ScalingStatusType' "UPDATING"

{-# COMPLETE
  ScalingStatusType_ACTIVE,
  ScalingStatusType_DELETED,
  ScalingStatusType_DELETE_REQUESTED,
  ScalingStatusType_DELETING,
  ScalingStatusType_ERROR,
  ScalingStatusType_UPDATE_REQUESTED,
  ScalingStatusType_UPDATING,
  ScalingStatusType'
  #-}