From 303da528738706cb83fbe279d43ac311d4f52d94 Mon Sep 17 00:00:00 2001 From: Tim Finnigan <87778557+tim-finnigan@users.noreply.github.com> Date: Tue, 14 May 2024 10:56:11 -0700 Subject: [PATCH] update s3 download_file example (#4128) --- boto3/s3/inject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boto3/s3/inject.py b/boto3/s3/inject.py index 440be5a8be..860465aec6 100644 --- a/boto3/s3/inject.py +++ b/boto3/s3/inject.py @@ -159,8 +159,8 @@ def download_file( Usage:: import boto3 - s3 = boto3.resource('s3') - s3.meta.client.download_file('mybucket', 'hello.txt', '/tmp/hello.txt') + s3 = boto3.client('s3') + s3.download_file('mybucket', 'hello.txt', '/tmp/hello.txt') Similar behavior as S3Transfer's download_file() method, except that parameters are capitalized. Detailed examples can be found at