korni created AIRFLOW-7111:

             Summary: 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

boto3 has {{generate_presigned_url which should be exposed in the Hook:}}

{{generate_presigned_url}}(_ClientMethod_, _Params=None_, _ExpiresIn=3600_, 

Generate a presigned url given a client, its method, and arguments

 * *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

Reply via email to