amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

String Set for amplify data resource.ts

Open mginsy opened this issue 1 year ago • 1 comments

Environment information

System:
  OS: macOS 14.2
  CPU: (8) arm64 Apple M2
  Memory: 148.67 MB / 8.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.13.1 - /usr/local/bin/node
  Yarn: undefined - undefined
  npm: 10.5.2 - /usr/local/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.2.0
  @aws-amplify/backend: 1.0.4
  @aws-amplify/backend-auth: 1.1.0
  @aws-amplify/backend-cli: 1.2.1
  @aws-amplify/backend-data: 1.1.0
  @aws-amplify/backend-deployer: 1.0.2
  @aws-amplify/backend-function: 1.3.0
  @aws-amplify/backend-output-schemas: 1.1.0
  @aws-amplify/backend-output-storage: 1.0.2
  @aws-amplify/backend-secret: 1.0.0
  @aws-amplify/backend-storage: 1.0.4
  @aws-amplify/cli-core: 1.1.1
  @aws-amplify/client-config: 1.1.1
  @aws-amplify/deployed-backend-client: 1.1.0
  @aws-amplify/form-generator: 1.0.0
  @aws-amplify/model-generator: 1.0.2
  @aws-amplify/platform-core: 1.0.3
  @aws-amplify/plugin-types: 1.1.0
  @aws-amplify/sandbox: 1.1.1
  @aws-amplify/schema-generator: 1.2.0
  aws-amplify: 6.4.3
  aws-cdk: 2.150.0
  aws-cdk-lib: 2.150.0
  typescript: 5.3.3
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Describe the feature

Hello! I would love to have sets be a valid configuration for defining dynamo datasets in the data/resource.ts.

After looking throughthese docs and testing through the different functions, it is not available, but we would love to use it in our system.

image

Use case

I would like to do searches through a list of strings, but stringsets would allow this to have much better time complexity than a list of strings, which is the only thing i am allowed to define at the moment through amplify's connection with dynamo

mginsy avatar Oct 04 '24 04:10 mginsy