aws / aws/aws-sdk-js-codemod

[Feature]: Use codemod to convert RetryDelayOptions

Open
#610 2 comments 0 reactions 0 assignees View on GitHub
enhancement p2
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

```
AWS.config.update({
maxRetries: request_params.maxRetries,
retryDelayOptions: {
base: request_params.retryDelay,
},
})
```

### Solution

Requesting codemod to convert retryDelayOptions as they are deprecated in SDK V3 clients.

### Alternatives

I have used ConfiguredRetryStrategy however I noticed some calls are not getting executed. Initially I had throttling error so I added + 1. After that I don't see any error. Thus, it would be helpful to have codemod show correct transalation or update SDK documentation. I am submitting this feature request per our discussion.

request_params.maxRetries = 8
request_params.retryDelay = 600

```
const maxRetries = request_params.maxRetries;
const base = request_params.retryDelay;
const retryStrategy = new ConfiguredRetryStrategy(maxRetries + 1, base);
```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the repository's existing codemod scripts and the AWS SDK v3 handling of retryDelayOptions and ConfiguredRetryStrategy. Confirm the intended translation, including maxRetries and retryDelay semantics, then add coverage for the shown input and verify that the codemod produces the agreed output.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, nodejs, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.