Class: Aws::AutoScaling::Tag::Collection
- Inherits:
-
Resources::Collection
- Object
- Resources::Collection
- Aws::AutoScaling::Tag::Collection
- Defined in:
- lib/aws-sdk-autoscaling/tag.rb
Batch Actions collapse
Instance Method Details
#batch_create(options = {}) ⇒ void
This method returns an undefined value.
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/aws-sdk-autoscaling/tag.rb', line 323 def batch_create( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:tags] ||= [] batch.each do |item| params[:tags] << { resource_type: item.resource_type, resource_id: item.resource_id, key: item.key } end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.(params) end end nil end |
#batch_delete!(options = {}) ⇒ void
This method returns an undefined value.
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 |
# File 'lib/aws-sdk-autoscaling/tag.rb', line 343 def batch_delete!( = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash() params[:tags] ||= [] batch.each do |item| params[:tags] << { resource_type: item.resource_type, resource_id: item.resource_id, key: item.key } end Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do batch[0].client.(params) end end nil end |