Class: Chef::Resource::AwsCacheSubnetGroup
- Inherits:
-
Provisioning::AWSDriver::AWSResource
- Object
- Provisioning::AWSDriver::AWSResource
- Chef::Resource::AwsCacheSubnetGroup
- Defined in:
- lib/chef/resource/aws_cache_subnet_group.rb
Overview
AWS Elasticache Subnet Group
Instance Method Summary collapse
Instance Method Details
#aws_object ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/chef/resource/aws_cache_subnet_group.rb', line 33 def aws_object begin driver.elasticache .describe_cache_subnet_groups(cache_subnet_group_name: group_name) .data[:cache_subnet_groups].first rescue AWS::ElastiCache::Errors::CacheSubnetGroupNotFoundFault nil end end |