{-# 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.Prelude as Prelude
newtype InputSecurityGroupState = InputSecurityGroupState'
{ InputSecurityGroupState -> Text
fromInputSecurityGroupState ::
Core.Text
}
deriving stock
( Int -> InputSecurityGroupState -> ShowS
[InputSecurityGroupState] -> ShowS
InputSecurityGroupState -> String
(Int -> InputSecurityGroupState -> ShowS)
-> (InputSecurityGroupState -> String)
-> ([InputSecurityGroupState] -> ShowS)
-> Show InputSecurityGroupState
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]
(Int -> ReadS InputSecurityGroupState)
-> ReadS [InputSecurityGroupState]
-> ReadPrec InputSecurityGroupState
-> ReadPrec [InputSecurityGroupState]
-> Read 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
(InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> (InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> Eq InputSecurityGroupState
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
Eq InputSecurityGroupState
-> (InputSecurityGroupState -> InputSecurityGroupState -> Ordering)
-> (InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> (InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> (InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> (InputSecurityGroupState -> InputSecurityGroupState -> Bool)
-> (InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState)
-> (InputSecurityGroupState
-> InputSecurityGroupState -> InputSecurityGroupState)
-> Ord 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
$cp1Ord :: Eq InputSecurityGroupState
Prelude.Ord,
(forall x.
InputSecurityGroupState -> Rep InputSecurityGroupState x)
-> (forall x.
Rep InputSecurityGroupState x -> InputSecurityGroupState)
-> Generic InputSecurityGroupState
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
( Int -> InputSecurityGroupState -> Int
InputSecurityGroupState -> Int
(Int -> InputSecurityGroupState -> Int)
-> (InputSecurityGroupState -> Int)
-> Hashable InputSecurityGroupState
forall 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 -> ()
(InputSecurityGroupState -> ()) -> NFData InputSecurityGroupState
forall a. (a -> ()) -> NFData a
rnf :: InputSecurityGroupState -> ()
$crnf :: InputSecurityGroupState -> ()
Prelude.NFData,
Text -> Either String InputSecurityGroupState
(Text -> Either String InputSecurityGroupState)
-> FromText InputSecurityGroupState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputSecurityGroupState
$cfromText :: Text -> Either String InputSecurityGroupState
Core.FromText,
InputSecurityGroupState -> Text
(InputSecurityGroupState -> Text) -> ToText InputSecurityGroupState
forall a. (a -> Text) -> ToText a
toText :: InputSecurityGroupState -> Text
$ctoText :: InputSecurityGroupState -> Text
Core.ToText,
InputSecurityGroupState -> ByteString
(InputSecurityGroupState -> ByteString)
-> ToByteString InputSecurityGroupState
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputSecurityGroupState -> ByteString
$ctoBS :: InputSecurityGroupState -> ByteString
Core.ToByteString,
InputSecurityGroupState -> ByteStringBuilder
(InputSecurityGroupState -> ByteStringBuilder)
-> ToLog InputSecurityGroupState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputSecurityGroupState -> ByteStringBuilder
$cbuild :: InputSecurityGroupState -> ByteStringBuilder
Core.ToLog,
HeaderName -> InputSecurityGroupState -> [Header]
(HeaderName -> InputSecurityGroupState -> [Header])
-> ToHeader InputSecurityGroupState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputSecurityGroupState -> [Header]
$ctoHeader :: HeaderName -> InputSecurityGroupState -> [Header]
Core.ToHeader,
InputSecurityGroupState -> QueryString
(InputSecurityGroupState -> QueryString)
-> ToQuery InputSecurityGroupState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputSecurityGroupState -> QueryString
$ctoQuery :: InputSecurityGroupState -> QueryString
Core.ToQuery,
Value -> Parser [InputSecurityGroupState]
Value -> Parser InputSecurityGroupState
(Value -> Parser InputSecurityGroupState)
-> (Value -> Parser [InputSecurityGroupState])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [InputSecurityGroupState]
FromJSONKeyFunction InputSecurityGroupState
FromJSONKeyFunction InputSecurityGroupState
-> FromJSONKeyFunction [InputSecurityGroupState]
-> FromJSONKey InputSecurityGroupState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputSecurityGroupState]
$cfromJSONKeyList :: FromJSONKeyFunction [InputSecurityGroupState]
fromJSONKey :: FromJSONKeyFunction InputSecurityGroupState
$cfromJSONKey :: FromJSONKeyFunction InputSecurityGroupState
Core.FromJSONKey,
[InputSecurityGroupState] -> Encoding
[InputSecurityGroupState] -> Value
InputSecurityGroupState -> Encoding
InputSecurityGroupState -> Value
(InputSecurityGroupState -> Value)
-> (InputSecurityGroupState -> Encoding)
-> ([InputSecurityGroupState] -> Value)
-> ([InputSecurityGroupState] -> Encoding)
-> ToJSON InputSecurityGroupState
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
Core.ToJSON,
ToJSONKeyFunction [InputSecurityGroupState]
ToJSONKeyFunction InputSecurityGroupState
ToJSONKeyFunction InputSecurityGroupState
-> ToJSONKeyFunction [InputSecurityGroupState]
-> ToJSONKey InputSecurityGroupState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputSecurityGroupState]
$ctoJSONKeyList :: ToJSONKeyFunction [InputSecurityGroupState]
toJSONKey :: ToJSONKeyFunction InputSecurityGroupState
$ctoJSONKey :: ToJSONKeyFunction InputSecurityGroupState
Core.ToJSONKey,
[Node] -> Either String InputSecurityGroupState
([Node] -> Either String InputSecurityGroupState)
-> FromXML InputSecurityGroupState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputSecurityGroupState
$cparseXML :: [Node] -> Either String InputSecurityGroupState
Core.FromXML,
InputSecurityGroupState -> XML
(InputSecurityGroupState -> XML) -> ToXML InputSecurityGroupState
forall a. (a -> XML) -> ToXML a
toXML :: InputSecurityGroupState -> XML
$ctoXML :: InputSecurityGroupState -> XML
Core.ToXML
)
pattern InputSecurityGroupState_DELETED :: InputSecurityGroupState
pattern $bInputSecurityGroupState_DELETED :: InputSecurityGroupState
$mInputSecurityGroupState_DELETED :: forall r.
InputSecurityGroupState -> (Void# -> r) -> (Void# -> r) -> r
InputSecurityGroupState_DELETED = InputSecurityGroupState' "DELETED"
pattern InputSecurityGroupState_IDLE :: InputSecurityGroupState
pattern $bInputSecurityGroupState_IDLE :: InputSecurityGroupState
$mInputSecurityGroupState_IDLE :: forall r.
InputSecurityGroupState -> (Void# -> r) -> (Void# -> r) -> r
InputSecurityGroupState_IDLE = InputSecurityGroupState' "IDLE"
pattern InputSecurityGroupState_IN_USE :: InputSecurityGroupState
pattern $bInputSecurityGroupState_IN_USE :: InputSecurityGroupState
$mInputSecurityGroupState_IN_USE :: forall r.
InputSecurityGroupState -> (Void# -> r) -> (Void# -> r) -> r
InputSecurityGroupState_IN_USE = InputSecurityGroupState' "IN_USE"
pattern InputSecurityGroupState_UPDATING :: InputSecurityGroupState
pattern $bInputSecurityGroupState_UPDATING :: InputSecurityGroupState
$mInputSecurityGroupState_UPDATING :: forall r.
InputSecurityGroupState -> (Void# -> r) -> (Void# -> r) -> r
InputSecurityGroupState_UPDATING = InputSecurityGroupState' "UPDATING"
{-# COMPLETE
InputSecurityGroupState_DELETED,
InputSecurityGroupState_IDLE,
InputSecurityGroupState_IN_USE,
InputSecurityGroupState_UPDATING,
InputSecurityGroupState'
#-}