Class: Chef::Resource::AwsElasticsearchDomain

Inherits:
Provisioning::AWSDriver::AWSResource show all
Includes:
Provisioning::AWSDriver::AWSTaggable
Defined in:
lib/chef/resource/aws_elasticsearch_domain.rb

Constant Summary

Constants inherited from Provisioning::AWSDriver::AWSResource

Provisioning::AWSDriver::AWSResource::NOT_PASSED

Instance Method Summary collapse

Methods included from Provisioning::AWSDriver::AWSTaggable

included

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



37
38
39
40
41
# File 'lib/chef/resource/aws_elasticsearch_domain.rb', line 37

def aws_object
  driver.elasticsearch_client
        .describe_elasticsearch_domains(domain_names: [domain_name])[:domain_status_list]
        .find { |d| !d[:deleted] }
end