aws-sdk-ec2 1.45.0 → 1.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +95 -69
- data/lib/aws-sdk-ec2/client_api.rb +11 -2
- data/lib/aws-sdk-ec2/instance.rb +2 -2
- data/lib/aws-sdk-ec2/resource.rb +20 -20
- data/lib/aws-sdk-ec2/snapshot.rb +6 -6
- data/lib/aws-sdk-ec2/subnet.rb +17 -14
- data/lib/aws-sdk-ec2/types.rb +132 -370
- data/lib/aws-sdk-ec2/vpc.rb +11 -12
- metadata +2 -2
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -1170,9 +1170,6 @@ module Aws::EC2
|
|
1170
1170
|
#
|
1171
1171
|
# * `entry.cidr` - The IPv4 CIDR range specified in the entry.
|
1172
1172
|
#
|
1173
|
-
# * `entry.egress` - Indicates whether the entry applies to egress
|
1174
|
-
# traffic.
|
1175
|
-
#
|
1176
1173
|
# * `entry.icmp.code` - The ICMP code specified in the entry, if any.
|
1177
1174
|
#
|
1178
1175
|
# * `entry.icmp.type` - The ICMP type specified in the entry, if any.
|
@@ -1192,7 +1189,7 @@ module Aws::EC2
|
|
1192
1189
|
# \| `deny`).
|
1193
1190
|
#
|
1194
1191
|
# * `entry.rule-number` - The number of an entry (in other words, rule)
|
1195
|
-
# in the
|
1192
|
+
# in the set of ACL entries.
|
1196
1193
|
#
|
1197
1194
|
# * `network-acl-id` - The ID of the network ACL.
|
1198
1195
|
#
|
@@ -1374,20 +1371,22 @@ module Aws::EC2
|
|
1374
1371
|
# @return [NetworkInterface::Collection]
|
1375
1372
|
def network_interfaces(options = {})
|
1376
1373
|
batches = Enumerator.new do |y|
|
1377
|
-
batch = []
|
1378
1374
|
options = Aws::Util.deep_merge(options, filters: [{
|
1379
1375
|
name: "vpc-id",
|
1380
1376
|
values: [@id]
|
1381
1377
|
}])
|
1382
1378
|
resp = @client.describe_network_interfaces(options)
|
1383
|
-
resp.
|
1384
|
-
batch
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1379
|
+
resp.each_page do |page|
|
1380
|
+
batch = []
|
1381
|
+
page.data.network_interfaces.each do |n|
|
1382
|
+
batch << NetworkInterface.new(
|
1383
|
+
id: n.network_interface_id,
|
1384
|
+
data: n,
|
1385
|
+
client: @client
|
1386
|
+
)
|
1387
|
+
end
|
1388
|
+
y.yield(batch)
|
1389
1389
|
end
|
1390
|
-
y.yield(batch)
|
1391
1390
|
end
|
1392
1391
|
NetworkInterface::Collection.new(batches)
|
1393
1392
|
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.46.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: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|