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

Version Path
aws-sdk-ec2-1.448.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.447.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.446.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.445.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.444.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.443.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.442.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.441.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.440.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.439.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.438.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.437.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.436.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.435.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.434.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.433.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.432.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.431.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.430.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.429.0 lib/aws-sdk-ec2/customizations/resource.rb