corleyma opened a new pull request #7803:
URL: https://github.com/apache/arrow/pull/7803


   ### Background
   AWS provides a mechanism for using temporary credentials to access AWS 
resources.  When accessing AWS resources with a set of temporary credentials,[ 
users must provide a session 
token](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
 in addition to the usual access key id and secret access key.
   
   This PR adds support for providing a session token when initializing an 
S3FileSystem.
   
   ### Changes
   #### C++
   - updated `S3Options.FromAccessKey` and `S3Options.ConfigureAccessKey` to 
accept an optional `session_token` argument (defaulting to empty string, in 
accordance with the convention of 
[Aws::Auth::AWSCredentials](https://sdk.amazonaws.com/cpp/api/0.12.9/d4/d27/class_aws_1_1_auth_1_1_a_w_s_credentials.html)
 as implemented in the AWS C++ SDK.)
   - added `S3Options.GetSessionToken` method
   
   ##### Python
   - updated cdef `CS3Options` to reflect updates to C++ library
   - added optional `session_token` argument to `S3FileSystem.__init__`.
   
   ### Testing
   - updated `test_s3_options` python unittest to include a mock session_token 
when initializing S3FileSystem.
   - successfully ran ctest suite and pytest suite with `--enable-s3` option.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to