Skip to content
v2.278.0

ScalableTargetActionProperty Struct ​

ScalableTargetAction specifies the minimum and maximum capacity for the ScalableTargetAction property of the AWS::ApplicationAutoScaling::ScalableTarget ScheduledAction property type.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
const scalableTargetActionProperty: appscaling.CfnScalableTarget.ScalableTargetActionProperty = {
  maxCapacity: 123,
  minCapacity: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationautoscaling as appscaling

scalable_target_action_property = appscaling.CfnScalableTarget.ScalableTargetActionProperty(
    max_capacity=123,
    min_capacity=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationautoscaling.*;

ScalableTargetActionProperty scalableTargetActionProperty = ScalableTargetActionProperty.builder()
        .maxCapacity(123)
        .minCapacity(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationAutoScaling;

var scalableTargetActionProperty = new ScalableTargetActionProperty {
    MaxCapacity = 123,
    MinCapacity = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scalableTargetActionProperty := &ScalableTargetActionProperty{
	MaxCapacity: jsii.Number(123),
	MinCapacity: jsii.Number(123),
}

Properties ​

maxCapacityoptionalnumbermax_capacityoptionalint | floatmaxCapacityoptionalNumberMaxCapacityoptionaldoubleMaxCapacityoptional*float64 #
The maximum capacity.
minCapacityoptionalnumbermin_capacityoptionalint | floatminCapacityoptionalNumberMinCapacityoptionaldoubleMinCapacityoptional*float64 #
The minimum capacity.