aws-sdk-ec2 1.82.0 → 1.83.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 +182 -74
- data/lib/aws-sdk-ec2/client_api.rb +20 -0
- data/lib/aws-sdk-ec2/resource.rb +62 -37
- data/lib/aws-sdk-ec2/snapshot.rb +3 -3
- data/lib/aws-sdk-ec2/subnet.rb +36 -15
- data/lib/aws-sdk-ec2/types.rb +231 -107
- data/lib/aws-sdk-ec2/vpc.rb +13 -11
- metadata +2 -2
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -672,10 +672,10 @@ module Aws::EC2
|
|
672
672
|
# The ID of the VPC with which you are creating the VPC peering
|
673
673
|
# connection. You must specify this parameter in the request.
|
674
674
|
# @option options [String] :peer_region
|
675
|
-
# The
|
676
|
-
# in a
|
675
|
+
# The Region code for the accepter VPC, if the accepter VPC is located
|
676
|
+
# in a Region other than the Region in which you make the request.
|
677
677
|
#
|
678
|
-
# Default: The
|
678
|
+
# Default: The Region in which you make the request.
|
679
679
|
# @return [VpcPeeringConnection]
|
680
680
|
def request_vpc_peering_connection(options = {})
|
681
681
|
options = options.merge(vpc_id: @id)
|
@@ -1826,20 +1826,22 @@ module Aws::EC2
|
|
1826
1826
|
# @return [Subnet::Collection]
|
1827
1827
|
def subnets(options = {})
|
1828
1828
|
batches = Enumerator.new do |y|
|
1829
|
-
batch = []
|
1830
1829
|
options = Aws::Util.deep_merge(options, filters: [{
|
1831
1830
|
name: "vpc-id",
|
1832
1831
|
values: [@id]
|
1833
1832
|
}])
|
1834
1833
|
resp = @client.describe_subnets(options)
|
1835
|
-
resp.
|
1836
|
-
batch
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1834
|
+
resp.each_page do |page|
|
1835
|
+
batch = []
|
1836
|
+
page.data.subnets.each do |s|
|
1837
|
+
batch << Subnet.new(
|
1838
|
+
id: s.subnet_id,
|
1839
|
+
data: s,
|
1840
|
+
client: @client
|
1841
|
+
)
|
1842
|
+
end
|
1843
|
+
y.yield(batch)
|
1841
1844
|
end
|
1842
|
-
y.yield(batch)
|
1843
1845
|
end
|
1844
1846
|
Subnet::Collection.new(batches)
|
1845
1847
|
end
|
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.83.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: 2019-05-
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|