scalable_target
Gets an individual scalable_target
resource
Overview
Name | scalable_target |
Type | Resource |
Description | scalable_target |
Id | awscc.applicationautoscaling.scalable_target |
Fields
Name | Datatype | Description |
---|---|---|
id | string | This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format - ResourceId|ScalableDimension|ServiceNamespace |
max_capacity | integer | The 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_capacity | integer | The 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_id | string | The identifier of the resource associated with the scalable target |
role_arn | string | Specify 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_dimension | string | The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property |
scheduled_actions | array | The scheduled actions for the scalable target. Duplicates aren't allowed. |
service_namespace | string | The namespace of the AWS service that provides the resource, or a custom-resource |
suspended_state | object | An 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. |
region | string | AWS 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