class Aws::EC2::Resource

Public Instance Methods

create_tags(options) click to toggle source
# File lib/aws-sdk-resources/services/ec2.rb, line 8
def create_tags(options)
  resp = @client.create_tags(options)
  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
  Resources::Batch.new(Tag, tags, response: resp)
end