ScalableTargetArgs

data class ScalableTargetArgs(val maxCapacity: Output<Int>? = null, val minCapacity: Output<Int>? = null, val resourceId: Output<String>? = null, val roleArn: Output<String>? = null, val scalableDimension: Output<String>? = null, val scheduledActions: Output<List<ScalableTargetScheduledActionArgs>>? = null, val serviceNamespace: Output<String>? = null, val suspendedState: Output<ScalableTargetSuspendedStateArgs>? = null) : ConvertibleToJava<ScalableTargetArgs>

The `AWS::ApplicationAutoScaling::ScalableTarget` resource specifies a resource that Application Auto Scaling can scale, such as an AWS::DynamoDB::Table or AWS::ECS::Service resource. For more information, see Getting started in the Application Auto Scaling User Guide. If the resource that you want Application Auto Scaling to scale is not yet created in your account, add a dependency on the resource when registering it as a scalable target using the DependsOn attribute.

Constructors

Link copied to clipboard
constructor(maxCapacity: Output<Int>? = null, minCapacity: Output<Int>? = null, resourceId: Output<String>? = null, roleArn: Output<String>? = null, scalableDimension: Output<String>? = null, scheduledActions: Output<List<ScalableTargetScheduledActionArgs>>? = null, serviceNamespace: Output<String>? = null, suspendedState: Output<ScalableTargetSuspendedStateArgs>? = null)

Properties

Link copied to clipboard
val maxCapacity: Output<Int>? = null

The 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.

Link copied to clipboard
val minCapacity: Output<Int>? = null

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.

Link copied to clipboard
val resourceId: Output<String>? = null

The identifier of the resource associated with the scalable target. This string consists of the resource type and unique identifier.

Link copied to clipboard
val roleArn: Output<String>? = null

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. 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 in the Application Auto Scaling User Guide. To automatically create a service-linked role (recommended), specify the full ARN of the service-linked role in your stack template. To find the exact ARN of the service-linked role for your AWS or custom resource, see the Service-linked roles topic in the Application Auto Scaling User Guide. Look for the ARN in the table at the bottom of the page.

Link copied to clipboard
val scalableDimension: Output<String>? = null

The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.

Link copied to clipboard

The scheduled actions for the scalable target. Duplicates aren't allowed.

Link copied to clipboard
val serviceNamespace: Output<String>? = null

The namespace of the AWS service that provides the resource, or a `custom-resource`.

Link copied to clipboard

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. Suspension Outcomes

Functions

Link copied to clipboard
open override fun toJava(): ScalableTargetArgs