module Stratosphere.Wisdom.KnowledgeBase.RenderingConfigurationProperty (
        RenderingConfigurationProperty(..),
        mkRenderingConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RenderingConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-renderingconfiguration.html>
    RenderingConfigurationProperty {RenderingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-knowledgebase-renderingconfiguration.html#cfn-wisdom-knowledgebase-renderingconfiguration-templateuri>
                                    RenderingConfigurationProperty -> Maybe (Value Text)
templateUri :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RenderingConfigurationProperty
-> RenderingConfigurationProperty -> Bool
(RenderingConfigurationProperty
 -> RenderingConfigurationProperty -> Bool)
-> (RenderingConfigurationProperty
    -> RenderingConfigurationProperty -> Bool)
-> Eq RenderingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RenderingConfigurationProperty
-> RenderingConfigurationProperty -> Bool
== :: RenderingConfigurationProperty
-> RenderingConfigurationProperty -> Bool
$c/= :: RenderingConfigurationProperty
-> RenderingConfigurationProperty -> Bool
/= :: RenderingConfigurationProperty
-> RenderingConfigurationProperty -> Bool
Prelude.Eq, Int -> RenderingConfigurationProperty -> ShowS
[RenderingConfigurationProperty] -> ShowS
RenderingConfigurationProperty -> String
(Int -> RenderingConfigurationProperty -> ShowS)
-> (RenderingConfigurationProperty -> String)
-> ([RenderingConfigurationProperty] -> ShowS)
-> Show RenderingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RenderingConfigurationProperty -> ShowS
showsPrec :: Int -> RenderingConfigurationProperty -> ShowS
$cshow :: RenderingConfigurationProperty -> String
show :: RenderingConfigurationProperty -> String
$cshowList :: [RenderingConfigurationProperty] -> ShowS
showList :: [RenderingConfigurationProperty] -> ShowS
Prelude.Show)
mkRenderingConfigurationProperty :: RenderingConfigurationProperty
mkRenderingConfigurationProperty :: RenderingConfigurationProperty
mkRenderingConfigurationProperty
  = RenderingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), templateUri :: Maybe (Value Text)
templateUri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RenderingConfigurationProperty where
  toResourceProperties :: RenderingConfigurationProperty -> ResourceProperties
toResourceProperties RenderingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: RenderingConfigurationProperty -> ()
templateUri :: RenderingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
templateUri :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::KnowledgeBase.RenderingConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"TemplateUri" (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)
templateUri])}
instance JSON.ToJSON RenderingConfigurationProperty where
  toJSON :: RenderingConfigurationProperty -> Value
toJSON RenderingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: RenderingConfigurationProperty -> ()
templateUri :: RenderingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
templateUri :: Maybe (Value Text)
..}
    = [(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
"TemplateUri" (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)
templateUri]))
instance Property "TemplateUri" RenderingConfigurationProperty where
  type PropertyType "TemplateUri" RenderingConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TemplateUri" RenderingConfigurationProperty
-> RenderingConfigurationProperty -> RenderingConfigurationProperty
set PropertyType "TemplateUri" RenderingConfigurationProperty
newValue RenderingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: RenderingConfigurationProperty -> ()
templateUri :: RenderingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
templateUri :: Maybe (Value Text)
..}
    = RenderingConfigurationProperty
        {templateUri :: Maybe (Value Text)
templateUri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateUri" RenderingConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}