Sha256: 210164c67f91087d47755d971f8803f8c1cdfedabe4134fad59db0a7eea4252c

Contents?: true

Size: 447 Bytes

Versions: 209

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

module Aws
  module EC2
    class Resource

      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
        Tag::Collection.new([tags], size: tags.size)
      end

    end
  end
end

Version data entries

209 entries across 209 versions & 1 rubygems

Version Path
aws-sdk-ec2-1.339.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.338.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.337.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.336.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.335.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.334.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.333.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.332.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.331.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.330.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.329.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.328.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.327.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.326.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.325.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.324.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.323.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.322.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.321.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.320.0 lib/aws-sdk-ec2/customizations/resource.rb