import { aws_dynamodb } from "aws-cdk-lib"; import { FormatObject, JsonFormat } from "typesafe-dynamodb/lib/json-format"; import { TableKey } from "typesafe-dynamodb/lib/key"; import { Narrow } from "typesafe-dynamodb/lib/narrow"; import { ITable } from "./table"; import { AttributeKeyToObject } from "./util"; export interface TransactGetItemsInput, Format extends JsonFormat = JsonFormat.Document> { TransactItems: TransactGetItem[]; } export interface TransactGetItem, Format extends JsonFormat> { /** * Contains the primary key that identifies the item to get, together with the name of the table that contains the item, and optionally the specific attributes of the item to retrieve. */ Get: Get; } export interface Get, Format extends JsonFormat> extends Omit { Key: Key; } export interface TransactGetItemsOutput, Format extends JsonFormat> extends Omit { Items: FormatObject, Format>[]; } export declare type TransactGetItems = >(request: TransactGetItemsInput) => Promise>; export declare function createTransactGetItemsIntegration(table: aws_dynamodb.ITable, format: Format): TransactGetItems; /** * @see https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference-dynamodb.html#aws-appsync-resolver-mapping-template-reference-dynamodb-getitem */ export declare type TransactGetItemsAppsync = >(items: { key: Key; }[]) => Promise<{ items: Narrow, JsonFormat.Document>[] | null; cancellationReasons: { type: string; message: string; }[] | null; }>; export declare function createTransactGetItemsAppsyncIntegration(table: ITable): TransactGetItemsAppsync; //# sourceMappingURL=transact-get-item.d.ts.map