module AWS::AutoScaling::ScalingPolicyOptions
def scaling_policy_options auto_scaling_group, policy_name, options
-
(Hash)
-
Options Hash:
(**options)
-
:min_adjustment_step
(Integer
) -- -
:cooldown
(Integer
) -- The amount of time, in seconds, -
:scaling_adjustment
(required, Integer
) -- The number of -
:adjustment_type
(required, String
) -- Specifies whether
Parameters:
-
options
(Hash
) --
def scaling_policy_options auto_scaling_group, policy_name, options opts = {} opts[:auto_scaling_group_name] = auto_scaling_group.name opts[:policy_name] = policy_name [ :cooldown, :adjustment_type, :scaling_adjustment, :min_adjustment_step, ].each do |opt| opts[opt] = options[opt] if options.key?(opt) end opts end