module Stratosphere.NetworkFirewall.FirewallPolicy.FlowTimeoutsProperty (
FlowTimeoutsProperty(..), mkFlowTimeoutsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlowTimeoutsProperty
=
FlowTimeoutsProperty {FlowTimeoutsProperty -> ()
haddock_workaround_ :: (),
FlowTimeoutsProperty -> Maybe (Value Integer)
tcpIdleTimeoutSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool
(FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool)
-> (FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool)
-> Eq FlowTimeoutsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool
== :: FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool
$c/= :: FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool
/= :: FlowTimeoutsProperty -> FlowTimeoutsProperty -> Bool
Prelude.Eq, Int -> FlowTimeoutsProperty -> ShowS
[FlowTimeoutsProperty] -> ShowS
FlowTimeoutsProperty -> String
(Int -> FlowTimeoutsProperty -> ShowS)
-> (FlowTimeoutsProperty -> String)
-> ([FlowTimeoutsProperty] -> ShowS)
-> Show FlowTimeoutsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlowTimeoutsProperty -> ShowS
showsPrec :: Int -> FlowTimeoutsProperty -> ShowS
$cshow :: FlowTimeoutsProperty -> String
show :: FlowTimeoutsProperty -> String
$cshowList :: [FlowTimeoutsProperty] -> ShowS
showList :: [FlowTimeoutsProperty] -> ShowS
Prelude.Show)
mkFlowTimeoutsProperty :: FlowTimeoutsProperty
mkFlowTimeoutsProperty :: FlowTimeoutsProperty
mkFlowTimeoutsProperty
= FlowTimeoutsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), tcpIdleTimeoutSeconds :: Maybe (Value Integer)
tcpIdleTimeoutSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlowTimeoutsProperty where
toResourceProperties :: FlowTimeoutsProperty -> ResourceProperties
toResourceProperties FlowTimeoutsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: FlowTimeoutsProperty -> ()
tcpIdleTimeoutSeconds :: FlowTimeoutsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
tcpIdleTimeoutSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkFirewall::FirewallPolicy.FlowTimeouts",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TcpIdleTimeoutSeconds"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
tcpIdleTimeoutSeconds])}
instance JSON.ToJSON FlowTimeoutsProperty where
toJSON :: FlowTimeoutsProperty -> Value
toJSON FlowTimeoutsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: FlowTimeoutsProperty -> ()
tcpIdleTimeoutSeconds :: FlowTimeoutsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
tcpIdleTimeoutSeconds :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TcpIdleTimeoutSeconds"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
tcpIdleTimeoutSeconds]))
instance Property "TcpIdleTimeoutSeconds" FlowTimeoutsProperty where
type PropertyType "TcpIdleTimeoutSeconds" FlowTimeoutsProperty = Value Prelude.Integer
set :: PropertyType "TcpIdleTimeoutSeconds" FlowTimeoutsProperty
-> FlowTimeoutsProperty -> FlowTimeoutsProperty
set PropertyType "TcpIdleTimeoutSeconds" FlowTimeoutsProperty
newValue FlowTimeoutsProperty {Maybe (Value Integer)
()
haddock_workaround_ :: FlowTimeoutsProperty -> ()
tcpIdleTimeoutSeconds :: FlowTimeoutsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
tcpIdleTimeoutSeconds :: Maybe (Value Integer)
..}
= FlowTimeoutsProperty
{tcpIdleTimeoutSeconds :: Maybe (Value Integer)
tcpIdleTimeoutSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TcpIdleTimeoutSeconds" FlowTimeoutsProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}