Class: Chef::Provider::AwsElasticsearchDomain
Constant Summary
Chef::Provisioning::AWSDriver::AWSProvider::AWSResource
Instance Attribute Summary
#purging
Instance Method Summary
collapse
#action_handler, #converge_by, #region, #whyrun_supported?
Instance Method Details
39
40
41
|
# File 'lib/chef/provider/aws_elasticsearch_domain.rb', line 39
def converge_tags
aws_tagger.converge_tags
end
|
#create_aws_object ⇒ Object
7
8
9
10
11
|
# File 'lib/chef/provider/aws_elasticsearch_domain.rb', line 7
def create_aws_object
converge_by "create Elasticsearch domain #{new_resource.domain_name}" do
es_client.create_elasticsearch_domain(update_payload)
end
end
|
#destroy_aws_object(_domain) ⇒ Object
13
14
15
16
17
|
# File 'lib/chef/provider/aws_elasticsearch_domain.rb', line 13
def destroy_aws_object(_domain)
converge_by "destroy Elasticsearch domain #{new_resource.domain_name}" do
es_client.delete_elasticsearch_domain(domain_name: new_resource.domain_name)
end
end
|
#update_aws_object(domain) ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/chef/provider/aws_elasticsearch_domain.rb', line 19
def update_aws_object(domain)
updates = required_updates(domain)
unless updates.empty?
converge_by updates do
es_client.update_elasticsearch_domain_config(update_payload)
end
end
end
|