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.GetEffectiveRecommendationPreferences

Description

Returns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics. Considers all applicable preferences that you might have set at the resource, account, and organization level.

When you create a recommendation preference, you can set its status to Active or Inactive. Use this action to view the recommendation preferences that are in effect, or Active.

Synopsis

Creating a Request

data GetEffectiveRecommendationPreferences Source #

Constructors

GetEffectiveRecommendationPreferences' 

Fields

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource for which to confirm effective recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are currently supported.

Instances

Instances details
ToJSON GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

ToHeaders GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

ToPath GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

ToQuery GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

AWSRequest GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Generic GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Read GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Show GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

NFData GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Eq GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Hashable GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

type AWSResponse GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

type Rep GetEffectiveRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

type Rep GetEffectiveRecommendationPreferences = D1 ('MetaData "GetEffectiveRecommendationPreferences" "Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetEffectiveRecommendationPreferences'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetEffectiveRecommendationPreferences Source #

Create a value of GetEffectiveRecommendationPreferences 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:resourceArn:GetEffectiveRecommendationPreferences', getEffectiveRecommendationPreferences_resourceArn - The Amazon Resource Name (ARN) of the resource for which to confirm effective recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are currently supported.

Request Lenses

getEffectiveRecommendationPreferences_resourceArn :: Lens' GetEffectiveRecommendationPreferences Text Source #

The Amazon Resource Name (ARN) of the resource for which to confirm effective recommendation preferences. Only EC2 instance and Auto Scaling group ARNs are currently supported.

Destructuring the Response

data GetEffectiveRecommendationPreferencesResponse Source #

Constructors

GetEffectiveRecommendationPreferencesResponse' 

Fields

  • enhancedInfrastructureMetrics :: Maybe EnhancedInfrastructureMetrics

    The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

    A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

    To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

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

  • externalMetricsPreference :: Maybe ExternalMetricsPreference

    The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.

    If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.

    To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Read GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Show GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

NFData GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

Eq GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

type Rep GetEffectiveRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences

type Rep GetEffectiveRecommendationPreferencesResponse = D1 ('MetaData "GetEffectiveRecommendationPreferencesResponse" "Amazonka.ComputeOptimizer.GetEffectiveRecommendationPreferences" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "GetEffectiveRecommendationPreferencesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enhancedInfrastructureMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EnhancedInfrastructureMetrics)) :*: (S1 ('MetaSel ('Just "externalMetricsPreference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExternalMetricsPreference)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetEffectiveRecommendationPreferencesResponse Source #

Create a value of GetEffectiveRecommendationPreferencesResponse 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:

GetEffectiveRecommendationPreferencesResponse, getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics - The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

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

GetEffectiveRecommendationPreferencesResponse, getEffectiveRecommendationPreferencesResponse_externalMetricsPreference - The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.

If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.

To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.

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

$sel:httpStatus:GetEffectiveRecommendationPreferencesResponse', getEffectiveRecommendationPreferencesResponse_httpStatus - The response's http status code.

Response Lenses

getEffectiveRecommendationPreferencesResponse_enhancedInfrastructureMetrics :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe EnhancedInfrastructureMetrics) Source #

The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.

A status of Active confirms that the preference is applied in the latest recommendation refresh, and a status of Inactive confirms that it's not yet applied to recommendations.

To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

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

getEffectiveRecommendationPreferencesResponse_externalMetricsPreference :: Lens' GetEffectiveRecommendationPreferencesResponse (Maybe ExternalMetricsPreference) Source #

The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.

If the preference is applied in the latest recommendation refresh, an object with a valid source value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.

To validate whether the preference is applied to your last generated set of recommendations, review the effectiveRecommendationPreferences value in the response of the GetEC2InstanceRecommendations actions.

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