awsrm 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/resources.md +10 -0
- data/lib/awsrm/resources/vpn_connection.rb +24 -0
- data/lib/awsrm/version.rb +1 -1
- data/lib/awsrm.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 976c8d2e45a94a6163e43db6d5044b355072b8c9
|
4
|
+
data.tar.gz: 7563888241911bf3ea66f5bd1ce2352bdedb6041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a4d35ec37e2a77c6f2bbd9b69e0a2c9df1ac26a9b63fa95c5c6707c0e22a7074d2bce57ec71bfe5ef52ceba4e11a71460074b498b8701c81a8289a56675fee3
|
7
|
+
data.tar.gz: 34d3ded812ff526e952a10cb50eee2dddaa8d5b50ab0bbcce1c979c51d20e9fdacbf17c4ea2d6c77e9b123bed2b7e5dd2df98d289e66a3a47bae442cabdc1cc9
|
data/doc/resources.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
| [RouteTable](#route_table)
|
6
6
|
| [Subnet](#subnet)
|
7
7
|
| [Vpc](#vpc)
|
8
|
+
| [VpnConnection](#vpn_connection)
|
8
9
|
|
9
10
|
## <a name="autoscaling_group">Awsrm::AutoscalingGroup</a>
|
10
11
|
|
@@ -59,3 +60,12 @@
|
|
59
60
|
| name | `tag:Name` |
|
60
61
|
|
61
62
|
|
63
|
+
## <a name="vpn_connection">Awsrm::VpnConnection</a>
|
64
|
+
|
65
|
+
### Filter
|
66
|
+
|
67
|
+
| key | replaced filter |
|
68
|
+
| - | - |
|
69
|
+
| name | `tag:Name` |
|
70
|
+
|
71
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Awsrm
|
2
|
+
class VpnConnection < Awsrm::Resource
|
3
|
+
FILTER_MAP = {
|
4
|
+
name: 'tag:Name'
|
5
|
+
}.freeze
|
6
|
+
|
7
|
+
class << self
|
8
|
+
def all(params)
|
9
|
+
res = ec2_client.describe_vpn_connections(
|
10
|
+
filters: filters(params)
|
11
|
+
)
|
12
|
+
res.vpn_connections.map do |conn|
|
13
|
+
VpnConnectionReader.new(conn)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class VpnConnectionReader < Awsrm::ResourceReader
|
20
|
+
def id
|
21
|
+
@resource.vpn_connection_id
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/awsrm/version.rb
CHANGED
data/lib/awsrm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awsrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k1LoW
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/awsrm/resources/route_table.rb
|
186
186
|
- lib/awsrm/resources/subnet.rb
|
187
187
|
- lib/awsrm/resources/vpc.rb
|
188
|
+
- lib/awsrm/resources/vpn_connection.rb
|
188
189
|
- lib/awsrm/toolbox.rb
|
189
190
|
- lib/awsrm/version.rb
|
190
191
|
homepage: https://github.com/k1LoW/awsrm
|