export_rds_database_recommendations
¶
export_rds_database_recommendations(
s3_destination_config: S3DestinationConfig,
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
account_ids: Optional[AccountIds] = None,
filters: Optional[RDSDBRecommendationFilters] = None,
fields_to_export: Optional[ExportableRDSDBFields] = None,
file_format: Optional[FileFormat] = None,
include_member_accounts: Optional[IncludeMemberAccounts] = None,
recommendation_preferences: Optional[RecommendationPreferences] = None,
) -> ExportRDSDatabaseRecommendationsResponse
Export optimization recommendations for your Amazon Aurora and Amazon Relational Database Service (Amazon RDS) databases.
Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Amazon Aurora or RDS export job in progress per Amazon Web Services Region.
Parameters:
-
account_ids(Optional[AccountIds], default:None) –The Amazon Web Services account IDs for the export Amazon Aurora and RDS database recommendations.
If your account is the management account or the delegated administrator of an organization, use this parameter to specify the member account you want to export recommendations to.
This parameter can't be specified together with the include member accounts parameter. The parameters are mutually exclusive.
If this parameter or the include member accounts parameter is omitted, the recommendations for member accounts aren't included in the export.
You can specify multiple account IDs per request.
-
filters(Optional[RDSDBRecommendationFilters], default:None) –An array of objects to specify a filter that exports a more specific set of Amazon Aurora and RDS recommendations.
-
fields_to_export(Optional[ExportableRDSDBFields], default:None) –The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
-
file_format(Optional[FileFormat], default:None) –The format of the export file.
The CSV file is the only export file format currently supported.
-
include_member_accounts(Optional[IncludeMemberAccounts], default:None) –If your account is the management account or the delegated administrator of an organization, this parameter indicates whether to include recommendations for resources in all member accounts of the organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
If this parameter is omitted, recommendations for member accounts of the organization aren't included in the export file.
If this parameter or the account ID parameter is omitted, recommendations for member accounts aren't included in the export.
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.
-
LimitExceededException–The request exceeds a limit of the service.
-
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.
-
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
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 | |