[ 
https://issues.apache.org/jira/browse/AIRFLOW-7111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091457#comment-17091457
 ] 

ASF subversion and git services commented on AIRFLOW-7111:
----------------------------------------------------------

Commit b6434dedf974085e5f8891446fa63104836c8fdf in airflow's branch 
refs/heads/master from Jerome Carless
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=b6434de ]

[AIRFLOW-7111] Add generate_presigned_url method to S3Hook (#8441)



> Expose generate_presigned_url of boto3 to S3Hook
> ------------------------------------------------
>
>                 Key: AIRFLOW-7111
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-7111
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: aws
>    Affects Versions: 1.10.9
>            Reporter: korni
>            Assignee: Jerome Carless
>            Priority: Major
>              Labels: S3, S3Hook, aws, easyfix, gsoc, gsoc2020
>             Fix For: 2.0.0, 1.10.11
>
>
> boto3 has {{generate_presigned_url which should be exposed in the Hook:}}
> {{[https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.generate_presigned_url]}}
> {{generate_presigned_url}}(_ClientMethod_, _Params=None_, _ExpiresIn=3600_, 
> _HttpMethod=None_)
> Generate a presigned url given a client, its method, and arguments
> Parameters
>  * *ClientMethod* (_string_) -- The client method to presign for
>  * *Params* (_dict_) -- The parameters normally passed to {{ClientMethod}}.
>  * *ExpiresIn* (_int_) -- The number of seconds the presigned url is valid 
> for. By default it expires in an hour (3600 seconds)
>  * *HttpMethod* (_string_) -- The http method to use on the generated url. By 
> default, the http method is whatever is used in the method's model.
> Returns The presigned url



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to