aws / aws/aws-sdk-js-codemod

[Feature]: Transformation for AWS.HttpRequest

Open
#923 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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 request = new AWS.HttpRequest(endpoint);
```

### Solution

```js
import { HttpRequest } from "@smithy/protocol-http";

const request = new HttpRequest(new URL(endpoint));
```

### Alternatives

N/A

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the codemod entry point that handles AWS.HttpRequest constructions and any associated tests; the issue only provides the current and desired import and constructor forms. Confirm how the transformation should represent endpoint as a URL, then verify that AWS.HttpRequest usages become @smithy/protocol-http HttpRequest usages without affecting unrelated code.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.