class Chef::Resource::AwsCacheSubnetGroup

AWS Elasticache Subnet Group @see docs.aws.amazon.com/AWSRubySDK/latest/AWS/ElastiCache/Client/V20140930.html#create_cache_subnet_group-instance_method

Public Instance Methods

aws_object() click to toggle source
# File lib/chef/resource/aws_cache_subnet_group.rb, line 33
def aws_object
  driver.elasticache
        .describe_cache_subnet_groups(cache_subnet_group_name: group_name)
        .data[:cache_subnet_groups].first
rescue ::Aws::ElastiCache::Errors::CacheSubnetGroupNotFoundFault
  nil
end