Struct aws_sdk_computeoptimizer::operation::delete_recommendation_preferences::DeleteRecommendationPreferencesInput
source · #[non_exhaustive]pub struct DeleteRecommendationPreferencesInput {
pub resource_type: Option<ResourceType>,
pub scope: Option<Scope>,
pub recommendation_preference_names: Option<Vec<RecommendationPreferenceName>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: Option<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
.
scope: Option<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.
recommendation_preference_names: Option<Vec<RecommendationPreferenceName>>
The name of the recommendation preference to delete.
Implementations§
source§impl DeleteRecommendationPreferencesInput
impl DeleteRecommendationPreferencesInput
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&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
.
sourcepub fn scope(&self) -> Option<&Scope>
pub fn scope(&self) -> Option<&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.
sourcepub fn recommendation_preference_names(&self) -> &[RecommendationPreferenceName]
pub fn recommendation_preference_names(&self) -> &[RecommendationPreferenceName]
The name of the recommendation preference to delete.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .recommendation_preference_names.is_none()
.
source§impl DeleteRecommendationPreferencesInput
impl DeleteRecommendationPreferencesInput
sourcepub fn builder() -> DeleteRecommendationPreferencesInputBuilder
pub fn builder() -> DeleteRecommendationPreferencesInputBuilder
Creates a new builder-style object to manufacture DeleteRecommendationPreferencesInput
.
Trait Implementations§
source§impl Clone for DeleteRecommendationPreferencesInput
impl Clone for DeleteRecommendationPreferencesInput
source§fn clone(&self) -> DeleteRecommendationPreferencesInput
fn clone(&self) -> DeleteRecommendationPreferencesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DeleteRecommendationPreferencesInput
impl PartialEq for DeleteRecommendationPreferencesInput
source§fn eq(&self, other: &DeleteRecommendationPreferencesInput) -> bool
fn eq(&self, other: &DeleteRecommendationPreferencesInput) -> bool
self
and other
values to be equal, and is used
by ==
.