Module: Awspec::Helper::Type

Included in:
RSpec::Core::ExampleGroup, RSpec::Core::ExampleGroup
Defined in:
lib/awspec/helper/type.rb

Constant Summary collapse

TYPES =
%w(
  ami autoscaling_group cloudwatch_alarm directconnect_virtual_interface
  ebs ec2 elasticache elasticache_cache_parameter_group elb iam_group
  iam_policy iam_role iam_user lambda launch_configuration nat_gateway
  network_acl rds rds_db_parameter_group route53_hosted_zone route_table
  s3_bucket security_group ses_identity subnet vpc
)

Instance Method Summary collapse

Instance Method Details

#auto_scaling_group(name) ⇒ Object

deprecated resource type



23
24
25
26
27
# File 'lib/awspec/helper/type.rb', line 23

def auto_scaling_group(name)
  puts ''
  puts Color.on_red(Color.white('!!! `auto_scaling_group` type is deprecated. use `autoscaling_group` !!!'))
  Awspec::Type::AutoscalingGroup.new(name)
end

#s3(name) ⇒ Object



29
30
31
32
33
# File 'lib/awspec/helper/type.rb', line 29

def s3(name)
  puts ''
  puts Color.on_red(Color.white('!!! `s3` type is deprecated. use `s3_bucket` !!!'))
  Awspec::Type::S3Bucket.new(name)
end