export function MarukiStack({ stack }: StackContext) {
const marukiDataTable = new Table(stack, "MarukiTable", {
// Snip for Brevity
});
const sessionTable = new Table(stack, "MarukiSessionTable", {
fields: {
pk: "string",
sk: "string",
gsi1pk: "string",
gsi1sk: "string",
ttl: "number",
},
primaryIndex: { partitionKey: "pk", sortKey: "sk" },
globalIndexes: {
GSI1: { partitionKey: "gsi1pk", sortKey: "gsi1sk"},
},
timeToLiveAttribute: "expiry",
});