aws / aws/aws-sdk-js-codemod

[Feature]: Transform client created from constructors derived from destructuring assignment

Open
#784 0 comments 0 reactions 0 assignees View on GitHub
enhancement p3
Dominant language
TypeScript
Stars
89
Forks
13
Avg merge
9h 59m
Merged PRs (30d)
1

Description

### Self-service

- [ ] I'd be willing to implement this feature

### Problem

```js
import AWS from "aws-sdk";
const { DynamoDB } = AWS;
const client = new DynamoDB();
```

### Solution

```js
import { DynamoDB } from "@aws-sdk/client-dynamodb";
const client = new DynamoDB();
```

### Alternatives

N/A

### Additional context

Noted when working on utility https://github.com/aws/aws-sdk-js-codemod/pull/781

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; begin by reviewing the utility referenced by pull request #781 and tracing the existing AWS SDK constructor transforms. Use the destructuring example as the starting case, and consider the work done when that pattern produces the shown modular import and constructor transformation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.