Class: Chef::Resource::AwsCacheReplicationGroup

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

Overview

AWS Elasticache Replication Group

See Also:

  • http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/ElastiCache/Client/V20140930.html#create_replication_group-instance_method

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



70
71
72
73
74
75
76
# File 'lib/chef/resource/aws_cache_replication_group.rb', line 70

def aws_object
  driver.elasticache
        .describe_replication_groups(replication_group_id: group_name)
        .data[:replication_groups].first
rescue ::Aws::ElastiCache::Errors::ReplicationGroupNotFoundFault
  nil
end