Class: Chef::Provider::AwsLoadBalancer
- Inherits:
-
Chef::Provisioning::AWSDriver::AWSProvider
- Object
- LWRPBase
- Chef::Provisioning::AWSDriver::AWSProvider
- Chef::Provider::AwsLoadBalancer
- Defined in:
- lib/chef/provider/aws_load_balancer.rb
Constant Summary
Constants inherited from Chef::Provisioning::AWSDriver::AWSProvider
Chef::Provisioning::AWSDriver::AWSProvider::AWSResource
Instance Attribute Summary
Attributes inherited from Chef::Provisioning::AWSDriver::AWSProvider
Instance Method Summary collapse
Methods inherited from Chef::Provisioning::AWSDriver::AWSProvider
#action_handler, #converge_by, #region, #whyrun_supported?
Instance Method Details
#aws_tagger ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/chef/provider/aws_load_balancer.rb', line 4 def aws_tagger @aws_tagger ||= begin elb_strategy = Chef::Provisioning::AWSDriver::TaggingStrategy::ELB.new( new_resource.driver.elb_client, new_resource.name, new_resource. ) Chef::Provisioning::AWSDriver::AWSTagger.new(elb_strategy, action_handler) end end |
#converge_tags ⇒ Object
15 16 17 |
# File 'lib/chef/provider/aws_load_balancer.rb', line 15 def aws_tagger. end |
#destroy_aws_object(load_balancer) ⇒ Object
21 22 23 24 25 |
# File 'lib/chef/provider/aws_load_balancer.rb', line 21 def destroy_aws_object(load_balancer) converge_by "delete load balancer #{new_resource.name} (#{load_balancer.load_balancer_name}) in #{region}" do new_resource.driver.elb_client.delete_load_balancer(load_balancer_name: load_balancer.load_balancer_name) end end |