{-# 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.EC2.Types.FastLaunchStateCode
-- 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.EC2.Types.FastLaunchStateCode
  ( FastLaunchStateCode
      ( ..,
        FastLaunchStateCode_Disabling,
        FastLaunchStateCode_Disabling_failed,
        FastLaunchStateCode_Enabled,
        FastLaunchStateCode_Enabled_failed,
        FastLaunchStateCode_Enabling,
        FastLaunchStateCode_Enabling_failed
      ),
  )
where

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

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

pattern FastLaunchStateCode_Disabling :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Disabling :: FastLaunchStateCode
$mFastLaunchStateCode_Disabling :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Disabling = FastLaunchStateCode' "disabling"

pattern FastLaunchStateCode_Disabling_failed :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Disabling_failed :: FastLaunchStateCode
$mFastLaunchStateCode_Disabling_failed :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Disabling_failed = FastLaunchStateCode' "disabling-failed"

pattern FastLaunchStateCode_Enabled :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Enabled :: FastLaunchStateCode
$mFastLaunchStateCode_Enabled :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Enabled = FastLaunchStateCode' "enabled"

pattern FastLaunchStateCode_Enabled_failed :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Enabled_failed :: FastLaunchStateCode
$mFastLaunchStateCode_Enabled_failed :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Enabled_failed = FastLaunchStateCode' "enabled-failed"

pattern FastLaunchStateCode_Enabling :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Enabling :: FastLaunchStateCode
$mFastLaunchStateCode_Enabling :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Enabling = FastLaunchStateCode' "enabling"

pattern FastLaunchStateCode_Enabling_failed :: FastLaunchStateCode
pattern $bFastLaunchStateCode_Enabling_failed :: FastLaunchStateCode
$mFastLaunchStateCode_Enabling_failed :: forall {r}.
FastLaunchStateCode -> ((# #) -> r) -> ((# #) -> r) -> r
FastLaunchStateCode_Enabling_failed = FastLaunchStateCode' "enabling-failed"

{-# COMPLETE
  FastLaunchStateCode_Disabling,
  FastLaunchStateCode_Disabling_failed,
  FastLaunchStateCode_Enabled,
  FastLaunchStateCode_Enabled_failed,
  FastLaunchStateCode_Enabling,
  FastLaunchStateCode_Enabling_failed,
  FastLaunchStateCode'
  #-}