awspec 0.69.1 → 0.70.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/.rubocop.yml +13 -1
- data/.travis.yml +1 -0
- data/Rakefile +10 -1
- data/awspec.gemspec +3 -3
- data/doc/_resource_types/cloudwatch_logs.md +40 -0
- data/doc/_resource_types/ec2_account_attributes.md +8 -0
- data/doc/_resource_types/lambda_account_settings.md +10 -0
- data/doc/_resource_types/rds_account_attributes.md +8 -0
- data/doc/_resource_types/ses_send_quota.md +9 -0
- data/doc/contributing.md +10 -0
- data/doc/resource_types.md +262 -27
- data/lib/awspec/error.rb +2 -0
- data/lib/awspec/ext.rb +1 -0
- data/lib/awspec/ext/hash.rb +10 -0
- data/lib/awspec/generator.rb +6 -0
- data/lib/awspec/generator/doc/type.rb +35 -1
- data/lib/awspec/generator/doc/type/account.rb +71 -0
- data/lib/awspec/generator/doc/type/account_attribute.rb +69 -0
- data/lib/awspec/generator/doc/type/account_attribute_base.rb +32 -0
- data/lib/awspec/generator/doc/type/base.rb +10 -3
- data/lib/awspec/generator/doc/type/cloudwatch_logs.rb +17 -0
- data/lib/awspec/generator/doc/type/ec2_account_attributes.rb +17 -0
- data/lib/awspec/generator/doc/type/lambda_account_settings.rb +17 -0
- data/lib/awspec/generator/doc/type/rds_account_attributes.rb +17 -0
- data/lib/awspec/generator/doc/type/ses_send_quota.rb +17 -0
- data/lib/awspec/generator/template.rb +38 -1
- data/lib/awspec/helper/finder.rb +8 -1
- data/lib/awspec/helper/finder/account_attributes.rb +61 -0
- data/lib/awspec/helper/finder/cloudwatch_logs.rb +35 -0
- data/lib/awspec/helper/type.rb +31 -0
- data/lib/awspec/matcher.rb +3 -0
- data/lib/awspec/matcher/have_subscription_filter.rb +9 -0
- data/lib/awspec/shared_context.rb +8 -0
- data/lib/awspec/stub/account.rb +146 -0
- data/lib/awspec/stub/cloudwatch_logs.rb +34 -0
- data/lib/awspec/stub/ecs.rb +9 -9
- data/lib/awspec/stub/ecs_cluster.rb +9 -9
- data/lib/awspec/stub/ecs_container_instance.rb +9 -9
- data/lib/awspec/toolbox.rb +6 -1
- data/lib/awspec/type/account.rb +35 -0
- data/lib/awspec/type/account_attribute.rb +28 -0
- data/lib/awspec/type/account_attribute_base.rb +4 -0
- data/lib/awspec/type/acm.rb +1 -1
- data/lib/awspec/type/alb.rb +1 -1
- data/lib/awspec/type/ami.rb +1 -1
- data/lib/awspec/type/autoscaling_group.rb +3 -2
- data/lib/awspec/type/base.rb +6 -25
- data/lib/awspec/type/cloudfront_distribution.rb +1 -1
- data/lib/awspec/type/cloudtrail.rb +1 -1
- data/lib/awspec/type/cloudwatch_alarm.rb +1 -1
- data/lib/awspec/type/cloudwatch_event.rb +1 -1
- data/lib/awspec/type/cloudwatch_logs.rb +27 -0
- data/lib/awspec/type/customer_gateway.rb +1 -1
- data/lib/awspec/type/directconnect_virtual_interface.rb +1 -1
- data/lib/awspec/type/ebs.rb +1 -1
- data/lib/awspec/type/ec2.rb +1 -1
- data/lib/awspec/type/ec2_account_attributes.rb +7 -0
- data/lib/awspec/type/ecr_repository.rb +1 -1
- data/lib/awspec/type/ecs_cluster.rb +1 -1
- data/lib/awspec/type/ecs_container_instance.rb +1 -1
- data/lib/awspec/type/ecs_service.rb +1 -1
- data/lib/awspec/type/ecs_task_definition.rb +1 -1
- data/lib/awspec/type/efs.rb +1 -1
- data/lib/awspec/type/elasticache.rb +1 -1
- data/lib/awspec/type/elasticache_cache_parameter_group.rb +1 -1
- data/lib/awspec/type/elasticsearch.rb +1 -1
- data/lib/awspec/type/elastictranscoder_pipeline.rb +1 -1
- data/lib/awspec/type/elb.rb +3 -2
- data/lib/awspec/type/iam_group.rb +1 -1
- data/lib/awspec/type/iam_policy.rb +1 -1
- data/lib/awspec/type/iam_role.rb +1 -1
- data/lib/awspec/type/iam_user.rb +1 -1
- data/lib/awspec/type/internet_gateway.rb +1 -1
- data/lib/awspec/type/kms.rb +1 -1
- data/lib/awspec/type/lambda.rb +1 -1
- data/lib/awspec/type/lambda_account_settings.rb +7 -0
- data/lib/awspec/type/launch_configuration.rb +1 -1
- data/lib/awspec/type/nat_gateway.rb +1 -1
- data/lib/awspec/type/network_acl.rb +1 -1
- data/lib/awspec/type/network_interface.rb +1 -1
- data/lib/awspec/type/rds.rb +1 -1
- data/lib/awspec/type/rds_account_attributes.rb +7 -0
- data/lib/awspec/type/rds_db_cluster_parameter_group.rb +1 -1
- data/lib/awspec/type/rds_db_parameter_group.rb +1 -1
- data/lib/awspec/type/resource_base.rb +24 -0
- data/lib/awspec/type/route53_hosted_zone.rb +1 -1
- data/lib/awspec/type/route_table.rb +1 -1
- data/lib/awspec/type/s3_bucket.rb +1 -1
- data/lib/awspec/type/security_group.rb +1 -1
- data/lib/awspec/type/ses_identity.rb +1 -1
- data/lib/awspec/type/ses_send_quota.rb +7 -0
- data/lib/awspec/type/subnet.rb +1 -1
- data/lib/awspec/type/vpc.rb +1 -1
- data/lib/awspec/type/vpn_connection.rb +1 -1
- data/lib/awspec/type/vpn_gateway.rb +1 -1
- data/lib/awspec/type/waf_web_acl.rb +1 -1
- data/lib/awspec/version.rb +1 -1
- metadata +36 -8
data/lib/awspec/type/kms.rb
CHANGED
data/lib/awspec/type/lambda.rb
CHANGED
data/lib/awspec/type/rds.rb
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Awspec::Type
|
|
2
|
+
class ResourceBase < Base
|
|
3
|
+
attr_reader :id, :resource_via_client
|
|
4
|
+
|
|
5
|
+
def initialize(display_name = nil)
|
|
6
|
+
@display_name = display_name
|
|
7
|
+
@id = nil
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def exists?
|
|
11
|
+
id
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def id
|
|
15
|
+
raise 'this method must be override!'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def self.aws_resource(resource)
|
|
19
|
+
define_method :resource do
|
|
20
|
+
@resource ||= Awspec::ResourceReader.new(resource.new(id))
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/lib/awspec/type/subnet.rb
CHANGED
data/lib/awspec/type/vpc.rb
CHANGED
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.70.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-03-
|
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -47,7 +47,7 @@ dependencies:
|
|
|
47
47
|
version: '2.2'
|
|
48
48
|
- - "<"
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: '2.
|
|
50
|
+
version: '2.9'
|
|
51
51
|
type: :runtime
|
|
52
52
|
prerelease: false
|
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -57,7 +57,7 @@ dependencies:
|
|
|
57
57
|
version: '2.2'
|
|
58
58
|
- - "<"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '2.
|
|
60
|
+
version: '2.9'
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: awsecrets
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -134,28 +134,28 @@ dependencies:
|
|
|
134
134
|
requirements:
|
|
135
135
|
- - "~>"
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '
|
|
137
|
+
version: '12.0'
|
|
138
138
|
type: :development
|
|
139
139
|
prerelease: false
|
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
|
142
142
|
- - "~>"
|
|
143
143
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
144
|
+
version: '12.0'
|
|
145
145
|
- !ruby/object:Gem::Dependency
|
|
146
146
|
name: rubocop
|
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
|
148
148
|
requirements:
|
|
149
149
|
- - "~>"
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version: 0.
|
|
151
|
+
version: 0.47.0
|
|
152
152
|
type: :development
|
|
153
153
|
prerelease: false
|
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements:
|
|
156
156
|
- - "~>"
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: 0.
|
|
158
|
+
version: 0.47.0
|
|
159
159
|
- !ruby/object:Gem::Dependency
|
|
160
160
|
name: octorelease
|
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -213,10 +213,12 @@ files:
|
|
|
213
213
|
- doc/_resource_types/cloudfront_distribution.md
|
|
214
214
|
- doc/_resource_types/cloudtrail.md
|
|
215
215
|
- doc/_resource_types/cloudwatch_alarm.md
|
|
216
|
+
- doc/_resource_types/cloudwatch_logs.md
|
|
216
217
|
- doc/_resource_types/customer_gateway.md
|
|
217
218
|
- doc/_resource_types/directconnect_virtual_interface.md
|
|
218
219
|
- doc/_resource_types/ebs.md
|
|
219
220
|
- doc/_resource_types/ec2.md
|
|
221
|
+
- doc/_resource_types/ec2_account_attributes.md
|
|
220
222
|
- doc/_resource_types/ecs_cluster.md
|
|
221
223
|
- doc/_resource_types/ecs_container_instance.md
|
|
222
224
|
- doc/_resource_types/ecs_service.md
|
|
@@ -234,11 +236,13 @@ files:
|
|
|
234
236
|
- doc/_resource_types/internet_gateway.md
|
|
235
237
|
- doc/_resource_types/kms.md
|
|
236
238
|
- doc/_resource_types/lambda.md
|
|
239
|
+
- doc/_resource_types/lambda_account_settings.md
|
|
237
240
|
- doc/_resource_types/launch_configuration.md
|
|
238
241
|
- doc/_resource_types/nat_gateway.md
|
|
239
242
|
- doc/_resource_types/network_acl.md
|
|
240
243
|
- doc/_resource_types/network_interface.md
|
|
241
244
|
- doc/_resource_types/rds.md
|
|
245
|
+
- doc/_resource_types/rds_account_attributes.md
|
|
242
246
|
- doc/_resource_types/rds_db_cluster_parameter_group.md
|
|
243
247
|
- doc/_resource_types/rds_db_parameter_group.md
|
|
244
248
|
- doc/_resource_types/route53_hosted_zone.md
|
|
@@ -246,6 +250,7 @@ files:
|
|
|
246
250
|
- doc/_resource_types/s3_bucket.md
|
|
247
251
|
- doc/_resource_types/security_group.md
|
|
248
252
|
- doc/_resource_types/ses_identity.md
|
|
253
|
+
- doc/_resource_types/ses_send_quota.md
|
|
249
254
|
- doc/_resource_types/subnet.md
|
|
250
255
|
- doc/_resource_types/vpc.md
|
|
251
256
|
- doc/_resource_types/vpn_connection.md
|
|
@@ -260,9 +265,13 @@ files:
|
|
|
260
265
|
- lib/awspec/error.rb
|
|
261
266
|
- lib/awspec/ext.rb
|
|
262
267
|
- lib/awspec/ext/array.rb
|
|
268
|
+
- lib/awspec/ext/hash.rb
|
|
263
269
|
- lib/awspec/ext/struct.rb
|
|
264
270
|
- lib/awspec/generator.rb
|
|
265
271
|
- lib/awspec/generator/doc/type.rb
|
|
272
|
+
- lib/awspec/generator/doc/type/account.rb
|
|
273
|
+
- lib/awspec/generator/doc/type/account_attribute.rb
|
|
274
|
+
- lib/awspec/generator/doc/type/account_attribute_base.rb
|
|
266
275
|
- lib/awspec/generator/doc/type/acm.rb
|
|
267
276
|
- lib/awspec/generator/doc/type/alb.rb
|
|
268
277
|
- lib/awspec/generator/doc/type/ami.rb
|
|
@@ -272,10 +281,12 @@ files:
|
|
|
272
281
|
- lib/awspec/generator/doc/type/cloudtrail.rb
|
|
273
282
|
- lib/awspec/generator/doc/type/cloudwatch_alarm.rb
|
|
274
283
|
- lib/awspec/generator/doc/type/cloudwatch_event.rb
|
|
284
|
+
- lib/awspec/generator/doc/type/cloudwatch_logs.rb
|
|
275
285
|
- lib/awspec/generator/doc/type/customer_gateway.rb
|
|
276
286
|
- lib/awspec/generator/doc/type/directconnect_virtual_interface.rb
|
|
277
287
|
- lib/awspec/generator/doc/type/ebs.rb
|
|
278
288
|
- lib/awspec/generator/doc/type/ec2.rb
|
|
289
|
+
- lib/awspec/generator/doc/type/ec2_account_attributes.rb
|
|
279
290
|
- lib/awspec/generator/doc/type/ecr_repository.rb
|
|
280
291
|
- lib/awspec/generator/doc/type/ecs_cluster.rb
|
|
281
292
|
- lib/awspec/generator/doc/type/ecs_container_instance.rb
|
|
@@ -294,11 +305,13 @@ files:
|
|
|
294
305
|
- lib/awspec/generator/doc/type/internet_gateway.rb
|
|
295
306
|
- lib/awspec/generator/doc/type/kms.rb
|
|
296
307
|
- lib/awspec/generator/doc/type/lambda.rb
|
|
308
|
+
- lib/awspec/generator/doc/type/lambda_account_settings.rb
|
|
297
309
|
- lib/awspec/generator/doc/type/launch_configuration.rb
|
|
298
310
|
- lib/awspec/generator/doc/type/nat_gateway.rb
|
|
299
311
|
- lib/awspec/generator/doc/type/network_acl.rb
|
|
300
312
|
- lib/awspec/generator/doc/type/network_interface.rb
|
|
301
313
|
- lib/awspec/generator/doc/type/rds.rb
|
|
314
|
+
- lib/awspec/generator/doc/type/rds_account_attributes.rb
|
|
302
315
|
- lib/awspec/generator/doc/type/rds_db_cluster_parameter_group.rb
|
|
303
316
|
- lib/awspec/generator/doc/type/rds_db_parameter_group.rb
|
|
304
317
|
- lib/awspec/generator/doc/type/route53_hosted_zone.rb
|
|
@@ -306,6 +319,7 @@ files:
|
|
|
306
319
|
- lib/awspec/generator/doc/type/s3_bucket.rb
|
|
307
320
|
- lib/awspec/generator/doc/type/security_group.rb
|
|
308
321
|
- lib/awspec/generator/doc/type/ses_identity.rb
|
|
322
|
+
- lib/awspec/generator/doc/type/ses_send_quota.rb
|
|
309
323
|
- lib/awspec/generator/doc/type/subnet.rb
|
|
310
324
|
- lib/awspec/generator/doc/type/vpc.rb
|
|
311
325
|
- lib/awspec/generator/doc/type/vpn_connection.rb
|
|
@@ -339,6 +353,7 @@ files:
|
|
|
339
353
|
- lib/awspec/helper.rb
|
|
340
354
|
- lib/awspec/helper/color.rb
|
|
341
355
|
- lib/awspec/helper/finder.rb
|
|
356
|
+
- lib/awspec/helper/finder/account_attributes.rb
|
|
342
357
|
- lib/awspec/helper/finder/acm.rb
|
|
343
358
|
- lib/awspec/helper/finder/alb.rb
|
|
344
359
|
- lib/awspec/helper/finder/ami.rb
|
|
@@ -347,6 +362,7 @@ files:
|
|
|
347
362
|
- lib/awspec/helper/finder/cloudtrail.rb
|
|
348
363
|
- lib/awspec/helper/finder/cloudwatch.rb
|
|
349
364
|
- lib/awspec/helper/finder/cloudwatch_event.rb
|
|
365
|
+
- lib/awspec/helper/finder/cloudwatch_logs.rb
|
|
350
366
|
- lib/awspec/helper/finder/directconnect.rb
|
|
351
367
|
- lib/awspec/helper/finder/ebs.rb
|
|
352
368
|
- lib/awspec/helper/finder/ec2.rb
|
|
@@ -391,11 +407,13 @@ files:
|
|
|
391
407
|
- lib/awspec/matcher/have_record_set.rb
|
|
392
408
|
- lib/awspec/matcher/have_route.rb
|
|
393
409
|
- lib/awspec/matcher/have_rule.rb
|
|
410
|
+
- lib/awspec/matcher/have_subscription_filter.rb
|
|
394
411
|
- lib/awspec/matcher/have_tag.rb
|
|
395
412
|
- lib/awspec/resource_reader.rb
|
|
396
413
|
- lib/awspec/setup.rb
|
|
397
414
|
- lib/awspec/shared_context.rb
|
|
398
415
|
- lib/awspec/stub.rb
|
|
416
|
+
- lib/awspec/stub/account.rb
|
|
399
417
|
- lib/awspec/stub/acm.rb
|
|
400
418
|
- lib/awspec/stub/alb.rb
|
|
401
419
|
- lib/awspec/stub/ami.rb
|
|
@@ -404,6 +422,7 @@ files:
|
|
|
404
422
|
- lib/awspec/stub/cloudtrail.rb
|
|
405
423
|
- lib/awspec/stub/cloudwatch_alarm.rb
|
|
406
424
|
- lib/awspec/stub/cloudwatch_event.rb
|
|
425
|
+
- lib/awspec/stub/cloudwatch_logs.rb
|
|
407
426
|
- lib/awspec/stub/customer_gateway.rb
|
|
408
427
|
- lib/awspec/stub/directconnect_virtual_interface.rb
|
|
409
428
|
- lib/awspec/stub/duplicated_resource_type.rb
|
|
@@ -446,6 +465,9 @@ files:
|
|
|
446
465
|
- lib/awspec/stub/vpn_gateway.rb
|
|
447
466
|
- lib/awspec/stub/waf_web_acl.rb
|
|
448
467
|
- lib/awspec/toolbox.rb
|
|
468
|
+
- lib/awspec/type/account.rb
|
|
469
|
+
- lib/awspec/type/account_attribute.rb
|
|
470
|
+
- lib/awspec/type/account_attribute_base.rb
|
|
449
471
|
- lib/awspec/type/acm.rb
|
|
450
472
|
- lib/awspec/type/alb.rb
|
|
451
473
|
- lib/awspec/type/ami.rb
|
|
@@ -455,10 +477,12 @@ files:
|
|
|
455
477
|
- lib/awspec/type/cloudtrail.rb
|
|
456
478
|
- lib/awspec/type/cloudwatch_alarm.rb
|
|
457
479
|
- lib/awspec/type/cloudwatch_event.rb
|
|
480
|
+
- lib/awspec/type/cloudwatch_logs.rb
|
|
458
481
|
- lib/awspec/type/customer_gateway.rb
|
|
459
482
|
- lib/awspec/type/directconnect_virtual_interface.rb
|
|
460
483
|
- lib/awspec/type/ebs.rb
|
|
461
484
|
- lib/awspec/type/ec2.rb
|
|
485
|
+
- lib/awspec/type/ec2_account_attributes.rb
|
|
462
486
|
- lib/awspec/type/ecr_repository.rb
|
|
463
487
|
- lib/awspec/type/ecs_cluster.rb
|
|
464
488
|
- lib/awspec/type/ecs_container_instance.rb
|
|
@@ -477,18 +501,22 @@ files:
|
|
|
477
501
|
- lib/awspec/type/internet_gateway.rb
|
|
478
502
|
- lib/awspec/type/kms.rb
|
|
479
503
|
- lib/awspec/type/lambda.rb
|
|
504
|
+
- lib/awspec/type/lambda_account_settings.rb
|
|
480
505
|
- lib/awspec/type/launch_configuration.rb
|
|
481
506
|
- lib/awspec/type/nat_gateway.rb
|
|
482
507
|
- lib/awspec/type/network_acl.rb
|
|
483
508
|
- lib/awspec/type/network_interface.rb
|
|
484
509
|
- lib/awspec/type/rds.rb
|
|
510
|
+
- lib/awspec/type/rds_account_attributes.rb
|
|
485
511
|
- lib/awspec/type/rds_db_cluster_parameter_group.rb
|
|
486
512
|
- lib/awspec/type/rds_db_parameter_group.rb
|
|
513
|
+
- lib/awspec/type/resource_base.rb
|
|
487
514
|
- lib/awspec/type/route53_hosted_zone.rb
|
|
488
515
|
- lib/awspec/type/route_table.rb
|
|
489
516
|
- lib/awspec/type/s3_bucket.rb
|
|
490
517
|
- lib/awspec/type/security_group.rb
|
|
491
518
|
- lib/awspec/type/ses_identity.rb
|
|
519
|
+
- lib/awspec/type/ses_send_quota.rb
|
|
492
520
|
- lib/awspec/type/subnet.rb
|
|
493
521
|
- lib/awspec/type/vpc.rb
|
|
494
522
|
- lib/awspec/type/vpn_connection.rb
|