{-# 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.Budgets.Types.ActionSubType
-- 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.Budgets.Types.ActionSubType
  ( ActionSubType
      ( ..,
        ActionSubType_STOP_EC2_INSTANCES,
        ActionSubType_STOP_RDS_INSTANCES
      ),
  )
where

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

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

pattern ActionSubType_STOP_EC2_INSTANCES :: ActionSubType
pattern $bActionSubType_STOP_EC2_INSTANCES :: ActionSubType
$mActionSubType_STOP_EC2_INSTANCES :: forall r. ActionSubType -> (Void# -> r) -> (Void# -> r) -> r
ActionSubType_STOP_EC2_INSTANCES = ActionSubType' "STOP_EC2_INSTANCES"

pattern ActionSubType_STOP_RDS_INSTANCES :: ActionSubType
pattern $bActionSubType_STOP_RDS_INSTANCES :: ActionSubType
$mActionSubType_STOP_RDS_INSTANCES :: forall r. ActionSubType -> (Void# -> r) -> (Void# -> r) -> r
ActionSubType_STOP_RDS_INSTANCES = ActionSubType' "STOP_RDS_INSTANCES"

{-# COMPLETE
  ActionSubType_STOP_EC2_INSTANCES,
  ActionSubType_STOP_RDS_INSTANCES,
  ActionSubType'
  #-}