Sha256: 15ec9e07f26e5463ab07363eadedc1099f95afbdb697a09b429a451bffefa4f5
Contents?: true
Size: 516 Bytes
Versions: 68
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true module Aws module EC2 class Resource def create_tags(options) resp = Aws::Plugins::UserAgent.feature('resource') do @client.create_tags(options) end tags = [] options[:resources].each do |resource_id| options[:tags].each do |tag| tags << Tag.new(resource_id, tag[:key], tag[:value], client: @client) end end Tag::Collection.new([tags], size: tags.size) end end end end
Version data entries
68 entries across 68 versions & 1 rubygems