aws-sdk-ec2 1.140.0 → 1.145.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -134,6 +134,12 @@ module Aws::EC2
134
134
  data[:fast_restored]
135
135
  end
136
136
 
137
+ # Indicates whether Amazon EBS Multi-Attach is enabled.
138
+ # @return [Boolean]
139
+ def multi_attach_enabled
140
+ data[:multi_attach_enabled]
141
+ end
142
+
137
143
  # @!endgroup
138
144
 
139
145
  # @return [Client]
@@ -365,6 +371,49 @@ module Aws::EC2
365
371
  Tag::Collection.new([batch], size: batch.size)
366
372
  end
367
373
 
374
+ # @example Request syntax with placeholder values
375
+ #
376
+ # tag = volume.delete_tags({
377
+ # dry_run: false,
378
+ # tags: [
379
+ # {
380
+ # key: "String",
381
+ # value: "String",
382
+ # },
383
+ # ],
384
+ # })
385
+ # @param [Hash] options ({})
386
+ # @option options [Boolean] :dry_run
387
+ # Checks whether you have the required permissions for the action,
388
+ # without actually making the request, and provides an error response.
389
+ # If you have the required permissions, the error response is
390
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
391
+ # @option options [Array<Types::Tag>] :tags
392
+ # The tags to delete. Specify a tag key and an optional tag value to
393
+ # delete specific tags. If you specify a tag key without a tag value, we
394
+ # delete any tag with this key regardless of its value. If you specify a
395
+ # tag key with an empty string as the tag value, we delete the tag only
396
+ # if its value is an empty string.
397
+ #
398
+ # If you omit this parameter, we delete all user-defined tags for the
399
+ # specified resources. We do not delete AWS-generated tags (tags that
400
+ # have the `aws:` prefix).
401
+ # @return [Tag::Collection]
402
+ def delete_tags(options = {})
403
+ batch = []
404
+ options = Aws::Util.deep_merge(options, resources: [@id])
405
+ resp = @client.delete_tags(options)
406
+ options[:tags].each do |t|
407
+ batch << Tag.new(
408
+ resource_id: @id,
409
+ key: t[:key],
410
+ value: t[:value],
411
+ client: @client
412
+ )
413
+ end
414
+ Tag::Collection.new([batch], size: batch.size)
415
+ end
416
+
368
417
  # @example Request syntax with placeholder values
369
418
  #
370
419
  # volume.delete({
@@ -501,7 +550,8 @@ module Aws::EC2
501
550
  # you use this option, you must perform file system check and repair
502
551
  # procedures.
503
552
  # @option options [String] :instance_id
504
- # The ID of the instance.
553
+ # The ID of the instance. If you are detaching a Multi-Attach enabled
554
+ # volume, you must specify an instance ID.
505
555
  # @option options [Boolean] :dry_run
506
556
  # Checks whether you have the required permissions for the action,
507
557
  # without actually making the request, and provides an error response.
@@ -569,7 +619,7 @@ module Aws::EC2
569
619
  # ],
570
620
  # owner_ids: ["String"],
571
621
  # restorable_by_user_ids: ["String"],
572
- # snapshot_ids: ["String"],
622
+ # snapshot_ids: ["SnapshotId"],
573
623
  # dry_run: false,
574
624
  # })
575
625
  # @param [Hash] options ({})
@@ -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({
@@ -712,7 +755,7 @@ module Aws::EC2
712
755
  # },
713
756
  # ],
714
757
  # dry_run: false,
715
- # vpc_peering_connection_ids: ["String"],
758
+ # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
716
759
  # })
717
760
  # @param [Hash] options ({})
718
761
  # @option options [Array<Types::Filter>] :filters
@@ -808,7 +851,7 @@ module Aws::EC2
808
851
  # values: ["String"],
809
852
  # },
810
853
  # ],
811
- # instance_ids: ["String"],
854
+ # instance_ids: ["InstanceId"],
812
855
  # dry_run: false,
813
856
  # })
814
857
  # @param [Hash] options ({})
@@ -857,6 +900,7 @@ module Aws::EC2
857
900
  # running, if applicable.
858
901
  #
859
902
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
903
+ # The value `xen` is used for both Xen and Nitro hypervisors.
860
904
  #
861
905
  # * `iam-instance-profile.arn` - The instance profile associated with
862
906
  # the instance. Specified as an ARN.
@@ -1129,7 +1173,7 @@ module Aws::EC2
1129
1173
  # },
1130
1174
  # ],
1131
1175
  # dry_run: false,
1132
- # internet_gateway_ids: ["String"],
1176
+ # internet_gateway_ids: ["InternetGatewayId"],
1133
1177
  # })
1134
1178
  # @param [Hash] options ({})
1135
1179
  # @option options [Array<Types::Filter>] :filters
@@ -1197,7 +1241,7 @@ module Aws::EC2
1197
1241
  # },
1198
1242
  # ],
1199
1243
  # dry_run: false,
1200
- # network_acl_ids: ["String"],
1244
+ # network_acl_ids: ["NetworkAclId"],
1201
1245
  # })
1202
1246
  # @param [Hash] options ({})
1203
1247
  # @option options [Array<Types::Filter>] :filters
@@ -1295,7 +1339,7 @@ module Aws::EC2
1295
1339
  # },
1296
1340
  # ],
1297
1341
  # dry_run: false,
1298
- # network_interface_ids: ["String"],
1342
+ # network_interface_ids: ["NetworkInterfaceId"],
1299
1343
  # })
1300
1344
  # @param [Hash] options ({})
1301
1345
  # @option options [Array<Types::Filter>] :filters
@@ -1452,7 +1496,7 @@ module Aws::EC2
1452
1496
  # },
1453
1497
  # ],
1454
1498
  # dry_run: false,
1455
- # vpc_peering_connection_ids: ["String"],
1499
+ # vpc_peering_connection_ids: ["VpcPeeringConnectionId"],
1456
1500
  # })
1457
1501
  # @param [Hash] options ({})
1458
1502
  # @option options [Array<Types::Filter>] :filters
@@ -1537,7 +1581,7 @@ module Aws::EC2
1537
1581
  # },
1538
1582
  # ],
1539
1583
  # dry_run: false,
1540
- # route_table_ids: ["String"],
1584
+ # route_table_ids: ["RouteTableId"],
1541
1585
  # })
1542
1586
  # @param [Hash] options ({})
1543
1587
  # @option options [Array<Types::Filter>] :filters
@@ -1653,7 +1697,7 @@ module Aws::EC2
1653
1697
  # },
1654
1698
  # ],
1655
1699
  # group_ids: ["String"],
1656
- # group_names: ["String"],
1700
+ # group_names: ["SecurityGroupName"],
1657
1701
  # dry_run: false,
1658
1702
  # })
1659
1703
  # @param [Hash] options ({})
@@ -1785,7 +1829,7 @@ module Aws::EC2
1785
1829
  # values: ["String"],
1786
1830
  # },
1787
1831
  # ],
1788
- # subnet_ids: ["String"],
1832
+ # subnet_ids: ["SubnetId"],
1789
1833
  # dry_run: false,
1790
1834
  # })
1791
1835
  # @param [Hash] options ({})
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.140.0
4
+ version: 1.145.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-06 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4