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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b27ecd1fb1430a5c81764e0cc90dbebebb7b91a
4
- data.tar.gz: f9df92c5e755e6979b3a530b4b32b0690410aceb
3
+ metadata.gz: 976c8d2e45a94a6163e43db6d5044b355072b8c9
4
+ data.tar.gz: 7563888241911bf3ea66f5bd1ce2352bdedb6041
5
5
  SHA512:
6
- metadata.gz: 372d99e0321f87a0c40ba614ddeed6af79ded41d43056b895b12819e22209d093621906e6e7ac70fcc132811582fbb74938ca7e431590cd3a88f53a5aa246694
7
- data.tar.gz: 853a13ecbed44fbce881de0da7ac948e39853a1ae246c4ff5db74fa65447cb7acc75a9225925e19f58d1a73ed8addbeaf272673cabfb5acfa73bdd9727084700
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
@@ -1,3 +1,3 @@
1
1
  module Awsrm
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
data/lib/awsrm.rb CHANGED
@@ -5,6 +5,7 @@ require 'awsrm/resources/ec2'
5
5
  require 'awsrm/resources/route_table'
6
6
  require 'awsrm/resources/subnet'
7
7
  require 'awsrm/resources/vpc'
8
+ require 'awsrm/resources/vpn_connection'
8
9
  require 'awsrm/version'
9
10
 
10
11
  module Awsrm
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.1.1
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-06-12 00:00:00.000000000 Z
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