|
NAMEPaws::ApplicationAutoScaling::RegisterScalableTarget - Arguments for method RegisterScalableTarget on Paws::ApplicationAutoScaling DESCRIPTIONThis class represents the parameters used for calling the method RegisterScalableTarget on the Application Auto Scaling service. Use the attributes of this class as arguments to method RegisterScalableTarget. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RegisterScalableTarget. SYNOPSIS my $application-autoscaling = Paws->service('ApplicationAutoScaling');
# To register an ECS service as a scalable target
# This example registers a scalable target from an Amazon ECS service called
# web-app that is running on the default cluster, with a minimum desired count
# of 1 task and a maximum desired count of 10 tasks.
my $RegisterScalableTargetResponse =
$application -autoscaling->RegisterScalableTarget(
'MaxCapacity' => 10,
'MinCapacity' => 1,
'ResourceId' => 'service/default/web-app',
'RoleARN' =>
'arn:aws:iam::012345678910:role/ApplicationAutoscalingECSRole',
'ScalableDimension' => 'ecs:service:DesiredCount',
'ServiceNamespace' => 'ecs'
);
# To register an EC2 Spot fleet as a scalable target
# This example registers a scalable target from an Amazon EC2 Spot fleet with a
# minimum target capacity of 1 and a maximum of 10.
my $RegisterScalableTargetResponse =
$application -autoscaling->RegisterScalableTarget(
'MaxCapacity' => 10,
'MinCapacity' => 1,
'ResourceId' =>
'spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3',
'RoleARN' =>
'arn:aws:iam::012345678910:role/ApplicationAutoscalingSpotRole',
'ScalableDimension' => 'ec2:spot-fleet-request:TargetCapacity',
'ServiceNamespace' => 'ec2'
);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling/RegisterScalableTarget> ATTRIBUTESMaxCapacity => IntThe 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 may 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 (https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html) in the Amazon Web Services General Reference. MinCapacity => IntThe 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 certain resources, the minimum value allowed is 0. This includes Lambda provisioned concurrency, Spot Fleet, ECS services, Aurora DB clusters, EMR clusters, and custom resources. For all other resources, the minimum value allowed is 1. REQUIRED ResourceId => StrThe identifier of the resource that is associated with the scalable target. This string consists of the resource type and unique identifier.
RoleARN => StrThis 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 Application Auto Scaling IAM roles (https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles). REQUIRED ScalableDimension => StrThe scalable dimension associated with the scalable target. This string consists of the service namespace, resource type, and scaling property.
Valid values are: "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency", "cassandra:table:ReadCapacityUnits", "cassandra:table:WriteCapacityUnits", "kafka:broker-storage:VolumeSize" REQUIRED ServiceNamespace => StrThe namespace of the AWS service that provides the resource. For a resource provided by your own application or service, use "custom-resource" instead. Valid values are: "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda", "cassandra", "kafka" SuspendedState => Paws::ApplicationAutoScaling::SuspendedStateAn 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 more information, see Suspending and resuming scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html) in the Application Auto Scaling User Guide. SEE ALSOThis class forms part of Paws, documenting arguments for method RegisterScalableTarget in Paws::ApplicationAutoScaling BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|