module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayPortMappingProperty (
        VirtualGatewayPortMappingProperty(..),
        mkVirtualGatewayPortMappingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualGatewayPortMappingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayportmapping.html>
    VirtualGatewayPortMappingProperty {VirtualGatewayPortMappingProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayportmapping.html#cfn-appmesh-virtualgateway-virtualgatewayportmapping-port>
                                       VirtualGatewayPortMappingProperty -> Value Integer
port :: (Value Prelude.Integer),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-virtualgatewayportmapping.html#cfn-appmesh-virtualgateway-virtualgatewayportmapping-protocol>
                                       VirtualGatewayPortMappingProperty -> Value Text
protocol :: (Value Prelude.Text)}
  deriving stock (VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty -> Bool
(VirtualGatewayPortMappingProperty
 -> VirtualGatewayPortMappingProperty -> Bool)
-> (VirtualGatewayPortMappingProperty
    -> VirtualGatewayPortMappingProperty -> Bool)
-> Eq VirtualGatewayPortMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty -> Bool
== :: VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty -> Bool
$c/= :: VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty -> Bool
/= :: VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty -> Bool
Prelude.Eq, Int -> VirtualGatewayPortMappingProperty -> ShowS
[VirtualGatewayPortMappingProperty] -> ShowS
VirtualGatewayPortMappingProperty -> String
(Int -> VirtualGatewayPortMappingProperty -> ShowS)
-> (VirtualGatewayPortMappingProperty -> String)
-> ([VirtualGatewayPortMappingProperty] -> ShowS)
-> Show VirtualGatewayPortMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualGatewayPortMappingProperty -> ShowS
showsPrec :: Int -> VirtualGatewayPortMappingProperty -> ShowS
$cshow :: VirtualGatewayPortMappingProperty -> String
show :: VirtualGatewayPortMappingProperty -> String
$cshowList :: [VirtualGatewayPortMappingProperty] -> ShowS
showList :: [VirtualGatewayPortMappingProperty] -> ShowS
Prelude.Show)
mkVirtualGatewayPortMappingProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text -> VirtualGatewayPortMappingProperty
mkVirtualGatewayPortMappingProperty :: Value Integer -> Value Text -> VirtualGatewayPortMappingProperty
mkVirtualGatewayPortMappingProperty Value Integer
port Value Text
protocol
  = VirtualGatewayPortMappingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), port :: Value Integer
port = Value Integer
port, protocol :: Value Text
protocol = Value Text
protocol}
instance ToResourceProperties VirtualGatewayPortMappingProperty where
  toResourceProperties :: VirtualGatewayPortMappingProperty -> ResourceProperties
toResourceProperties VirtualGatewayPortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: VirtualGatewayPortMappingProperty -> ()
port :: VirtualGatewayPortMappingProperty -> Value Integer
protocol :: VirtualGatewayPortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.VirtualGatewayPortMapping",
         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 VirtualGatewayPortMappingProperty where
  toJSON :: VirtualGatewayPortMappingProperty -> Value
toJSON VirtualGatewayPortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: VirtualGatewayPortMappingProperty -> ()
port :: VirtualGatewayPortMappingProperty -> Value Integer
protocol :: VirtualGatewayPortMappingProperty -> 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" VirtualGatewayPortMappingProperty where
  type PropertyType "Port" VirtualGatewayPortMappingProperty = Value Prelude.Integer
  set :: PropertyType "Port" VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty
set PropertyType "Port" VirtualGatewayPortMappingProperty
newValue VirtualGatewayPortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: VirtualGatewayPortMappingProperty -> ()
port :: VirtualGatewayPortMappingProperty -> Value Integer
protocol :: VirtualGatewayPortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
    = VirtualGatewayPortMappingProperty {port :: Value Integer
port = PropertyType "Port" VirtualGatewayPortMappingProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
protocol :: Value Text
haddock_workaround_ :: ()
protocol :: Value Text
..}
instance Property "Protocol" VirtualGatewayPortMappingProperty where
  type PropertyType "Protocol" VirtualGatewayPortMappingProperty = Value Prelude.Text
  set :: PropertyType "Protocol" VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty
-> VirtualGatewayPortMappingProperty
set PropertyType "Protocol" VirtualGatewayPortMappingProperty
newValue VirtualGatewayPortMappingProperty {()
Value Integer
Value Text
haddock_workaround_ :: VirtualGatewayPortMappingProperty -> ()
port :: VirtualGatewayPortMappingProperty -> Value Integer
protocol :: VirtualGatewayPortMappingProperty -> Value Text
haddock_workaround_ :: ()
port :: Value Integer
protocol :: Value Text
..}
    = VirtualGatewayPortMappingProperty {protocol :: Value Text
protocol = PropertyType "Protocol" VirtualGatewayPortMappingProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
port :: Value Integer
haddock_workaround_ :: ()
port :: Value Integer
..}