ScalingPolicy class

Represents a scaling policy to use with Application Auto Scaling.

For more information about configuring scaling policies for a specific service, see Getting started with Application Auto Scaling in the Application Auto Scaling User Guide.

Constructors

ScalingPolicy({required DateTime creationTime, required String policyARN, required String policyName, required PolicyType policyType, required String resourceId, required ScalableDimension scalableDimension, required ServiceNamespace serviceNamespace, List<Alarm>? alarms, StepScalingPolicyConfiguration? stepScalingPolicyConfiguration, TargetTrackingScalingPolicyConfiguration? targetTrackingScalingPolicyConfiguration})
ScalingPolicy.fromJson(Map<String, dynamic> json)
factory

Properties

alarms List<Alarm>?
The CloudWatch alarms associated with the scaling policy.
final
creationTime DateTime
The Unix timestamp for when the scaling policy was created.
final
hashCode int
The hash code for this object.
no setterinherited
policyARN String
The Amazon Resource Name (ARN) of the scaling policy.
final
policyName String
The name of the scaling policy.
final
policyType PolicyType
The scaling policy type.
final
resourceId String
The identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalableDimension ScalableDimension
The scalable dimension. This string consists of the service namespace, resource type, and scaling property.
final
serviceNamespace ServiceNamespace
The namespace of the AWS service that provides the resource, or a custom-resource.
final
stepScalingPolicyConfiguration StepScalingPolicyConfiguration?
A step scaling policy.
final
targetTrackingScalingPolicyConfiguration TargetTrackingScalingPolicyConfiguration?
A target tracking scaling policy.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited