# Amazon RDS code examples for the SDK for C++ ## Overview Shows how to use the AWS SDK for C++ to work with Amazon Relational Database Service (Amazon RDS). *Amazon RDS is a web service that makes it easier to set up, operate, and scale a relational database in the cloud.* ## ⚠ Important * Running this code might result in charges to your AWS account. * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). ## Code examples ### Single actions Code excerpts that show you how to call individual service functions. * [Create a DB instance](getting_started_with_db_instances.cpp#L483) (`CreateDBInstance`) * [Create a DB parameter group](getting_started_with_db_instances.cpp#L315) (`CreateDBParameterGroup`) * [Create a snapshot of a DB instance](getting_started_with_db_instances.cpp#L561) (`CreateDBSnapshot`) * [Delete a DB instance](getting_started_with_db_instances.cpp#L852) (`DeleteDBInstance`) * [Delete a DB parameter group](getting_started_with_db_instances.cpp#L906) (`DeleteDBParameterGroup`) * [Describe DB instances](getting_started_with_db_instances.cpp#L747) (`DescribeDBInstances`) * [Describe DB parameter groups](getting_started_with_db_instances.cpp#L277) (`DescribeDBParameterGroups`) * [Describe database engine versions](getting_started_with_db_instances.cpp#L713) (`DescribeDBEngineVersions`) * [Describe options for DB instances](getting_started_with_db_instances.cpp#L786) (`DescribeOrderableDBInstanceOptions`) * [Describe parameters in a DB parameter group](getting_started_with_db_instances.cpp#L656) (`DescribeDBParameters`) * [Describe snapshots of DB instances](getting_started_with_db_instances.cpp#L599) (`DescribeDBSnapshots`) * [Update parameters in a DB parameter group](getting_started_with_db_instances.cpp#L384) (`ModifyDBParameterGroup`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. * [Get started with DB instances](getting_started_with_db_instances.cpp) ## Run the examples ### Prerequisites Before using the code examples, first complete the installation and setup steps for [Getting started](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/getting-started.html) in the AWS SDK for C++ Developer Guide. This section covers how to get and build the SDK, and how to build your own code by using the SDK with a sample Hello World-style application. Next, for information on code example structures and how to build and run the examples, see [Getting started with the AWS SDK for C++ code examples](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/getting-started-code-examples.html). ### Instructions #### Get started with DB instances This example shows you how to do the following: * Create a custom DB parameter group and set parameter values. * Create a DB instance that's configured to use the parameter group. The DB instance also contains a database. * Take a snapshot of the instance. * Delete the instance and parameter group. ### Tests ⚠ Running tests might result in charges to your AWS account. ```sh cd cmake -DBUILD_TESTS=ON make ctest ``` ## Additional resources * [Amazon RDS User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html) * [Amazon RDS API Reference](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/Welcome.html) * [SDK for C++ Amazon RDS reference](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-rds/html/annotated.html) --- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0