Skip to main content

Aws/applicationautoscaling

@swamp/aws/applicationautoscalingv2026.10.25.1· AGPL-3.0-or-later· 1d agoBEHAVIORS
01README

AWS APPLICATIONAUTOSCALING infrastructure models

02Behaviors2
@swamp/aws/applicationautoscaling/scalable-targetv2026.10.23.1scalable_target.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
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
Tags?array
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.
fn create()
Create a ApplicationAutoScaling ScalableTarget
fn get(identifier: string)
Get a ApplicationAutoScaling ScalableTarget
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalableTarget
fn update()
Update a ApplicationAutoScaling ScalableTarget
fn delete(identifier: string)
Delete a ApplicationAutoScaling ScalableTarget
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalableTarget
fn sync()
Sync ApplicationAutoScaling ScalableTarget state from AWS
fn list(maxPages?: number, resourceModel?: string)
List ApplicationAutoScaling ScalableTarget resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

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

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessKeyId?stringAWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault.
secretAccessKey?stringAWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault.
sessionToken?stringAWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
region?stringAWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1.
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.
fn create()
Create a ApplicationAutoScaling ScalingPolicy
fn get(identifier: string)
Get a ApplicationAutoScaling ScalingPolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalingPolicy
fn update()
Update a ApplicationAutoScaling ScalingPolicy
fn delete(identifier: string)
Delete a ApplicationAutoScaling ScalingPolicy
ArgumentTypeDescription
identifierstringThe primary identifier of the ApplicationAutoScaling ScalingPolicy
fn sync()
Sync ApplicationAutoScaling ScalingPolicy state from AWS
fn list(maxPages?: number, resourceModel?: string)
List ApplicationAutoScaling ScalingPolicy resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)
resourceModel?stringJSON resource model for parent-scoped listing (e.g. parent identifier)

Resources

state(infinite)— ApplicationAutoScaling ScalingPolicy resource state
03Previous Versions19
2026.10.24.1AGPL-3.0-or-later
2026.10.23.1AGPL-3.0-or-later(was none)
  • Updated: scalable_target, scaling_policy
2026.10.13.1
  • Updated: scalable_target, scaling_policy
2026.10.08.1
2026.10.06.1
2026.10.04.1
2026.10.03.1
2026.10.02.1
2026.10.01.1
2026.09.30.1
2026.09.29.1
2026.09.28.1
2026.09.27.1
2026.09.26.1
2026.09.24.1
2026.09.23.1
2026.09.22.1
  • Updated: scalable_target
2026.09.21.1
2026.09.20.1
04Stats
A
100 / 100
Downloads
37
Archive size
436.8 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
05Platforms
06Labels