We have changed the default branch for this repo from master to main.
If the parent branch of your fork or branch is master, the following instructions tell you how to change the parent branch to main.
To show the parent branch, where BRANCH is the name of your branch:
To change the parent branch for your branch to main, navigate to the root of your branch and enter the following commands, where BRANCH is the name of your branch:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
git remote update --prune
GitHub will notify you when a parent branch has changed. To change your fork's default branch to main:
If you have any questions, or run across any issue retargeting your branch or fork, open an issue and give us as much detail as possible.
This is the repository for various code examples used in the public AWS documentation. For more information, see Tools to Build on AWS.
The code examples are organized by AWS SDK or AWS programming tool. For example, among the top-level folders:
We also have code examples for two SDKs currently in alpha, DO NOT USE THIS EXAMPLE CODE IN PRODUCTION:
Code examples for older AWS SDK versions are archived in this repository but no longer maintained. These include:
As AWS SDK major version numbers increment, this repository will begin to more consistently reflect their version numbers among these folders to make these distinctions clearer. For example, if and when the AWS SDK for Ruby moves to a version 4, a new rubyv4 folder will be added. Then when AWS officially announces that AWS SDK for Ruby version 3 has been deprecated, the ruby folder will be deleted.
Other top-level folders include:
Note that the scripts folder contains scripts that the AWS documentation team uses internally to build the code examples into various AWS documentation sets.
Inside each language-specific directory, we include a README file that explains how to build and run the examples in the directory.
The example code in the language-specific directories is organized by the AWS service command in the AWS Command Line Interface (AWS CLI) Command Reference (s3 for Amazon S3 examples, and so on).
To propose a new code example for the AWS documentation team to consider working on, create a request.
Note that the AWS documentation team prefers to produce code examples that cover broader scenarios and use cases, versus simple code snippets that cover only individual API calls.
If you plan to contribute examples for use in the documentation (the purpose of this repository), read this section carefully so that we can work together effectively. For process instructions and additional guidance, see the Guidelines for contributing.
All content in this repository, unless otherwise stated, is Copyright © 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 is provided in the LICENSE
file accompanying this repository.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。