{-# 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.OpsWorks.Types.AutoScalingType
-- 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.OpsWorks.Types.AutoScalingType
  ( AutoScalingType
      ( ..,
        AutoScalingType_Load,
        AutoScalingType_Timer
      ),
  )
where

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

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

pattern AutoScalingType_Load :: AutoScalingType
pattern $bAutoScalingType_Load :: AutoScalingType
$mAutoScalingType_Load :: forall {r}. AutoScalingType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoScalingType_Load = AutoScalingType' "load"

pattern AutoScalingType_Timer :: AutoScalingType
pattern $bAutoScalingType_Timer :: AutoScalingType
$mAutoScalingType_Timer :: forall {r}. AutoScalingType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoScalingType_Timer = AutoScalingType' "timer"

{-# COMPLETE
  AutoScalingType_Load,
  AutoScalingType_Timer,
  AutoScalingType'
  #-}