Skip to main content

scalable_target

Gets an individual scalable_target resource

Overview

Namescalable_target
TypeResource
Descriptionscalable_target
Idawscc.applicationautoscaling.scalable_target

Fields

NameDatatypeDescription
idstringThis value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace
max_capacityintegerThe maximum 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
min_capacityintegerThe 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
resource_idstringThe identifier of the resource associated with the scalable target
role_arnstringSpecify 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.
scalable_dimensionstringThe scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property
scheduled_actionsarrayThe scheduled actions for the scalable target. Duplicates aren't allowed.
service_namespacestringThe namespace of the AWS service that provides the resource, or a custom-resource
suspended_stateobjectAn 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.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
id,
max_capacity,
min_capacity,
resource_id,
role_arn,
scalable_dimension,
scheduled_actions,
service_namespace,
suspended_state
FROM awscc.applicationautoscaling.scalable_target
WHERE data__Identifier = '<ResourceId>|<ScalableDimension>|<ServiceNamespace>';

Permissions

To operate on the scalable_target resource, the following permissions are required:

Read

application-autoscaling:DescribeScalableTargets,
application-autoscaling:DescribeScheduledActions

Update

application-autoscaling:RegisterScalableTarget,
application-autoscaling:DescribeScalableTargets,
application-autoscaling:DescribeScheduledActions,
application-autoscaling:DeleteScheduledAction,
application-autoscaling:PutScheduledAction,
cloudwatch:PutMetricAlarm,
cloudwatch:DeleteAlarms,
cloudwatch:DescribeAlarms,
lambda:GetProvisionedConcurrencyConfig,
lambda:PutProvisionedConcurrencyConfig,
lambda:DeleteProvisionedConcurrencyConfig

Delete

application-autoscaling:DeregisterScalableTarget