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

オープン
#7,872 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@brmur がすでに取り組んでいます。

2026年4月27日 から。

評価

この issue はまだ評価されていません。

説明

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.
主要言語
Java
スター
10.5k
フォーク
5.8k
平均マージ
2日 21時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

awsdocs/aws-doc-sdk-examples のほかの issue

awsdocs/aws-doc-sdk-examples の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。