

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for Secrets Manager using AWS SDKs
<a name="secrets-manager_code_examples"></a>

The following code examples show you how to use AWS Secrets Manager with an AWS software development kit (SDK).

*Actions* are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.

*Scenarios* are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.

**More resources**
+  **[ Secrets Manager User Guide](https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html)** – More information about Secrets Manager.
+ **[Secrets Manager API Reference](https://docs.aws.amazon.com/secretsmanager/latest/apireference/Welcome.html)** – Details about all available Secrets Manager actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23secrets-mgr)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Basics](secrets-manager_code_examples_basics.md)
  + [Actions](secrets-manager_code_examples_actions.md)
    + [`BatchGetSecretValue`](secrets-manager_example_secrets-manager_BatchGetSecretValue_section.md)
    + [`GetSecretValue`](secrets-manager_example_secrets-manager_GetSecretValue_section.md)
+ [Scenarios](secrets-manager_code_examples_scenarios.md)
  + [Create a lending library REST API](secrets-manager_example_cross_AuroraRestLendingLibrary_section.md)
  + [Creating a relational database instance](secrets-manager_example_rds_GettingStarted_036_section.md)
  + [Get started with serverless data warehouses](secrets-manager_example_redshift_GettingStarted_038_section.md)
  + [Getting started with document databases](secrets-manager_example_docdb_GettingStarted_025_section.md)
  + [Moving hardcoded secrets to secure secret storage](secrets-manager_example_secrets_manager_GettingStarted_073_section.md)