Sha256: 22ff9c3f375311e32be57b73b5e2fa3aea63dcbab0250504afddc5e6076bd55a
Contents?: true
Size: 688 Bytes
Versions: 56
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true # # Collect DirectoryService resources # class DirectoryService < Mapper # # Returns an array of resources. # # TODO: confirm paging behavior # def collect resources = [] # # describe_directories # @client.describe_directories.each_with_index do |response, page| log(response.context.operation_name, page) response.directory_descriptions.each do |directory| struct = OpenStruct.new(directory.to_h) struct.type = 'directory' struct.arn = "arn:aws:#{@service}:#{@region}::directory/#{directory.directory_id}" resources.push(struct.to_h) end end resources end end
Version data entries
56 entries across 56 versions & 1 rubygems