Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python AWS signedURL和AWS传输加速度(使用boto3)_Python_Boto3 - Fatal编程技术网

Python AWS signedURL和AWS传输加速度(使用boto3)

Python AWS signedURL和AWS传输加速度(使用boto3),python,boto3,Python,Boto3,如何使用boto 3生成加速传输签名URL 我可以通过以下方式生成标准签名URL client=boto3.client('s3') 参数={ “桶”:桶, “键”:键 } signed_url=client.generate_presigned_url( “获取对象”, 参数=参数, ExpiresIn=300000 ) 但是我在amazon boto3中找不到任何地方,如果有使用加速端点的选项,请在客户端配置中传递它,如下所示: client=boto3.client( “s3”, con

如何使用boto 3生成加速传输签名URL

我可以通过以下方式生成标准签名URL

client=boto3.client('s3')
参数={
“桶”:桶,
“键”:键
}
signed_url=client.generate_presigned_url(
“获取对象”,
参数=参数,
ExpiresIn=300000
)

但是我在amazon boto3中找不到任何地方,如果有使用加速端点的选项,请在客户端配置中传递它,如下所示:

client=boto3.client(
“s3”,
config=botocore.client.config(
s3={
“使用加速端点”:True
}
) 
)

在客户端配置中传递它,如下所示:

client=boto3.client(
“s3”,
config=botocore.client.config(
s3={
“使用加速端点”:True
}
) 
)