Skip to content

Commit

Permalink
filter out duplicate instance classes
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws committed Feb 16, 2024
1 parent 3d7ab76 commit 768a684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cpp/example_code/aurora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Code excerpts that show you how to call individual service functions.
- [Create a DB cluster parameter group](getting_started_with_db_clusters.cpp#L333) (`CreateDBClusterParameterGroup`)
- [Create a DB cluster snapshot](getting_started_with_db_clusters.cpp#L661) (`CreateDBClusterSnapshot`)
- [Create a DB instance in a DB cluster](getting_started_with_db_clusters.cpp#L588) (`CreateDBInstance`)
- [Delete a DB cluster](getting_started_with_db_clusters.cpp#L1031) (`DeleteDBCluster`)
- [Delete a DB cluster parameter group](getting_started_with_db_clusters.cpp#L1101) (`DeleteDBClusterParameterGroup`)
- [Delete a DB instance](getting_started_with_db_clusters.cpp#L1001) (`DeleteDBInstance`)
- [Delete a DB cluster](getting_started_with_db_clusters.cpp#L1033) (`DeleteDBCluster`)
- [Delete a DB cluster parameter group](getting_started_with_db_clusters.cpp#L1103) (`DeleteDBClusterParameterGroup`)
- [Delete a DB instance](getting_started_with_db_clusters.cpp#L1003) (`DeleteDBInstance`)
- [Describe DB cluster parameter groups](getting_started_with_db_clusters.cpp#L295) (`DescribeDBClusterParameterGroups`)
- [Describe DB cluster snapshots](getting_started_with_db_clusters.cpp#L701) (`DescribeDBClusterSnapshots`)
- [Describe DB clusters](getting_started_with_db_clusters.cpp#L746) (`DescribeDBClusters`)
Expand Down
4 changes: 3 additions & 1 deletion cpp/example_code/aurora/getting_started_with_db_clusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,9 @@ bool AwsDoc::Aurora::chooseDBInstanceClass(const Aws::String &engine,
outcome.GetResult().GetOrderableDBInstanceOptions();
for (const Aws::RDS::Model::OrderableDBInstanceOption &option: options) {
const Aws::String &instanceClass = option.GetDBInstanceClass();
instanceClasses.push_back(instanceClass);
if (std::find(instanceClasses.begin(), instanceClasses.end(), instanceClass) == instanceClasses.end()) {
instanceClasses.push_back(instanceClass);
}
}
marker = outcome.GetResult().GetMarker();
}
Expand Down

0 comments on commit 768a684

Please sign in to comment.