class Chef::Resource::AwsNetworkInterface
Public Instance Methods
aws_object()
click to toggle source
TODO: implement eip address association attribute :elastic_ip_address, kind_of: [ String, ::Aws::OpsWorks::Types::ElasticIp, AwsEipAddress, FalseClass ]
# File lib/chef/resource/aws_network_interface.rb, line 31 def aws_object driver, id = get_driver_and_id result = driver.ec2_resource.network_interface(id) if id result && exists?(result) ? result : nil end
exists?(result)
click to toggle source
# File lib/chef/resource/aws_network_interface.rb, line 37 def exists?(result) return true if result.data rescue ::Aws::EC2::Errors::InvalidNetworkInterfaceIDNotFound false end