aws-sdk-ec2 1.141.0 → 1.142.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73ab68e70a18b13300810a2f668653113f3476f4
4
- data.tar.gz: fb8eb613cc519843dc5d5cc355dc561b6f52388a
3
+ metadata.gz: 0071dc8eb43ba4cc66278265eb7b8575172bc518
4
+ data.tar.gz: ab1b663c850e707e8ceaf37bd7a3cfe43ddba1ce
5
5
  SHA512:
6
- metadata.gz: 874afcc64bd2de856f434fd9fda626c9f16c223482d92b07bfb4c721829f7663418be0dc5b3965066d0df4f0093d4dd48d01b7ab7e88a9424b43a16ce7efa415
7
- data.tar.gz: b8d045b920acf0ed15ecffed3b33bb247041e079e67bd68456a46d2fc7d40323c9bf8835ce66eef43dad90fa8651f38f24708acefdb1f588d9d759e82819d29e
6
+ metadata.gz: d8c3c10eff0f2ddb2f7cdb473e409903dbe54b7f0f81720e02e56b1a64eb78bf74f758d9ef232285683c39355f40f0097d260e34c760082aa1085dd1133ac9c2
7
+ data.tar.gz: 1a73a577ae7a25d8f898433796f343c0382892ab844afe5e9695a4a6613949c3e62eb6ed5a11a2b75d6daec2623bc40bc986d6df8aa75edf874db1c2d10dcb73
@@ -66,6 +66,6 @@ require_relative 'aws-sdk-ec2/customizations'
66
66
  # @service
67
67
  module Aws::EC2
68
68
 
69
- GEM_VERSION = '1.141.0'
69
+ GEM_VERSION = '1.142.0'
70
70
 
71
71
  end
@@ -884,6 +884,9 @@ module Aws::EC2
884
884
  # see [IP Addresses Per Network Interface Per Instance Type][1] in the
885
885
  # *Amazon Elastic Compute Cloud User Guide*.
886
886
  #
887
+ # You must specify either the IPv6 addresses or the IPv6 address count
888
+ # in the request.
889
+ #
887
890
  #
888
891
  #
889
892
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI
@@ -951,6 +954,9 @@ module Aws::EC2
951
954
  # `network/interfaces/macs/mac/local-ipv4s` in the instance metadata to
952
955
  # confirm that the remapping is complete.
953
956
  #
957
+ # You must specify either the IP addresses or the IP address count in
958
+ # the request.
959
+ #
954
960
  #
955
961
  #
956
962
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
@@ -18566,6 +18572,19 @@ module Aws::EC2
18566
18572
  # retrieve the remaining results, make another call with the returned
18567
18573
  # `nextToken` value.
18568
18574
  #
18575
+ # @option params [Array<Types::Filter>] :filters
18576
+ # One or more filters.
18577
+ #
18578
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned to
18579
+ # the resource. Use the tag key in the filter name and the tag value
18580
+ # as the filter value. For example, to find all resources that have a
18581
+ # tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
18582
+ # for the filter name and `TeamA` for the filter value.
18583
+ #
18584
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
18585
+ # filter to find all resources assigned a tag with a specific key,
18586
+ # regardless of the tag value.
18587
+ #
18569
18588
  # @return [Types::DescribePublicIpv4PoolsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
18570
18589
  #
18571
18590
  # * {Types::DescribePublicIpv4PoolsResult#public_ipv_4_pools #public_ipv_4_pools} => Array&lt;Types::PublicIpv4Pool&gt;
@@ -18577,6 +18596,12 @@ module Aws::EC2
18577
18596
  # pool_ids: ["String"],
18578
18597
  # next_token: "NextToken",
18579
18598
  # max_results: 1,
18599
+ # filters: [
18600
+ # {
18601
+ # name: "String",
18602
+ # values: ["String"],
18603
+ # },
18604
+ # ],
18580
18605
  # })
18581
18606
  #
18582
18607
  # @example Response structure
@@ -18591,6 +18616,9 @@ module Aws::EC2
18591
18616
  # resp.public_ipv_4_pools[0].pool_address_ranges[0].available_address_count #=> Integer
18592
18617
  # resp.public_ipv_4_pools[0].total_address_count #=> Integer
18593
18618
  # resp.public_ipv_4_pools[0].total_available_address_count #=> Integer
18619
+ # resp.public_ipv_4_pools[0].tags #=> Array
18620
+ # resp.public_ipv_4_pools[0].tags[0].key #=> String
18621
+ # resp.public_ipv_4_pools[0].tags[0].value #=> String
18594
18622
  # resp.next_token #=> String
18595
18623
  #
18596
18624
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools AWS API Documentation
@@ -35954,7 +35982,7 @@ module Aws::EC2
35954
35982
  params: params,
35955
35983
  config: config)
35956
35984
  context[:gem_name] = 'aws-sdk-ec2'
35957
- context[:gem_version] = '1.141.0'
35985
+ context[:gem_version] = '1.142.0'
35958
35986
  Seahorse::Client::Request.new(handlers, context)
35959
35987
  end
35960
35988
 
@@ -4365,6 +4365,7 @@ module Aws::EC2
4365
4365
  DescribePublicIpv4PoolsRequest.add_member(:pool_ids, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "PoolId"))
4366
4366
  DescribePublicIpv4PoolsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
4367
4367
  DescribePublicIpv4PoolsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PoolMaxResults, location_name: "MaxResults"))
4368
+ DescribePublicIpv4PoolsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
4368
4369
  DescribePublicIpv4PoolsRequest.struct_class = Types::DescribePublicIpv4PoolsRequest
4369
4370
 
4370
4371
  DescribePublicIpv4PoolsResult.add_member(:public_ipv_4_pools, Shapes::ShapeRef.new(shape: PublicIpv4PoolSet, location_name: "publicIpv4PoolSet"))
@@ -7607,6 +7608,7 @@ module Aws::EC2
7607
7608
  PublicIpv4Pool.add_member(:pool_address_ranges, Shapes::ShapeRef.new(shape: PublicIpv4PoolRangeSet, location_name: "poolAddressRangeSet"))
7608
7609
  PublicIpv4Pool.add_member(:total_address_count, Shapes::ShapeRef.new(shape: Integer, location_name: "totalAddressCount"))
7609
7610
  PublicIpv4Pool.add_member(:total_available_address_count, Shapes::ShapeRef.new(shape: Integer, location_name: "totalAvailableAddressCount"))
7611
+ PublicIpv4Pool.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
7610
7612
  PublicIpv4Pool.struct_class = Types::PublicIpv4Pool
7611
7613
 
7612
7614
  PublicIpv4PoolRange.add_member(:first_address, Shapes::ShapeRef.new(shape: String, location_name: "firstAddress"))
@@ -240,6 +240,49 @@ module Aws::EC2
240
240
  Tag::Collection.new([batch], size: batch.size)
241
241
  end
242
242
 
243
+ # @example Request syntax with placeholder values
244
+ #
245
+ # tag = dhcp_options.delete_tags({
246
+ # dry_run: false,
247
+ # tags: [
248
+ # {
249
+ # key: "String",
250
+ # value: "String",
251
+ # },
252
+ # ],
253
+ # })
254
+ # @param [Hash] options ({})
255
+ # @option options [Boolean] :dry_run
256
+ # Checks whether you have the required permissions for the action,
257
+ # without actually making the request, and provides an error response.
258
+ # If you have the required permissions, the error response is
259
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
260
+ # @option options [Array<Types::Tag>] :tags
261
+ # The tags to delete. Specify a tag key and an optional tag value to
262
+ # delete specific tags. If you specify a tag key without a tag value, we
263
+ # delete any tag with this key regardless of its value. If you specify a
264
+ # tag key with an empty string as the tag value, we delete the tag only
265
+ # if its value is an empty string.
266
+ #
267
+ # If you omit this parameter, we delete all user-defined tags for the
268
+ # specified resources. We do not delete AWS-generated tags (tags that
269
+ # have the `aws:` prefix).
270
+ # @return [Tag::Collection]
271
+ def delete_tags(options = {})
272
+ batch = []
273
+ options = Aws::Util.deep_merge(options, resources: [@id])
274
+ resp = @client.delete_tags(options)
275
+ options[:tags].each do |t|
276
+ batch << Tag.new(
277
+ resource_id: @id,
278
+ key: t[:key],
279
+ value: t[:value],
280
+ client: @client
281
+ )
282
+ end
283
+ Tag::Collection.new([batch], size: batch.size)
284
+ end
285
+
243
286
  # @example Request syntax with placeholder values
244
287
  #
245
288
  # dhcp_options.delete({
@@ -409,6 +409,49 @@ module Aws::EC2
409
409
  Tag::Collection.new([batch], size: batch.size)
410
410
  end
411
411
 
412
+ # @example Request syntax with placeholder values
413
+ #
414
+ # tag = image.delete_tags({
415
+ # dry_run: false,
416
+ # tags: [
417
+ # {
418
+ # key: "String",
419
+ # value: "String",
420
+ # },
421
+ # ],
422
+ # })
423
+ # @param [Hash] options ({})
424
+ # @option options [Boolean] :dry_run
425
+ # Checks whether you have the required permissions for the action,
426
+ # without actually making the request, and provides an error response.
427
+ # If you have the required permissions, the error response is
428
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
429
+ # @option options [Array<Types::Tag>] :tags
430
+ # The tags to delete. Specify a tag key and an optional tag value to
431
+ # delete specific tags. If you specify a tag key without a tag value, we
432
+ # delete any tag with this key regardless of its value. If you specify a
433
+ # tag key with an empty string as the tag value, we delete the tag only
434
+ # if its value is an empty string.
435
+ #
436
+ # If you omit this parameter, we delete all user-defined tags for the
437
+ # specified resources. We do not delete AWS-generated tags (tags that
438
+ # have the `aws:` prefix).
439
+ # @return [Tag::Collection]
440
+ def delete_tags(options = {})
441
+ batch = []
442
+ options = Aws::Util.deep_merge(options, resources: [@id])
443
+ resp = @client.delete_tags(options)
444
+ options[:tags].each do |t|
445
+ batch << Tag.new(
446
+ resource_id: @id,
447
+ key: t[:key],
448
+ value: t[:value],
449
+ client: @client
450
+ )
451
+ end
452
+ Tag::Collection.new([batch], size: batch.size)
453
+ end
454
+
412
455
  # @example Request syntax with placeholder values
413
456
  #
414
457
  # image.deregister({
@@ -718,6 +718,49 @@ module Aws::EC2
718
718
  Tag::Collection.new([batch], size: batch.size)
719
719
  end
720
720
 
721
+ # @example Request syntax with placeholder values
722
+ #
723
+ # tag = instance.delete_tags({
724
+ # dry_run: false,
725
+ # tags: [
726
+ # {
727
+ # key: "String",
728
+ # value: "String",
729
+ # },
730
+ # ],
731
+ # })
732
+ # @param [Hash] options ({})
733
+ # @option options [Boolean] :dry_run
734
+ # Checks whether you have the required permissions for the action,
735
+ # without actually making the request, and provides an error response.
736
+ # If you have the required permissions, the error response is
737
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
738
+ # @option options [Array<Types::Tag>] :tags
739
+ # The tags to delete. Specify a tag key and an optional tag value to
740
+ # delete specific tags. If you specify a tag key without a tag value, we
741
+ # delete any tag with this key regardless of its value. If you specify a
742
+ # tag key with an empty string as the tag value, we delete the tag only
743
+ # if its value is an empty string.
744
+ #
745
+ # If you omit this parameter, we delete all user-defined tags for the
746
+ # specified resources. We do not delete AWS-generated tags (tags that
747
+ # have the `aws:` prefix).
748
+ # @return [Tag::Collection]
749
+ def delete_tags(options = {})
750
+ batch = []
751
+ options = Aws::Util.deep_merge(options, resources: [@id])
752
+ resp = @client.delete_tags(options)
753
+ options[:tags].each do |t|
754
+ batch << Tag.new(
755
+ resource_id: @id,
756
+ key: t[:key],
757
+ value: t[:value],
758
+ client: @client
759
+ )
760
+ end
761
+ Tag::Collection.new([batch], size: batch.size)
762
+ end
763
+
721
764
  # @example Request syntax with placeholder values
722
765
  #
723
766
  # instance.describe_attribute({
@@ -1577,6 +1620,46 @@ module Aws::EC2
1577
1620
  nil
1578
1621
  end
1579
1622
 
1623
+ # @example Request syntax with placeholder values
1624
+ #
1625
+ # instance.batch_delete_tags!({
1626
+ # dry_run: false,
1627
+ # tags: [
1628
+ # {
1629
+ # key: "String",
1630
+ # value: "String",
1631
+ # },
1632
+ # ],
1633
+ # })
1634
+ # @param options ({})
1635
+ # @option options [Boolean] :dry_run
1636
+ # Checks whether you have the required permissions for the action,
1637
+ # without actually making the request, and provides an error response.
1638
+ # If you have the required permissions, the error response is
1639
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1640
+ # @option options [Array<Types::Tag>] :tags
1641
+ # The tags to delete. Specify a tag key and an optional tag value to
1642
+ # delete specific tags. If you specify a tag key without a tag value, we
1643
+ # delete any tag with this key regardless of its value. If you specify a
1644
+ # tag key with an empty string as the tag value, we delete the tag only
1645
+ # if its value is an empty string.
1646
+ #
1647
+ # If you omit this parameter, we delete all user-defined tags for the
1648
+ # specified resources. We do not delete AWS-generated tags (tags that
1649
+ # have the `aws:` prefix).
1650
+ # @return [void]
1651
+ def batch_delete_tags!(options = {})
1652
+ batch_enum.each do |batch|
1653
+ params = Aws::Util.copy_hash(options)
1654
+ params[:resources] ||= []
1655
+ batch.each do |item|
1656
+ params[:resources] << item.id
1657
+ end
1658
+ batch[0].client.delete_tags(params)
1659
+ end
1660
+ nil
1661
+ end
1662
+
1580
1663
  # @example Request syntax with placeholder values
1581
1664
  #
1582
1665
  # instance.batch_monitor({
@@ -240,6 +240,49 @@ module Aws::EC2
240
240
  Tag::Collection.new([batch], size: batch.size)
241
241
  end
242
242
 
243
+ # @example Request syntax with placeholder values
244
+ #
245
+ # tag = internet_gateway.delete_tags({
246
+ # dry_run: false,
247
+ # tags: [
248
+ # {
249
+ # key: "String",
250
+ # value: "String",
251
+ # },
252
+ # ],
253
+ # })
254
+ # @param [Hash] options ({})
255
+ # @option options [Boolean] :dry_run
256
+ # Checks whether you have the required permissions for the action,
257
+ # without actually making the request, and provides an error response.
258
+ # If you have the required permissions, the error response is
259
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
260
+ # @option options [Array<Types::Tag>] :tags
261
+ # The tags to delete. Specify a tag key and an optional tag value to
262
+ # delete specific tags. If you specify a tag key without a tag value, we
263
+ # delete any tag with this key regardless of its value. If you specify a
264
+ # tag key with an empty string as the tag value, we delete the tag only
265
+ # if its value is an empty string.
266
+ #
267
+ # If you omit this parameter, we delete all user-defined tags for the
268
+ # specified resources. We do not delete AWS-generated tags (tags that
269
+ # have the `aws:` prefix).
270
+ # @return [Tag::Collection]
271
+ def delete_tags(options = {})
272
+ batch = []
273
+ options = Aws::Util.deep_merge(options, resources: [@id])
274
+ resp = @client.delete_tags(options)
275
+ options[:tags].each do |t|
276
+ batch << Tag.new(
277
+ resource_id: @id,
278
+ key: t[:key],
279
+ value: t[:value],
280
+ client: @client
281
+ )
282
+ end
283
+ Tag::Collection.new([batch], size: batch.size)
284
+ end
285
+
243
286
  # @example Request syntax with placeholder values
244
287
  #
245
288
  # internet_gateway.delete({
@@ -308,6 +308,49 @@ module Aws::EC2
308
308
  Tag::Collection.new([batch], size: batch.size)
309
309
  end
310
310
 
311
+ # @example Request syntax with placeholder values
312
+ #
313
+ # tag = nat_gateway.delete_tags({
314
+ # dry_run: false,
315
+ # tags: [
316
+ # {
317
+ # key: "String",
318
+ # value: "String",
319
+ # },
320
+ # ],
321
+ # })
322
+ # @param [Hash] options ({})
323
+ # @option options [Boolean] :dry_run
324
+ # Checks whether you have the required permissions for the action,
325
+ # without actually making the request, and provides an error response.
326
+ # If you have the required permissions, the error response is
327
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
328
+ # @option options [Array<Types::Tag>] :tags
329
+ # The tags to delete. Specify a tag key and an optional tag value to
330
+ # delete specific tags. If you specify a tag key without a tag value, we
331
+ # delete any tag with this key regardless of its value. If you specify a
332
+ # tag key with an empty string as the tag value, we delete the tag only
333
+ # if its value is an empty string.
334
+ #
335
+ # If you omit this parameter, we delete all user-defined tags for the
336
+ # specified resources. We do not delete AWS-generated tags (tags that
337
+ # have the `aws:` prefix).
338
+ # @return [Tag::Collection]
339
+ def delete_tags(options = {})
340
+ batch = []
341
+ options = Aws::Util.deep_merge(options, resources: [@id])
342
+ resp = @client.delete_tags(options)
343
+ options[:tags].each do |t|
344
+ batch << Tag.new(
345
+ resource_id: @id,
346
+ key: t[:key],
347
+ value: t[:value],
348
+ client: @client
349
+ )
350
+ end
351
+ Tag::Collection.new([batch], size: batch.size)
352
+ end
353
+
311
354
  # @example Request syntax with placeholder values
312
355
  #
313
356
  # nat_gateway.delete()
@@ -302,6 +302,49 @@ module Aws::EC2
302
302
  Tag::Collection.new([batch], size: batch.size)
303
303
  end
304
304
 
305
+ # @example Request syntax with placeholder values
306
+ #
307
+ # tag = network_acl.delete_tags({
308
+ # dry_run: false,
309
+ # tags: [
310
+ # {
311
+ # key: "String",
312
+ # value: "String",
313
+ # },
314
+ # ],
315
+ # })
316
+ # @param [Hash] options ({})
317
+ # @option options [Boolean] :dry_run
318
+ # Checks whether you have the required permissions for the action,
319
+ # without actually making the request, and provides an error response.
320
+ # If you have the required permissions, the error response is
321
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
322
+ # @option options [Array<Types::Tag>] :tags
323
+ # The tags to delete. Specify a tag key and an optional tag value to
324
+ # delete specific tags. If you specify a tag key without a tag value, we
325
+ # delete any tag with this key regardless of its value. If you specify a
326
+ # tag key with an empty string as the tag value, we delete the tag only
327
+ # if its value is an empty string.
328
+ #
329
+ # If you omit this parameter, we delete all user-defined tags for the
330
+ # specified resources. We do not delete AWS-generated tags (tags that
331
+ # have the `aws:` prefix).
332
+ # @return [Tag::Collection]
333
+ def delete_tags(options = {})
334
+ batch = []
335
+ options = Aws::Util.deep_merge(options, resources: [@id])
336
+ resp = @client.delete_tags(options)
337
+ options[:tags].each do |t|
338
+ batch << Tag.new(
339
+ resource_id: @id,
340
+ key: t[:key],
341
+ value: t[:value],
342
+ client: @client
343
+ )
344
+ end
345
+ Tag::Collection.new([batch], size: batch.size)
346
+ end
347
+
305
348
  # @example Request syntax with placeholder values
306
349
  #
307
350
  # network_acl.delete({
@@ -370,6 +370,49 @@ module Aws::EC2
370
370
  Tag::Collection.new([batch], size: batch.size)
371
371
  end
372
372
 
373
+ # @example Request syntax with placeholder values
374
+ #
375
+ # tag = network_interface.delete_tags({
376
+ # dry_run: false,
377
+ # tags: [
378
+ # {
379
+ # key: "String",
380
+ # value: "String",
381
+ # },
382
+ # ],
383
+ # })
384
+ # @param [Hash] options ({})
385
+ # @option options [Boolean] :dry_run
386
+ # Checks whether you have the required permissions for the action,
387
+ # without actually making the request, and provides an error response.
388
+ # If you have the required permissions, the error response is
389
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
390
+ # @option options [Array<Types::Tag>] :tags
391
+ # The tags to delete. Specify a tag key and an optional tag value to
392
+ # delete specific tags. If you specify a tag key without a tag value, we
393
+ # delete any tag with this key regardless of its value. If you specify a
394
+ # tag key with an empty string as the tag value, we delete the tag only
395
+ # if its value is an empty string.
396
+ #
397
+ # If you omit this parameter, we delete all user-defined tags for the
398
+ # specified resources. We do not delete AWS-generated tags (tags that
399
+ # have the `aws:` prefix).
400
+ # @return [Tag::Collection]
401
+ def delete_tags(options = {})
402
+ batch = []
403
+ options = Aws::Util.deep_merge(options, resources: [@id])
404
+ resp = @client.delete_tags(options)
405
+ options[:tags].each do |t|
406
+ batch << Tag.new(
407
+ resource_id: @id,
408
+ key: t[:key],
409
+ value: t[:value],
410
+ client: @client
411
+ )
412
+ end
413
+ Tag::Collection.new([batch], size: batch.size)
414
+ end
415
+
373
416
  # @example Request syntax with placeholder values
374
417
  #
375
418
  # network_interface.delete({
@@ -909,6 +909,45 @@ module Aws::EC2
909
909
  resp.data
910
910
  end
911
911
 
912
+ # @example Request syntax with placeholder values
913
+ #
914
+ # ec2.delete_tags({
915
+ # dry_run: false,
916
+ # resources: ["String"], # required
917
+ # tags: [
918
+ # {
919
+ # key: "String",
920
+ # value: "String",
921
+ # },
922
+ # ],
923
+ # })
924
+ # @param [Hash] options ({})
925
+ # @option options [Boolean] :dry_run
926
+ # Checks whether you have the required permissions for the action,
927
+ # without actually making the request, and provides an error response.
928
+ # If you have the required permissions, the error response is
929
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
930
+ # @option options [required, Array<String>] :resources
931
+ # The IDs of the resources, separated by spaces.
932
+ #
933
+ # Constraints: Up to 1000 resource IDs. We recommend breaking up this
934
+ # request into smaller batches.
935
+ # @option options [Array<Types::Tag>] :tags
936
+ # The tags to delete. Specify a tag key and an optional tag value to
937
+ # delete specific tags. If you specify a tag key without a tag value, we
938
+ # delete any tag with this key regardless of its value. If you specify a
939
+ # tag key with an empty string as the tag value, we delete the tag only
940
+ # if its value is an empty string.
941
+ #
942
+ # If you omit this parameter, we delete all user-defined tags for the
943
+ # specified resources. We do not delete AWS-generated tags (tags that
944
+ # have the `aws:` prefix).
945
+ # @return [EmptyStructure]
946
+ def delete_tags(options = {})
947
+ resp = @client.delete_tags(options)
948
+ resp.data
949
+ end
950
+
912
951
  # @example Request syntax with placeholder values
913
952
  #
914
953
  # volume = ec2.create_volume({
@@ -309,6 +309,49 @@ module Aws::EC2
309
309
  Tag::Collection.new([batch], size: batch.size)
310
310
  end
311
311
 
312
+ # @example Request syntax with placeholder values
313
+ #
314
+ # tag = route_table.delete_tags({
315
+ # dry_run: false,
316
+ # tags: [
317
+ # {
318
+ # key: "String",
319
+ # value: "String",
320
+ # },
321
+ # ],
322
+ # })
323
+ # @param [Hash] options ({})
324
+ # @option options [Boolean] :dry_run
325
+ # Checks whether you have the required permissions for the action,
326
+ # without actually making the request, and provides an error response.
327
+ # If you have the required permissions, the error response is
328
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
329
+ # @option options [Array<Types::Tag>] :tags
330
+ # The tags to delete. Specify a tag key and an optional tag value to
331
+ # delete specific tags. If you specify a tag key without a tag value, we
332
+ # delete any tag with this key regardless of its value. If you specify a
333
+ # tag key with an empty string as the tag value, we delete the tag only
334
+ # if its value is an empty string.
335
+ #
336
+ # If you omit this parameter, we delete all user-defined tags for the
337
+ # specified resources. We do not delete AWS-generated tags (tags that
338
+ # have the `aws:` prefix).
339
+ # @return [Tag::Collection]
340
+ def delete_tags(options = {})
341
+ batch = []
342
+ options = Aws::Util.deep_merge(options, resources: [@id])
343
+ resp = @client.delete_tags(options)
344
+ options[:tags].each do |t|
345
+ batch << Tag.new(
346
+ resource_id: @id,
347
+ key: t[:key],
348
+ value: t[:value],
349
+ client: @client
350
+ )
351
+ end
352
+ Tag::Collection.new([batch], size: batch.size)
353
+ end
354
+
312
355
  # @example Request syntax with placeholder values
313
356
  #
314
357
  # route_table.delete({
@@ -439,6 +439,49 @@ module Aws::EC2
439
439
  Tag::Collection.new([batch], size: batch.size)
440
440
  end
441
441
 
442
+ # @example Request syntax with placeholder values
443
+ #
444
+ # tag = security_group.delete_tags({
445
+ # dry_run: false,
446
+ # tags: [
447
+ # {
448
+ # key: "String",
449
+ # value: "String",
450
+ # },
451
+ # ],
452
+ # })
453
+ # @param [Hash] options ({})
454
+ # @option options [Boolean] :dry_run
455
+ # Checks whether you have the required permissions for the action,
456
+ # without actually making the request, and provides an error response.
457
+ # If you have the required permissions, the error response is
458
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
459
+ # @option options [Array<Types::Tag>] :tags
460
+ # The tags to delete. Specify a tag key and an optional tag value to
461
+ # delete specific tags. If you specify a tag key without a tag value, we
462
+ # delete any tag with this key regardless of its value. If you specify a
463
+ # tag key with an empty string as the tag value, we delete the tag only
464
+ # if its value is an empty string.
465
+ #
466
+ # If you omit this parameter, we delete all user-defined tags for the
467
+ # specified resources. We do not delete AWS-generated tags (tags that
468
+ # have the `aws:` prefix).
469
+ # @return [Tag::Collection]
470
+ def delete_tags(options = {})
471
+ batch = []
472
+ options = Aws::Util.deep_merge(options, resources: [@id])
473
+ resp = @client.delete_tags(options)
474
+ options[:tags].each do |t|
475
+ batch << Tag.new(
476
+ resource_id: @id,
477
+ key: t[:key],
478
+ value: t[:value],
479
+ client: @client
480
+ )
481
+ end
482
+ Tag::Collection.new([batch], size: batch.size)
483
+ end
484
+
442
485
  # @example Request syntax with placeholder values
443
486
  #
444
487
  # security_group.delete({
@@ -417,6 +417,49 @@ module Aws::EC2
417
417
  Tag::Collection.new([batch], size: batch.size)
418
418
  end
419
419
 
420
+ # @example Request syntax with placeholder values
421
+ #
422
+ # tag = snapshot.delete_tags({
423
+ # dry_run: false,
424
+ # tags: [
425
+ # {
426
+ # key: "String",
427
+ # value: "String",
428
+ # },
429
+ # ],
430
+ # })
431
+ # @param [Hash] options ({})
432
+ # @option options [Boolean] :dry_run
433
+ # Checks whether you have the required permissions for the action,
434
+ # without actually making the request, and provides an error response.
435
+ # If you have the required permissions, the error response is
436
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
437
+ # @option options [Array<Types::Tag>] :tags
438
+ # The tags to delete. Specify a tag key and an optional tag value to
439
+ # delete specific tags. If you specify a tag key without a tag value, we
440
+ # delete any tag with this key regardless of its value. If you specify a
441
+ # tag key with an empty string as the tag value, we delete the tag only
442
+ # if its value is an empty string.
443
+ #
444
+ # If you omit this parameter, we delete all user-defined tags for the
445
+ # specified resources. We do not delete AWS-generated tags (tags that
446
+ # have the `aws:` prefix).
447
+ # @return [Tag::Collection]
448
+ def delete_tags(options = {})
449
+ batch = []
450
+ options = Aws::Util.deep_merge(options, resources: [@id])
451
+ resp = @client.delete_tags(options)
452
+ options[:tags].each do |t|
453
+ batch << Tag.new(
454
+ resource_id: @id,
455
+ key: t[:key],
456
+ value: t[:value],
457
+ client: @client
458
+ )
459
+ end
460
+ Tag::Collection.new([batch], size: batch.size)
461
+ end
462
+
420
463
  # @example Request syntax with placeholder values
421
464
  #
422
465
  # snapshot.delete({
@@ -810,6 +810,49 @@ module Aws::EC2
810
810
  Tag::Collection.new([batch], size: batch.size)
811
811
  end
812
812
 
813
+ # @example Request syntax with placeholder values
814
+ #
815
+ # tag = subnet.delete_tags({
816
+ # dry_run: false,
817
+ # tags: [
818
+ # {
819
+ # key: "String",
820
+ # value: "String",
821
+ # },
822
+ # ],
823
+ # })
824
+ # @param [Hash] options ({})
825
+ # @option options [Boolean] :dry_run
826
+ # Checks whether you have the required permissions for the action,
827
+ # without actually making the request, and provides an error response.
828
+ # If you have the required permissions, the error response is
829
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
830
+ # @option options [Array<Types::Tag>] :tags
831
+ # The tags to delete. Specify a tag key and an optional tag value to
832
+ # delete specific tags. If you specify a tag key without a tag value, we
833
+ # delete any tag with this key regardless of its value. If you specify a
834
+ # tag key with an empty string as the tag value, we delete the tag only
835
+ # if its value is an empty string.
836
+ #
837
+ # If you omit this parameter, we delete all user-defined tags for the
838
+ # specified resources. We do not delete AWS-generated tags (tags that
839
+ # have the `aws:` prefix).
840
+ # @return [Tag::Collection]
841
+ def delete_tags(options = {})
842
+ batch = []
843
+ options = Aws::Util.deep_merge(options, resources: [@id])
844
+ resp = @client.delete_tags(options)
845
+ options[:tags].each do |t|
846
+ batch << Tag.new(
847
+ resource_id: @id,
848
+ key: t[:key],
849
+ value: t[:value],
850
+ client: @client
851
+ )
852
+ end
853
+ Tag::Collection.new([batch], size: batch.size)
854
+ end
855
+
813
856
  # @example Request syntax with placeholder values
814
857
  #
815
858
  # subnet.delete({
@@ -16645,6 +16645,12 @@ module Aws::EC2
16645
16645
  # pool_ids: ["String"],
16646
16646
  # next_token: "NextToken",
16647
16647
  # max_results: 1,
16648
+ # filters: [
16649
+ # {
16650
+ # name: "String",
16651
+ # values: ["String"],
16652
+ # },
16653
+ # ],
16648
16654
  # }
16649
16655
  #
16650
16656
  # @!attribute [rw] pool_ids
@@ -16661,12 +16667,27 @@ module Aws::EC2
16661
16667
  # `nextToken` value.
16662
16668
  # @return [Integer]
16663
16669
  #
16670
+ # @!attribute [rw] filters
16671
+ # One or more filters.
16672
+ #
16673
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned
16674
+ # to the resource. Use the tag key in the filter name and the tag
16675
+ # value as the filter value. For example, to find all resources that
16676
+ # have a tag with the key `Owner` and the value `TeamA`, specify
16677
+ # `tag:Owner` for the filter name and `TeamA` for the filter value.
16678
+ #
16679
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
16680
+ # filter to find all resources assigned a tag with a specific key,
16681
+ # regardless of the tag value.
16682
+ # @return [Array<Types::Filter>]
16683
+ #
16664
16684
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4PoolsRequest AWS API Documentation
16665
16685
  #
16666
16686
  class DescribePublicIpv4PoolsRequest < Struct.new(
16667
16687
  :pool_ids,
16668
16688
  :next_token,
16669
- :max_results)
16689
+ :max_results,
16690
+ :filters)
16670
16691
  include Aws::Structure
16671
16692
  end
16672
16693
 
@@ -35957,6 +35978,10 @@ module Aws::EC2
35957
35978
  # The total number of available addresses.
35958
35979
  # @return [Integer]
35959
35980
  #
35981
+ # @!attribute [rw] tags
35982
+ # Any tags for the address pool.
35983
+ # @return [Array<Types::Tag>]
35984
+ #
35960
35985
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PublicIpv4Pool AWS API Documentation
35961
35986
  #
35962
35987
  class PublicIpv4Pool < Struct.new(
@@ -35964,7 +35989,8 @@ module Aws::EC2
35964
35989
  :description,
35965
35990
  :pool_address_ranges,
35966
35991
  :total_address_count,
35967
- :total_available_address_count)
35992
+ :total_available_address_count,
35993
+ :tags)
35968
35994
  include Aws::Structure
35969
35995
  end
35970
35996
 
@@ -365,6 +365,49 @@ module Aws::EC2
365
365
  Tag::Collection.new([batch], size: batch.size)
366
366
  end
367
367
 
368
+ # @example Request syntax with placeholder values
369
+ #
370
+ # tag = volume.delete_tags({
371
+ # dry_run: false,
372
+ # tags: [
373
+ # {
374
+ # key: "String",
375
+ # value: "String",
376
+ # },
377
+ # ],
378
+ # })
379
+ # @param [Hash] options ({})
380
+ # @option options [Boolean] :dry_run
381
+ # Checks whether you have the required permissions for the action,
382
+ # without actually making the request, and provides an error response.
383
+ # If you have the required permissions, the error response is
384
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
385
+ # @option options [Array<Types::Tag>] :tags
386
+ # The tags to delete. Specify a tag key and an optional tag value to
387
+ # delete specific tags. If you specify a tag key without a tag value, we
388
+ # delete any tag with this key regardless of its value. If you specify a
389
+ # tag key with an empty string as the tag value, we delete the tag only
390
+ # if its value is an empty string.
391
+ #
392
+ # If you omit this parameter, we delete all user-defined tags for the
393
+ # specified resources. We do not delete AWS-generated tags (tags that
394
+ # have the `aws:` prefix).
395
+ # @return [Tag::Collection]
396
+ def delete_tags(options = {})
397
+ batch = []
398
+ options = Aws::Util.deep_merge(options, resources: [@id])
399
+ resp = @client.delete_tags(options)
400
+ options[:tags].each do |t|
401
+ batch << Tag.new(
402
+ resource_id: @id,
403
+ key: t[:key],
404
+ value: t[:value],
405
+ client: @client
406
+ )
407
+ end
408
+ Tag::Collection.new([batch], size: batch.size)
409
+ end
410
+
368
411
  # @example Request syntax with placeholder values
369
412
  #
370
413
  # volume.delete({
@@ -510,6 +510,49 @@ module Aws::EC2
510
510
  Tag::Collection.new([batch], size: batch.size)
511
511
  end
512
512
 
513
+ # @example Request syntax with placeholder values
514
+ #
515
+ # tag = vpc.delete_tags({
516
+ # dry_run: false,
517
+ # tags: [
518
+ # {
519
+ # key: "String",
520
+ # value: "String",
521
+ # },
522
+ # ],
523
+ # })
524
+ # @param [Hash] options ({})
525
+ # @option options [Boolean] :dry_run
526
+ # Checks whether you have the required permissions for the action,
527
+ # without actually making the request, and provides an error response.
528
+ # If you have the required permissions, the error response is
529
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
530
+ # @option options [Array<Types::Tag>] :tags
531
+ # The tags to delete. Specify a tag key and an optional tag value to
532
+ # delete specific tags. If you specify a tag key without a tag value, we
533
+ # delete any tag with this key regardless of its value. If you specify a
534
+ # tag key with an empty string as the tag value, we delete the tag only
535
+ # if its value is an empty string.
536
+ #
537
+ # If you omit this parameter, we delete all user-defined tags for the
538
+ # specified resources. We do not delete AWS-generated tags (tags that
539
+ # have the `aws:` prefix).
540
+ # @return [Tag::Collection]
541
+ def delete_tags(options = {})
542
+ batch = []
543
+ options = Aws::Util.deep_merge(options, resources: [@id])
544
+ resp = @client.delete_tags(options)
545
+ options[:tags].each do |t|
546
+ batch << Tag.new(
547
+ resource_id: @id,
548
+ key: t[:key],
549
+ value: t[:value],
550
+ client: @client
551
+ )
552
+ end
553
+ Tag::Collection.new([batch], size: batch.size)
554
+ end
555
+
513
556
  # @example Request syntax with placeholder values
514
557
  #
515
558
  # vpc.delete({
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.141.0
4
+ version: 1.142.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4