python/example_code/s3/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Simple Storage Service (Amazon S3).
<!--custom.overview.start--> <!--custom.overview.end-->Amazon S3 is storage for the internet. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
ListBuckets)Code examples that show you how to perform the essential operations within a service.
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
This example shows you how to get started using Amazon S3.
python s3_basics/hello.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python s3_basics/scenario_getting_started.py
This example shows you how to create a presigned URL for Amazon S3 and upload an object.
<!--custom.scenario_prereqs.s3_Scenario_PresignedUrl.start--> <!--custom.scenario_prereqs.s3_Scenario_PresignedUrl.end-->Start the example by running the following at a command prompt:
python s3_basics/presigned_url.py
This example shows you how to explore Amazon Textract output through an interactive application.
<!--custom.scenario_prereqs.cross_TextractExplorer.start--> <!--custom.scenario_prereqs.cross_TextractExplorer.end--> <!--custom.scenarios.cross_TextractExplorer.start--> <!--custom.scenarios.cross_TextractExplorer.end-->This example shows you how to use Amazon Comprehend to detect entities in text extracted by Amazon Textract from an image that is stored in Amazon S3.
<!--custom.scenario_prereqs.cross_TextractComprehendDetectEntities.start--> <!--custom.scenario_prereqs.cross_TextractComprehendDetectEntities.end--> <!--custom.scenarios.cross_TextractComprehendDetectEntities.start--> <!--custom.scenarios.cross_TextractComprehendDetectEntities.end-->This example shows you how to build an app that uses Amazon Rekognition to detect objects by category in images.
<!--custom.scenario_prereqs.cross_RekognitionPhotoAnalyzer.start--> <!--custom.scenario_prereqs.cross_RekognitionPhotoAnalyzer.end--> <!--custom.scenarios.cross_RekognitionPhotoAnalyzer.start--> <!--custom.scenarios.cross_RekognitionPhotoAnalyzer.end-->This example shows you how to detect people and objects in a video with Amazon Rekognition.
<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.start--> <!--custom.scenario_prereqs.cross_RekognitionVideoDetection.end--> <!--custom.scenarios.cross_RekognitionVideoDetection.start--> <!--custom.scenarios.cross_RekognitionVideoDetection.end-->This example shows you how to add preconditions to Amazon S3 requests.
<!--custom.scenario_prereqs.s3_Scenario_ConditionalRequests.start--> <!--custom.scenario_prereqs.s3_Scenario_ConditionalRequests.end-->Start the example by running the following at a command prompt:
python scenarios/conditional_requests/scenario.py
This example shows you how to manage versioned S3 objects in batches with a Lambda function.
<!--custom.scenario_prereqs.s3_Scenario_BatchObjectVersioning.start-->Start the example by running the following at a command prompt:
<!--custom.scenario_prereqs.s3_Scenario_BatchObjectVersioning.end--> <!--custom.scenarios.s3_Scenario_BatchObjectVersioning.start--> <!--custom.scenarios.s3_Scenario_BatchObjectVersioning.end-->This example shows you how to upload or download large files to and from Amazon S3.
<!--custom.scenario_prereqs.s3_Scenario_UsingLargeFiles.start--> <!--custom.scenario_prereqs.s3_Scenario_UsingLargeFiles.end-->Start the example by running the following at a command prompt:
python file_transfer/file_transfer.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python s3_versioning/versioning.py
⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0