View source: R/applicationautoscaling_operations.R
applicationautoscaling_register_scalable_target | R Documentation |
Registers or updates a scalable target, which is the resource that you want to scale.
See https://www.paws-r-sdk.com/docs/applicationautoscaling_register_scalable_target/ for full documentation.
applicationautoscaling_register_scalable_target(
ServiceNamespace,
ResourceId,
ScalableDimension,
MinCapacity = NULL,
MaxCapacity = NULL,
RoleARN = NULL,
SuspendedState = NULL,
Tags = NULL
)
ServiceNamespace |
[required] The namespace of the Amazon Web Services service that provides the
resource. For a resource provided by your own application or service,
use |
ResourceId |
[required] The identifier of the resource that is associated with the scalable target. This string consists of the resource type and unique identifier.
|
ScalableDimension |
[required] The scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.
|
MinCapacity |
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. This property is required when registering a new scalable target. For the following resources, the minimum value allowed is 0.
It's strongly recommended that you specify a value greater than 0. A value greater than 0 means that data points are continuously reported to CloudWatch that scaling policies can use to scale on a metric like average CPU utilization. For all other resources, the minimum allowed value depends on the type of resource that you are using. If you provide a value that is lower than what a resource can accept, an error occurs. In which case, the error message will provide the minimum value that the resource can accept. |
MaxCapacity |
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. This property is required when registering a new scalable target. Although you can specify a large maximum capacity, note that service quotas might impose lower limits. Each service has its own default quotas for the maximum capacity of the resource. If you want to specify a higher limit, you can request an increase. For more information, consult the documentation for that service. For information about the default quotas for each service, see Service endpoints and quotas in the Amazon Web Services General Reference. |
RoleARN |
This parameter is required for services that do not support service-linked roles (such as Amazon EMR), and it must specify the ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your behalf. If the service supports service-linked roles, Application Auto Scaling uses a service-linked role, which it creates if it does not yet exist. For more information, see How Application Auto Scaling works with IAM. |
SuspendedState |
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 Suspension Outcomes
For more information, see Suspend and resume scaling in the Application Auto Scaling User Guide. |
Tags |
Assigns one or more tags to the scalable target. Use this parameter to
tag the scalable target when it is created. To tag an existing scalable
target, use the Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required. You cannot have more than one tag on a scalable target with the same tag key. Use tags to control access to a scalable target. For more information, see Tagging support for Application Auto Scaling in the Application Auto Scaling User Guide. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.