module Stratosphere.IoT.TopicRule.PutItemInputProperty (
        PutItemInputProperty(..), mkPutItemInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PutItemInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html>
    PutItemInputProperty {PutItemInputProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-putiteminput.html#cfn-iot-topicrule-putiteminput-tablename>
                          PutItemInputProperty -> Value Text
tableName :: (Value Prelude.Text)}
  deriving stock (PutItemInputProperty -> PutItemInputProperty -> Bool
(PutItemInputProperty -> PutItemInputProperty -> Bool)
-> (PutItemInputProperty -> PutItemInputProperty -> Bool)
-> Eq PutItemInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PutItemInputProperty -> PutItemInputProperty -> Bool
== :: PutItemInputProperty -> PutItemInputProperty -> Bool
$c/= :: PutItemInputProperty -> PutItemInputProperty -> Bool
/= :: PutItemInputProperty -> PutItemInputProperty -> Bool
Prelude.Eq, Int -> PutItemInputProperty -> ShowS
[PutItemInputProperty] -> ShowS
PutItemInputProperty -> String
(Int -> PutItemInputProperty -> ShowS)
-> (PutItemInputProperty -> String)
-> ([PutItemInputProperty] -> ShowS)
-> Show PutItemInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PutItemInputProperty -> ShowS
showsPrec :: Int -> PutItemInputProperty -> ShowS
$cshow :: PutItemInputProperty -> String
show :: PutItemInputProperty -> String
$cshowList :: [PutItemInputProperty] -> ShowS
showList :: [PutItemInputProperty] -> ShowS
Prelude.Show)
mkPutItemInputProperty ::
  Value Prelude.Text -> PutItemInputProperty
mkPutItemInputProperty :: Value Text -> PutItemInputProperty
mkPutItemInputProperty Value Text
tableName
  = PutItemInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), tableName :: Value Text
tableName = Value Text
tableName}
instance ToResourceProperties PutItemInputProperty where
  toResourceProperties :: PutItemInputProperty -> ResourceProperties
toResourceProperties PutItemInputProperty {()
Value Text
haddock_workaround_ :: PutItemInputProperty -> ()
tableName :: PutItemInputProperty -> Value Text
haddock_workaround_ :: ()
tableName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::TopicRule.PutItemInput",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"TableName" 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
tableName]}
instance JSON.ToJSON PutItemInputProperty where
  toJSON :: PutItemInputProperty -> Value
toJSON PutItemInputProperty {()
Value Text
haddock_workaround_ :: PutItemInputProperty -> ()
tableName :: PutItemInputProperty -> Value Text
haddock_workaround_ :: ()
tableName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"TableName" 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
tableName]
instance Property "TableName" PutItemInputProperty where
  type PropertyType "TableName" PutItemInputProperty = Value Prelude.Text
  set :: PropertyType "TableName" PutItemInputProperty
-> PutItemInputProperty -> PutItemInputProperty
set PropertyType "TableName" PutItemInputProperty
newValue PutItemInputProperty {()
Value Text
haddock_workaround_ :: PutItemInputProperty -> ()
tableName :: PutItemInputProperty -> Value Text
haddock_workaround_ :: ()
tableName :: Value Text
..}
    = PutItemInputProperty {tableName :: Value Text
tableName = PropertyType "TableName" PutItemInputProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}