Skip to main content

@swamp/aws/applicationautoscaling

v2026.04.23.3

AWS APPLICATIONAUTOSCALING infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

awsapplicationautoscalingcloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/aws/applicationautoscaling

@swamp/aws/applicationautoscaling/scalable-targetv2026.04.23.2scalable_target.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
ScheduledActions?arrayThe scheduled actions for the scalable target. Duplicates aren't allowed.
ResourceIdstringThe identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/my-cluster/my-service. Spot Fleet - 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. EMR cluster - The resource type is instan
ServiceNamespacestringThe namespace of the AWS service that provides the resource, or a custom-resource.
ScalableDimensionstringThe scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property. ecs:service:DesiredCount - The task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned r
SuspendedState?objectAn embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to true suspends the specified scaling activities. Setting it to false (default) resumes the specified scaling activities. *Suspension Outcomes* For DynamicScalingInSuspended, while a suspension is in effect, all scale-in activities that are triggered by a scaling policy are suspended. For DynamicScalingOutSuspended, while a suspension is in ef
MinCapacitynumberThe minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand.
RoleARN?stringSpecify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf. This can be either an IAM service role that Application Auto Scaling can assume to make calls to other AWS resources on your behalf, or a service-linked role for the specified service. For more information, see [How Application Auto Scaling works with IAM](https://docs.aws.amazon.com/autoscaling/application/userguide/security_ia
MaxCapacitynumberThe maximum value that you plan to scale out to. When a scaling policy is in effect, Application Auto Scaling can scale out (expand) as needed to the maximum capacity limit in response to changing demand.
createCreate a ApplicationAutoScaling ScalableTarget
getGet a ApplicationAutoScaling ScalableTarget
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalableTarget
updateUpdate a ApplicationAutoScaling ScalableTarget
deleteDelete a ApplicationAutoScaling ScalableTarget
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalableTarget
syncSync ApplicationAutoScaling ScalableTarget state from AWS

Resources

state(infinite)— ApplicationAutoScaling ScalableTarget resource state
@swamp/aws/applicationautoscaling/scaling-policyv2026.04.23.2scaling_policy.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
PolicyTypestringThe scaling policy type. The following policy types are supported: TargetTrackingScaling —Not supported for Amazon EMR StepScaling —Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon Keyspaces, Amazon MSK, Amazon ElastiCache, or Neptune. PredictiveScaling —Only supported for Amazon ECS
ResourceId?stringThe identifier of the resource associated with the scaling policy. This string consists of the resource type and unique identifier. ECS service - The resource type is service and the unique identifier is the cluster name and service name. Example: service/my-cluster/my-service. Spot Fleet - 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. EMR cluster - The resource type is instanc
ScalingTargetId?stringThe CloudFormation-generated ID of an Application Auto Scaling scalable target. For more information about the ID, see the Return Value section of the AWS::ApplicationAutoScaling::ScalableTarget resource. You must specify either the ScalingTargetId property, or the ResourceId, ScalableDimension, and ServiceNamespace properties, but not both.
PolicyNamestringThe name of the scaling policy. Updates to the name of a target tracking scaling policy are not supported, unless you also update the metric used for scaling. To change only a target tracking scaling policy's name, first delete the policy by removing the existing AWS::ApplicationAutoScaling::ScalingPolicy resource from the template and updating the stack. Then, recreate the resource with the same settings and a different name.
ServiceNamespace?stringThe namespace of the AWS service that provides the resource, or a custom-resource.
ScalableDimension?stringThe scalable dimension. This string consists of the service namespace, resource type, and scaling property. ecs:service:DesiredCount - The task count of an ECS service. elasticmapreduce:instancegroup:InstanceCount - The instance count of an EMR Instance Group. ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot Fleet. appstream:fleet:DesiredCapacity - The capacity of an AppStream 2.0 fleet. dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table. d
TargetTrackingScalingPolicyConfiguration?objectA target tracking scaling policy.
StepScalingPolicyConfiguration?objectA step scaling policy.
PredictiveScalingPolicyConfiguration?objectThe predictive scaling policy configuration.
createCreate a ApplicationAutoScaling ScalingPolicy
getGet a ApplicationAutoScaling ScalingPolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalingPolicy
updateUpdate a ApplicationAutoScaling ScalingPolicy
deleteDelete a ApplicationAutoScaling ScalingPolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalingPolicy
syncSync ApplicationAutoScaling ScalingPolicy state from AWS

Resources

state(infinite)— ApplicationAutoScaling ScalingPolicy resource state