module Stratosphere.AppMesh.VirtualRouter.PortMappingProperty (
PortMappingProperty(..), mkPortMappingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PortMappingProperty
=
PortMappingProperty {PortMappingProperty -> ()
haddock_workaround_ :: (),
PortMappingProperty -> Value Integer
port :: (Value Prelude.Integer),
PortMappingProperty -> Value Text
protocol :: (Value Prelude.Text)}
deriving stock (PortMappingProperty -> PortMappingProperty -> Bool
(PortMappingProperty -> PortMappingProperty -> Bool)
-> (PortMappingProperty -> PortMappingProperty -> Bool)
-> Eq PortMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PortMappingProperty -> PortMappingProperty -> Bool
== :: PortMappingProperty -> PortMappingProperty -> Bool
$c/= :: PortMappingProperty -> PortMappingProperty -> Bool
/= :: PortMappingProperty -> PortMappingProperty -> Bool
Prelude.Eq, Int -> PortMappingProperty -> ShowS
[PortMappingProperty] -> ShowS
PortMappingProperty -> String
(Int -> PortMappingProperty -> ShowS)
-> (PortMappingProperty -> String)
-> ([PortMappingProperty] -> ShowS)
-> Show PortMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PortMappingProperty -> ShowS
showsPrec :: Int -> PortMappingProperty -> ShowS
$cshow :: PortMappingProperty -> String
show :: PortMappingProperty -> String
$cshowList :: [PortMappingProperty] -> ShowS
showList :: [PortMappingProperty] -> ShowS
Prelude.Show)
mkPortMappingProperty ::
Value Prelude.Integer -> Value Prelude.Text -> PortMappingProperty
mkPortMappingProperty :: Value Integer -> Value Text -> PortMappingProperty
mkPortMappingProperty Value Integer
port Value Text
protocol
= PortMappingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), port :: Value Integer
port = Value Integer
port, protocol :: Value Text
protocol = Value Text
protocol}
instance ToResourceProperties PortMappingProperty where
toResourceProperties :: PortMappingProperty -> ResourceProperties
toResourceProperties PortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: PortMappingProperty -> ()
port :: PortMappingProperty -> Value Integer
protocol :: PortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualRouter.PortMapping",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Port" 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..= Value Integer
port, Key
"Protocol" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
protocol]}
instance JSON.ToJSON PortMappingProperty where
toJSON :: PortMappingProperty -> Value
toJSON PortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: PortMappingProperty -> ()
port :: PortMappingProperty -> Value Integer
protocol :: PortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Port" 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..= Value Integer
port, Key
"Protocol" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
protocol]
instance Property "Port" PortMappingProperty where
type PropertyType "Port" PortMappingProperty = Value Prelude.Integer
set :: PropertyType "Port" PortMappingProperty
-> PortMappingProperty -> PortMappingProperty
set PropertyType "Port" PortMappingProperty
newValue PortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: PortMappingProperty -> ()
port :: PortMappingProperty -> Value Integer
protocol :: PortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
= PortMappingProperty {port :: Value Integer
port = PropertyType "Port" PortMappingProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
protocol :: Value Text
haddock_workaround_ :: ()
protocol :: Value Text
..}
instance Property "Protocol" PortMappingProperty where
type PropertyType "Protocol" PortMappingProperty = Value Prelude.Text
set :: PropertyType "Protocol" PortMappingProperty
-> PortMappingProperty -> PortMappingProperty
set PropertyType "Protocol" PortMappingProperty
newValue PortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: PortMappingProperty -> ()
port :: PortMappingProperty -> Value Integer
protocol :: PortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
= PortMappingProperty {protocol :: Value Text
protocol = PropertyType "Protocol" PortMappingProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
port :: Value Integer
haddock_workaround_ :: ()
port :: Value Integer
..}