module Stratosphere.AppMesh.Mesh (
module Exports, Mesh(..), mkMesh
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.Mesh.MeshSpecProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Mesh
=
Mesh {Mesh -> ()
haddock_workaround_ :: (),
Mesh -> Maybe (Value Text)
meshName :: (Prelude.Maybe (Value Prelude.Text)),
Mesh -> Maybe MeshSpecProperty
spec :: (Prelude.Maybe MeshSpecProperty),
Mesh -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Mesh -> Mesh -> Bool
(Mesh -> Mesh -> Bool) -> (Mesh -> Mesh -> Bool) -> Eq Mesh
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Mesh -> Mesh -> Bool
== :: Mesh -> Mesh -> Bool
$c/= :: Mesh -> Mesh -> Bool
/= :: Mesh -> Mesh -> Bool
Prelude.Eq, Int -> Mesh -> ShowS
[Mesh] -> ShowS
Mesh -> String
(Int -> Mesh -> ShowS)
-> (Mesh -> String) -> ([Mesh] -> ShowS) -> Show Mesh
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Mesh -> ShowS
showsPrec :: Int -> Mesh -> ShowS
$cshow :: Mesh -> String
show :: Mesh -> String
$cshowList :: [Mesh] -> ShowS
showList :: [Mesh] -> ShowS
Prelude.Show)
mkMesh :: Mesh
mkMesh :: Mesh
mkMesh
= Mesh
{haddock_workaround_ :: ()
haddock_workaround_ = (), meshName :: Maybe (Value Text)
meshName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
spec :: Maybe MeshSpecProperty
spec = Maybe MeshSpecProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Mesh where
toResourceProperties :: Mesh -> ResourceProperties
toResourceProperties Mesh {Maybe [Tag]
Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: Mesh -> ()
meshName :: Mesh -> Maybe (Value Text)
spec :: Mesh -> Maybe MeshSpecProperty
tags :: Mesh -> Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::Mesh", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MeshName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
meshName,
Key -> MeshSpecProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Spec" (MeshSpecProperty -> (Key, Value))
-> Maybe MeshSpecProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeshSpecProperty
spec,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON Mesh where
toJSON :: Mesh -> Value
toJSON Mesh {Maybe [Tag]
Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: Mesh -> ()
meshName :: Mesh -> Maybe (Value Text)
spec :: Mesh -> Maybe MeshSpecProperty
tags :: Mesh -> Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..}
= [(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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MeshName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
meshName,
Key -> MeshSpecProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Spec" (MeshSpecProperty -> (Key, Value))
-> Maybe MeshSpecProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeshSpecProperty
spec,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "MeshName" Mesh where
type PropertyType "MeshName" Mesh = Value Prelude.Text
set :: PropertyType "MeshName" Mesh -> Mesh -> Mesh
set PropertyType "MeshName" Mesh
newValue Mesh {Maybe [Tag]
Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: Mesh -> ()
meshName :: Mesh -> Maybe (Value Text)
spec :: Mesh -> Maybe MeshSpecProperty
tags :: Mesh -> Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..}
= Mesh {meshName :: Maybe (Value Text)
meshName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MeshName" Mesh
Value Text
newValue, Maybe [Tag]
Maybe MeshSpecProperty
()
haddock_workaround_ :: ()
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..}
instance Property "Spec" Mesh where
type PropertyType "Spec" Mesh = MeshSpecProperty
set :: PropertyType "Spec" Mesh -> Mesh -> Mesh
set PropertyType "Spec" Mesh
newValue Mesh {Maybe [Tag]
Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: Mesh -> ()
meshName :: Mesh -> Maybe (Value Text)
spec :: Mesh -> Maybe MeshSpecProperty
tags :: Mesh -> Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..} = Mesh {spec :: Maybe MeshSpecProperty
spec = MeshSpecProperty -> Maybe MeshSpecProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Spec" Mesh
MeshSpecProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" Mesh where
type PropertyType "Tags" Mesh = [Tag]
set :: PropertyType "Tags" Mesh -> Mesh -> Mesh
set PropertyType "Tags" Mesh
newValue Mesh {Maybe [Tag]
Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: Mesh -> ()
meshName :: Mesh -> Maybe (Value Text)
spec :: Mesh -> Maybe MeshSpecProperty
tags :: Mesh -> Maybe [Tag]
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
tags :: Maybe [Tag]
..} = Mesh {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Mesh
newValue, Maybe (Value Text)
Maybe MeshSpecProperty
()
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
haddock_workaround_ :: ()
meshName :: Maybe (Value Text)
spec :: Maybe MeshSpecProperty
..}