pub struct ScalingPlanResource {
pub resource_id: String,
pub scalable_dimension: String,
pub scaling_plan_name: String,
pub scaling_plan_version: i64,
pub scaling_policies: Option<Vec<ScalingPolicy>>,
pub scaling_status_code: String,
pub scaling_status_message: Option<String>,
pub service_namespace: String,
}
Expand description
Represents a scalable resource.
Fields
resource_id: String
The ID of the resource. This string consists of the resource type and unique identifier.
-
Auto Scaling group - The resource type is
autoScalingGroup
and the unique identifier is the name of the Auto Scaling group. Example:autoScalingGroup/my-asg
. -
ECS service - The resource type is
service
and the unique identifier is the cluster name and service name. Example:service/default/sample-webapp
. -
Spot Fleet request - The resource type is
spot-fleet-request
and the unique identifier is the Spot Fleet request ID. Example:spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE
. -
DynamoDB table - The resource type is
table
and the unique identifier is the resource ID. Example:table/my-table
. -
DynamoDB global secondary index - The resource type is
index
and the unique identifier is the resource ID. Example:table/my-table/index/my-table-index
. -
Aurora DB cluster - The resource type is
cluster
and the unique identifier is the cluster name. Example:cluster:my-db-cluster
.
scalable_dimension: String
The scalable dimension for the resource.
-
autoscaling:autoScalingGroup:DesiredCapacity
- The desired capacity of an Auto Scaling group. -
ecs:service:DesiredCount
- The desired task count of an ECS service. -
ec2:spot-fleet-request:TargetCapacity
- The target capacity of a Spot Fleet request. -
dynamodb:table:ReadCapacityUnits
- The provisioned read capacity for a DynamoDB table. -
dynamodb:table:WriteCapacityUnits
- The provisioned write capacity for a DynamoDB table. -
dynamodb:index:ReadCapacityUnits
- The provisioned read capacity for a DynamoDB global secondary index. -
dynamodb:index:WriteCapacityUnits
- The provisioned write capacity for a DynamoDB global secondary index. -
rds:cluster:ReadReplicaCount
- The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible edition.
scaling_plan_name: String
The name of the scaling plan.
scaling_plan_version: i64
The version number of the scaling plan.
scaling_policies: Option<Vec<ScalingPolicy>>
The scaling policies.
scaling_status_code: String
The scaling status of the resource.
-
Active
- The scaling configuration is active. -
Inactive
- The scaling configuration is not active because the scaling plan is being created or the scaling configuration could not be applied. Check the status message for more information. -
PartiallyActive
- The scaling configuration is partially active because the scaling plan is being created or deleted or the scaling configuration could not be fully applied. Check the status message for more information.
scaling_status_message: Option<String>
A simple message about the current scaling status of the resource.
service_namespace: String
The namespace of the AWS service.
Trait Implementations
sourceimpl Clone for ScalingPlanResource
impl Clone for ScalingPlanResource
sourcefn clone(&self) -> ScalingPlanResource
fn clone(&self) -> ScalingPlanResource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScalingPlanResource
impl Debug for ScalingPlanResource
sourceimpl Default for ScalingPlanResource
impl Default for ScalingPlanResource
sourcefn default() -> ScalingPlanResource
fn default() -> ScalingPlanResource
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ScalingPlanResource
impl<'de> Deserialize<'de> for ScalingPlanResource
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ScalingPlanResource> for ScalingPlanResource
impl PartialEq<ScalingPlanResource> for ScalingPlanResource
sourcefn eq(&self, other: &ScalingPlanResource) -> bool
fn eq(&self, other: &ScalingPlanResource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScalingPlanResource) -> bool
fn ne(&self, other: &ScalingPlanResource) -> bool
This method tests for !=
.
impl StructuralPartialEq for ScalingPlanResource
Auto Trait Implementations
impl RefUnwindSafe for ScalingPlanResource
impl Send for ScalingPlanResource
impl Sync for ScalingPlanResource
impl Unpin for ScalingPlanResource
impl UnwindSafe for ScalingPlanResource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more