简体   繁体   English

Boto3 ClientMethods的描述

[英]Descriptions of Boto3 ClientMethods

I am trying to use Boto3's generate_presigned_url() . 我正在尝试使用Boto3的generate_presigned_url() The method requires a ClientMethod and parameters to go with that ClientMethod. 该方法需要ClientMethod和参数与ClientMethod一起使用。 However, the Boto3 documentation doesn't seem to have any list of ClientMethods with their respective parameters. 但是,Boto3文档似乎没有任何ClientMethods列表及其各自的参数。 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 . ClientMethod只是您调用generate_presigned_url()的客户端对象上的一个方法的字符串名称,例如,对于S3客户端,方法在此处列出了S3.Client Eg using the 'get_object' method on the S3 client looks like: 例如,在S3客户端上使用'get_object'方法如下:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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