class Amazonite::Lambda::CapacityProviderScalingConfig

Overview

Configuration that defines how the capacity provider scales compute instances based on demand and policies.

Included Modules

Defined in:

lambda/capacity_provider_scaling_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(max_v_cpu_count : Int32 | Nil = nil, scaling_mode : CapacityProviderScalingMode | Nil = nil, scaling_policies : Array(TargetTrackingScalingPolicy) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def max_v_cpu_count : Int32 | Nil #

The maximum number of vCPUs that the capacity provider can provision across all compute instances.


[View source]
def max_v_cpu_count=(max_v_cpu_count : Int32 | Nil) #

The maximum number of vCPUs that the capacity provider can provision across all compute instances.


[View source]
def scaling_mode : CapacityProviderScalingMode | Nil #

The scaling mode that determines how the capacity provider responds to changes in demand.


[View source]
def scaling_mode=(scaling_mode : CapacityProviderScalingMode | Nil) #

The scaling mode that determines how the capacity provider responds to changes in demand.


[View source]
def scaling_policies : Array(TargetTrackingScalingPolicy) | Nil #

A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.


[View source]
def scaling_policies=(scaling_policies : Array(TargetTrackingScalingPolicy) | Nil) #

A list of scaling policies that define how the capacity provider scales compute instances based on metrics and thresholds.


[View source]
def validate! : Nil #

[View source]