Struct aws_sdk_computeoptimizer::types::PreferredResource
source · #[non_exhaustive]pub struct PreferredResource {
pub name: Option<PreferredResourceName>,
pub include_list: Option<Vec<String>>,
pub exclude_list: Option<Vec<String>>,
}
Expand description
The preference to control which resource type values are considered when generating rightsizing recommendations. You can specify this preference as a combination of include and exclude lists. You must specify either an includeList
or excludeList
. If the preference is an empty set of resource type values, an error occurs. For more information, see Rightsizing recommendation preferences in the Compute Optimizer User Guide.
-
This preference is only available for the Amazon EC2 instance and Auto Scaling group resource types.
-
Compute Optimizer only supports the customization of
Ec2InstanceTypes
.
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 type of preferred resource to customize.
Compute Optimizer only supports the customization of Ec2InstanceTypes
.
include_list: Option<Vec<String>>
The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
exclude_list: Option<Vec<String>>
The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this list.
Implementations§
source§impl PreferredResource
impl PreferredResource
sourcepub fn name(&self) -> Option<&PreferredResourceName>
pub fn name(&self) -> Option<&PreferredResourceName>
The type of preferred resource to customize.
Compute Optimizer only supports the customization of Ec2InstanceTypes
.
sourcepub fn include_list(&self) -> &[String]
pub fn include_list(&self) -> &[String]
The preferred resource type values to include in the recommendation candidates. You can specify the exact resource type value, such as m5.large, or use wild card expressions, such as m5. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this 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 .include_list.is_none()
.
sourcepub fn exclude_list(&self) -> &[String]
pub fn exclude_list(&self) -> &[String]
The preferred resource type values to exclude from the recommendation candidates. If this isn’t specified, all supported resources are included by default. You can specify up to 1000 values in this 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 .exclude_list.is_none()
.
source§impl PreferredResource
impl PreferredResource
sourcepub fn builder() -> PreferredResourceBuilder
pub fn builder() -> PreferredResourceBuilder
Creates a new builder-style object to manufacture PreferredResource
.
Trait Implementations§
source§impl Clone for PreferredResource
impl Clone for PreferredResource
source§fn clone(&self) -> PreferredResource
fn clone(&self) -> PreferredResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PreferredResource
impl Debug for PreferredResource
source§impl PartialEq for PreferredResource
impl PartialEq for PreferredResource
impl StructuralPartialEq for PreferredResource
Auto Trait Implementations§
impl Freeze for PreferredResource
impl RefUnwindSafe for PreferredResource
impl Send for PreferredResource
impl Sync for PreferredResource
impl Unpin for PreferredResource
impl UnwindSafe for PreferredResource
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