Skip to content

Improve ability to configure DynamoDB Client and/or expose ability to provide DynamoDB Client #277

@coreyjv

Description

@coreyjv

In reviewing the source for the project here I noticed that it's making a global configuration update instead of providing these options to the DocumentClient constructor which is supported as noted here and here. It would seem it would be best to transition these to use the constructor instead of the global config.

This raises a further question though. What if a user had the need to configure additional properties for the DocumentClient that this library chose not to expose?

I see a few potential ways to proceed:

  1. Keep the public API of the package the same and transition to use the constructor for a more narrow configuration update but this prevents any other options from being configured.
  2. Add to the public API essentially exposing all configuration options for DocumentClient.
  3. Expose the ability to provide an instance of the DocumentClient in a non-breaking change.
  4. Expose the ability to provide an instance of the DocumentClient in a breaking change.

I'm more than happy to submit a pull request to make any adjustments but I wanted to understand if this is a change that would be considered and what the preferred option would be.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions