convection 2.2.23 → 2.2.24

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: e662d6e48792dd9a7a0ea181e7df3434298aed5d
4
- data.tar.gz: '029532de61278ee217887620c0a3c9ed36e1f17c'
3
+ metadata.gz: 33c5cc1e3e997ce76be5aaaf5439e31c04f585cc
4
+ data.tar.gz: e296791e6887c44c820c10f82cce6b65f68820cb
5
5
  SHA512:
6
- metadata.gz: e93b1fb2eab063235a2265fc2bf624adbc8920a4c6bb0843ec9b99c8ec2fe3a942706ab128e12413270af44c11999c5adf886ad6930ef4245042282a83f001be
7
- data.tar.gz: b0f378d0ec4cfc7974e2b304495e53d014f210da898f49bae3f5e3aa046fad307803a76182af541f63407326d9b4b2dd6cc9656ed96f8d1aedf2cdbd564b0c5d
6
+ metadata.gz: 6a207f938830223d21aa69a2336abd46a264901ccb8cc8c7cf41e95711e8c7538b3f57a05da094dd8ea373b20cdac650d1031d6d4d53d9428fed6f879dae96af
7
+ data.tar.gz: 83f36fffa68589191e7285575f3627efb5e0ac2f50d8b4907d89db2c11fa0b107e0e9c95694c9fa133d0af344611829d1c6812d4d855c93587e006f08a7bc5ba
@@ -0,0 +1,33 @@
1
+ require_relative '../resource'
2
+
3
+ module Convection
4
+ module Model
5
+ class Template
6
+ class Resource
7
+ ##
8
+ # AWS::RDS::DBClusterParameterGroup
9
+ # rds_cluster_parameter_group 'DemoRDSClusterParameterGroup' do
10
+ # description 'Sample Aurora Cluster Parameter Group'
11
+ # family 'aurora5.6'
12
+ # parameter 'time_zone', 'US/Eastern'
13
+ # tag 'Name', 'Test'
14
+ # end
15
+ ##
16
+ class RDSDBClusterParameterGroup < Resource
17
+ include Model::Mixin::Taggable
18
+
19
+ type 'AWS::RDS::DBClusterParameterGroup', :rds_cluster_parameter_group
20
+ property :description, 'Description'
21
+ property :family, 'Family'
22
+ property :parameter, 'Parameters', :type => :hash
23
+
24
+ def render(*args)
25
+ super.tap do |resource|
26
+ render_tags(resource)
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -22,6 +22,7 @@ module Convection
22
22
  property :iops, 'Iops'
23
23
  property :port, 'Port'
24
24
  property :master, 'SourceDBInstanceIdentifier'
25
+ property :db_cluster_identifier, 'DBClusterIdentifier'
25
26
 
26
27
  property :database_name, 'DBName'
27
28
  property :master_username, 'MasterUsername'
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ class Convection::Model::Template::Resource
4
+ describe RDSDBClusterParameterGroup do
5
+ let(:template) do
6
+ Convection.template do
7
+ rds_cluster_parameter_group 'DemoRDSClusterParameterGroup' do
8
+ description 'A sample parameter group'
9
+ family 'aurora5.6'
10
+ parameter 'time_zone', 'US/Eastern'
11
+ tag 'Name', 'Test'
12
+ end
13
+ end
14
+ end
15
+
16
+ subject do
17
+ template_json
18
+ .fetch('Resources')
19
+ .fetch('DemoRDSClusterParameterGroup')
20
+ .fetch('Properties')
21
+ end
22
+
23
+ it 'sets the Description' do
24
+ expect(subject['Description']).to eq('A sample parameter group')
25
+ end
26
+
27
+ it 'has a Family' do
28
+ expect(subject['Family']).to eq('aurora5.6')
29
+ end
30
+
31
+ it 'has Parameters' do
32
+ expect(subject['Parameters']).to eq('time_zone' => 'US/Eastern')
33
+ end
34
+
35
+ it 'sets tags' do
36
+ expect(subject['Tags']).to include(hash_including('Key' => 'Name', 'Value' => 'Test'))
37
+ end
38
+
39
+ private
40
+
41
+ def template_json
42
+ JSON.parse(template.to_json)
43
+ end
44
+ end
45
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.23
4
+ version: 2.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -234,6 +234,7 @@ files:
234
234
  - lib/convection/model/template/resource/aws_logs_loggroup.rb
235
235
  - lib/convection/model/template/resource/aws_logs_subscription_filter.rb
236
236
  - lib/convection/model/template/resource/aws_rds_db_cluster.rb
237
+ - lib/convection/model/template/resource/aws_rds_db_clusterparametergroup.rb
237
238
  - lib/convection/model/template/resource/aws_rds_db_instance.rb
238
239
  - lib/convection/model/template/resource/aws_rds_db_parameter_group.rb
239
240
  - lib/convection/model/template/resource/aws_rds_db_security_group.rb
@@ -337,6 +338,7 @@ files:
337
338
  - spec/convection/model/template/resource/aws_auto_scaling_auto_scaling_group_spec.rb
338
339
  - spec/convection/model/template/resource/aws_efs_file_system_spec.rb
339
340
  - spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
341
+ - spec/convection/model/template/resource/aws_rds_db__clusterparametergroup_spec.rb
340
342
  - spec/convection/model/template/resource/aws_rds_db_cluster_spec.rb
341
343
  - spec/convection/model/template/resource/aws_sns_subscription_spec.rb
342
344
  - spec/convection/model/template/resource/directoryservice_simple_ad_spec.rb
@@ -411,6 +413,7 @@ test_files:
411
413
  - spec/convection/model/template/resource/aws_auto_scaling_auto_scaling_group_spec.rb
412
414
  - spec/convection/model/template/resource/aws_efs_file_system_spec.rb
413
415
  - spec/convection/model/template/resource/aws_efs_mount_target_spec.rb
416
+ - spec/convection/model/template/resource/aws_rds_db__clusterparametergroup_spec.rb
414
417
  - spec/convection/model/template/resource/aws_rds_db_cluster_spec.rb
415
418
  - spec/convection/model/template/resource/aws_sns_subscription_spec.rb
416
419
  - spec/convection/model/template/resource/directoryservice_simple_ad_spec.rb