Class: Aws::EC2::Tag::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::EC2::Tag::Collection
- Extended by:
- Deprecations
- Defined in:
- lib/aws-sdk-ec2/customizations/tag.rb,
lib/aws-sdk-ec2/tag.rb
Batch Actions collapse
Instance Method Summary collapse
Instance Method Details
#batch_delete!(options = {}) ⇒ void
This method returns an undefined value.
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/aws-sdk-ec2/tag.rb', line 312 def batch_delete!( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:resources] ||= [] params[:tags] ||= [] batch.each do |item| params[:resources] << item.resource_id params[:tags] << { key: item.key, value: item.value } end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.(params) end end nil end |
#delete ⇒ Object
7 |
# File 'lib/aws-sdk-ec2/customizations/tag.rb', line 7 alias_method :delete, :batch_delete! |