class AWS::CloudFront::DistributionCollection

Public Class Methods

new(svc) click to toggle source
# File lib/aws/with-stacco-patches.rb, line 124
def initialize(svc)
  @svc = svc
end

Public Instance Methods

[](k) click to toggle source
# File lib/aws/with-stacco-patches.rb, line 128
def [](k)
  Distribution.new(@svc, @svc.client.get_distribution(id: k))
end
each() { |distribution(svc, client.get_distribution(id: dist))| ... } click to toggle source
# File lib/aws/with-stacco-patches.rb, line 132
def each
  dists = @svc.client.list_distributions[:items]
  dists.each do |dist|
    yield Distribution.new(@svc, @svc.client.get_distribution(id: dist[:id]))
  end
end