AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the GetRecommendationPreferences operation. Returns existing recommendation preferences, such as enhanced infrastructure metrics.

Use the scope parameter to specify which preferences to return. You can specify to return preferences for an organization, a specific account ID, or a specific EC2 instance or Auto Scaling group Amazon Resource Name (ARN).

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

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ComputeOptimizer.AmazonComputeOptimizerRequest
      Amazon.ComputeOptimizer.Model.GetRecommendationPreferencesRequest

Namespace: Amazon.ComputeOptimizer.Model
Assembly: AWSSDK.ComputeOptimizer.dll
Version: 3.x.y.z

Syntax

C#
public class GetRecommendationPreferencesRequest : AmazonComputeOptimizerRequest
         IAmazonWebServiceRequest

The GetRecommendationPreferencesRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of recommendation preferences to return with a single request.

To retrieve the remaining results, make another request with the returned nextToken value.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token to advance to the next page of recommendation preferences.

Public Property ResourceType Amazon.ComputeOptimizer.ResourceType

Gets and sets the property ResourceType.

The target resource type of the recommendation preference for which to return preferences.

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.

Public Property Scope Amazon.ComputeOptimizer.Model.Scope

Gets and sets the property Scope.

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

You can return 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.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5