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.380.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.379.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.378.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.377.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.376.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.375.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.373.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.372.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.371.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.370.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.369.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.368.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.367.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.366.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.365.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.364.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.363.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.362.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.361.0 lib/aws-sdk-ec2/customizations/resource.rb
aws-sdk-ec2-1.360.0 lib/aws-sdk-ec2/customizations/resource.rb