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.359.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.358.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.357.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.356.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.355.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.354.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.353.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.352.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.351.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.350.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.349.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.348.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.347.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.346.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.345.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.344.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.343.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.342.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.341.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.340.0 lib/aws-sdk-ec2/customizations/resource.rb