![]() |
![]()
| ![]() |
![]()
NAMEPaws::GameLift::PutScalingPolicy - Arguments for method PutScalingPolicy on Paws::GameLift DESCRIPTIONThis class represents the parameters used for calling the method PutScalingPolicy on the Amazon GameLift service. Use the attributes of this class as arguments to method PutScalingPolicy. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutScalingPolicy. SYNOPSISmy $gamelift = Paws->service('GameLift'); my $PutScalingPolicyOutput = $gamelift->PutScalingPolicy( FleetId => 'MyFleetIdOrArn', MetricName => 'ActivatingGameSessions', Name => 'MyNonZeroAndMaxString', ComparisonOperator => 'GreaterThanOrEqualToThreshold', # OPTIONAL EvaluationPeriods => 1, # OPTIONAL PolicyType => 'RuleBased', # OPTIONAL ScalingAdjustment => 1, # OPTIONAL ScalingAdjustmentType => 'ChangeInCapacity', # OPTIONAL TargetConfiguration => { TargetValue => 1, }, # OPTIONAL Threshold => 1, # OPTIONAL ); # Results: my $Name = $PutScalingPolicyOutput->Name; # Returns a L<Paws::GameLift::PutScalingPolicyOutput> object. 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/gamelift/PutScalingPolicy> ATTRIBUTESComparisonOperator => StrComparison operator to use when measuring the metric against the threshold value. Valid values are: "GreaterThanOrEqualToThreshold", "GreaterThanThreshold", "LessThanThreshold", "LessThanOrEqualToThreshold" EvaluationPeriods => IntLength of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered. REQUIRED FleetId => StrA unique identifier for the fleet to apply this policy to. You can use either the fleet ID or ARN value. The fleet cannot be in any of the following statuses: ERROR or DELETING. REQUIRED MetricName => StrName of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment. For detailed descriptions of fleet metrics, see Monitor Amazon GameLift with Amazon CloudWatch (https://docs.aws.amazon.com/gamelift/latest/developerguide/monitoring-cloudwatch.html).
Valid values are: "ActivatingGameSessions", "ActiveGameSessions", "ActiveInstances", "AvailableGameSessions", "AvailablePlayerSessions", "CurrentPlayerSessions", "IdleInstances", "PercentAvailableGameSessions", "PercentIdleInstances", "QueueDepth", "WaitTime" REQUIRED Name => StrA descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique. A fleet can have only one scaling policy with the same name. PolicyType => StrThe type of scaling policy to create. For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment. Valid values are: "RuleBased", "TargetBased" ScalingAdjustment => IntAmount of adjustment to make, based on the scaling adjustment type. ScalingAdjustmentType => StrThe type of adjustment to make to a fleet's instance count (see FleetCapacity):
Valid values are: "ChangeInCapacity", "ExactCapacity", "PercentChangeInCapacity" TargetConfiguration => Paws::GameLift::TargetConfigurationAn object that contains settings for a target-based scaling policy. Threshold => NumMetric value used to trigger a scaling event. SEE ALSOThis class forms part of Paws, documenting arguments for method PutScalingPolicy in Paws::GameLift 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>
|