in transcribe-ui-backend/provisioning/lib/construct/database.ts [8:33]
constructor(scope: cdk.Construct, id: string) {
super(scope, id)
this.vocabTable = new dynamodb.Table(this, `${id}-vocab-table`, {
tableName: 'Transcribe-CustomVocabulary',
partitionKey: {
name: 'display',
type: dynamodb.AttributeType.STRING
},
sortKey: {
name: 'phrase',
type: dynamodb.AttributeType.STRING
},
billingMode: dynamodb.BillingMode.PAY_PER_REQUEST
})
this.jobTable = new dynamodb.Table(this, `${id}-job-table`, {
tableName: 'Transcribe-Job',
partitionKey: {
name: 'job',
type: dynamodb.AttributeType.STRING
},
timeToLiveAttribute: 'expire',
billingMode: dynamodb.BillingMode.PAY_PER_REQUEST
})
}