Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes a recommendation preference, such as enhanced infrastructure metrics.
For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
Synopsis
- data DeleteRecommendationPreferences = DeleteRecommendationPreferences' {}
- newDeleteRecommendationPreferences :: ResourceType -> DeleteRecommendationPreferences
- deleteRecommendationPreferences_scope :: Lens' DeleteRecommendationPreferences (Maybe Scope)
- deleteRecommendationPreferences_resourceType :: Lens' DeleteRecommendationPreferences ResourceType
- deleteRecommendationPreferences_recommendationPreferenceNames :: Lens' DeleteRecommendationPreferences [RecommendationPreferenceName]
- data DeleteRecommendationPreferencesResponse = DeleteRecommendationPreferencesResponse' {
- httpStatus :: Int
- newDeleteRecommendationPreferencesResponse :: Int -> DeleteRecommendationPreferencesResponse
- deleteRecommendationPreferencesResponse_httpStatus :: Lens' DeleteRecommendationPreferencesResponse Int
Creating a Request
data DeleteRecommendationPreferences Source #
See: newDeleteRecommendationPreferences
smart constructor.
DeleteRecommendationPreferences' | |
|
Instances
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
.
deleteRecommendationPreferences_recommendationPreferenceNames :: Lens' DeleteRecommendationPreferences [RecommendationPreferenceName] Source #
The name of the recommendation preference to delete.
Destructuring the Response
data DeleteRecommendationPreferencesResponse Source #
See: newDeleteRecommendationPreferencesResponse
smart constructor.
DeleteRecommendationPreferencesResponse' | |
|
Instances
Generic DeleteRecommendationPreferencesResponse Source # | |
Defined in Amazonka.ComputeOptimizer.DeleteRecommendationPreferences type Rep DeleteRecommendationPreferencesResponse :: Type -> Type # | |
Read DeleteRecommendationPreferencesResponse Source # | |
Show DeleteRecommendationPreferencesResponse Source # | |
NFData DeleteRecommendationPreferencesResponse Source # | |
Eq DeleteRecommendationPreferencesResponse Source # | |
type Rep DeleteRecommendationPreferencesResponse Source # | |
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
deleteRecommendationPreferencesResponse_httpStatus :: Lens' DeleteRecommendationPreferencesResponse Int Source #
The response's http status code.