#[non_exhaustive]pub struct TargetTrackingScalingPolicyConfiguration {
pub metric_specification: Option<MetricSpecification>,
pub target_value: Option<f64>,
}
Expand description
A target tracking scaling policy. Includes support for predefined or customized metrics.
When using the PutScalingPolicy API, this parameter is required when you are creating a policy with the policy type TargetTrackingScaling
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.metric_specification: Option<MetricSpecification>
An object containing information about a metric.
target_value: Option<f64>
The recommended target value to specify for the metric when creating a scaling policy.
Implementations§
source§impl TargetTrackingScalingPolicyConfiguration
impl TargetTrackingScalingPolicyConfiguration
sourcepub fn metric_specification(&self) -> Option<&MetricSpecification>
pub fn metric_specification(&self) -> Option<&MetricSpecification>
An object containing information about a metric.
sourcepub fn target_value(&self) -> Option<f64>
pub fn target_value(&self) -> Option<f64>
The recommended target value to specify for the metric when creating a scaling policy.
source§impl TargetTrackingScalingPolicyConfiguration
impl TargetTrackingScalingPolicyConfiguration
sourcepub fn builder() -> TargetTrackingScalingPolicyConfigurationBuilder
pub fn builder() -> TargetTrackingScalingPolicyConfigurationBuilder
Creates a new builder-style object to manufacture TargetTrackingScalingPolicyConfiguration
.
Trait Implementations§
source§impl Clone for TargetTrackingScalingPolicyConfiguration
impl Clone for TargetTrackingScalingPolicyConfiguration
source§fn clone(&self) -> TargetTrackingScalingPolicyConfiguration
fn clone(&self) -> TargetTrackingScalingPolicyConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for TargetTrackingScalingPolicyConfiguration
impl PartialEq for TargetTrackingScalingPolicyConfiguration
source§fn eq(&self, other: &TargetTrackingScalingPolicyConfiguration) -> bool
fn eq(&self, other: &TargetTrackingScalingPolicyConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetTrackingScalingPolicyConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for TargetTrackingScalingPolicyConfiguration
impl Send for TargetTrackingScalingPolicyConfiguration
impl Sync for TargetTrackingScalingPolicyConfiguration
impl Unpin for TargetTrackingScalingPolicyConfiguration
impl UnwindSafe for TargetTrackingScalingPolicyConfiguration
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.