lib/chef/resource/aws_cache_replication_group.rb
# Note: There isn't actually an SDK class for Elasticache.
There isn't actually an SDK class for Elasticache.
There isn ' t actually an SDK class for Elasticache .
def aws_object
    driver.elasticache
          .describe_replication_groups(replication_group_id: group_name)
          .data[:replication_groups].first
  rescue ::Aws::ElastiCache::Errors::ReplicationGroupNotFoundFault
    nil
  end
def aws_object driver . elasticache . describe_replication_groups ( replication_group_id : group_name ) . data [ :replication_groups ] . first rescue :: Aws :: ElastiCache :: Errors :: ReplicationGroupNotFoundFault nil end
Note: There isn't actually an SDK class for Elasticache.
Note : There isn ' t actually an SDK class for Elasticache .