class Awspec::Type::AutoscalingGroup
Public Instance Methods
has_alb_target_group?(id)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 38 def has_alb_target_group?(id) target_group = find_alb_target_group(id) target_groups = select_alb_target_group_by_autoscaling_group_name(@resource_via_client.auto_scaling_group_name) target_groups.one? do |tg| tg.load_balancer_target_group_arn == target_group.target_group_arn end end
has_ec2?(id)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 20 def has_ec2?(id) ec2 = find_ec2(id) return nil unless ec2 resource_via_client.instances.one? do |instance| instance.instance_id == ec2.instance_id end end
has_elb?(name)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 14 def has_elb?(name) resource_via_client.load_balancer_names.one? do |lb_name| lb_name == name end end
has_launch_configuration?(name)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 34 def has_launch_configuration?(name) @resource_via_client.launch_configuration_name == name end
has_nlb_target_group?(id)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 46 def has_nlb_target_group?(id) target_group = find_nlb_target_group(id) target_groups = select_lb_target_group_by_autoscaling_group_name(@resource_via_client.auto_scaling_group_name) target_groups.one? do |tg| tg.load_balancer_target_group_arn == target_group.target_group_arn end end
has_suspended_process?(id)
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 28 def has_suspended_process?(id) resource_via_client.suspended_processes.one? do |process| process.process_name == id end end
id()
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 10 def id @id ||= resource_via_client.auto_scaling_group_arn if resource_via_client end
resource_via_client()
click to toggle source
# File lib/awspec/type/autoscaling_group.rb, line 6 def resource_via_client @resource_via_client ||= find_autoscaling_group(@display_name) end