mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-25 17:14:03 +00:00
withPersistanceAdapter追加
This commit is contained in:
parent
6afe962be6
commit
1081d220d8
|
@ -139,5 +139,10 @@ exports.handler = Alexa.SkillBuilders.custom()
|
|||
IntentReflectorHandler)
|
||||
.addErrorHandlers(
|
||||
ErrorHandler)
|
||||
.withPersistenceAdapter(new DynamoDBPersistantAttributesAdapter.DynamoDbPersistenceAdapter({
|
||||
tableName: process.env.DYNAMODB_PERSISTENCE_TABLE_NAME || 'ask-sdk-table',
|
||||
createTable: false,
|
||||
dynamoDBClient: new AWS.DynamoDB({apiVersion: 'latest', region: process.env.DYNAMODB_PERSISTENCE_REGION})
|
||||
}))
|
||||
.withCustomUserAgent('sample/hello-world/v1.2')
|
||||
.lambda();
|
||||
|
|
Loading…
Reference in New Issue
Block a user