awspec 1.25.1 → 1.25.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (435) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +5 -7
  3. data/.rubocop.yml +66 -62
  4. data/Gemfile +3 -1
  5. data/Rakefile +5 -3
  6. data/awspec.gemspec +4 -2
  7. data/bin/console +1 -0
  8. data/bin/toolbox +1 -0
  9. data/doc/resource_types.md +17 -17
  10. data/exe/awspec +1 -0
  11. data/lib/awspec/cli.rb +2 -0
  12. data/lib/awspec/command/generate.rb +11 -9
  13. data/lib/awspec/config.rb +2 -0
  14. data/lib/awspec/error.rb +4 -0
  15. data/lib/awspec/ext/array.rb +5 -2
  16. data/lib/awspec/ext/hash.rb +5 -2
  17. data/lib/awspec/ext/string.rb +2 -0
  18. data/lib/awspec/ext/struct.rb +2 -0
  19. data/lib/awspec/ext.rb +2 -0
  20. data/lib/awspec/generator/doc/type/account.rb +4 -4
  21. data/lib/awspec/generator/doc/type/account_attribute.rb +4 -4
  22. data/lib/awspec/generator/doc/type/account_attribute_base.rb +3 -2
  23. data/lib/awspec/generator/doc/type/acm.rb +4 -2
  24. data/lib/awspec/generator/doc/type/alb.rb +5 -3
  25. data/lib/awspec/generator/doc/type/alb_listener.rb +3 -1
  26. data/lib/awspec/generator/doc/type/alb_target_group.rb +3 -1
  27. data/lib/awspec/generator/doc/type/ami.rb +4 -2
  28. data/lib/awspec/generator/doc/type/apigateway.rb +2 -0
  29. data/lib/awspec/generator/doc/type/autoscaling_group.rb +2 -0
  30. data/lib/awspec/generator/doc/type/base.rb +11 -8
  31. data/lib/awspec/generator/doc/type/batch_compute_environment.rb +6 -4
  32. data/lib/awspec/generator/doc/type/batch_job_definition.rb +2 -0
  33. data/lib/awspec/generator/doc/type/batch_job_queue.rb +2 -0
  34. data/lib/awspec/generator/doc/type/cloudformation_stack.rb +2 -0
  35. data/lib/awspec/generator/doc/type/cloudfront_distribution.rb +4 -2
  36. data/lib/awspec/generator/doc/type/cloudtrail.rb +2 -0
  37. data/lib/awspec/generator/doc/type/cloudwatch_alarm.rb +3 -1
  38. data/lib/awspec/generator/doc/type/cloudwatch_event.rb +2 -0
  39. data/lib/awspec/generator/doc/type/cloudwatch_logs.rb +2 -0
  40. data/lib/awspec/generator/doc/type/codebuild.rb +2 -0
  41. data/lib/awspec/generator/doc/type/codedeploy.rb +2 -0
  42. data/lib/awspec/generator/doc/type/codedeploy_deployment_group.rb +2 -0
  43. data/lib/awspec/generator/doc/type/cognito_identity_pool.rb +2 -0
  44. data/lib/awspec/generator/doc/type/cognito_user_pool.rb +2 -0
  45. data/lib/awspec/generator/doc/type/customer_gateway.rb +4 -2
  46. data/lib/awspec/generator/doc/type/directconnect_virtual_interface.rb +4 -2
  47. data/lib/awspec/generator/doc/type/dynamodb_table.rb +4 -2
  48. data/lib/awspec/generator/doc/type/ebs.rb +4 -2
  49. data/lib/awspec/generator/doc/type/ec2.rb +4 -2
  50. data/lib/awspec/generator/doc/type/ec2_account_attributes.rb +2 -0
  51. data/lib/awspec/generator/doc/type/ecr_repository.rb +2 -0
  52. data/lib/awspec/generator/doc/type/ecs_cluster.rb +4 -2
  53. data/lib/awspec/generator/doc/type/ecs_container_instance.rb +4 -2
  54. data/lib/awspec/generator/doc/type/ecs_service.rb +4 -2
  55. data/lib/awspec/generator/doc/type/ecs_task_definition.rb +4 -2
  56. data/lib/awspec/generator/doc/type/efs.rb +2 -0
  57. data/lib/awspec/generator/doc/type/eip.rb +2 -0
  58. data/lib/awspec/generator/doc/type/eks.rb +4 -2
  59. data/lib/awspec/generator/doc/type/eks_nodegroup.rb +4 -2
  60. data/lib/awspec/generator/doc/type/elasticache.rb +4 -2
  61. data/lib/awspec/generator/doc/type/elasticache_cache_parameter_group.rb +2 -0
  62. data/lib/awspec/generator/doc/type/elasticsearch.rb +2 -0
  63. data/lib/awspec/generator/doc/type/elastictranscoder_pipeline.rb +4 -2
  64. data/lib/awspec/generator/doc/type/elb.rb +5 -3
  65. data/lib/awspec/generator/doc/type/emr.rb +4 -2
  66. data/lib/awspec/generator/doc/type/firehose.rb +2 -0
  67. data/lib/awspec/generator/doc/type/iam_group.rb +3 -1
  68. data/lib/awspec/generator/doc/type/iam_policy.rb +2 -0
  69. data/lib/awspec/generator/doc/type/iam_role.rb +3 -1
  70. data/lib/awspec/generator/doc/type/iam_user.rb +3 -1
  71. data/lib/awspec/generator/doc/type/internet_gateway.rb +2 -0
  72. data/lib/awspec/generator/doc/type/kinesis.rb +2 -0
  73. data/lib/awspec/generator/doc/type/kms.rb +2 -0
  74. data/lib/awspec/generator/doc/type/lambda.rb +3 -1
  75. data/lib/awspec/generator/doc/type/lambda_account_settings.rb +2 -0
  76. data/lib/awspec/generator/doc/type/launch_configuration.rb +2 -0
  77. data/lib/awspec/generator/doc/type/launch_template.rb +2 -0
  78. data/lib/awspec/generator/doc/type/mq.rb +5 -3
  79. data/lib/awspec/generator/doc/type/msk.rb +2 -0
  80. data/lib/awspec/generator/doc/type/nat_gateway.rb +4 -2
  81. data/lib/awspec/generator/doc/type/network_acl.rb +4 -2
  82. data/lib/awspec/generator/doc/type/network_interface.rb +4 -2
  83. data/lib/awspec/generator/doc/type/nlb.rb +4 -2
  84. data/lib/awspec/generator/doc/type/nlb_listener.rb +3 -1
  85. data/lib/awspec/generator/doc/type/nlb_target_group.rb +3 -1
  86. data/lib/awspec/generator/doc/type/rds.rb +5 -3
  87. data/lib/awspec/generator/doc/type/rds_account_attributes.rb +2 -0
  88. data/lib/awspec/generator/doc/type/rds_db_cluster_parameter_group.rb +2 -0
  89. data/lib/awspec/generator/doc/type/rds_db_parameter_group.rb +2 -0
  90. data/lib/awspec/generator/doc/type/redshift.rb +5 -3
  91. data/lib/awspec/generator/doc/type/redshift_cluster_parameter_group.rb +2 -0
  92. data/lib/awspec/generator/doc/type/route53_hosted_zone.rb +2 -0
  93. data/lib/awspec/generator/doc/type/route_table.rb +2 -0
  94. data/lib/awspec/generator/doc/type/s3_bucket.rb +3 -1
  95. data/lib/awspec/generator/doc/type/secretsmanager.rb +2 -0
  96. data/lib/awspec/generator/doc/type/security_group.rb +4 -2
  97. data/lib/awspec/generator/doc/type/ses_identity.rb +4 -2
  98. data/lib/awspec/generator/doc/type/ses_send_quota.rb +2 -0
  99. data/lib/awspec/generator/doc/type/sns_topic.rb +5 -3
  100. data/lib/awspec/generator/doc/type/sqs.rb +2 -0
  101. data/lib/awspec/generator/doc/type/ssm_parameter.rb +2 -0
  102. data/lib/awspec/generator/doc/type/subnet.rb +4 -2
  103. data/lib/awspec/generator/doc/type/transit_gateway.rb +2 -0
  104. data/lib/awspec/generator/doc/type/vpc.rb +4 -2
  105. data/lib/awspec/generator/doc/type/vpc_endpoints.rb +2 -0
  106. data/lib/awspec/generator/doc/type/vpn_connection.rb +4 -2
  107. data/lib/awspec/generator/doc/type/vpn_gateway.rb +4 -2
  108. data/lib/awspec/generator/doc/type/waf_web_acl.rb +3 -1
  109. data/lib/awspec/generator/doc/type/wafregional_web_acl.rb +3 -1
  110. data/lib/awspec/generator/doc/type.rb +5 -3
  111. data/lib/awspec/generator/spec/acm.rb +4 -2
  112. data/lib/awspec/generator/spec/alb.rb +6 -4
  113. data/lib/awspec/generator/spec/alb_listener.rb +6 -4
  114. data/lib/awspec/generator/spec/autoscaling_group.rb +6 -4
  115. data/lib/awspec/generator/spec/cloudwatch_alarm.rb +4 -2
  116. data/lib/awspec/generator/spec/cloudwatch_event.rb +4 -2
  117. data/lib/awspec/generator/spec/cloudwatch_logs.rb +4 -2
  118. data/lib/awspec/generator/spec/codebuild.rb +4 -2
  119. data/lib/awspec/generator/spec/directconnect.rb +4 -2
  120. data/lib/awspec/generator/spec/ebs.rb +5 -4
  121. data/lib/awspec/generator/spec/ec2.rb +5 -2
  122. data/lib/awspec/generator/spec/efs.rb +4 -2
  123. data/lib/awspec/generator/spec/eip.rb +4 -2
  124. data/lib/awspec/generator/spec/elasticache.rb +5 -2
  125. data/lib/awspec/generator/spec/elasticsearch.rb +4 -2
  126. data/lib/awspec/generator/spec/elb.rb +8 -6
  127. data/lib/awspec/generator/spec/iam_group.rb +4 -2
  128. data/lib/awspec/generator/spec/iam_policy.rb +3 -0
  129. data/lib/awspec/generator/spec/iam_role.rb +4 -2
  130. data/lib/awspec/generator/spec/iam_user.rb +4 -2
  131. data/lib/awspec/generator/spec/internet_gateway.rb +6 -4
  132. data/lib/awspec/generator/spec/kms.rb +4 -2
  133. data/lib/awspec/generator/spec/lambda.rb +4 -2
  134. data/lib/awspec/generator/spec/nat_gateway.rb +6 -4
  135. data/lib/awspec/generator/spec/network_acl.rb +15 -13
  136. data/lib/awspec/generator/spec/network_interface.rb +13 -10
  137. data/lib/awspec/generator/spec/nlb.rb +6 -4
  138. data/lib/awspec/generator/spec/nlb_listener.rb +6 -4
  139. data/lib/awspec/generator/spec/rds.rb +5 -2
  140. data/lib/awspec/generator/spec/rds_db_cluster_parameter_group.rb +3 -2
  141. data/lib/awspec/generator/spec/rds_db_parameter_group.rb +3 -2
  142. data/lib/awspec/generator/spec/redshift.rb +5 -2
  143. data/lib/awspec/generator/spec/redshift_cluster_parameter_group.rb +3 -2
  144. data/lib/awspec/generator/spec/route53_hosted_zone.rb +4 -2
  145. data/lib/awspec/generator/spec/route_table.rb +12 -14
  146. data/lib/awspec/generator/spec/s3_bucket.rb +9 -6
  147. data/lib/awspec/generator/spec/security_group.rb +9 -8
  148. data/lib/awspec/generator/spec/subnet.rb +6 -4
  149. data/lib/awspec/generator/spec/vpc.rb +5 -2
  150. data/lib/awspec/generator/template.rb +17 -15
  151. data/lib/awspec/generator.rb +4 -2
  152. data/lib/awspec/helper/client_wrap.rb +5 -1
  153. data/lib/awspec/helper/color.rb +2 -0
  154. data/lib/awspec/helper/finder/account_attributes.rb +8 -6
  155. data/lib/awspec/helper/finder/acm.rb +4 -0
  156. data/lib/awspec/helper/finder/alb.rb +7 -5
  157. data/lib/awspec/helper/finder/ami.rb +4 -0
  158. data/lib/awspec/helper/finder/apigateway.rb +2 -0
  159. data/lib/awspec/helper/finder/autoscaling.rb +3 -0
  160. data/lib/awspec/helper/finder/batch.rb +2 -0
  161. data/lib/awspec/helper/finder/cloudformation.rb +2 -0
  162. data/lib/awspec/helper/finder/cloudfront.rb +3 -0
  163. data/lib/awspec/helper/finder/cloudtrail.rb +2 -0
  164. data/lib/awspec/helper/finder/cloudwatch.rb +3 -0
  165. data/lib/awspec/helper/finder/cloudwatch_event.rb +2 -0
  166. data/lib/awspec/helper/finder/cloudwatch_logs.rb +10 -5
  167. data/lib/awspec/helper/finder/codebuild.rb +3 -0
  168. data/lib/awspec/helper/finder/codedeploy.rb +2 -0
  169. data/lib/awspec/helper/finder/cognito_identity_pool.rb +2 -0
  170. data/lib/awspec/helper/finder/cognito_user_pool.rb +2 -0
  171. data/lib/awspec/helper/finder/directconnect.rb +2 -0
  172. data/lib/awspec/helper/finder/dynamodb.rb +2 -0
  173. data/lib/awspec/helper/finder/ebs.rb +5 -0
  174. data/lib/awspec/helper/finder/ec2.rb +16 -10
  175. data/lib/awspec/helper/finder/ecr.rb +2 -0
  176. data/lib/awspec/helper/finder/ecs.rb +5 -2
  177. data/lib/awspec/helper/finder/efs.rb +5 -4
  178. data/lib/awspec/helper/finder/eks.rb +2 -0
  179. data/lib/awspec/helper/finder/elasticache.rb +3 -1
  180. data/lib/awspec/helper/finder/elasticsearch.rb +3 -1
  181. data/lib/awspec/helper/finder/elastictranscoder.rb +3 -0
  182. data/lib/awspec/helper/finder/elb.rb +6 -4
  183. data/lib/awspec/helper/finder/emr.rb +2 -0
  184. data/lib/awspec/helper/finder/firehose.rb +2 -0
  185. data/lib/awspec/helper/finder/iam.rb +16 -12
  186. data/lib/awspec/helper/finder/kinesis.rb +2 -0
  187. data/lib/awspec/helper/finder/kms.rb +3 -1
  188. data/lib/awspec/helper/finder/lambda.rb +3 -0
  189. data/lib/awspec/helper/finder/mq.rb +3 -1
  190. data/lib/awspec/helper/finder/msk.rb +2 -0
  191. data/lib/awspec/helper/finder/nlb.rb +11 -8
  192. data/lib/awspec/helper/finder/rds.rb +4 -1
  193. data/lib/awspec/helper/finder/redshift.rb +4 -1
  194. data/lib/awspec/helper/finder/route53.rb +4 -1
  195. data/lib/awspec/helper/finder/s3.rb +4 -2
  196. data/lib/awspec/helper/finder/secretsmanager.rb +2 -0
  197. data/lib/awspec/helper/finder/security_group.rb +2 -0
  198. data/lib/awspec/helper/finder/ses.rb +2 -0
  199. data/lib/awspec/helper/finder/sns_topic.rb +5 -3
  200. data/lib/awspec/helper/finder/sqs.rb +2 -0
  201. data/lib/awspec/helper/finder/ssm_parameter.rb +4 -1
  202. data/lib/awspec/helper/finder/subnet.rb +3 -0
  203. data/lib/awspec/helper/finder/vpc.rb +12 -6
  204. data/lib/awspec/helper/finder/vpc_endpoints.rb +2 -0
  205. data/lib/awspec/helper/finder/waf.rb +5 -0
  206. data/lib/awspec/helper/finder/wafregional.rb +5 -0
  207. data/lib/awspec/helper/finder.rb +3 -1
  208. data/lib/awspec/helper/states.rb +4 -2
  209. data/lib/awspec/helper/type.rb +8 -4
  210. data/lib/awspec/helper.rb +2 -0
  211. data/lib/awspec/matcher/be_allowed.rb +2 -0
  212. data/lib/awspec/matcher/be_allowed_action.rb +2 -0
  213. data/lib/awspec/matcher/be_attached_to.rb +3 -0
  214. data/lib/awspec/matcher/be_connected_to_vpc.rb +2 -0
  215. data/lib/awspec/matcher/be_denied.rb +2 -0
  216. data/lib/awspec/matcher/be_opened.rb +2 -0
  217. data/lib/awspec/matcher/be_opened_only.rb +2 -0
  218. data/lib/awspec/matcher/belong_to_alb.rb +4 -0
  219. data/lib/awspec/matcher/belong_to_cache_subnet_group.rb +2 -0
  220. data/lib/awspec/matcher/belong_to_cluster_subnet_group.rb +2 -0
  221. data/lib/awspec/matcher/belong_to_db_subnet_group.rb +2 -0
  222. data/lib/awspec/matcher/belong_to_domain.rb +2 -0
  223. data/lib/awspec/matcher/belong_to_iam_group.rb +2 -0
  224. data/lib/awspec/matcher/belong_to_metric.rb +2 -0
  225. data/lib/awspec/matcher/belong_to_nlb.rb +4 -0
  226. data/lib/awspec/matcher/belong_to_replication_group.rb +2 -0
  227. data/lib/awspec/matcher/belong_to_subnet.rb +5 -0
  228. data/lib/awspec/matcher/belong_to_subnets.rb +2 -0
  229. data/lib/awspec/matcher/belong_to_vpc.rb +4 -0
  230. data/lib/awspec/matcher/have_attribute_definition.rb +2 -0
  231. data/lib/awspec/matcher/have_cluster_parameter_group.rb +2 -0
  232. data/lib/awspec/matcher/have_custom_response_error_code.rb +3 -2
  233. data/lib/awspec/matcher/have_db_parameter_group.rb +2 -0
  234. data/lib/awspec/matcher/have_env_var.rb +2 -0
  235. data/lib/awspec/matcher/have_env_var_value.rb +2 -0
  236. data/lib/awspec/matcher/have_env_vars.rb +2 -0
  237. data/lib/awspec/matcher/have_inline_policy.rb +2 -0
  238. data/lib/awspec/matcher/have_key_policy.rb +2 -0
  239. data/lib/awspec/matcher/have_key_schema.rb +2 -0
  240. data/lib/awspec/matcher/have_metric_filter.rb +2 -0
  241. data/lib/awspec/matcher/have_network_interface.rb +2 -0
  242. data/lib/awspec/matcher/have_option_group.rb +2 -0
  243. data/lib/awspec/matcher/have_origin.rb +3 -2
  244. data/lib/awspec/matcher/have_private_ip_address.rb +2 -0
  245. data/lib/awspec/matcher/have_record_set.rb +3 -1
  246. data/lib/awspec/matcher/have_route.rb +5 -3
  247. data/lib/awspec/matcher/have_rule.rb +3 -0
  248. data/lib/awspec/matcher/have_subscription_attributes.rb +3 -0
  249. data/lib/awspec/matcher/have_subscription_filter.rb +2 -0
  250. data/lib/awspec/matcher/have_tag.rb +2 -0
  251. data/lib/awspec/matcher/have_vpc_peering_connection.rb +2 -0
  252. data/lib/awspec/matcher/include_subscribed.rb +2 -0
  253. data/lib/awspec/matcher.rb +2 -0
  254. data/lib/awspec/resource_reader.rb +3 -0
  255. data/lib/awspec/setup.rb +7 -5
  256. data/lib/awspec/shared_context.rb +3 -0
  257. data/lib/awspec/stub/account.rb +2 -0
  258. data/lib/awspec/stub/acm.rb +2 -0
  259. data/lib/awspec/stub/alb.rb +3 -1
  260. data/lib/awspec/stub/alb_listener.rb +4 -3
  261. data/lib/awspec/stub/alb_target_group.rb +3 -1
  262. data/lib/awspec/stub/ami.rb +2 -0
  263. data/lib/awspec/stub/apigateway.rb +2 -0
  264. data/lib/awspec/stub/autoscaling_group.rb +6 -4
  265. data/lib/awspec/stub/batch_compute_environment.rb +2 -0
  266. data/lib/awspec/stub/batch_job_definition.rb +2 -0
  267. data/lib/awspec/stub/batch_job_queue.rb +2 -0
  268. data/lib/awspec/stub/cloudformation_stack.rb +4 -2
  269. data/lib/awspec/stub/cloudfront_distribution.rb +6 -4
  270. data/lib/awspec/stub/cloudtrail.rb +2 -0
  271. data/lib/awspec/stub/cloudwatch_logs.rb +2 -0
  272. data/lib/awspec/stub/codebuild.rb +5 -3
  273. data/lib/awspec/stub/codedeploy.rb +2 -0
  274. data/lib/awspec/stub/codedeploy_deployment_group.rb +2 -0
  275. data/lib/awspec/stub/cognito_identity_pool.rb +2 -0
  276. data/lib/awspec/stub/cognito_user_pool.rb +2 -0
  277. data/lib/awspec/stub/directconnect_virtual_interface.rb +2 -0
  278. data/lib/awspec/stub/duplicated_resource_type.rb +2 -0
  279. data/lib/awspec/stub/dynamodb_table.rb +2 -0
  280. data/lib/awspec/stub/ebs.rb +2 -0
  281. data/lib/awspec/stub/ec2.rb +2 -0
  282. data/lib/awspec/stub/ec2_has_multi_security_groups.rb +2 -0
  283. data/lib/awspec/stub/ec2_non_existing.rb +2 -0
  284. data/lib/awspec/stub/ecr_repository.rb +2 -0
  285. data/lib/awspec/stub/ecs.rb +13 -22
  286. data/lib/awspec/stub/ecs_cluster.rb +4 -4
  287. data/lib/awspec/stub/ecs_container_instance.rb +3 -2
  288. data/lib/awspec/stub/ecs_service.rb +4 -4
  289. data/lib/awspec/stub/ecs_task_definition.rb +9 -14
  290. data/lib/awspec/stub/efs.rb +2 -0
  291. data/lib/awspec/stub/eip.rb +2 -0
  292. data/lib/awspec/stub/eks.rb +5 -3
  293. data/lib/awspec/stub/eks_nodegroup.rb +2 -0
  294. data/lib/awspec/stub/elasticache.rb +2 -0
  295. data/lib/awspec/stub/elasticache_cache_parameter_group.rb +2 -0
  296. data/lib/awspec/stub/elasticsearch.rb +2 -0
  297. data/lib/awspec/stub/elastictranscoder_pipeline.rb +2 -0
  298. data/lib/awspec/stub/elb.rb +2 -0
  299. data/lib/awspec/stub/emr.rb +2 -0
  300. data/lib/awspec/stub/firehose.rb +2 -0
  301. data/lib/awspec/stub/iam_group.rb +3 -2
  302. data/lib/awspec/stub/iam_policy.rb +2 -0
  303. data/lib/awspec/stub/iam_role.rb +3 -2
  304. data/lib/awspec/stub/iam_user.rb +3 -2
  305. data/lib/awspec/stub/internet_gateway.rb +2 -0
  306. data/lib/awspec/stub/kinesis.rb +8 -6
  307. data/lib/awspec/stub/kms.rb +2 -0
  308. data/lib/awspec/stub/lambda.rb +2 -0
  309. data/lib/awspec/stub/launch_configuration.rb +2 -0
  310. data/lib/awspec/stub/launch_template.rb +2 -0
  311. data/lib/awspec/stub/mq.rb +5 -3
  312. data/lib/awspec/stub/msk.rb +5 -3
  313. data/lib/awspec/stub/nat_gateway.rb +2 -0
  314. data/lib/awspec/stub/network_acl.rb +2 -0
  315. data/lib/awspec/stub/network_interface.rb +2 -0
  316. data/lib/awspec/stub/nlb.rb +3 -1
  317. data/lib/awspec/stub/nlb_listener.rb +4 -3
  318. data/lib/awspec/stub/nlb_target_group.rb +3 -1
  319. data/lib/awspec/stub/rds.rb +2 -0
  320. data/lib/awspec/stub/rds_db_cluster_parameter_group.rb +2 -0
  321. data/lib/awspec/stub/rds_db_parameter_group.rb +2 -0
  322. data/lib/awspec/stub/redshift.rb +2 -0
  323. data/lib/awspec/stub/redshift_cluster_parameter_group.rb +2 -0
  324. data/lib/awspec/stub/route53_hosted_zone.rb +2 -0
  325. data/lib/awspec/stub/route_table.rb +2 -0
  326. data/lib/awspec/stub/s3_bucket.rb +2 -0
  327. data/lib/awspec/stub/secretsmanager.rb +2 -0
  328. data/lib/awspec/stub/security_group.rb +2 -0
  329. data/lib/awspec/stub/ses_identity.rb +2 -0
  330. data/lib/awspec/stub/sns_topic.rb +3 -1
  331. data/lib/awspec/stub/sns_topic_error.rb +6 -2
  332. data/lib/awspec/stub/sqs.rb +2 -0
  333. data/lib/awspec/stub/ssm_parameter.rb +2 -0
  334. data/lib/awspec/stub/subnet.rb +2 -0
  335. data/lib/awspec/stub/transit_gateway.rb +2 -0
  336. data/lib/awspec/stub/vpc.rb +2 -0
  337. data/lib/awspec/stub/vpc_endpoints.rb +2 -0
  338. data/lib/awspec/stub/waf_web_acl.rb +2 -0
  339. data/lib/awspec/stub/wafregional_web_acl.rb +2 -0
  340. data/lib/awspec/stub.rb +3 -1
  341. data/lib/awspec/toolbox.rb +2 -0
  342. data/lib/awspec/type/account.rb +4 -2
  343. data/lib/awspec/type/account_attribute.rb +5 -2
  344. data/lib/awspec/type/account_attribute_base.rb +2 -0
  345. data/lib/awspec/type/acm.rb +8 -6
  346. data/lib/awspec/type/alb.rb +8 -3
  347. data/lib/awspec/type/alb_listener.rb +4 -0
  348. data/lib/awspec/type/alb_target_group.rb +3 -0
  349. data/lib/awspec/type/ami.rb +5 -3
  350. data/lib/awspec/type/apigateway.rb +9 -3
  351. data/lib/awspec/type/autoscaling_group.rb +3 -0
  352. data/lib/awspec/type/base.rb +6 -3
  353. data/lib/awspec/type/batch_compute_environment.rb +6 -4
  354. data/lib/awspec/type/batch_job_definition.rb +2 -0
  355. data/lib/awspec/type/batch_job_queue.rb +4 -2
  356. data/lib/awspec/type/cloudformation_stack.rb +2 -0
  357. data/lib/awspec/type/cloudfront_distribution.rb +11 -5
  358. data/lib/awspec/type/cloudtrail.rb +2 -0
  359. data/lib/awspec/type/cloudwatch_alarm.rb +2 -0
  360. data/lib/awspec/type/cloudwatch_event.rb +2 -0
  361. data/lib/awspec/type/cloudwatch_logs.rb +2 -0
  362. data/lib/awspec/type/codebuild.rb +2 -0
  363. data/lib/awspec/type/codedeploy.rb +2 -0
  364. data/lib/awspec/type/codedeploy_deployment_group.rb +4 -0
  365. data/lib/awspec/type/cognito_identity_pool.rb +2 -0
  366. data/lib/awspec/type/cognito_user_pool.rb +2 -0
  367. data/lib/awspec/type/customer_gateway.rb +5 -3
  368. data/lib/awspec/type/directconnect_virtual_interface.rb +5 -3
  369. data/lib/awspec/type/dynamodb_table.rb +5 -3
  370. data/lib/awspec/type/ebs.rb +6 -3
  371. data/lib/awspec/type/ec2.rb +10 -0
  372. data/lib/awspec/type/ec2_account_attributes.rb +2 -0
  373. data/lib/awspec/type/ecr_repository.rb +2 -0
  374. data/lib/awspec/type/ecs_cluster.rb +5 -2
  375. data/lib/awspec/type/ecs_container_instance.rb +4 -2
  376. data/lib/awspec/type/ecs_service.rb +5 -2
  377. data/lib/awspec/type/ecs_task_definition.rb +4 -2
  378. data/lib/awspec/type/efs.rb +3 -0
  379. data/lib/awspec/type/eip.rb +3 -0
  380. data/lib/awspec/type/eks.rb +4 -2
  381. data/lib/awspec/type/eks_nodegroup.rb +4 -2
  382. data/lib/awspec/type/elasticache.rb +7 -3
  383. data/lib/awspec/type/elasticache_cache_parameter_group.rb +3 -0
  384. data/lib/awspec/type/elasticsearch.rb +2 -0
  385. data/lib/awspec/type/elastictranscoder_pipeline.rb +5 -3
  386. data/lib/awspec/type/elb.rb +11 -3
  387. data/lib/awspec/type/emr.rb +8 -6
  388. data/lib/awspec/type/firehose.rb +4 -2
  389. data/lib/awspec/type/iam_group.rb +4 -0
  390. data/lib/awspec/type/iam_policy.rb +5 -0
  391. data/lib/awspec/type/iam_role.rb +3 -0
  392. data/lib/awspec/type/iam_user.rb +3 -0
  393. data/lib/awspec/type/internet_gateway.rb +2 -0
  394. data/lib/awspec/type/kinesis.rb +3 -0
  395. data/lib/awspec/type/kms.rb +3 -0
  396. data/lib/awspec/type/lambda.rb +2 -0
  397. data/lib/awspec/type/lambda_account_settings.rb +2 -0
  398. data/lib/awspec/type/launch_configuration.rb +3 -0
  399. data/lib/awspec/type/launch_template.rb +3 -0
  400. data/lib/awspec/type/mq.rb +7 -3
  401. data/lib/awspec/type/msk.rb +5 -3
  402. data/lib/awspec/type/nat_gateway.rb +5 -3
  403. data/lib/awspec/type/network_acl.rb +9 -2
  404. data/lib/awspec/type/network_interface.rb +9 -3
  405. data/lib/awspec/type/nlb.rb +6 -3
  406. data/lib/awspec/type/nlb_listener.rb +4 -0
  407. data/lib/awspec/type/nlb_target_group.rb +3 -0
  408. data/lib/awspec/type/rds.rb +7 -3
  409. data/lib/awspec/type/rds_account_attributes.rb +2 -0
  410. data/lib/awspec/type/rds_db_cluster_parameter_group.rb +3 -0
  411. data/lib/awspec/type/rds_db_parameter_group.rb +5 -1
  412. data/lib/awspec/type/redshift.rb +7 -3
  413. data/lib/awspec/type/redshift_cluster_parameter_group.rb +2 -0
  414. data/lib/awspec/type/resource_base.rb +2 -0
  415. data/lib/awspec/type/route53_hosted_zone.rb +7 -2
  416. data/lib/awspec/type/route_table.rb +12 -0
  417. data/lib/awspec/type/s3_bucket.rb +6 -3
  418. data/lib/awspec/type/secretsmanager.rb +2 -0
  419. data/lib/awspec/type/security_group.rb +14 -2
  420. data/lib/awspec/type/ses_identity.rb +8 -6
  421. data/lib/awspec/type/ses_send_quota.rb +2 -0
  422. data/lib/awspec/type/sns_topic.rb +4 -0
  423. data/lib/awspec/type/sqs.rb +4 -0
  424. data/lib/awspec/type/ssm_parameter.rb +3 -0
  425. data/lib/awspec/type/subnet.rb +6 -3
  426. data/lib/awspec/type/transit_gateway.rb +2 -0
  427. data/lib/awspec/type/vpc.rb +7 -3
  428. data/lib/awspec/type/vpc_endpoints.rb +5 -3
  429. data/lib/awspec/type/vpn_connection.rb +5 -3
  430. data/lib/awspec/type/vpn_gateway.rb +5 -3
  431. data/lib/awspec/type/waf_web_acl.rb +3 -0
  432. data/lib/awspec/type/wafregional_web_acl.rb +3 -0
  433. data/lib/awspec/version.rb +3 -1
  434. data/lib/awspec.rb +2 -0
  435. metadata +16 -16
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -18,7 +20,7 @@ module Awspec::Generator
18
20
  end
19
21
 
20
22
  def account_spec_template
21
- template = <<-'EOF'
23
+ <<-'EOF'
22
24
  describe account do
23
25
  <% @ret.members.each do |key| %>
24
26
  <%- if @ret[key].is_a?(String) -%>
@@ -41,11 +43,10 @@ describe account do
41
43
  <%- end -%>
42
44
  end
43
45
  EOF
44
- template
45
46
  end
46
47
 
47
48
  def doc_template
48
- template = <<-'EOF'
49
+ <<-'EOF'
49
50
  ## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a>
50
51
 
51
52
  <%= @type_name %> resource type.
@@ -63,7 +64,6 @@ EOF
63
64
  ### :unlock: Advanced use
64
65
  <%= @descriptions['advanced'] %><%- end -%>
65
66
  EOF
66
- template
67
67
  end
68
68
  end
69
69
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -18,7 +20,7 @@ module Awspec::Generator
18
20
  end
19
21
 
20
22
  def account_attribute_spec_template
21
- template = <<-'EOF'
23
+ <<-'EOF'
22
24
  <% @ret.members.each do |key| %>
23
25
  <%- next if @ret[key].is_a?(String) -%>
24
26
  describe account_attribute('<%= key %>') do
@@ -39,11 +41,10 @@ end
39
41
  <%= ' ' %>
40
42
  <% end %>
41
43
  EOF
42
- template
43
44
  end
44
45
 
45
46
  def doc_template
46
- template = <<-'EOF'
47
+ <<-'EOF'
47
48
  ## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a>
48
49
 
49
50
  <%= @type_name %> resource type.
@@ -61,7 +62,6 @@ EOF
61
62
  ### :unlock: Advanced use
62
63
  <%= @descriptions['advanced'] %><%- end -%>
63
64
  EOF
64
- template
65
65
  end
66
66
  end
67
67
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,7 +10,7 @@ module Awspec::Generator
8
10
  end
9
11
 
10
12
  def doc_template
11
- template = <<-'EOF'
13
+ <<-'EOF'
12
14
  ## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a>
13
15
 
14
16
  <%= @type_name %> account attributes.
@@ -24,7 +26,6 @@ module Awspec::Generator
24
26
  <%= @descriptions['advanced'] %><%- end -%>
25
27
 
26
28
  EOF
27
- template
28
29
  end
29
30
  end
30
31
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Acm.new('example.jp')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Acm::STATUSES.map { |status| 'be_' + status.downcase }.join(', ')
13
+ Awspec::Type::Acm::STATUSES.map { |status| "be_#{status.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::Acm::STATUSES.map { |status| 'be_' + status.downcase }
15
+ @ignore_matchers = Awspec::Type::Acm::STATUSES.map { |status| "be_#{status.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,11 +10,11 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Alb.new('my-alb')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Alb::STATES.map { |state| 'be_' + state }.join(', '),
12
- 'belong_to_vpc',
13
+ Awspec::Type::Alb::STATES.map { |state| "be_#{state}" }.join(', '),
14
+ 'belong_to_vpc'
13
15
  # 'have_tag'
14
16
  ]
15
- @ignore_matchers = Awspec::Type::Alb::STATES.map { |state| 'be_' + state }
17
+ @ignore_matchers = Awspec::Type::Alb::STATES.map { |state| "be_#{state}" }
16
18
  @describes = []
17
19
  end
18
20
  end
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
4
6
  class AlbListener < Base
5
- # rubocop:disable Metrics/LineLength
7
+ # rubocop:disable Layout/LineLength
6
8
  def initialize
7
9
  super
8
10
  @type_name = 'AlbListener'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -7,7 +9,7 @@ module Awspec::Generator
7
9
  @type_name = 'AlbTargetGroup'
8
10
  @type = Awspec::Type::AlbTargetGroup.new('my-alb-target-group')
9
11
  @ret = @type.resource_via_client
10
- @matchers = %w(belong_to_alb belong_to_vpc)
12
+ @matchers = %w[belong_to_alb belong_to_vpc]
11
13
  @ignore_matchers = []
12
14
  @describes = []
13
15
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Ami.new('my-ami')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Ami::STATES.map { |state| 'be_' + state }.join(', ')
13
+ Awspec::Type::Ami::STATES.map { |state| "be_#{state}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::Ami::STATES.map { |state| 'be_' + state.tr('-', '_') }
15
+ @ignore_matchers = Awspec::Type::Ami::STATES.map { |state| "be_#{state.tr('-', '_')}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -17,23 +19,24 @@ module Awspec::Generator
17
19
  @matchers.sort! do |a, b|
18
20
  ret = sort_num(a) <=> sort_num(b)
19
21
  next ret if ret != 0
22
+
20
23
  a.casecmp(b)
21
24
  end
22
25
  if @ret.respond_to?(:members)
23
26
  @describes += @ret.members.select do |describe|
24
27
  if @ret[describe].is_a?(Array)
25
- next true unless @ret[describe].first.is_a?(Array) || @ret[describe].first.is_a?(Hash) || @ret[describe].first.is_a?(Struct) # rubocop:disable Metrics/LineLength
28
+ next true unless @ret[describe].first.is_a?(Array) || @ret[describe].first.is_a?(Hash) || @ret[describe].first.is_a?(Struct) # rubocop:disable Layout/LineLength
26
29
  else
27
30
  next true unless @ret[describe].is_a?(Hash) || @ret[describe].is_a?(Struct)
28
31
  end
29
32
  end
30
33
  end
31
34
  its = @describes.map do |describe|
32
- 'its(:' + describe.to_s + ')'
35
+ "its(:#{describe})"
33
36
  end
34
37
 
35
38
  @descriptions = {}
36
- merge_file = File.dirname(__FILE__) + '/../../../../../doc/_resource_types/' + type_name.underscore + '.md'
39
+ merge_file = "#{File.dirname(__FILE__)}/../../../../../doc/_resource_types/#{type_name.underscore}.md"
37
40
  if File.exist?(merge_file)
38
41
  matcher = nil
39
42
  File.foreach(merge_file) do |line|
@@ -54,15 +57,16 @@ module Awspec::Generator
54
57
  method.to_s.include?('?')
55
58
  end
56
59
  methods.map! do |method|
57
- next 'exist' if 'exists?' == method.to_s
58
- next 'have_' + Regexp.last_match[1] if /\Ahas_(.+)\?\z/ =~ method.to_s
59
- next 'be_' + Regexp.last_match[1] if /\A(.+)\?\z/ =~ method.to_s
60
+ next 'exist' if method.to_s == 'exists?'
61
+ next "have_#{Regexp.last_match[1]}" if /\Ahas_(.+)\?\z/ =~ method.to_s
62
+ next "be_#{Regexp.last_match[1]}" if /\A(.+)\?\z/ =~ method.to_s
63
+
60
64
  method.to_s
61
65
  end
62
66
  end
63
67
 
64
68
  def doc_template
65
- template = <<-'EOF'
69
+ <<-'EOF'
66
70
  ## <a name="<%= @type_name.gsub(/ /, '_').underscore %>"><%= @type_name.gsub(/ /, '_').underscore %></a>
67
71
 
68
72
  <%= @type_name %> resource type.
@@ -78,7 +82,6 @@ module Awspec::Generator
78
82
  <%= @descriptions['advanced'] %><%- end -%>
79
83
 
80
84
  EOF
81
- template
82
85
  end
83
86
 
84
87
  def sort_num(str)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,12 +10,12 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::BatchComputeEnvironment.new('my-batch-compute-environment')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::BatchComputeEnvironment::STATES.map { |state| 'be_' + state.downcase }.join(', '),
12
- Awspec::Type::BatchComputeEnvironment::TYPES.map { |type| 'be_' + type.downcase }.join(', ')
13
+ Awspec::Type::BatchComputeEnvironment::STATES.map { |state| "be_#{state.downcase}" }.join(', '),
14
+ Awspec::Type::BatchComputeEnvironment::TYPES.map { |type| "be_#{type.downcase}" }.join(', ')
13
15
  ]
14
16
  @ignore_matchers = [
15
- Awspec::Type::BatchComputeEnvironment::STATES.map { |state| 'be_' + state.downcase }.join(', '),
16
- Awspec::Type::BatchComputeEnvironment::TYPES.map { |type| 'be_' + type.downcase }.join(', ')
17
+ Awspec::Type::BatchComputeEnvironment::STATES.map { |state| "be_#{state.downcase}" }.join(', '),
18
+ Awspec::Type::BatchComputeEnvironment::TYPES.map { |type| "be_#{type.downcase}" }.join(', ')
17
19
  ]
18
20
  @describes = []
19
21
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,10 +10,10 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::CloudfrontDistribution.new('123456789zyxw.cloudfront.net')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::CloudfrontDistribution::STATUSES.map { |status| 'be_' + status.underscore }.join(', ')
13
+ Awspec::Type::CloudfrontDistribution::STATUSES.map { |status| "be_#{status.underscore}" }.join(', ')
12
14
  ]
13
15
 
14
- @ignore_matchers = Awspec::Type::CloudfrontDistribution::STATUSES.map { |status| 'be_' + status.underscore }
16
+ @ignore_matchers = Awspec::Type::CloudfrontDistribution::STATUSES.map { |status| "be_#{status.underscore}" }
15
17
  @describes = []
16
18
  end
17
19
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -7,7 +9,7 @@ module Awspec::Generator
7
9
  @type_name = 'CloudwatchAlarm'
8
10
  @type = Awspec::Type::CloudwatchAlarm.new('my-cloudwatch-alarm')
9
11
  @ret = @type.resource_via_client
10
- @matchers = %w(belong_to_metric)
12
+ @matchers = %w[belong_to_metric]
11
13
  @ignore_matchers = []
12
14
  @describes = []
13
15
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::CustomerGateway.new('my-customer-gateway')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::CustomerGateway::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', ')
13
+ Awspec::Type::CustomerGateway::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::CustomerGateway::STATES.map { |state| 'be_' + state.tr('-', '_') }
15
+ @ignore_matchers = Awspec::Type::CustomerGateway::STATES.map { |state| "be_#{state.tr('-', '_')}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,10 +10,10 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::DirectconnectVirtualInterface.new('my-directconnect-virtual-interface')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::DirectconnectVirtualInterface::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', ')
13
+ Awspec::Type::DirectconnectVirtualInterface::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', ')
12
14
  ]
13
15
  @ignore_matchers = Awspec::Type::DirectconnectVirtualInterface::STATES.map do |state|
14
- 'be_' + state.tr('-', '_')
16
+ "be_#{state.tr('-', '_')}"
15
17
  end
16
18
  @describes = []
17
19
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::DynamodbTable.new('my-dynamodb-table')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::DynamodbTable::STATUSES.map { |status| 'be_' + status.downcase }.join(', ')
13
+ Awspec::Type::DynamodbTable::STATUSES.map { |status| "be_#{status.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::DynamodbTable::STATUSES.map { |status| 'be_' + status.downcase }
15
+ @ignore_matchers = Awspec::Type::DynamodbTable::STATUSES.map { |status| "be_#{status.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Ebs.new('my-ebs')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Ebs::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', ')
13
+ Awspec::Type::Ebs::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::Ebs::STATES.map { |state| 'be_' + state.tr('-', '_') }
15
+ @ignore_matchers = Awspec::Type::Ebs::STATES.map { |state| "be_#{state.tr('-', '_')}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,11 +10,11 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Ec2.new('my-ec2')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Ec2::STATES.map { |state| 'be_' + state.tr('-', '_') }.join(', '),
13
+ Awspec::Type::Ec2::STATES.map { |state| "be_#{state.tr('-', '_')}" }.join(', '),
12
14
  'belong_to_vpc',
13
15
  'belong_to_subnet'
14
16
  ]
15
- @ignore_matchers = Awspec::Type::Ec2::STATES.map { |state| 'be_' + state.tr('-', '_') }
17
+ @ignore_matchers = Awspec::Type::Ec2::STATES.map { |state| "be_#{state.tr('-', '_')}" }
16
18
  @describes = []
17
19
  end
18
20
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::EcsCluster.new('my-ecs-cluster')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::EcsCluster::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::EcsCluster::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::EcsCluster::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::EcsCluster::STATES.map { |state| "be_#{state.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::EcsContainerInstance.new('my-ecs-container-instance')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::EcsContainerInstance::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::EcsContainerInstance::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::EcsContainerInstance::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::EcsContainerInstance::STATES.map { |state| "be_#{state.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::EcsService.new('my-ecs-service')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::EcsService::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::EcsService::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::EcsService::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::EcsService::STATES.map { |state| "be_#{state.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::EcsTaskDefinition.new('my-ecs-taskdef')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::EcsTaskDefinition::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::EcsTaskDefinition::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::EcsTaskDefinition::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::EcsTaskDefinition::STATES.map { |state| "be_#{state.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::Eks.new('my-eks')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::Eks::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::Eks::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::Eks::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::Eks::STATES.map { |state| "be_#{state.downcase}" }
14
16
 
15
17
  @describes = []
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Awspec::Generator
2
4
  module Doc
3
5
  module Type
@@ -8,9 +10,9 @@ module Awspec::Generator
8
10
  @type = Awspec::Type::EksNodegroup.new('my-eks-nodegroup')
9
11
  @ret = @type.resource_via_client
10
12
  @matchers = [
11
- Awspec::Type::EksNodegroup::STATES.map { |state| 'be_' + state.downcase }.join(', ')
13
+ Awspec::Type::EksNodegroup::STATES.map { |state| "be_#{state.downcase}" }.join(', ')
12
14
  ]
13
- @ignore_matchers = Awspec::Type::EksNodegroup::STATES.map { |state| 'be_' + state.downcase }
15
+ @ignore_matchers = Awspec::Type::EksNodegroup::STATES.map { |state| "be_#{state.downcase}" }
14
16
  @describes = []
15
17
  end
16
18
  end