#[non_exhaustive]pub struct EcsServiceRecommendationFilter {
pub name: Option<EcsServiceRecommendationFilterName>,
pub values: Option<Vec<String>>,
}
Expand description
Describes a filter that returns a more specific list of Amazon ECS service recommendations. Use this filter with the GetECSServiceRecommendations
action.
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<EcsServiceRecommendationFilterName>
The name of the filter.
Specify Finding
to return recommendations with a specific finding classification.
Specify FindingReasonCode
to return recommendations with a specific finding reason code.
You can filter your Amazon ECS service recommendations by tag:key
and tag-key
tags.
A tag:key
is a key and value combination of a tag assigned to your Amazon ECS service recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all Amazon ECS service recommendations that have a tag with the key of Owner
and the value of TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
A tag-key
is the key of a tag assigned to your Amazon ECS service recommendations. Use this filter to find all of your Amazon ECS service recommendations that have a tag with a specific key. This doesn’t consider the tag value. For example, you can find your Amazon ECS service recommendations with a tag key value of Owner
or without any tag keys assigned.
values: Option<Vec<String>>
The value of the filter.
The valid values for this parameter are as follows:
-
If you specify the
name
parameter asFinding
, specifyOptimized
,NotOptimized
, orUnavailable
. -
If you specify the
name
parameter asFindingReasonCode
, specifyCPUUnderprovisioned
,CPUOverprovisioned
,MemoryUnderprovisioned
, orMemoryOverprovisioned
.
Implementations§
source§impl EcsServiceRecommendationFilter
impl EcsServiceRecommendationFilter
sourcepub fn name(&self) -> Option<&EcsServiceRecommendationFilterName>
pub fn name(&self) -> Option<&EcsServiceRecommendationFilterName>
The name of the filter.
Specify Finding
to return recommendations with a specific finding classification.
Specify FindingReasonCode
to return recommendations with a specific finding reason code.
You can filter your Amazon ECS service recommendations by tag:key
and tag-key
tags.
A tag:key
is a key and value combination of a tag assigned to your Amazon ECS service recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all Amazon ECS service recommendations that have a tag with the key of Owner
and the value of TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
A tag-key
is the key of a tag assigned to your Amazon ECS service recommendations. Use this filter to find all of your Amazon ECS service recommendations that have a tag with a specific key. This doesn’t consider the tag value. For example, you can find your Amazon ECS service recommendations with a tag key value of Owner
or without any tag keys assigned.
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The value of the filter.
The valid values for this parameter are as follows:
-
If you specify the
name
parameter asFinding
, specifyOptimized
,NotOptimized
, orUnavailable
. -
If you specify the
name
parameter asFindingReasonCode
, specifyCPUUnderprovisioned
,CPUOverprovisioned
,MemoryUnderprovisioned
, orMemoryOverprovisioned
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
source§impl EcsServiceRecommendationFilter
impl EcsServiceRecommendationFilter
sourcepub fn builder() -> EcsServiceRecommendationFilterBuilder
pub fn builder() -> EcsServiceRecommendationFilterBuilder
Creates a new builder-style object to manufacture EcsServiceRecommendationFilter
.
Trait Implementations§
source§impl Clone for EcsServiceRecommendationFilter
impl Clone for EcsServiceRecommendationFilter
source§fn clone(&self) -> EcsServiceRecommendationFilter
fn clone(&self) -> EcsServiceRecommendationFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EcsServiceRecommendationFilter
impl PartialEq for EcsServiceRecommendationFilter
source§fn eq(&self, other: &EcsServiceRecommendationFilter) -> bool
fn eq(&self, other: &EcsServiceRecommendationFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EcsServiceRecommendationFilter
Auto Trait Implementations§
impl Freeze for EcsServiceRecommendationFilter
impl RefUnwindSafe for EcsServiceRecommendationFilter
impl Send for EcsServiceRecommendationFilter
impl Sync for EcsServiceRecommendationFilter
impl Unpin for EcsServiceRecommendationFilter
impl UnwindSafe for EcsServiceRecommendationFilter
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> 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