#[non_exhaustive]pub struct Ec2RecommendationsExportPreferences {
pub enabled: bool,
pub cpu_performance_metric_basis: Option<UsageMetricBasis>,
pub ram_performance_metric_basis: Option<UsageMetricBasis>,
pub tenancy: Option<Tenancy>,
pub excluded_instance_types: Option<Vec<String>>,
pub preferred_region: Option<String>,
pub reserved_instance_options: Option<ReservedInstanceOptions>,
}
Expand description
Indicates that the exported data must include EC2 instance type matches for on-premises servers that are discovered through Amazon Web Services Application Discovery Service.
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.enabled: bool
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
cpu_performance_metric_basis: Option<UsageMetricBasis>
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
ram_performance_metric_basis: Option<UsageMetricBasis>
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
tenancy: Option<Tenancy>
The target tenancy to use for your recommended EC2 instances.
excluded_instance_types: Option<Vec<String>>
An array of instance types to exclude from recommendations.
preferred_region: Option<String>
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
reserved_instance_options: Option<ReservedInstanceOptions>
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
Implementations§
source§impl Ec2RecommendationsExportPreferences
impl Ec2RecommendationsExportPreferences
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
sourcepub fn cpu_performance_metric_basis(&self) -> Option<&UsageMetricBasis>
pub fn cpu_performance_metric_basis(&self) -> Option<&UsageMetricBasis>
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
sourcepub fn ram_performance_metric_basis(&self) -> Option<&UsageMetricBasis>
pub fn ram_performance_metric_basis(&self) -> Option<&UsageMetricBasis>
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
sourcepub fn tenancy(&self) -> Option<&Tenancy>
pub fn tenancy(&self) -> Option<&Tenancy>
The target tenancy to use for your recommended EC2 instances.
sourcepub fn excluded_instance_types(&self) -> &[String]
pub fn excluded_instance_types(&self) -> &[String]
An array of instance types to exclude from recommendations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .excluded_instance_types.is_none()
.
sourcepub fn preferred_region(&self) -> Option<&str>
pub fn preferred_region(&self) -> Option<&str>
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
sourcepub fn reserved_instance_options(&self) -> Option<&ReservedInstanceOptions>
pub fn reserved_instance_options(&self) -> Option<&ReservedInstanceOptions>
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
source§impl Ec2RecommendationsExportPreferences
impl Ec2RecommendationsExportPreferences
sourcepub fn builder() -> Ec2RecommendationsExportPreferencesBuilder
pub fn builder() -> Ec2RecommendationsExportPreferencesBuilder
Creates a new builder-style object to manufacture Ec2RecommendationsExportPreferences
.
Trait Implementations§
source§impl Clone for Ec2RecommendationsExportPreferences
impl Clone for Ec2RecommendationsExportPreferences
source§fn clone(&self) -> Ec2RecommendationsExportPreferences
fn clone(&self) -> Ec2RecommendationsExportPreferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for Ec2RecommendationsExportPreferences
impl PartialEq for Ec2RecommendationsExportPreferences
source§fn eq(&self, other: &Ec2RecommendationsExportPreferences) -> bool
fn eq(&self, other: &Ec2RecommendationsExportPreferences) -> bool
self
and other
values to be equal, and is used
by ==
.