get_rds_database_recommendations
¶
get_rds_database_recommendations(
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
resource_arns: Optional[ResourceArns] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
filters: Optional[RDSDBRecommendationFilters] = None,
account_ids: Optional[AccountIds] = None,
recommendation_preferences: Optional[RecommendationPreferences] = None,
) -> GetRDSDatabaseRecommendationsResponse
Returns Amazon Aurora and RDS database recommendations.
Compute Optimizer generates recommendations for Amazon Aurora and RDS databases that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
Parameters:
-
resource_arns(Optional[ResourceArns], default:None) –The ARN that identifies the Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}The following is the format of a DB Cluster ARN:
arn:aws:rds:{region}:{accountId}:cluster:{resourceName} -
next_token(Optional[NextToken], default:None) –The token to advance to the next page of Amazon Aurora and RDS database recommendations.
-
max_results(Optional[MaxResults], default:None) –The maximum number of Amazon Aurora and RDS database recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned
nextTokenvalue. -
filters(Optional[RDSDBRecommendationFilters], default:None) –An array of objects to specify a filter that returns a more specific list of Amazon Aurora and RDS database recommendations.
-
account_ids(Optional[AccountIds], default:None) –Return the Amazon Aurora and RDS database recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the Amazon Aurora and RDS database recommendations to specific member accounts.
You can only specify one account ID per request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. Try your call again.
-
InvalidParameterValueException–The value supplied for the input parameter is out of range or not valid.
-
MissingAuthenticationToken–The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate.
-
OptInRequiredException–The account is not opted in to Compute Optimizer.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the server.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer/_services/compute_optimizer.py
2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 | |