Sha256: dc30ab2a0f03e7c2f77cb526258e16ba08c7f28c4f912ddfcf45b2041dc9938e

Contents?: true

Size: 609 Bytes

Versions: 75

Compression:

Stored size: 609 Bytes

Contents

require 'fog/aws/models/elasticache/security_group'

module Fog
  module AWS
    class Elasticache
      class SecurityGroups < Fog::Collection
        model Fog::AWS::Elasticache::SecurityGroup

        def all
          load(
            service.describe_cache_security_groups.body['CacheSecurityGroups']
          )
        end

        def get(identity)
          new(
            service.describe_cache_security_groups(
              identity
            ).body['CacheSecurityGroups'].first
          )
        rescue Fog::AWS::Elasticache::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

75 entries across 73 versions & 3 rubygems

Version Path
fog-aws-3.0.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-2.0.1 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-2.0.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.4.1 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.4.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.3.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.2.1 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.2.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.1.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-1.0.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.13.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.12.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.11.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.10.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.9.4 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.9.3 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.9.2 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.9.1 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.9.0 lib/fog/aws/models/elasticache/security_groups.rb
fog-aws-0.8.1 lib/fog/aws/models/elasticache/security_groups.rb