aws-sdk-ec2 1.138.0 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +148 -35
- data/lib/aws-sdk-ec2/client_api.rb +23 -3
- data/lib/aws-sdk-ec2/dhcp_options.rb +43 -0
- data/lib/aws-sdk-ec2/image.rb +72 -0
- data/lib/aws-sdk-ec2/instance.rb +91 -1
- data/lib/aws-sdk-ec2/internet_gateway.rb +43 -0
- data/lib/aws-sdk-ec2/nat_gateway.rb +43 -0
- data/lib/aws-sdk-ec2/network_acl.rb +43 -0
- data/lib/aws-sdk-ec2/network_interface.rb +43 -0
- data/lib/aws-sdk-ec2/resource.rb +63 -11
- data/lib/aws-sdk-ec2/route_table.rb +43 -0
- data/lib/aws-sdk-ec2/security_group.rb +43 -0
- data/lib/aws-sdk-ec2/snapshot.rb +43 -0
- data/lib/aws-sdk-ec2/subnet.rb +43 -0
- data/lib/aws-sdk-ec2/types.rb +241 -39
- data/lib/aws-sdk-ec2/volume.rb +51 -1
- data/lib/aws-sdk-ec2/vpc.rb +43 -0
- metadata +2 -2
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -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.
|
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -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.
|
4
|
+
version: 1.143.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
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|