Skip to content

Delete Recommendation Preferences

computeoptimizer_delete_recommendation_preferences R Documentation

Deletes a recommendation preference, such as enhanced infrastructure metrics

Description

Deletes a recommendation preference, such as enhanced infrastructure metrics.

For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.

Usage

computeoptimizer_delete_recommendation_preferences(resourceType, scope,
  recommendationPreferenceNames)

Arguments

resourceType

[required] The target resource type of the recommendation preference to delete.

The Ec2Instance option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup option encompasses only instances that are part of an Auto Scaling group.

scope

An object that describes the scope of the recommendation preference to delete.

You can delete recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.

recommendationPreferenceNames

[required] The name of the recommendation preference to delete.

Value

An empty list.

Request syntax

svc$delete_recommendation_preferences(
  resourceType = "Ec2Instance"|"AutoScalingGroup"|"EbsVolume"|"LambdaFunction"|"NotApplicable"|"EcsService"|"License"|"RdsDBInstance",
  scope = list(
    name = "Organization"|"AccountId"|"ResourceArn",
    value = "string"
  ),
  recommendationPreferenceNames = list(
    "EnhancedInfrastructureMetrics"|"InferredWorkloadTypes"|"ExternalMetricsPreference"|"LookBackPeriodPreference"|"PreferredResources"|"UtilizationPreferences"
  )
)