UNPKG

@cpmech/az-cdk

Version:
26 lines (25 loc) 837 B
import { Construct } from '@aws-cdk/core'; import { Table, AttributeType, GlobalSecondaryIndexProps, LocalSecondaryIndexProps } from '@aws-cdk/aws-dynamodb'; export interface IDynamoTable { name: string; partitionKey: string; partitionKeyType?: AttributeType; sortKey?: string; sortKeyType?: AttributeType; onDemand?: boolean; ttlAttribute?: string; pitRecovery?: boolean; readCapacity?: number; writeCapacity?: number; gsis?: GlobalSecondaryIndexProps[]; lsis?: LocalSecondaryIndexProps[]; } export interface IDynamoApiProps { dynamoTables: IDynamoTable[]; } export declare class DynamoConstruct extends Construct { readonly name2table: { [tableName: string]: Table; }; constructor(scope: Construct, id: string, props: IDynamoApiProps); }