import * as core from "@terrascript/core"; export interface TableItemArgs extends core.ResourceArgs { /** * (Required) Hash key to use for lookups and identification of the item */ hashKey: string | core.StringOut; /** * (Required) JSON representation of a map of attribute name/value pairs, one for each attribute. Only * the primary key attributes are required; you can optionally provide other attribute name-value pairs * for the item. */ item: string | core.StringOut; /** * (Optional) Range key to use for lookups and identification of the item. Required if there is range k * ey defined in the table. */ rangeKey?: string | core.StringOut; /** * (Required) Name of the table to contain the item. */ tableName: string | core.StringOut; } export class TableItem extends core.Resource { /** * (Required) Hash key to use for lookups and identification of the item */ @core.attr(String) public hashKey!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) JSON representation of a map of attribute name/value pairs, one for each attribute. Only * the primary key attributes are required; you can optionally provide other attribute name-value pairs * for the item. */ @core.attr(String) public item!: string | core.StringOut; /** * (Optional) Range key to use for lookups and identification of the item. Required if there is range k * ey defined in the table. */ @core.attr(String) public rangeKey?: string | core.StringOut; /** * (Required) Name of the table to contain the item. */ @core.attr(String) public tableName!: string | core.StringOut; constructor(name: string, args?: TableItemArgs) { super(name, "aws_dynamodb_table_item", args); } public override getNamespace(): string { return "aws_dynamodb"; } }