{-# 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.InstanceEventWindowState
-- 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.InstanceEventWindowState
  ( InstanceEventWindowState
      ( ..,
        InstanceEventWindowState_Active,
        InstanceEventWindowState_Creating,
        InstanceEventWindowState_Deleted,
        InstanceEventWindowState_Deleting
      ),
  )
where

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

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

pattern InstanceEventWindowState_Active :: InstanceEventWindowState
pattern $bInstanceEventWindowState_Active :: InstanceEventWindowState
$mInstanceEventWindowState_Active :: forall {r}.
InstanceEventWindowState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceEventWindowState_Active = InstanceEventWindowState' "active"

pattern InstanceEventWindowState_Creating :: InstanceEventWindowState
pattern $bInstanceEventWindowState_Creating :: InstanceEventWindowState
$mInstanceEventWindowState_Creating :: forall {r}.
InstanceEventWindowState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceEventWindowState_Creating = InstanceEventWindowState' "creating"

pattern InstanceEventWindowState_Deleted :: InstanceEventWindowState
pattern $bInstanceEventWindowState_Deleted :: InstanceEventWindowState
$mInstanceEventWindowState_Deleted :: forall {r}.
InstanceEventWindowState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceEventWindowState_Deleted = InstanceEventWindowState' "deleted"

pattern InstanceEventWindowState_Deleting :: InstanceEventWindowState
pattern $bInstanceEventWindowState_Deleting :: InstanceEventWindowState
$mInstanceEventWindowState_Deleting :: forall {r}.
InstanceEventWindowState -> ((# #) -> r) -> ((# #) -> r) -> r
InstanceEventWindowState_Deleting = InstanceEventWindowState' "deleting"

{-# COMPLETE
  InstanceEventWindowState_Active,
  InstanceEventWindowState_Creating,
  InstanceEventWindowState_Deleted,
  InstanceEventWindowState_Deleting,
  InstanceEventWindowState'
  #-}