Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for upload_fileobj (0.17 sec)

  1. docs/sts/client-grants.py

    )
    
    boto3_session = Session(botocore_session=bc_session)
    s3 = boto3_session.resource('s3', endpoint_url='http://localhost:9000')
    
    with open('/etc/hosts', 'rb') as data:
        s3.meta.client.upload_fileobj(data,
                                      'testbucket',
                                      'hosts',
                                      ExtraArgs={'ServerSideEncryption': 'AES256'})
    
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.2K bytes
    - Viewed (0)
Back to top