Sha256: 2d3f4e2f6748b1cc00eefae91e06b67cdeb044920dca4cbd91bc9166e2891ba4
Contents?: true
Size: 575 Bytes
Versions: 56
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true # # Collect Backup resources # class Backup < Mapper # # Returns an array of resources. # def collect resources = [] # # list_backup_plans # @client.list_protected_resources.each_with_index do |response, page| log(response.context.operation_name, page) response.results.each do |resource| struct = OpenStruct.new(resource.to_h) struct.type = 'protected_resource' struct.arn = resource.resource_arn resources.push(struct.to_h) end end resources end end
Version data entries
56 entries across 56 versions & 1 rubygems