Class: Fog::AWS::KMS::Keys

Inherits:
PagedCollection
  • Object
show all
Defined in:
lib/fog/aws/models/kms/keys.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Keys

Returns a new instance of Keys.



12
13
14
15
# File 'lib/fog/aws/models/kms/keys.rb', line 12

def initialize(attributes)
  self.filters ||= {}
  super
end

Instance Method Details

#all(filters_arg = filters) ⇒ Object

This method deliberately returns only a single page of results



18
19
20
21
22
23
24
25
# File 'lib/fog/aws/models/kms/keys.rb', line 18

def all(filters_arg = filters)
  filters.merge!(filters_arg)

  result = service.list_keys(filters).body
  filters[:marker] = result['Marker']
  self.truncated = result['Truncated']
  load(result['Keys'])
end