{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.InputSecurityGroupState
( InputSecurityGroupState
( ..,
InputSecurityGroupState_DELETED,
InputSecurityGroupState_IDLE,
InputSecurityGroupState_IN_USE,
InputSecurityGroupState_UPDATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype InputSecurityGroupState = InputSecurityGroupState'
{ InputSecurityGroupState -> Text
fromInputSecurityGroupState ::
Data.Text
}
deriving stock
( Int -> InputSecurityGroupState -> ShowS
[InputSecurityGroupState] -> ShowS
InputSecurityGroupState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputSecurityGroupState] -> ShowS
$cshowList :: [InputSecurityGroupState] -> ShowS
show :: InputSecurityGroupState -> String
$cshow :: InputSecurityGroupState -> String
showsPrec :: Int -> InputSecurityGroupState -> ShowS
$cshowsPrec :: Int -> InputSecurityGroupState -> ShowS
Prelude.Show,
ReadPrec [InputSecurityGroupState]
ReadPrec InputSecurityGroupState
Int -> ReadS InputSecurityGroupState
ReadS [InputSecurityGroupState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputSecurityGroupState]
$creadListPrec :: ReadPrec [InputSecurityGroupState]
readPrec :: ReadPrec InputSecurityGroupState
$creadPrec :: ReadPrec InputSecurityGroupState
readList :: ReadS [InputSecurityGroupState]
$creadList :: ReadS [InputSecurityGroupState]
readsPrec :: Int -> ReadS InputSecurityGroupState
$creadsPrec :: Int -> ReadS InputSecurityGroupState
Prelude.Read,
InputSecurityGroupState -> InputSecurityGroupState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c/= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
== :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c== :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
Prelude.Eq,
Eq InputSecurityGroupState
InputSecurityGroupState -> InputSecurityGroupState -> Bool
InputSecurityGroupState -> InputSecurityGroupState -> Ordering
InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState
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 :: InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState
$cmin :: InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState
max :: InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState
$cmax :: InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState
>= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c>= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
> :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c> :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
<= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c<= :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
< :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
$c< :: InputSecurityGroupState -> InputSecurityGroupState -> Bool
compare :: InputSecurityGroupState -> InputSecurityGroupState -> Ordering
$ccompare :: InputSecurityGroupState -> InputSecurityGroupState -> Ordering
Prelude.Ord,
forall x. Rep InputSecurityGroupState x -> InputSecurityGroupState
forall x. InputSecurityGroupState -> Rep InputSecurityGroupState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputSecurityGroupState x -> InputSecurityGroupState
$cfrom :: forall x. InputSecurityGroupState -> Rep InputSecurityGroupState x
Prelude.Generic
)
deriving newtype
( Eq InputSecurityGroupState
Int -> InputSecurityGroupState -> Int
InputSecurityGroupState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputSecurityGroupState -> Int
$chash :: InputSecurityGroupState -> Int
hashWithSalt :: Int -> InputSecurityGroupState -> Int
$chashWithSalt :: Int -> InputSecurityGroupState -> Int
Prelude.Hashable,
InputSecurityGroupState -> ()
forall a. (a -> ()) -> NFData a
rnf :: InputSecurityGroupState -> ()
$crnf :: InputSecurityGroupState -> ()
Prelude.NFData,
Text -> Either String InputSecurityGroupState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputSecurityGroupState
$cfromText :: Text -> Either String InputSecurityGroupState
Data.FromText,
InputSecurityGroupState -> Text
forall a. (a -> Text) -> ToText a
toText :: InputSecurityGroupState -> Text
$ctoText :: InputSecurityGroupState -> Text
Data.ToText,
InputSecurityGroupState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputSecurityGroupState -> ByteString
$ctoBS :: InputSecurityGroupState -> ByteString
Data.ToByteString,
InputSecurityGroupState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputSecurityGroupState -> ByteStringBuilder
$cbuild :: InputSecurityGroupState -> ByteStringBuilder
Data.ToLog,
HeaderName -> InputSecurityGroupState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputSecurityGroupState -> [Header]
$ctoHeader :: HeaderName -> InputSecurityGroupState -> [Header]
Data.ToHeader,
InputSecurityGroupState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputSecurityGroupState -> QueryString
$ctoQuery :: InputSecurityGroupState -> QueryString
Data.ToQuery,
Value -> Parser [InputSecurityGroupState]
Value -> Parser InputSecurityGroupState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputSecurityGroupState]
$cparseJSONList :: Value -> Parser [InputSecurityGroupState]
parseJSON :: Value -> Parser InputSecurityGroupState
$cparseJSON :: Value -> Parser InputSecurityGroupState
Data.FromJSON,
FromJSONKeyFunction [InputSecurityGroupState]
FromJSONKeyFunction InputSecurityGroupState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputSecurityGroupState]
$cfromJSONKeyList :: FromJSONKeyFunction [InputSecurityGroupState]
fromJSONKey :: FromJSONKeyFunction InputSecurityGroupState
$cfromJSONKey :: FromJSONKeyFunction InputSecurityGroupState
Data.FromJSONKey,
[InputSecurityGroupState] -> Encoding
[InputSecurityGroupState] -> Value
InputSecurityGroupState -> Encoding
InputSecurityGroupState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputSecurityGroupState] -> Encoding
$ctoEncodingList :: [InputSecurityGroupState] -> Encoding
toJSONList :: [InputSecurityGroupState] -> Value
$ctoJSONList :: [InputSecurityGroupState] -> Value
toEncoding :: InputSecurityGroupState -> Encoding
$ctoEncoding :: InputSecurityGroupState -> Encoding
toJSON :: InputSecurityGroupState -> Value
$ctoJSON :: InputSecurityGroupState -> Value
Data.ToJSON,
ToJSONKeyFunction [InputSecurityGroupState]
ToJSONKeyFunction InputSecurityGroupState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputSecurityGroupState]
$ctoJSONKeyList :: ToJSONKeyFunction [InputSecurityGroupState]
toJSONKey :: ToJSONKeyFunction InputSecurityGroupState
$ctoJSONKey :: ToJSONKeyFunction InputSecurityGroupState
Data.ToJSONKey,
[Node] -> Either String InputSecurityGroupState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputSecurityGroupState
$cparseXML :: [Node] -> Either String InputSecurityGroupState
Data.FromXML,
InputSecurityGroupState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InputSecurityGroupState -> XML
$ctoXML :: InputSecurityGroupState -> XML
Data.ToXML
)
pattern InputSecurityGroupState_DELETED :: InputSecurityGroupState
pattern $bInputSecurityGroupState_DELETED :: InputSecurityGroupState
$mInputSecurityGroupState_DELETED :: forall {r}.
InputSecurityGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
InputSecurityGroupState_DELETED = InputSecurityGroupState' "DELETED"
pattern InputSecurityGroupState_IDLE :: InputSecurityGroupState
pattern $bInputSecurityGroupState_IDLE :: InputSecurityGroupState
$mInputSecurityGroupState_IDLE :: forall {r}.
InputSecurityGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
InputSecurityGroupState_IDLE = InputSecurityGroupState' "IDLE"
pattern InputSecurityGroupState_IN_USE :: InputSecurityGroupState
pattern $bInputSecurityGroupState_IN_USE :: InputSecurityGroupState
$mInputSecurityGroupState_IN_USE :: forall {r}.
InputSecurityGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
InputSecurityGroupState_IN_USE = InputSecurityGroupState' "IN_USE"
pattern InputSecurityGroupState_UPDATING :: InputSecurityGroupState
pattern $bInputSecurityGroupState_UPDATING :: InputSecurityGroupState
$mInputSecurityGroupState_UPDATING :: forall {r}.
InputSecurityGroupState -> ((# #) -> r) -> ((# #) -> r) -> r
InputSecurityGroupState_UPDATING = InputSecurityGroupState' "UPDATING"
{-# COMPLETE
InputSecurityGroupState_DELETED,
InputSecurityGroupState_IDLE,
InputSecurityGroupState_IN_USE,
InputSecurityGroupState_UPDATING,
InputSecurityGroupState'
#-}