aws_sdk_computeoptimizer/client/
export_rds_database_recommendations.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ExportRDSDatabaseRecommendations`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_ids(impl Into<String>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_account_ids):<br>required: **false**<br><p>The Amazon Web Services account IDs for the export Amazon Aurora and RDS database recommendations.</p> <p>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.</p> <p>This parameter can't be specified together with the include member accounts parameter. The parameters are mutually exclusive.</p> <p>If this parameter or the include member accounts parameter is omitted, the recommendations for member accounts aren't included in the export.</p> <p>You can specify multiple account IDs per request.</p><br>
7    ///   - [`filters(RdsdbRecommendationFilter)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::filters) / [`set_filters(Option<Vec::<RdsdbRecommendationFilter>>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_filters):<br>required: **false**<br><p>An array of objects to specify a filter that exports a more specific set of Amazon Aurora and RDS recommendations.</p><br>
8    ///   - [`fields_to_export(ExportableRdsdbField)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::fields_to_export) / [`set_fields_to_export(Option<Vec::<ExportableRdsdbField>>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_fields_to_export):<br>required: **false**<br><p>The recommendations data to include in the export file. For more information about the fields that can be exported, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files">Exported files</a> in the <i>Compute Optimizer User Guide</i>.</p><br>
9    ///   - [`s3_destination_config(S3DestinationConfig)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::s3_destination_config) / [`set_s3_destination_config(Option<S3DestinationConfig>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_s3_destination_config):<br>required: **true**<br><p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for a recommendations export job.</p> <p>You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html">Amazon S3 Bucket Policy for Compute Optimizer</a> in the <i>Compute Optimizer User Guide</i>.</p><br>
10    ///   - [`file_format(FileFormat)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::file_format) / [`set_file_format(Option<FileFormat>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_file_format):<br>required: **false**<br><p>The format of the export file.</p> <p>The CSV file is the only export file format currently supported.</p><br>
11    ///   - [`include_member_accounts(bool)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::include_member_accounts) / [`set_include_member_accounts(Option<bool>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_include_member_accounts):<br>required: **false**<br><p>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.</p> <p>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 <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access">Compute Optimizer and Amazon Web Services Organizations trusted access</a> in the <i>Compute Optimizer User Guide</i>.</p> <p>If this parameter is omitted, recommendations for member accounts of the organization aren't included in the export file.</p> <p>If this parameter or the account ID parameter is omitted, recommendations for member accounts aren't included in the export.</p><br>
12    ///   - [`recommendation_preferences(RecommendationPreferences)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::recommendation_preferences) / [`set_recommendation_preferences(Option<RecommendationPreferences>)`](crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::set_recommendation_preferences):<br>required: **false**<br><p>Describes the recommendation preferences to return in the response of a <code>GetAutoScalingGroupRecommendations</code>, <code>GetEC2InstanceRecommendations</code>, <code>GetEC2RecommendationProjectedMetrics</code>, <code>GetRDSDatabaseRecommendations</code>, and <code>GetRDSDatabaseRecommendationProjectedMetrics</code> request.</p><br>
13    /// - On success, responds with [`ExportRdsDatabaseRecommendationsOutput`](crate::operation::export_rds_database_recommendations::ExportRdsDatabaseRecommendationsOutput) with field(s):
14    ///   - [`job_id(Option<String>)`](crate::operation::export_rds_database_recommendations::ExportRdsDatabaseRecommendationsOutput::job_id): <p>The identification number of the export job.</p> <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
15    ///   - [`s3_destination(Option<S3Destination>)`](crate::operation::export_rds_database_recommendations::ExportRdsDatabaseRecommendationsOutput::s3_destination): <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
16    /// - On failure, responds with [`SdkError<ExportRDSDatabaseRecommendationsError>`](crate::operation::export_rds_database_recommendations::ExportRDSDatabaseRecommendationsError)
17    pub fn export_rds_database_recommendations(
18        &self,
19    ) -> crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder {
20        crate::operation::export_rds_database_recommendations::builders::ExportRDSDatabaseRecommendationsFluentBuilder::new(self.handle.clone())
21    }
22}