amazonka-compute-optimizer-2.0: Amazon Compute Optimizer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ComputeOptimizer.GetRecommendationPreferences

Description

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.

This operation returns paginated results.

Synopsis

Creating a Request

data GetRecommendationPreferences Source #

See: newGetRecommendationPreferences smart constructor.

Constructors

GetRecommendationPreferences' 

Fields

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

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

  • scope :: Maybe 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.

  • resourceType :: 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.

    The valid values for this parameter are Ec2Instance and AutoScalingGroup.

Instances

Instances details
ToJSON GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

ToHeaders GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

ToPath GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

ToQuery GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

AWSPager GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

AWSRequest GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Generic GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Associated Types

type Rep GetRecommendationPreferences :: Type -> Type #

Read GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Show GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

NFData GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Eq GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Hashable GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

type AWSResponse GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

type Rep GetRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

type Rep GetRecommendationPreferences = D1 ('MetaData "GetRecommendationPreferences" "Amazonka.ComputeOptimizer.GetRecommendationPreferences" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetRecommendationPreferences'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Scope)) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType))))

newGetRecommendationPreferences Source #

Create a value of GetRecommendationPreferences with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:GetRecommendationPreferences', getRecommendationPreferences_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.

GetRecommendationPreferences, getRecommendationPreferences_nextToken - The token to advance to the next page of recommendation preferences.

GetRecommendationPreferences, getRecommendationPreferences_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.

GetRecommendationPreferences, getRecommendationPreferences_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.

The valid values for this parameter are Ec2Instance and AutoScalingGroup.

Request Lenses

getRecommendationPreferences_maxResults :: Lens' GetRecommendationPreferences (Maybe Natural) Source #

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.

getRecommendationPreferences_nextToken :: Lens' GetRecommendationPreferences (Maybe Text) Source #

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

getRecommendationPreferences_scope :: Lens' GetRecommendationPreferences (Maybe Scope) Source #

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.

getRecommendationPreferences_resourceType :: Lens' GetRecommendationPreferences ResourceType Source #

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.

The valid values for this parameter are Ec2Instance and AutoScalingGroup.

Destructuring the Response

data GetRecommendationPreferencesResponse Source #

Constructors

GetRecommendationPreferencesResponse' 

Fields

Instances

Instances details
Generic GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Read GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Show GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

NFData GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

Eq GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

type Rep GetRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetRecommendationPreferences

type Rep GetRecommendationPreferencesResponse = D1 ('MetaData "GetRecommendationPreferencesResponse" "Amazonka.ComputeOptimizer.GetRecommendationPreferences" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetRecommendationPreferencesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "recommendationPreferencesDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RecommendationPreferencesDetail])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetRecommendationPreferencesResponse Source #

Create a value of GetRecommendationPreferencesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetRecommendationPreferences, getRecommendationPreferencesResponse_nextToken - The token to use to advance to the next page of recommendation preferences.

This value is null when there are no more pages of recommendation preferences to return.

$sel:recommendationPreferencesDetails:GetRecommendationPreferencesResponse', getRecommendationPreferencesResponse_recommendationPreferencesDetails - An array of objects that describe recommendation preferences.

$sel:httpStatus:GetRecommendationPreferencesResponse', getRecommendationPreferencesResponse_httpStatus - The response's http status code.

Response Lenses

getRecommendationPreferencesResponse_nextToken :: Lens' GetRecommendationPreferencesResponse (Maybe Text) Source #

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

This value is null when there are no more pages of recommendation preferences to return.