Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Code examples

This section describes code examples that demonstrate how to use the AWS SDK for Python to call various AWS services. The source files for the examples, plus additional example programs, are available in the AWS Code Catalog.

To propose a new code example for the AWS documentation team to consider producing, create a new request. The team is looking to produce code examples that cover broader scenarios and use cases, versus simple code snippets that cover only individual API calls. For instructions, see the "Proposing new code examples" section in the Readme on GitHub.

Before running an example, your AWS credentials must be configured as described in Quickstart.