Slide 17
Slide 17 text
DynamoDBSpec.scala #beforeAll
DynamoDBSpec.scala #beforeAll
override def beforeAll(): Unit = {
super.beforeAll()
val createTableRequest = new CreateTableRequest()
.withTableName(TableName)
.withAttributeDefinitions(
new AttributeDefinition("id", ScalarAttributeType.S))
.withKeySchema(
new KeySchemaElement("id", KeyType.HASH))
.withProvisionedThroughput(
new ProvisionedThroughput(1L, 1L))
dynamoDBClient.createTable(createTableRequest)
}
16