Class: Ansible::Ruby::Modules::Ec2_elb
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_elb
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb
Overview
This module de-registers or registers an AWS EC2 instance from the ELBs that it belongs to. Returns fact “ec2_elbs” which is a list of elbs attached to the instance if state=absent is passed as an argument. Will be marked changed when called only if there are ELBs found to operate on.
Instance Method Summary collapse
-
#ec2_elbs ⇒ Object?
List of ELB names, required for registration.
-
#enable_availability_zone ⇒ :yes, ...
Whether to enable the availability zone of the instance on the target ELB if the availability zone has not already been enabled.
-
#instance_id ⇒ Object
EC2 Instance ID.
-
#state ⇒ :present, :absent
Register or deregister the instance.
-
#validate_certs ⇒ :yes, ...
When set to “no”, SSL certificates will not be validated for boto versions >= 2.6.0.
-
#wait ⇒ :yes, ...
Wait for instance registration or deregistration to complete successfully before returning.
-
#wait_timeout ⇒ Integer?
Number of seconds to wait for an instance to change state.
Methods inherited from Base
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
#ec2_elbs ⇒ Object?
Returns List of ELB names, required for registration. The ec2_elbs fact should be used if there was a previous de-register.
22 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 22 attribute :ec2_elbs |
#enable_availability_zone ⇒ :yes, ...
Returns Whether to enable the availability zone of the instance on the target ELB if the availability zone has not already been enabled. If set to no, the task will fail if the availability zone is not enabled on the ELB.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 25 attribute :enable_availability_zone |
#instance_id ⇒ Object
Returns EC2 Instance ID.
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 18 attribute :instance_id |
#state ⇒ :present, :absent
Returns register or deregister the instance.
14 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 14 attribute :state |
#validate_certs ⇒ :yes, ...
Returns When set to “no”, SSL certificates will not be validated for boto versions >= 2.6.0.
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 33 attribute :validate_certs |
#wait ⇒ :yes, ...
Returns Wait for instance registration or deregistration to complete successfully before returning.
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 29 attribute :wait |
#wait_timeout ⇒ Integer?
Returns Number of seconds to wait for an instance to change state. If 0 then this module may return an error if a transient error occurs. If non-zero then any transient errors are ignored until the timeout is reached. Ignored when wait=no.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_elb.rb', line 37 attribute :wait_timeout |