Skip to content

Commit 17c4d49

Browse files
committed
Update Functions.ts to use TableV2 instead of legacy Table import
1 parent afbe6ff commit 17c4d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cdk/resources/Functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {LambdaFunction} from "../constructs/LambdaFunction"
33
import {ManagedPolicy} from "aws-cdk-lib/aws-iam"
44
import {StringParameter} from "aws-cdk-lib/aws-ssm"
55
import {Secret} from "aws-cdk-lib/aws-secretsmanager"
6-
import {Table} from "aws-cdk-lib/aws-dynamodb"
6+
import {TableV2} from "aws-cdk-lib/aws-dynamodb"
77

88
// Claude model for RAG responses
99
const RAG_MODEL_ID = "anthropic.claude-3-sonnet-20240229-v1:0"
@@ -28,7 +28,7 @@ export interface FunctionsProps {
2828
readonly account: string
2929
readonly slackBotTokenSecret: Secret
3030
readonly slackBotSigningSecret: Secret
31-
readonly slackBotStateTable: Table
31+
readonly slackBotStateTable: TableV2
3232
}
3333

3434
export class Functions extends Construct {

0 commit comments

Comments
 (0)