Class: Chef::Resource::AwsCloudsearchDomain

Inherits:
Provisioning::AWSDriver::AWSResource show all
Defined in:
lib/chef/resource/aws_cloudsearch_domain.rb

Constant Summary

Constants inherited from Provisioning::AWSDriver::AWSResource

Provisioning::AWSDriver::AWSResource::NOT_PASSED

Instance Method Summary collapse

Methods inherited from Provisioning::AWSDriver::AWSResource

#action, #action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options

Methods inherited from Provisioning::AWSDriver::SuperLWRP

#_pv_is, attribute, lazy

Constructor Details

This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource

Instance Method Details

#aws_objectObject

None of the cloudsearch objects actually have instance-specific objects in the version of the AWS API we are using. This will return a hash with some relevant information about the domain.



43
44
45
# File 'lib/chef/resource/aws_cloudsearch_domain.rb', line 43

def aws_object
  driver.cloudsearch.describe_domains(domain_names: [name])[:domain_status_list].find {|d| !d[:deleted] }
end