[Enhancement]: Update S3 Go code examples to use feature/s3/transfermanager instead of deprecated feature/s3/manager

Aperta
#7,872 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@brmur ci sta già lavorando.

Dal 27/4/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Background story

The AWS SDK for Go v2 has officially deprecated the feature/s3/manager package as of February 2026, replacing it with the new feature/s3/transfermanager. Currently, many code examples in the aws-doc-sdk-examples repository still use the deprecated manager package, which means developers following these examples are building applications with deprecated APIs.

What does this example accomplish?

The examples should show developers how to migrate from the deprecated feature/s3/manager to feature/s3/transfermanager with clear, production-ready patterns.

Which AWS service(s)?

Amazon S3 (Simple Storage Service)

Which AWS SDKs or tools?
  • All languages
  • .NET
  • C++
  • Go (v2)
  • Java
  • Java (v2)
  • JavaScript
  • JavaScript (v3)
  • Kotlin
  • PHP
  • Python
  • Ruby
  • Rust
  • Swift
  • Not applicable
Are there existing code examples to leverage?

Yes, the current examples at gov2/s3/actions/bucket_basics.go provide a foundation, specifically the UploadLargeObject and DownloadLargeObject methods. However, these use the deprecated manager package. The new transfermanager package requires significant refactoring:

  • Different import path: github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager
  • Single client type: transfermanager.Client instead of separate Uploader/Downloader
  • Different method signatures: UploadObject/DownloadObject instead of Upload/Download
Do you have any reference code?
No But I'm willing to help contribute to this documentation update. I can assist with writing the updated code examples for the `bucket_basics.go` file and other relevant S3 example files that use the deprecated manager package. Please let me know how I can contribute to this effort, whether through submitting a PR with the updated code or helping review the documentation changes.
Lingua principale
Java
Stelle
10.5k
Fork
5.8k
Merge medio
2g 21h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di awsdocs/aws-doc-sdk-examples

Tutte le issue di awsdocs/aws-doc-sdk-examples

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.