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

Description

Deletes a recommendation preference, such as enhanced infrastructure metrics.

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

Synopsis

Creating a Request

data DeleteRecommendationPreferences Source #

See: newDeleteRecommendationPreferences smart constructor.

Constructors

DeleteRecommendationPreferences' 

Fields

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

  • resourceType :: ResourceType

    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.

    The valid values for this parameter are Ec2Instance and AutoScalingGroup.

  • recommendationPreferenceNames :: [RecommendationPreferenceName]

    The name of the recommendation preference to delete.

Instances

Instances details
ToJSON DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

ToHeaders DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

ToPath DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

ToQuery DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

AWSRequest DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Generic DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Associated Types

type Rep DeleteRecommendationPreferences :: Type -> Type #

Read DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Show DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

NFData DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Eq DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Hashable DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

type AWSResponse DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

type Rep DeleteRecommendationPreferences Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

type Rep DeleteRecommendationPreferences = D1 ('MetaData "DeleteRecommendationPreferences" "Amazonka.ComputeOptimizer.DeleteRecommendationPreferences" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "DeleteRecommendationPreferences'" 'PrefixI 'True) (S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Scope)) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType) :*: S1 ('MetaSel ('Just "recommendationPreferenceNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RecommendationPreferenceName]))))

newDeleteRecommendationPreferences Source #

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

DeleteRecommendationPreferences, deleteRecommendationPreferences_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.

DeleteRecommendationPreferences, deleteRecommendationPreferences_resourceType - 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.

The valid values for this parameter are Ec2Instance and AutoScalingGroup.

$sel:recommendationPreferenceNames:DeleteRecommendationPreferences', deleteRecommendationPreferences_recommendationPreferenceNames - The name of the recommendation preference to delete.

Request Lenses

deleteRecommendationPreferences_scope :: Lens' DeleteRecommendationPreferences (Maybe Scope) Source #

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.

deleteRecommendationPreferences_resourceType :: Lens' DeleteRecommendationPreferences ResourceType Source #

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.

The valid values for this parameter are Ec2Instance and AutoScalingGroup.

Destructuring the Response

data DeleteRecommendationPreferencesResponse Source #

Constructors

DeleteRecommendationPreferencesResponse' 

Fields

Instances

Instances details
Generic DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Read DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Show DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

NFData DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

Eq DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

type Rep DeleteRecommendationPreferencesResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences

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

newDeleteRecommendationPreferencesResponse Source #

Create a value of DeleteRecommendationPreferencesResponse 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:httpStatus:DeleteRecommendationPreferencesResponse', deleteRecommendationPreferencesResponse_httpStatus - The response's http status code.

Response Lenses