https://pulumi.com logo
Title
e

echoing-zebra-28421

06/01/2021, 5:57 PM
Is it possible to make me stay as an Object? something like that:
{
  name: "Name custom",
  item: [{ key: "key-custom", value: "value-custom" }],
}
l

lemon-machine-35564

06/01/2021, 6:53 PM
You are stringify’ing it so… try not doing that.
e

echoing-zebra-28421

06/01/2021, 7:08 PM
when i try this:
const notificationTableItem = new aws.dynamodb.TableItem(
  "notificationTableItem",
  {
    tableName: notificationTable.name,
    hashKey: notificationTable.hashKey,
    item: obj as unknown as Input<string>,
  }
);
it gives me this error:
error: aws:dynamodb/tableItem:TableItem resource 'notificationTableItem' has a problem: Attribute must be a single value, not a map. Examine values at 'TableItem.Item'.