Class: Ansible::Ruby::Modules::Ec2_asg_lifecycle_hook
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_asg_lifecycle_hook
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb
Overview
When no given Hook found, will create one. In case Hook found, but provided parameters are differes, will update existing Hook. In case state=absent and Hook exists, will delete it.
Instance Method Summary collapse
-
#autoscaling_group_name ⇒ String
The name of the Auto Scaling group to which you want to assign the lifecycle hook.
-
#default_result ⇒ :ABANDON, ...
Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs.
-
#heartbeat_timeout ⇒ String?
The amount of time, in seconds, that can elapse before the lifecycle hook times out.
-
#lifecycle_hook_name ⇒ String
The name of the lifecycle hook.
-
#notification_meta_data ⇒ Object?
Contains additional information that you want to include any time Auto Scaling sends a message to the notification target.
-
#notification_target_arn ⇒ Object?
The ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook.
-
#role_arn ⇒ Object?
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
-
#state ⇒ :present, ...
Create or delete Lifecycle Hook.
-
#transition ⇒ :"autoscaling:EC2_INSTANCE_TERMINATING", :"autoscaling:EC2_INSTANCE_LAUNCHING"
The instance state to which you want to attach the lifecycle hook.
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
#autoscaling_group_name ⇒ String
22 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 22 attribute :autoscaling_group_name |
#default_result ⇒ :ABANDON, ...
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 43 attribute :default_result |
#heartbeat_timeout ⇒ String?
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 39 attribute :heartbeat_timeout |
#lifecycle_hook_name ⇒ String
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 18 attribute :lifecycle_hook_name |
#notification_meta_data ⇒ Object?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 36 attribute :notification_meta_data |
#notification_target_arn ⇒ Object?
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 33 attribute :notification_target_arn |
#role_arn ⇒ Object?
30 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 30 attribute :role_arn |
#state ⇒ :present, ...
14 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 14 attribute :state |
#transition ⇒ :"autoscaling:EC2_INSTANCE_TERMINATING", :"autoscaling:EC2_INSTANCE_LAUNCHING"
26 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_asg_lifecycle_hook.rb', line 26 attribute :transition |