#[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
impl StructuralPartialEq for EffectivePreferredResource
Auto Trait Implementations§
impl Freeze for EffectivePreferredResource
impl RefUnwindSafe for EffectivePreferredResource
impl Send for EffectivePreferredResource
impl Sync for EffectivePreferredResource
impl Unpin for EffectivePreferredResource
impl UnwindSafe for EffectivePreferredResource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more