Skip to content

[Feature] allow SSESpecification for dynamodb store #251

@LeoGrosjean

Description

@LeoGrosjean

Hello ! Thank you for this cool repo 😄

It could be nice to allow passing SSESpecification during dynamodb table creation !

mostly for internal corporate security mandatory rules

table creation code anchor

It's not critical, because table creation can be handled outside of py-key

...
            await self._connected_client.create_table(  # pyright: ignore[reportUnknownMemberType]
                TableName=self._table_name,
                KeySchema=[
                    {"AttributeName": "collection", "KeyType": "HASH"},  # Partition key
                    {"AttributeName": "key", "KeyType": "RANGE"},  # Sort key
                ],
                AttributeDefinitions=[
                    {"AttributeName": "collection", "AttributeType": "S"},
                    {"AttributeName": "key", "AttributeType": "S"},
                ],
                BillingMode="PAY_PER_REQUEST",  # On-demand billing,
                SSESpecification=MySSeSpecification().dict() # <---- here
            )
...

Have a nice day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions