module Stratosphere.IoTThingsGraph.FlowTemplate.DefinitionDocumentProperty (
        DefinitionDocumentProperty(..), mkDefinitionDocumentProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DefinitionDocumentProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotthingsgraph-flowtemplate-definitiondocument.html>
    DefinitionDocumentProperty {DefinitionDocumentProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotthingsgraph-flowtemplate-definitiondocument.html#cfn-iotthingsgraph-flowtemplate-definitiondocument-language>
                                DefinitionDocumentProperty -> Value Text
language :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotthingsgraph-flowtemplate-definitiondocument.html#cfn-iotthingsgraph-flowtemplate-definitiondocument-text>
                                DefinitionDocumentProperty -> Value Text
text :: (Value Prelude.Text)}
  deriving stock (DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool
(DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool)
-> (DefinitionDocumentProperty
    -> DefinitionDocumentProperty -> Bool)
-> Eq DefinitionDocumentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool
== :: DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool
$c/= :: DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool
/= :: DefinitionDocumentProperty -> DefinitionDocumentProperty -> Bool
Prelude.Eq, Int -> DefinitionDocumentProperty -> ShowS
[DefinitionDocumentProperty] -> ShowS
DefinitionDocumentProperty -> String
(Int -> DefinitionDocumentProperty -> ShowS)
-> (DefinitionDocumentProperty -> String)
-> ([DefinitionDocumentProperty] -> ShowS)
-> Show DefinitionDocumentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefinitionDocumentProperty -> ShowS
showsPrec :: Int -> DefinitionDocumentProperty -> ShowS
$cshow :: DefinitionDocumentProperty -> String
show :: DefinitionDocumentProperty -> String
$cshowList :: [DefinitionDocumentProperty] -> ShowS
showList :: [DefinitionDocumentProperty] -> ShowS
Prelude.Show)
mkDefinitionDocumentProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> DefinitionDocumentProperty
mkDefinitionDocumentProperty :: Value Text -> Value Text -> DefinitionDocumentProperty
mkDefinitionDocumentProperty Value Text
language Value Text
text
  = DefinitionDocumentProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), language :: Value Text
language = Value Text
language, text :: Value Text
text = Value Text
text}
instance ToResourceProperties DefinitionDocumentProperty where
  toResourceProperties :: DefinitionDocumentProperty -> ResourceProperties
toResourceProperties DefinitionDocumentProperty {()
Value Text
haddock_workaround_ :: DefinitionDocumentProperty -> ()
language :: DefinitionDocumentProperty -> Value Text
text :: DefinitionDocumentProperty -> Value Text
haddock_workaround_ :: ()
language :: Value Text
text :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTThingsGraph::FlowTemplate.DefinitionDocument",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Language" 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
language, Key
"Text" 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
text]}
instance JSON.ToJSON DefinitionDocumentProperty where
  toJSON :: DefinitionDocumentProperty -> Value
toJSON DefinitionDocumentProperty {()
Value Text
haddock_workaround_ :: DefinitionDocumentProperty -> ()
language :: DefinitionDocumentProperty -> Value Text
text :: DefinitionDocumentProperty -> Value Text
haddock_workaround_ :: ()
language :: Value Text
text :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Language" 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
language, Key
"Text" 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
text]
instance Property "Language" DefinitionDocumentProperty where
  type PropertyType "Language" DefinitionDocumentProperty = Value Prelude.Text
  set :: PropertyType "Language" DefinitionDocumentProperty
-> DefinitionDocumentProperty -> DefinitionDocumentProperty
set PropertyType "Language" DefinitionDocumentProperty
newValue DefinitionDocumentProperty {()
Value Text
haddock_workaround_ :: DefinitionDocumentProperty -> ()
language :: DefinitionDocumentProperty -> Value Text
text :: DefinitionDocumentProperty -> Value Text
haddock_workaround_ :: ()
language :: Value Text
text :: Value Text
..}
    = DefinitionDocumentProperty {language :: Value Text
language = PropertyType "Language" DefinitionDocumentProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
text :: Value Text
haddock_workaround_ :: ()
text :: Value Text
..}
instance Property "Text" DefinitionDocumentProperty where
  type PropertyType "Text" DefinitionDocumentProperty = Value Prelude.Text
  set :: PropertyType "Text" DefinitionDocumentProperty
-> DefinitionDocumentProperty -> DefinitionDocumentProperty
set PropertyType "Text" DefinitionDocumentProperty
newValue DefinitionDocumentProperty {()
Value Text
haddock_workaround_ :: DefinitionDocumentProperty -> ()
language :: DefinitionDocumentProperty -> Value Text
text :: DefinitionDocumentProperty -> Value Text
haddock_workaround_ :: ()
language :: Value Text
text :: Value Text
..}
    = DefinitionDocumentProperty {text :: Value Text
text = PropertyType "Text" DefinitionDocumentProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
language :: Value Text
haddock_workaround_ :: ()
language :: Value Text
..}