module Stratosphere.RTBFabric.Link.ModuleConfigurationProperty (
        module Exports, ModuleConfigurationProperty(..),
        mkModuleConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RTBFabric.Link.ModuleParametersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ModuleConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-moduleconfiguration.html>
    ModuleConfigurationProperty {ModuleConfigurationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-moduleconfiguration.html#cfn-rtbfabric-link-moduleconfiguration-dependson>
                                 ModuleConfigurationProperty -> Maybe (ValueList Text)
dependsOn :: (Prelude.Maybe (ValueList Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-moduleconfiguration.html#cfn-rtbfabric-link-moduleconfiguration-moduleparameters>
                                 ModuleConfigurationProperty -> Maybe ModuleParametersProperty
moduleParameters :: (Prelude.Maybe ModuleParametersProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-moduleconfiguration.html#cfn-rtbfabric-link-moduleconfiguration-name>
                                 ModuleConfigurationProperty -> Value Text
name :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-moduleconfiguration.html#cfn-rtbfabric-link-moduleconfiguration-version>
                                 ModuleConfigurationProperty -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ModuleConfigurationProperty -> ModuleConfigurationProperty -> Bool
(ModuleConfigurationProperty
 -> ModuleConfigurationProperty -> Bool)
-> (ModuleConfigurationProperty
    -> ModuleConfigurationProperty -> Bool)
-> Eq ModuleConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ModuleConfigurationProperty -> ModuleConfigurationProperty -> Bool
== :: ModuleConfigurationProperty -> ModuleConfigurationProperty -> Bool
$c/= :: ModuleConfigurationProperty -> ModuleConfigurationProperty -> Bool
/= :: ModuleConfigurationProperty -> ModuleConfigurationProperty -> Bool
Prelude.Eq, Int -> ModuleConfigurationProperty -> ShowS
[ModuleConfigurationProperty] -> ShowS
ModuleConfigurationProperty -> String
(Int -> ModuleConfigurationProperty -> ShowS)
-> (ModuleConfigurationProperty -> String)
-> ([ModuleConfigurationProperty] -> ShowS)
-> Show ModuleConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ModuleConfigurationProperty -> ShowS
showsPrec :: Int -> ModuleConfigurationProperty -> ShowS
$cshow :: ModuleConfigurationProperty -> String
show :: ModuleConfigurationProperty -> String
$cshowList :: [ModuleConfigurationProperty] -> ShowS
showList :: [ModuleConfigurationProperty] -> ShowS
Prelude.Show)
mkModuleConfigurationProperty ::
  Value Prelude.Text -> ModuleConfigurationProperty
mkModuleConfigurationProperty :: Value Text -> ModuleConfigurationProperty
mkModuleConfigurationProperty Value Text
name
  = ModuleConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       dependsOn :: Maybe (ValueList Text)
dependsOn = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, moduleParameters :: Maybe ModuleParametersProperty
moduleParameters = Maybe ModuleParametersProperty
forall a. Maybe a
Prelude.Nothing,
       version :: Maybe (Value Text)
version = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ModuleConfigurationProperty where
  toResourceProperties :: ModuleConfigurationProperty -> ResourceProperties
toResourceProperties ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RTBFabric::Link.ModuleConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Name" 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
name]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ValueList 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
"DependsOn" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dependsOn,
                               Key -> ModuleParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModuleParameters" (ModuleParametersProperty -> (Key, Value))
-> Maybe ModuleParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModuleParametersProperty
moduleParameters,
                               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
"Version" (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)
version]))}
instance JSON.ToJSON ModuleConfigurationProperty where
  toJSON :: ModuleConfigurationProperty -> Value
toJSON ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Name" 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
name]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ValueList 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
"DependsOn" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
dependsOn,
                  Key -> ModuleParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ModuleParameters" (ModuleParametersProperty -> (Key, Value))
-> Maybe ModuleParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModuleParametersProperty
moduleParameters,
                  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
"Version" (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)
version])))
instance Property "DependsOn" ModuleConfigurationProperty where
  type PropertyType "DependsOn" ModuleConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "DependsOn" ModuleConfigurationProperty
-> ModuleConfigurationProperty -> ModuleConfigurationProperty
set PropertyType "DependsOn" ModuleConfigurationProperty
newValue ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = ModuleConfigurationProperty
        {dependsOn :: Maybe (ValueList Text)
dependsOn = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DependsOn" ModuleConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ()
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
haddock_workaround_ :: ()
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
instance Property "ModuleParameters" ModuleConfigurationProperty where
  type PropertyType "ModuleParameters" ModuleConfigurationProperty = ModuleParametersProperty
  set :: PropertyType "ModuleParameters" ModuleConfigurationProperty
-> ModuleConfigurationProperty -> ModuleConfigurationProperty
set PropertyType "ModuleParameters" ModuleConfigurationProperty
newValue ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = ModuleConfigurationProperty
        {moduleParameters :: Maybe ModuleParametersProperty
moduleParameters = ModuleParametersProperty -> Maybe ModuleParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ModuleParameters" ModuleConfigurationProperty
ModuleParametersProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
name :: Value Text
version :: Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
name :: Value Text
version :: Maybe (Value Text)
..}
instance Property "Name" ModuleConfigurationProperty where
  type PropertyType "Name" ModuleConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" ModuleConfigurationProperty
-> ModuleConfigurationProperty -> ModuleConfigurationProperty
set PropertyType "Name" ModuleConfigurationProperty
newValue ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = ModuleConfigurationProperty {name :: Value Text
name = PropertyType "Name" ModuleConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
version :: Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
version :: Maybe (Value Text)
..}
instance Property "Version" ModuleConfigurationProperty where
  type PropertyType "Version" ModuleConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Version" ModuleConfigurationProperty
-> ModuleConfigurationProperty -> ModuleConfigurationProperty
set PropertyType "Version" ModuleConfigurationProperty
newValue ModuleConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ModuleConfigurationProperty -> ()
dependsOn :: ModuleConfigurationProperty -> Maybe (ValueList Text)
moduleParameters :: ModuleConfigurationProperty -> Maybe ModuleParametersProperty
name :: ModuleConfigurationProperty -> Value Text
version :: ModuleConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
version :: Maybe (Value Text)
..}
    = ModuleConfigurationProperty {version :: Maybe (Value Text)
version = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Version" ModuleConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe ModuleParametersProperty
()
Value Text
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
haddock_workaround_ :: ()
dependsOn :: Maybe (ValueList Text)
moduleParameters :: Maybe ModuleParametersProperty
name :: Value Text
..}