CDK autogenerates resource names for every resource in your stack. However some, like DynamoDB, can take a tablename argument, making it a statically named resource. There are…
Posts for: #Dynamodb
Creating a Model Instance with from_raw_data() in PynamoDB
When using fromrawdata in PynamoDB, you have to pass in the DynamoDB dict structure ({“attributename”: {“S”: “value”}), not a plain dictionary. When 6.0.0 comes out, there will…
DynamoDB Index Read and Write Capacity in PynamoDB
When setting up a Global Secondary Index model in PynamoDB, the read and write capacity units have to be specified. These are not needed if not provisioning a table or index,…
PynamoDB Field Aliases
To give an alias to DynamoDB field with PynamoDB, use the attrname parameter for the appropriate attribute constructor: python class Thread(Model): class Meta: tablename =…
PynamoDB Arguments
In PynamoDB, when running a DynamoDB query, the first two positional arguments are the hash key (primary key) and filters for the range key (sort key). To do a filter…