This repository contains AWS SDK examples used in the public AWS documentation repositories.
The SDK examples are organized by programming language. For instance, all of the examples for the AWS SDK for Java Developer Guide are kept in the java directory.
Within each of the language-scoped directories, you'll find a README file that explains how to build and run the examples contained within it.
The example code itself is present in the example_code
subdirectory, and is organized further by
the AWS service abbreviation ("s3" for Amazon S3 examples, and so on).
Examples are automatically included within each developer guide by build_docs.py
(present in
each documentation project), which clones this repository and then copies files from the appropriate
example_code
directory into the doc_build
directory prior to building.
Within a guide's source-files, examples are referenced using Sphinx's literalinclude directive. For example:
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/CreateBucket.java :lines: 43-50 :dedent: 8
All content in this repository, unless otherwise stated, is Copyright © 2010-2016, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Except where otherwise noted, all examples in this collection are licensed under the Apache license, version 2.0 (the "License"). The full license text also provided in the LICENSE file accompanying this repository.