Class: Ansible::Ruby::Modules::Ec2_scaling_policy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb

Overview

Can create or delete scaling policies for autoscaling groups Referenced autoscaling groups must already exist

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#adjustment_type:ChangeInCapacity, ...

Returns The type of change in capacity of the autoscaling group.

Returns:

  • (:ChangeInCapacity, :ExactCapacity, :PercentChangeInCapacity, nil)

    The type of change in capacity of the autoscaling group



25
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 25

attribute :adjustment_type

#asg_nameString

Returns Name of the associated autoscaling group.

Returns:

  • (String)

    Name of the associated autoscaling group



21
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 21

attribute :asg_name

#cooldownInteger?

Returns The minimum period of time between which autoscaling actions can take place.

Returns:

  • (Integer, nil)

    The minimum period of time between which autoscaling actions can take place



37
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 37

attribute :cooldown

#min_adjustment_stepInteger?

Returns Minimum amount of adjustment when policy is triggered.

Returns:

  • (Integer, nil)

    Minimum amount of adjustment when policy is triggered



33
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 33

attribute :min_adjustment_step

#nameString

Returns Unique name for the scaling policy.

Returns:

  • (String)

    Unique name for the scaling policy



17
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 17

attribute :name

#scaling_adjustmentInteger?

Returns The amount by which the autoscaling group is adjusted by the policy.

Returns:

  • (Integer, nil)

    The amount by which the autoscaling group is adjusted by the policy



29
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 29

attribute :scaling_adjustment

#state:present, :absent

Returns register or deregister the policy.

Returns:

  • (:present, :absent)

    register or deregister the policy



13
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_scaling_policy.rb', line 13

attribute :state