This is a collection of code examples for the AWS SDK for .NET public documentation.
The code examples appear in two main folders:
- example_code: This folder contains code examples that have unit tests.
- example_code_legacy: This folder contains legacy code examples. Legacy code examples might use older versions of the .NET framework, and they might not contain unit tests.
Legacy code examples might be updated and moved from the example_code_legacy to the example_code folder.
To build and run the code examples in this collection, you need the following:
-
The AWS SDK for .NET. For more information, see the AWS SDK for .NET Developer Guide.
-
AWS credentials, either configured in a local AWS credentials file, or by setting the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. For more information, see the AWS Tools and SDKs Shared Configuration and Credentials Reference Guide.
For each code example, follow the instructions in the README file for the example. In general, follow these steps:
- Open the solution file for the code example in Visual Studio.
- Compile and run the solution.
-
As an AWS best practice, grant all code least privilege, or only the permissions required to perform a task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
-
This code has not been tested in all AWS Regions. Some AWS services are available only in specific Regions. For more information, see Region Table on the AWS website.
-
Running this code might result in charges to your AWS account.
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.