cdk-insights
Version:
AWS CDK security and cost analysis tool with AI-powered insights
15 lines (14 loc) • 697 B
TypeScript
import type { GetItemCommand, GetItemCommandOutput, PutItemCommand, PutItemCommandOutput, QueryCommand, QueryCommandOutput, UpdateItemCommand, UpdateItemCommandOutput } from '@aws-sdk/client-dynamodb';
import type Stripe from 'stripe';
export type ExtendSubscriptionTTLDependencies = {
subscriptionId: string;
dynamoDBClient: {
send: (command: GetItemCommand | PutItemCommand | UpdateItemCommand | QueryCommand) => Promise<GetItemCommandOutput | PutItemCommandOutput | UpdateItemCommandOutput | QueryCommandOutput>;
};
licenseTableName: string;
stripe: {
subscriptions: {
retrieve: (id: string) => Promise<Stripe.Subscription>;
};
};
};