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

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

newtype AutoScalingType = AutoScalingType'
  { AutoScalingType -> Text
fromAutoScalingType ::
      Core.Text
  }
  deriving stock
    ( Int -> AutoScalingType -> ShowS
[AutoScalingType] -> ShowS
AutoScalingType -> String
(Int -> AutoScalingType -> ShowS)
-> (AutoScalingType -> String)
-> ([AutoScalingType] -> ShowS)
-> Show AutoScalingType
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]
(Int -> ReadS AutoScalingType)
-> ReadS [AutoScalingType]
-> ReadPrec AutoScalingType
-> ReadPrec [AutoScalingType]
-> Read 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
(AutoScalingType -> AutoScalingType -> Bool)
-> (AutoScalingType -> AutoScalingType -> Bool)
-> Eq AutoScalingType
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
Eq AutoScalingType
-> (AutoScalingType -> AutoScalingType -> Ordering)
-> (AutoScalingType -> AutoScalingType -> Bool)
-> (AutoScalingType -> AutoScalingType -> Bool)
-> (AutoScalingType -> AutoScalingType -> Bool)
-> (AutoScalingType -> AutoScalingType -> Bool)
-> (AutoScalingType -> AutoScalingType -> AutoScalingType)
-> (AutoScalingType -> AutoScalingType -> AutoScalingType)
-> Ord 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
$cp1Ord :: Eq AutoScalingType
Prelude.Ord,
      (forall x. AutoScalingType -> Rep AutoScalingType x)
-> (forall x. Rep AutoScalingType x -> AutoScalingType)
-> Generic AutoScalingType
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
    ( Int -> AutoScalingType -> Int
AutoScalingType -> Int
(Int -> AutoScalingType -> Int)
-> (AutoScalingType -> Int) -> Hashable AutoScalingType
forall 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 -> ()
(AutoScalingType -> ()) -> NFData AutoScalingType
forall a. (a -> ()) -> NFData a
rnf :: AutoScalingType -> ()
$crnf :: AutoScalingType -> ()
Prelude.NFData,
      Text -> Either String AutoScalingType
(Text -> Either String AutoScalingType) -> FromText AutoScalingType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AutoScalingType
$cfromText :: Text -> Either String AutoScalingType
Core.FromText,
      AutoScalingType -> Text
(AutoScalingType -> Text) -> ToText AutoScalingType
forall a. (a -> Text) -> ToText a
toText :: AutoScalingType -> Text
$ctoText :: AutoScalingType -> Text
Core.ToText,
      AutoScalingType -> ByteString
(AutoScalingType -> ByteString) -> ToByteString AutoScalingType
forall a. (a -> ByteString) -> ToByteString a
toBS :: AutoScalingType -> ByteString
$ctoBS :: AutoScalingType -> ByteString
Core.ToByteString,
      AutoScalingType -> ByteStringBuilder
(AutoScalingType -> ByteStringBuilder) -> ToLog AutoScalingType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AutoScalingType -> ByteStringBuilder
$cbuild :: AutoScalingType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AutoScalingType -> [Header]
(HeaderName -> AutoScalingType -> [Header])
-> ToHeader AutoScalingType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AutoScalingType -> [Header]
$ctoHeader :: HeaderName -> AutoScalingType -> [Header]
Core.ToHeader,
      AutoScalingType -> QueryString
(AutoScalingType -> QueryString) -> ToQuery AutoScalingType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AutoScalingType -> QueryString
$ctoQuery :: AutoScalingType -> QueryString
Core.ToQuery,
      Value -> Parser [AutoScalingType]
Value -> Parser AutoScalingType
(Value -> Parser AutoScalingType)
-> (Value -> Parser [AutoScalingType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AutoScalingType]
FromJSONKeyFunction AutoScalingType
FromJSONKeyFunction AutoScalingType
-> FromJSONKeyFunction [AutoScalingType]
-> FromJSONKey AutoScalingType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AutoScalingType]
$cfromJSONKeyList :: FromJSONKeyFunction [AutoScalingType]
fromJSONKey :: FromJSONKeyFunction AutoScalingType
$cfromJSONKey :: FromJSONKeyFunction AutoScalingType
Core.FromJSONKey,
      [AutoScalingType] -> Encoding
[AutoScalingType] -> Value
AutoScalingType -> Encoding
AutoScalingType -> Value
(AutoScalingType -> Value)
-> (AutoScalingType -> Encoding)
-> ([AutoScalingType] -> Value)
-> ([AutoScalingType] -> Encoding)
-> ToJSON AutoScalingType
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
Core.ToJSON,
      ToJSONKeyFunction [AutoScalingType]
ToJSONKeyFunction AutoScalingType
ToJSONKeyFunction AutoScalingType
-> ToJSONKeyFunction [AutoScalingType] -> ToJSONKey AutoScalingType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AutoScalingType]
$ctoJSONKeyList :: ToJSONKeyFunction [AutoScalingType]
toJSONKey :: ToJSONKeyFunction AutoScalingType
$ctoJSONKey :: ToJSONKeyFunction AutoScalingType
Core.ToJSONKey,
      [Node] -> Either String AutoScalingType
([Node] -> Either String AutoScalingType)
-> FromXML AutoScalingType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AutoScalingType
$cparseXML :: [Node] -> Either String AutoScalingType
Core.FromXML,
      AutoScalingType -> XML
(AutoScalingType -> XML) -> ToXML AutoScalingType
forall a. (a -> XML) -> ToXML a
toXML :: AutoScalingType -> XML
$ctoXML :: AutoScalingType -> XML
Core.ToXML
    )

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

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

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