module Stratosphere.AppMesh.VirtualRouter.VirtualRouterListenerProperty (
        module Exports, VirtualRouterListenerProperty(..),
        mkVirtualRouterListenerProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualRouter.PortMappingProperty as Exports
import Stratosphere.ResourceProperties
data VirtualRouterListenerProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterlistener.html>
    VirtualRouterListenerProperty {VirtualRouterListenerProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-virtualrouterlistener.html#cfn-appmesh-virtualrouter-virtualrouterlistener-portmapping>
                                   VirtualRouterListenerProperty -> PortMappingProperty
portMapping :: PortMappingProperty}
  deriving stock (VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> Bool
(VirtualRouterListenerProperty
 -> VirtualRouterListenerProperty -> Bool)
-> (VirtualRouterListenerProperty
    -> VirtualRouterListenerProperty -> Bool)
-> Eq VirtualRouterListenerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> Bool
== :: VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> Bool
$c/= :: VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> Bool
/= :: VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> Bool
Prelude.Eq, Int -> VirtualRouterListenerProperty -> ShowS
[VirtualRouterListenerProperty] -> ShowS
VirtualRouterListenerProperty -> String
(Int -> VirtualRouterListenerProperty -> ShowS)
-> (VirtualRouterListenerProperty -> String)
-> ([VirtualRouterListenerProperty] -> ShowS)
-> Show VirtualRouterListenerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualRouterListenerProperty -> ShowS
showsPrec :: Int -> VirtualRouterListenerProperty -> ShowS
$cshow :: VirtualRouterListenerProperty -> String
show :: VirtualRouterListenerProperty -> String
$cshowList :: [VirtualRouterListenerProperty] -> ShowS
showList :: [VirtualRouterListenerProperty] -> ShowS
Prelude.Show)
mkVirtualRouterListenerProperty ::
  PortMappingProperty -> VirtualRouterListenerProperty
mkVirtualRouterListenerProperty :: PortMappingProperty -> VirtualRouterListenerProperty
mkVirtualRouterListenerProperty PortMappingProperty
portMapping
  = VirtualRouterListenerProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), portMapping :: PortMappingProperty
portMapping = PortMappingProperty
portMapping}
instance ToResourceProperties VirtualRouterListenerProperty where
  toResourceProperties :: VirtualRouterListenerProperty -> ResourceProperties
toResourceProperties VirtualRouterListenerProperty {()
PortMappingProperty
haddock_workaround_ :: VirtualRouterListenerProperty -> ()
portMapping :: VirtualRouterListenerProperty -> PortMappingProperty
haddock_workaround_ :: ()
portMapping :: PortMappingProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualRouter.VirtualRouterListener",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PortMapping" Key -> PortMappingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PortMappingProperty
portMapping]}
instance JSON.ToJSON VirtualRouterListenerProperty where
  toJSON :: VirtualRouterListenerProperty -> Value
toJSON VirtualRouterListenerProperty {()
PortMappingProperty
haddock_workaround_ :: VirtualRouterListenerProperty -> ()
portMapping :: VirtualRouterListenerProperty -> PortMappingProperty
haddock_workaround_ :: ()
portMapping :: PortMappingProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"PortMapping" Key -> PortMappingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= PortMappingProperty
portMapping]
instance Property "PortMapping" VirtualRouterListenerProperty where
  type PropertyType "PortMapping" VirtualRouterListenerProperty = PortMappingProperty
  set :: PropertyType "PortMapping" VirtualRouterListenerProperty
-> VirtualRouterListenerProperty -> VirtualRouterListenerProperty
set PropertyType "PortMapping" VirtualRouterListenerProperty
newValue VirtualRouterListenerProperty {()
PortMappingProperty
haddock_workaround_ :: VirtualRouterListenerProperty -> ()
portMapping :: VirtualRouterListenerProperty -> PortMappingProperty
haddock_workaround_ :: ()
portMapping :: PortMappingProperty
..}
    = VirtualRouterListenerProperty {portMapping :: PortMappingProperty
portMapping = PropertyType "PortMapping" VirtualRouterListenerProperty
PortMappingProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}