简体   繁体   中英

Descriptions of Boto3 ClientMethods

I am trying to use Boto3's generate_presigned_url() . The method requires a ClientMethod and parameters to go with that ClientMethod. However, the Boto3 documentation doesn't seem to have any list of ClientMethods with their respective parameters. Where can I find this information?

ClientMethod is just the string name of one of the methods on the client object you are calling generate_presigned_url() on, eg for the S3 client the methods are listed here S3.Client . Eg using the 'get_object' method on the S3 client looks like:

client = boto3.client('s3')
url = client.generate_presigned_url('get_object', 
                                    Params={'Bucket': <name>,'Key': <object>}, 
                                    ExpiresIn=86400)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM