Skip to content

Re-export of client SDK type definitions #120

@dmeehan1968

Description

@dmeehan1968

The services that @effect-aws create don't expose the SDK client type definitions. Depending on the client, these can be useful for specifying aspects of the client command input. Whilst its possible to specify literals, this can make the code less maintainable overall.

For example, in the Timestream client, the following types are useful when building the writeRecords input:

import { _Record, MeasureValue, MeasureValueType, TimeUnit, Dimension } from "@aws-sdk/client-timestream-write"

At present, because @effect-aws doesn't re-export these values, its necessary to install the aws-sdk client in order to be able to access them in the application code. That can also then raise issues with mismatched client versions which might lead to discrepancies/conflicts (not necessarily in the types, but I've seen instances of the @smithy dependencies conflicting when there are mixed SDK client versions.

I don't know if its possible to identify what these types might be via the codegen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions