aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
89 stars 79 forks source link

feat: allow custom name on amplify managed table #3012

Closed dpilch closed 1 week ago

dpilch commented 2 weeks ago

Description of changes

Allow custom name on Amplify managed table.

TODO: update documentation.

CDK / CloudFormation Parameters Changed
export const backend = defineBackend({
  auth,
  data,
});

backend
  .data
  .resources
  .cfnResources
  .amplifyDynamoDbTables
  .Todo
  .tableName = "MyCustomTableName";

Issue #, if available

https://github.com/aws-amplify/amplify-category-api/issues/2991

Description of how you validated changes

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.