UNPKG

@goldstack/template-dynamodb-cli

Version:

Utilities for building modules for DynamoDB access.

19 lines 864 B
import { AttributeDefinition } from '@aws-sdk/client-dynamodb'; import type { DynamoDBContext } from '@goldstack/template-dynamodb'; /** * Creates a single GSI and waits for it to become active */ export declare function createGsi(context: DynamoDBContext, indexName: string, existingAttributes: AttributeDefinition[]): Promise<void>; /** * Deletes a single GSI and waits for the table to become active */ export declare function deleteGsi(context: DynamoDBContext, indexName: string): Promise<void>; /** * Checks if a GSI exists on the table */ export declare function gsiExists(context: DynamoDBContext, indexName: string): Promise<boolean>; /** * Gets existing attribute definitions from the table */ export declare function getExistingAttributes(context: DynamoDBContext): Promise<AttributeDefinition[]>; //# sourceMappingURL=gsiMigrationUtils.d.ts.map