Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-7111

Expose generate_presigned_url of boto3 to S3Hook

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      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(ClientMethodParams=NoneExpiresIn=3600HttpMethod=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

        Attachments

          Activity

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment