Class: Ansible::Ruby::Modules::Ec2_asg
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_asg
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb
Overview
Can create or delete AWS Autoscaling Groups Works with the ec2_lc module to manage Launch Configurations
Instance Method Summary collapse
-
#availability_zones ⇒ Array<String>, ...
List of availability zone names in which to create the group.
-
#default_cooldown ⇒ String?
The number of seconds after a scaling activity completes before another can begin.
-
#desired_capacity ⇒ Integer?
Desired number of instances in group, if unspecified then the current group value will be used.
-
#health_check_period ⇒ String?
Length of time in seconds after a new EC2 instance comes into service that Auto Scaling starts checking its health.
-
#health_check_type ⇒ :EC2, ...
The service you want the health status from, Amazon EC2 or Elastic Load Balancer.
-
#launch_config_name ⇒ String
Name of the Launch configuration to use for the group.
-
#lc_check ⇒ String?
Check to make sure instances that are being replaced with replace_instances do not already have the current launch_config.
-
#load_balancers ⇒ Array<String>, ...
List of ELB names to use for the group.
-
#max_size ⇒ Integer?
Maximum number of instances in group, if unspecified then the current group value will be used.
-
#metrics_collection ⇒ :yes, ...
Enable ASG metrics collection.
-
#metrics_granularity ⇒ String?
When metrics_collection is enabled this will determine granularity of metrics collected by CloudWatch.
-
#metrics_list ⇒ String?
List of autoscaling metrics to collect when enabling metrics_collection.
-
#min_size ⇒ Integer?
Minimum number of instances in group, if unspecified then the current group value will be used.
-
#name ⇒ String
Unique name for group to be created or deleted.
-
#notification_topic ⇒ Object?
A SNS topic ARN to send auto scaling notifications to.
-
#notification_types ⇒ String?
A list of auto scaling events to trigger notifications on.
-
#placement_group ⇒ Object?
Physical location of your cluster placement group created in Amazon EC2.
-
#replace_all_instances ⇒ String?
In a rolling fashion, replace all instances with an old launch configuration with one from the current launch configuration.
-
#replace_batch_size ⇒ Integer?
Number of instances you’d like to replace at a time.
-
#replace_instances ⇒ Array<String>, ...
List of instance_ids belonging to the named ASG that you would like to terminate and be replaced with instances matching the current launch configuration.
-
#state ⇒ :present, ...
Register or deregister the instance.
-
#suspend_processes ⇒ :Launch, ...
A list of scaling processes to suspend.
-
#tags ⇒ Array<Hash>, ...
A list of tags to add to the Auto Scale Group.
-
#target_group_arns ⇒ Object?
List of target group ARNs to use for the group.
-
#termination_policies ⇒ :OldestInstance, ...
An ordered list of criteria used for selecting instances to be removed from the Auto Scaling group when reducing capacity.,For ‘Default’, when used to create a new autoscaling group, the “Default”i value is used.
-
#vpc_zone_identifier ⇒ Array<String>, ...
List of VPC subnets to use.
-
#wait_for_instances ⇒ String?
Wait for the ASG instances to be in a ready state before exiting.
-
#wait_timeout ⇒ Integer?
How long to wait for instances to become viable when replaced.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#availability_zones ⇒ Array<String>, ...
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 28 attribute :availability_zones |
#default_cooldown ⇒ String?
83 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 83 attribute :default_cooldown |
#desired_capacity ⇒ Integer?
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 47 attribute :desired_capacity |
#health_check_period ⇒ String?
75 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 75 attribute :health_check_period |
#health_check_type ⇒ :EC2, ...
79 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 79 attribute :health_check_type |
#launch_config_name ⇒ String
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 32 attribute :launch_config_name |
#lc_check ⇒ String?
63 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 63 attribute :lc_check |
#load_balancers ⇒ Array<String>, ...
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 21 attribute :load_balancers |
#max_size ⇒ Integer?
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 40 attribute :max_size |
#metrics_collection ⇒ :yes, ...
110 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 110 attribute :metrics_collection |
#metrics_granularity ⇒ String?
114 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 114 attribute :metrics_granularity |
#metrics_list ⇒ String?
118 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 118 attribute :metrics_list |
#min_size ⇒ Integer?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 36 attribute :min_size |
#name ⇒ String
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 17 attribute :name |
#notification_topic ⇒ Object?
99 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 99 attribute :notification_topic |
#notification_types ⇒ String?
102 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 102 attribute :notification_types |
#placement_group ⇒ Object?
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 44 attribute :placement_group |
#replace_all_instances ⇒ String?
51 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 51 attribute :replace_all_instances |
#replace_batch_size ⇒ Integer?
55 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 55 attribute :replace_batch_size |
#replace_instances ⇒ Array<String>, ...
59 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 59 attribute :replace_instances |
#state ⇒ :present, ...
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 13 attribute :state |
#suspend_processes ⇒ :Launch, ...
106 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 106 attribute :suspend_processes |
#tags ⇒ Array<Hash>, ...
71 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 71 attribute :tags |
#target_group_arns ⇒ Object?
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 25 attribute :target_group_arns |
#termination_policies ⇒ :OldestInstance, ...
95 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 95 attribute :termination_policies |
#vpc_zone_identifier ⇒ Array<String>, ...
67 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 67 attribute :vpc_zone_identifier |
#wait_for_instances ⇒ String?
91 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 91 attribute :wait_for_instances |
#wait_timeout ⇒ Integer?
87 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg.rb', line 87 attribute :wait_timeout |