#[non_exhaustive]pub struct EffectivePreferredResource {
pub name: Option<PreferredResourceName>,
pub include_list: Option<Vec<String>>,
pub effective_include_list: Option<Vec<String>>,
pub exclude_list: Option<Vec<String>>,
}
Expand description
Describes the effective preferred resources that Compute Optimizer considers as rightsizing recommendation candidates.
Compute Optimizer only supports Amazon EC2 instance types.
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.name: Option<PreferredResourceName>
The name of the preferred resource list.
include_list: Option<Vec<String>>
The list of preferred resource values that you want considered as rightsizing recommendation candidates.
effective_include_list: Option<Vec<String>>
The expanded version of your preferred resource's include list.
exclude_list: Option<Vec<String>>
The list of preferred resources values that you want excluded from rightsizing recommendation candidates.
Implementations§
source§impl EffectivePreferredResource
impl EffectivePreferredResource
sourcepub fn name(&self) -> Option<&PreferredResourceName>
pub fn name(&self) -> Option<&PreferredResourceName>
The name of the preferred resource list.
sourcepub fn include_list(&self) -> &[String]
pub fn include_list(&self) -> &[String]
The list of preferred resource values that you want considered as rightsizing recommendation candidates.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_list.is_none()
.
sourcepub fn effective_include_list(&self) -> &[String]
pub fn effective_include_list(&self) -> &[String]
The expanded version of your preferred resource's include list.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .effective_include_list.is_none()
.
sourcepub fn exclude_list(&self) -> &[String]
pub fn exclude_list(&self) -> &[String]
The list of preferred resources values that you want excluded from rightsizing recommendation candidates.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .exclude_list.is_none()
.
source§impl EffectivePreferredResource
impl EffectivePreferredResource
sourcepub fn builder() -> EffectivePreferredResourceBuilder
pub fn builder() -> EffectivePreferredResourceBuilder
Creates a new builder-style object to manufacture EffectivePreferredResource
.
Trait Implementations§
source§impl Clone for EffectivePreferredResource
impl Clone for EffectivePreferredResource
source§fn clone(&self) -> EffectivePreferredResource
fn clone(&self) -> EffectivePreferredResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EffectivePreferredResource
impl Debug for EffectivePreferredResource
source§impl PartialEq for EffectivePreferredResource
impl PartialEq for EffectivePreferredResource
source§fn eq(&self, other: &EffectivePreferredResource) -> bool
fn eq(&self, other: &EffectivePreferredResource) -> bool
self
and other
values to be equal, and is used
by ==
.