awspec 0.25.3 → 0.26.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/awspec.gemspec +1 -0
- data/doc/_resource_types/s3_bucket.md +10 -0
- data/doc/resource_types.md +32 -21
- data/lib/awspec.rb +1 -0
- data/lib/awspec/generator/doc/type/autoscaling_group.rb +1 -1
- data/lib/awspec/generator/doc/type/base.rb +5 -2
- data/lib/awspec/generator/doc/type/cloudwatch_alarm.rb +1 -1
- data/lib/awspec/generator/doc/type/directconnect_virtual_interface.rb +1 -1
- data/lib/awspec/generator/doc/type/ebs.rb +1 -1
- data/lib/awspec/generator/doc/type/ec2.rb +1 -1
- data/lib/awspec/generator/doc/type/elasticache.rb +1 -1
- data/lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb +1 -1
- data/lib/awspec/generator/doc/type/elb.rb +1 -1
- data/lib/awspec/generator/doc/type/iam_group.rb +1 -1
- data/lib/awspec/generator/doc/type/iam_policy.rb +1 -1
- data/lib/awspec/generator/doc/type/iam_role.rb +1 -1
- data/lib/awspec/generator/doc/type/iam_user.rb +1 -1
- data/lib/awspec/generator/doc/type/lambda.rb +1 -1
- data/lib/awspec/generator/doc/type/network_acl.rb +1 -1
- data/lib/awspec/generator/doc/type/rds.rb +1 -1
- data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +1 -1
- data/lib/awspec/generator/doc/type/route_table.rb +1 -1
- data/lib/awspec/generator/doc/type/s3_bucket.rb +1 -1
- data/lib/awspec/generator/doc/type/security_group.rb +1 -1
- data/lib/awspec/generator/doc/type/ses_identity.rb +1 -1
- data/lib/awspec/generator/doc/type/subnet.rb +1 -1
- data/lib/awspec/generator/doc/type/vpc.rb +1 -1
- data/lib/awspec/generator/template.rb +1 -1
- data/lib/awspec/matcher/be_allowed.rb +2 -2
- data/lib/awspec/matcher/be_allowed_action.rb +2 -2
- data/lib/awspec/matcher/be_denied.rb +2 -2
- data/lib/awspec/matcher/belong_to_cache_subnet_group.rb +2 -2
- data/lib/awspec/matcher/belong_to_db_subnet_group.rb +2 -2
- data/lib/awspec/matcher/belong_to_iam_group.rb +2 -2
- data/lib/awspec/matcher/belong_to_metric.rb +3 -3
- data/lib/awspec/matcher/belong_to_replication_group.rb +2 -2
- data/lib/awspec/matcher/belong_to_subnet.rb +12 -12
- data/lib/awspec/matcher/belong_to_vpc.rb +4 -4
- data/lib/awspec/resource_reader.rb +48 -0
- data/lib/awspec/type/autoscaling_group.rb +4 -4
- data/lib/awspec/type/base.rb +8 -4
- data/lib/awspec/type/cloudwatch_alarm.rb +5 -5
- data/lib/awspec/type/directconnect_virtual_interface.rb +3 -3
- data/lib/awspec/type/ebs.rb +6 -6
- data/lib/awspec/type/ec2.rb +5 -5
- data/lib/awspec/type/elasticache.rb +5 -5
- data/lib/awspec/type/elasticache_cache_parameter_group.rb +1 -1
- data/lib/awspec/type/elb.rb +7 -7
- data/lib/awspec/type/iam_group.rb +3 -3
- data/lib/awspec/type/iam_policy.rb +3 -3
- data/lib/awspec/type/iam_role.rb +3 -3
- data/lib/awspec/type/iam_user.rb +3 -3
- data/lib/awspec/type/lambda.rb +3 -3
- data/lib/awspec/type/network_acl.rb +6 -6
- data/lib/awspec/type/rds.rb +10 -10
- data/lib/awspec/type/rds_db_parameter_group.rb +1 -1
- data/lib/awspec/type/route53_hosted_zone.rb +4 -4
- data/lib/awspec/type/route_table.rb +4 -4
- data/lib/awspec/type/s3_bucket.rb +6 -2
- data/lib/awspec/type/security_group.rb +8 -8
- data/lib/awspec/type/ses_identity.rb +2 -2
- data/lib/awspec/type/subnet.rb +3 -3
- data/lib/awspec/type/vpc.rb +3 -3
- data/lib/awspec/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d1046d787b8957220ed223913e1e700a315b15
|
4
|
+
data.tar.gz: 8ee3e74a2cf0acc44d334d21a04d5d9cd2f7fcb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e9b4bd2a5d147a2d969c934557de0858232806e124fbe5924cbf05015cd39c1e0931c96ef404cc864c2671247a8736b8125f20325a516c7a946df5795abf0b
|
7
|
+
data.tar.gz: 28545f2508caf4cbdcdb3d8c51d21a16ccf46552ba7442511bbd6de79fd2ee3c6aa1870a1c2b27bf492575a867d803e1613c53f88b193acc9c6b702f6f43d9d2
|
data/awspec.gemspec
CHANGED
@@ -69,3 +69,13 @@ describe s3_bucket('my-bucket') do
|
|
69
69
|
it { should have_object('path/to/object') }
|
70
70
|
end
|
71
71
|
```
|
72
|
+
|
73
|
+
### advanced
|
74
|
+
|
75
|
+
`s3_bucket` can use `Aws::S3::Bucket` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Bucket.html).
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
describe s3_bucket('my-bucket') do
|
79
|
+
its('acl.owner.display_name') { should eq 'my-bucket-owner' }
|
80
|
+
end
|
81
|
+
```
|
data/doc/resource_types.md
CHANGED
@@ -103,7 +103,7 @@ describe ec2('my-ec2') do
|
|
103
103
|
end
|
104
104
|
```
|
105
105
|
|
106
|
-
|
106
|
+
### its(:instance_id), its(:image_id), its(:private_dns_name), its(:public_dns_name), its(:state_transition_reason), its(:key_name), its(:ami_launch_index), its(:instance_type), its(:launch_time), its(:placement), its(:kernel_id), its(:ramdisk_id), its(:platform), its(:monitoring), its(:subnet_id), its(:vpc_id), its(:private_ip_address), its(:public_ip_address), its(:state_reason), its(:architecture), its(:root_device_type), its(:root_device_name), its(:virtualization_type), its(:instance_lifecycle), its(:spot_instance_request_id), its(:client_token), its(:source_dest_check), its(:hypervisor), its(:iam_instance_profile), its(:ebs_optimized), its(:sriov_net_support)
|
107
107
|
## <a name="rds">rds</a>
|
108
108
|
|
109
109
|
RDS resource type.
|
@@ -182,7 +182,7 @@ describe rds('my-rds') do
|
|
182
182
|
end
|
183
183
|
```
|
184
184
|
|
185
|
-
|
185
|
+
### its(:vpc_id), its(:db_instance_identifier), its(:db_instance_class), its(:engine), its(:db_instance_status), its(:master_username), its(:db_name), its(:endpoint), its(:allocated_storage), its(:instance_create_time), its(:preferred_backup_window), its(:backup_retention_period), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:latest_restorable_time), its(:multi_az), its(:engine_version), its(:auto_minor_version_upgrade), its(:read_replica_source_db_instance_identifier), its(:license_model), its(:iops), its(:character_set_name), its(:secondary_availability_zone), its(:publicly_accessible), its(:storage_type), its(:tde_credential_arn), its(:db_instance_port), its(:db_cluster_identifier), its(:storage_encrypted), its(:kms_key_id), its(:dbi_resource_id), its(:ca_certificate_identifier), its(:copy_tags_to_snapshot)
|
186
186
|
## <a name="rds_db_parameter_group">rds_db_parameter_group</a>
|
187
187
|
|
188
188
|
RdsDbParameterGroup resource type.
|
@@ -227,7 +227,7 @@ describe security_group('my-security-group-name') do
|
|
227
227
|
end
|
228
228
|
```
|
229
229
|
|
230
|
-
|
230
|
+
### its(:inbound_rule_count), its(:outbound_rule_count), its(:inbound_permissions_count), its(:outbound_permissions_count), its(:owner_id), its(:group_name), its(:group_id), its(:description), its(:vpc_id)
|
231
231
|
## <a name="vpc">vpc</a>
|
232
232
|
|
233
233
|
VPC resource type.
|
@@ -269,7 +269,7 @@ describe vpc('vpc-ab123cde') do
|
|
269
269
|
end
|
270
270
|
```
|
271
271
|
|
272
|
-
|
272
|
+
### its(:vpc_id), its(:state), its(:cidr_block), its(:dhcp_options_id), its(:instance_tenancy), its(:is_default)
|
273
273
|
## <a name="s3_bucket">s3_bucket</a>
|
274
274
|
|
275
275
|
S3Bucket resource type.
|
@@ -327,6 +327,7 @@ describe s3_bucket('my-bucket') do
|
|
327
327
|
end
|
328
328
|
```
|
329
329
|
|
330
|
+
|
330
331
|
### have_policy
|
331
332
|
|
332
333
|
```ruby
|
@@ -350,7 +351,17 @@ end
|
|
350
351
|
```
|
351
352
|
|
352
353
|
|
353
|
-
|
354
|
+
### its(:acl_grants_count), its(:acl_owner), its(:cors_rules_count), its(:name), its(:creation_date)
|
355
|
+
### :unlock: Advanced use
|
356
|
+
|
357
|
+
`s3_bucket` can use `Aws::S3::Bucket` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Bucket.html).
|
358
|
+
|
359
|
+
```ruby
|
360
|
+
describe s3_bucket('my-bucket') do
|
361
|
+
its('acl.owner.display_name') { should eq 'my-bucket-owner' }
|
362
|
+
end
|
363
|
+
```
|
364
|
+
|
354
365
|
## <a name="route53_hosted_zone">route53_hosted_zone</a>
|
355
366
|
|
356
367
|
Route53HostedZone resource type.
|
@@ -382,7 +393,7 @@ ns-890.awsdns-12.com.'
|
|
382
393
|
end
|
383
394
|
```
|
384
395
|
|
385
|
-
|
396
|
+
### its(:id), its(:name), its(:caller_reference), its(:config), its(:resource_record_set_count)
|
386
397
|
## <a name="autoscaling_group">autoscaling_group</a>
|
387
398
|
|
388
399
|
AutoscalingGroup resource type.
|
@@ -413,7 +424,7 @@ describe autoscaling_group('my-auto-scaling-group') do
|
|
413
424
|
end
|
414
425
|
```
|
415
426
|
|
416
|
-
|
427
|
+
### its(:auto_scaling_group_name), its(:auto_scaling_group_arn), its(:launch_configuration_name), its(:min_size), its(:max_size), its(:desired_capacity), its(:default_cooldown), its(:health_check_type), its(:health_check_grace_period), its(:created_time), its(:placement_group), its(:vpc_zone_identifier), its(:status), its(:new_instances_protected_from_scale_in)
|
417
428
|
## <a name="subnet">subnet</a>
|
418
429
|
|
419
430
|
Subnet resource type.
|
@@ -435,7 +446,7 @@ describe subnet('my-subnet') do
|
|
435
446
|
end
|
436
447
|
```
|
437
448
|
|
438
|
-
|
449
|
+
### its(:subnet_id), its(:state), its(:vpc_id), its(:cidr_block), its(:available_ip_address_count), its(:availability_zone), its(:default_for_az), its(:map_public_ip_on_launch)
|
439
450
|
## <a name="route_table">route_table</a>
|
440
451
|
|
441
452
|
RouteTable resource type.
|
@@ -469,7 +480,7 @@ describe route_table('my-route-table') do
|
|
469
480
|
end
|
470
481
|
```
|
471
482
|
|
472
|
-
|
483
|
+
### its(:route_table_id), its(:vpc_id)
|
473
484
|
## <a name="ebs">ebs</a>
|
474
485
|
|
475
486
|
EBS resource type.
|
@@ -500,7 +511,7 @@ describe ebs('my-volume') do
|
|
500
511
|
end
|
501
512
|
```
|
502
513
|
|
503
|
-
|
514
|
+
### its(:volume_id), its(:size), its(:snapshot_id), its(:availability_zone), its(:state), its(:create_time), its(:volume_type), its(:iops), its(:encrypted), its(:kms_key_id)
|
504
515
|
## <a name="elb">elb</a>
|
505
516
|
|
506
517
|
ELB resource type.
|
@@ -560,7 +571,7 @@ describe elb('my-elb') do
|
|
560
571
|
end
|
561
572
|
```
|
562
573
|
|
563
|
-
|
574
|
+
### its(:health_check_target), its(:health_check_interval), its(:health_check_timeout), its(:health_check_unhealthy_threshold), its(:health_check_healthy_threshold), its(:load_balancer_name), its(:dns_name), its(:canonical_hosted_zone_name), its(:canonical_hosted_zone_name_id), its(:vpc_id), its(:created_time), its(:scheme)
|
564
575
|
## <a name="lambda">lambda</a>
|
565
576
|
|
566
577
|
Lambda resource type.
|
@@ -578,7 +589,7 @@ end
|
|
578
589
|
|
579
590
|
This matcher does not support Amazon S3 event sources. ( [See SDK doc](http://docs.aws.amazon.com/sdkforruby/api/Aws/Lambda/Client.html#list_event_source_mappings-instance_method) )
|
580
591
|
|
581
|
-
|
592
|
+
### its(:function_name), its(:function_arn), its(:runtime), its(:role), its(:handler), its(:code_size), its(:description), its(:timeout), its(:memory_size), its(:last_modified), its(:code_sha_256), its(:version)
|
582
593
|
## <a name="iam_user">iam_user</a>
|
583
594
|
|
584
595
|
IamUser resource type.
|
@@ -619,7 +630,7 @@ describe iam_user('my-iam-user') do
|
|
619
630
|
end
|
620
631
|
```
|
621
632
|
|
622
|
-
|
633
|
+
### its(:path), its(:user_name), its(:user_id), its(:arn), its(:create_date), its(:password_last_used)
|
623
634
|
## <a name="iam_group">iam_group</a>
|
624
635
|
|
625
636
|
IamGroup resource type.
|
@@ -660,7 +671,7 @@ describe iam_group('my-iam-group') do
|
|
660
671
|
end
|
661
672
|
```
|
662
673
|
|
663
|
-
|
674
|
+
### its(:path), its(:group_name), its(:group_id), its(:arn), its(:create_date)
|
664
675
|
## <a name="iam_role">iam_role</a>
|
665
676
|
|
666
677
|
IamRole resource type.
|
@@ -692,7 +703,7 @@ describe iam_role('my-iam-role') do
|
|
692
703
|
end
|
693
704
|
```
|
694
705
|
|
695
|
-
|
706
|
+
### its(:path), its(:role_name), its(:role_id), its(:arn), its(:create_date), its(:assume_role_policy_document)
|
696
707
|
## <a name="iam_policy">iam_policy</a>
|
697
708
|
|
698
709
|
IamPolicy resource type.
|
@@ -741,7 +752,7 @@ describe iam_policy('my-iam-policy') do
|
|
741
752
|
end
|
742
753
|
```
|
743
754
|
|
744
|
-
|
755
|
+
### its(:policy_name), its(:policy_id), its(:arn), its(:path), its(:default_version_id), its(:attachment_count), its(:is_attachable), its(:description), its(:create_date), its(:update_date)
|
745
756
|
## <a name="elasticache">elasticache</a>
|
746
757
|
|
747
758
|
Elasticache resource type.
|
@@ -799,7 +810,7 @@ describe elasticache('my-rep-group-001') do
|
|
799
810
|
end
|
800
811
|
```
|
801
812
|
|
802
|
-
|
813
|
+
### its(:cache_cluster_id), its(:configuration_endpoint), its(:client_download_landing_page), its(:cache_node_type), its(:engine), its(:engine_version), its(:cache_cluster_status), its(:num_cache_nodes), its(:preferred_availability_zone), its(:cache_cluster_create_time), its(:preferred_maintenance_window), its(:notification_configuration), its(:cache_subnet_group_name), its(:auto_minor_version_upgrade), its(:replication_group_id), its(:snapshot_retention_limit), its(:snapshot_window)
|
803
814
|
## <a name="elasticache_cache_parameter_group">elasticache_cache_parameter_group</a>
|
804
815
|
|
805
816
|
ElasticacheCacheParameterGroup resource type.
|
@@ -870,7 +881,7 @@ describe cloudwatch_alarm('my-cloudwatch-alarm') do
|
|
870
881
|
end
|
871
882
|
```
|
872
883
|
|
873
|
-
|
884
|
+
### its(:alarm_name), its(:alarm_arn), its(:alarm_description), its(:alarm_configuration_updated_timestamp), its(:actions_enabled), its(:state_value), its(:state_reason), its(:state_reason_data), its(:state_updated_timestamp), its(:metric_name), its(:namespace), its(:statistic), its(:period), its(:unit), its(:evaluation_periods), its(:threshold), its(:comparison_operator)
|
874
885
|
## <a name="ses_identity">ses_identity</a>
|
875
886
|
|
876
887
|
SesIdentity resource type.
|
@@ -895,7 +906,7 @@ describe ses_identity('example.com') do
|
|
895
906
|
end
|
896
907
|
```
|
897
908
|
|
898
|
-
|
909
|
+
### its(:dkim_enabled), its(:dkim_verification_status), its(:bounce_topic), its(:complaint_topic), its(:delivery_topic), its(:forwarding_enabled), its(:verification_status), its(:verification_token)
|
899
910
|
## <a name="network_acl">network_acl</a>
|
900
911
|
|
901
912
|
NetworkAcl resource type.
|
@@ -939,7 +950,7 @@ describe network_acl('my-network-acl') do
|
|
939
950
|
end
|
940
951
|
```
|
941
952
|
|
942
|
-
|
953
|
+
### its(:inbound_entries_count), its(:outbound_entries_count), its(:network_acl_id), its(:vpc_id), its(:is_default)
|
943
954
|
## <a name="directconnect_virtual_interface">directconnect_virtual_interface</a>
|
944
955
|
|
945
956
|
DirectconnectVirtualInterface resource type.
|
@@ -975,4 +986,4 @@ describe directconnect_virtual_interface('my-directconnect-virtual-interface') d
|
|
975
986
|
end
|
976
987
|
```
|
977
988
|
|
978
|
-
|
989
|
+
### its(:owner_account), its(:virtual_interface_id), its(:location), its(:connection_id), its(:virtual_interface_type), its(:virtual_interface_name), its(:vlan), its(:asn), its(:auth_key), its(:amazon_address), its(:customer_address), its(:virtual_interface_state), its(:customer_router_config), its(:virtual_gateway_id)
|
data/lib/awspec.rb
CHANGED
@@ -64,8 +64,11 @@ module Awspec::Generator
|
|
64
64
|
### <%= matcher %>
|
65
65
|
<%- if @descriptions.include?(matcher) -%><%= @descriptions[matcher] %><%- end -%>
|
66
66
|
<% end %>
|
67
|
-
<%- unless its.empty?
|
68
|
-
<%- if @descriptions.include?('
|
67
|
+
<%- unless its.empty? -%>### <%= its.join(', ') %><%- end -%>
|
68
|
+
<%- if @descriptions.include?('advanced') -%>
|
69
|
+
|
70
|
+
### :unlock: Advanced use
|
71
|
+
<%= @descriptions['advanced'] %><%- end -%>
|
69
72
|
|
70
73
|
EOF
|
71
74
|
template
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'CloudwatchAlarm'
|
8
8
|
@type = Awspec::Type::CloudwatchAlarm.new('my-cloudwatch-alarm')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = %w(belong_to_metric)
|
11
11
|
@ignore_matchers = []
|
12
12
|
@describes = []
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'DirectconnectVirtualInterface'
|
8
8
|
@type = Awspec::Type::DirectconnectVirtualInterface.new('my-directconnect-virtual-interface')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = [
|
11
11
|
Awspec::Type::DirectconnectVirtualInterface::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', ')
|
12
12
|
]
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'EC2'
|
8
8
|
@type = Awspec::Type::Ec2.new('my-ec2')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = [
|
11
11
|
Awspec::Type::Ec2::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', '),
|
12
12
|
'belong_to_vpc',
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'Elasticache'
|
8
8
|
@type = Awspec::Type::Elasticache.new('my-rep-group-001')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = [
|
11
11
|
Awspec::Type::Elasticache::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', '),
|
12
12
|
'belong_to_vpc',
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'ElasticacheCacheParameterGroup'
|
8
8
|
@type = Awspec::Type::ElasticacheCacheParameterGroup.new('my-cache-parameter-group')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = []
|
11
11
|
@ignore_matchers = []
|
12
12
|
@describes = []
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'IamUser'
|
8
8
|
@type = Awspec::Type::IamUser.new('my-iam-user')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = %w(belong_to_iam_group be_allowed_action)
|
11
11
|
@ignore_matchers = []
|
12
12
|
@describes = []
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'NetworkAcl'
|
8
8
|
@type = Awspec::Type::NetworkAcl.new('my-network-acl')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = [
|
11
11
|
'belong_to_vpc',
|
12
12
|
'its(:inbound), its(:outbound), its(:inbound_entries_count), its(:outbound_entries_count)'
|
@@ -6,7 +6,7 @@ module Awspec::Generator
|
|
6
6
|
super
|
7
7
|
@type_name = 'RDS'
|
8
8
|
@type = Awspec::Type::Rds.new('my-rds')
|
9
|
-
@ret = @type.
|
9
|
+
@ret = @type.resource_via_client
|
10
10
|
@matchers = [
|
11
11
|
Awspec::Type::Rds::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', '),
|
12
12
|
'belong_to_vpc',
|
@@ -5,7 +5,7 @@ module Awspec::Generator
|
|
5
5
|
def initialize
|
6
6
|
super
|
7
7
|
@type = Awspec::Type::SecurityGroup.new('my-security-group-name')
|
8
|
-
@ret = @type.
|
8
|
+
@ret = @type.resource_via_client
|
9
9
|
@matchers = ['its(:inbound), its(:outbound)']
|
10
10
|
@ignore_matchers = %w(be_opened be_inbound_opened be_outbound_opened)
|
11
11
|
@describes = %w(inbound_rule_count outbound_rule_count inbound_permissions_count outbound_permissions_count)
|