in multipagepdfa2i/multipagepdfa2i_stack.py [0:0]
def configure_dynamo_table(self, table_name, primary_key, sort_key):
demo_table = aws_dynamodb.Table(
self, table_name,
table_name= table_name,
partition_key=aws_dynamodb.Attribute(
name=primary_key,
type=aws_dynamodb.AttributeType.STRING
),
sort_key=aws_dynamodb.Attribute(
name=sort_key,
type=aws_dynamodb.AttributeType.STRING
),
removal_policy=core.RemovalPolicy.DESTROY
)