// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PutRecommendationPreferences`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_type(ResourceType)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::resource_type) / [`set_resource_type(Option<ResourceType>)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::set_resource_type): <p>The target resource type of the recommendation preference to create.</p> <p>The <code>Ec2Instance</code> option encompasses standalone instances and instances that are part of Auto Scaling groups. The <code>AutoScalingGroup</code> option encompasses only instances that are part of an Auto Scaling group.</p> <note> <p>The valid values for this parameter are <code>Ec2Instance</code> and <code>AutoScalingGroup</code>.</p> </note>
/// - [`scope(Scope)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::set_scope): <p>An object that describes the scope of the recommendation preference to create.</p> <p>You can create recommendation preferences at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating enhanced infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.</p> <note> <p>You cannot create recommendation preferences for Auto Scaling groups at the organization and account levels. You can create recommendation preferences for Auto Scaling groups only at the resource level by specifying a scope name of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon Resource Name (ARN). This will configure the preference for all instances that are part of the specified Auto Scaling group. You also cannot create recommendation preferences at the resource level for instances that are part of an Auto Scaling group. You can create recommendation preferences at the resource level only for standalone instances.</p> </note>
/// - [`enhanced_infrastructure_metrics(EnhancedInfrastructureMetrics)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::enhanced_infrastructure_metrics) / [`set_enhanced_infrastructure_metrics(Option<EnhancedInfrastructureMetrics>)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::set_enhanced_infrastructure_metrics): <p>The status of the enhanced infrastructure metrics recommendation preference to create or update.</p> <p>Specify the <code>Active</code> status to activate the preference, or specify <code>Inactive</code> to deactivate the preference.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.</p>
/// - [`inferred_workload_types(InferredWorkloadTypesPreference)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::inferred_workload_types) / [`set_inferred_workload_types(Option<InferredWorkloadTypesPreference>)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::set_inferred_workload_types): <p>The status of the inferred workload types recommendation preference to create or update.</p> <note> <p>The inferred workload type feature is active by default. To deactivate it, create a recommendation preference.</p> </note> <p>Specify the <code>Inactive</code> status to deactivate the feature, or specify <code>Active</code> to activate it.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html">Inferred workload types</a> in the <i>Compute Optimizer User Guide</i>.</p>
/// - [`external_metrics_preference(ExternalMetricsPreference)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::external_metrics_preference) / [`set_external_metrics_preference(Option<ExternalMetricsPreference>)`](crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::set_external_metrics_preference): <p>The provider of the external metrics recommendation preference to create or update.</p> <p>Specify a valid provider in the <code>source</code> field to activate the preference. To delete this preference, see the <code>DeleteRecommendationPreferences</code> action.</p> <p>This preference can only be set for the <code>Ec2Instance</code> resource type.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html">External metrics ingestion</a> in the <i>Compute Optimizer User Guide</i>.</p>
/// - On success, responds with [`PutRecommendationPreferencesOutput`](crate::operation::put_recommendation_preferences::PutRecommendationPreferencesOutput)
/// - On failure, responds with [`SdkError<PutRecommendationPreferencesError>`](crate::operation::put_recommendation_preferences::PutRecommendationPreferencesError)
pub fn put_recommendation_preferences(
&self,
) -> crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder {
crate::operation::put_recommendation_preferences::builders::PutRecommendationPreferencesFluentBuilder::new(self.handle.clone())
}
}