#[non_exhaustive]pub struct LicenseRecommendationFilter {
pub name: Option<LicenseRecommendationFilterName>,
pub values: Option<Vec<String>>,
}Expand description
Describes a filter that returns a more specific list of license recommendations. Use this filter with the GetLicenseRecommendation 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<LicenseRecommendationFilterName>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 license recommendations by tag:key and tag-key tags.
A tag:key is a key and value combination of a tag assigned to your license recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all license 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 license recommendations. Use this filter to find all of your license recommendations that have a tag with a specific key. This doesn’t consider the tag value. For example, you can find your license 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, depending on what you specify for the name parameter:
-
If you specify the
nameparameter asFinding, then specifyOptimized,NotOptimized, orInsufficentMetrics. -
If you specify the
nameparameter asFindingReasonCode, then specifyOptimized,LicenseOverprovisioned,InvalidCloudwatchApplicationInsights, orCloudwatchApplicationInsightsError.
Implementations§
source§impl LicenseRecommendationFilter
impl LicenseRecommendationFilter
sourcepub fn name(&self) -> Option<&LicenseRecommendationFilterName>
pub fn name(&self) -> Option<&LicenseRecommendationFilterName>
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 license recommendations by tag:key and tag-key tags.
A tag:key is a key and value combination of a tag assigned to your license recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all license 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 license recommendations. Use this filter to find all of your license recommendations that have a tag with a specific key. This doesn’t consider the tag value. For example, you can find your license 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, depending on what you specify for the name parameter:
-
If you specify the
nameparameter asFinding, then specifyOptimized,NotOptimized, orInsufficentMetrics. -
If you specify the
nameparameter asFindingReasonCode, then specifyOptimized,LicenseOverprovisioned,InvalidCloudwatchApplicationInsights, orCloudwatchApplicationInsightsError.
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 LicenseRecommendationFilter
impl LicenseRecommendationFilter
sourcepub fn builder() -> LicenseRecommendationFilterBuilder
pub fn builder() -> LicenseRecommendationFilterBuilder
Creates a new builder-style object to manufacture LicenseRecommendationFilter.
Trait Implementations§
source§impl Clone for LicenseRecommendationFilter
impl Clone for LicenseRecommendationFilter
source§fn clone(&self) -> LicenseRecommendationFilter
fn clone(&self) -> LicenseRecommendationFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LicenseRecommendationFilter
impl Debug for LicenseRecommendationFilter
source§impl PartialEq for LicenseRecommendationFilter
impl PartialEq for LicenseRecommendationFilter
source§fn eq(&self, other: &LicenseRecommendationFilter) -> bool
fn eq(&self, other: &LicenseRecommendationFilter) -> bool
self and other values to be equal, and is used
by ==.