Module: Awspec::Helper::Type

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

Constant Summary collapse

TYPES =
%w(
  alb alb_listener alb_target_group ami apigateway autoscaling_group cloudtrail
  cloudwatch_alarm cloudwatch_event directconnect_virtual_interface
  ebs ec2 ecr_repository ecs_cluster ecs_container_instance ecs_service ecs_task_definition
  efs elasticache elasticache_cache_parameter_group elasticsearch elb firehose iam_group
  iam_policy iam_role iam_user kinesis kms lambda launch_configuration nat_gateway
  network_acl network_interface nlb nlb_listener nlb_target_group
  rds rds_db_cluster_parameter_group rds_db_parameter_group route53_hosted_zone
  route_table s3_bucket security_group ses_identity subnet vpc cloudfront_distribution
  elastictranscoder_pipeline waf_web_acl customer_gateway vpn_gateway vpn_connection internet_gateway acm
  cloudwatch_logs dynamodb_table eip sqs ssm_parameter cloudformation_stack codebuild
)
ACCOUNT_ATTRIBUTES =
%w(
  ec2_account_attributes rds_account_attributes lambda_account_settings ses_send_quota
)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.deprecate_resource_type(old_type, new_type) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/awspec/helper/type.rb', line 57

def self.deprecate_resource_type(old_type, new_type)
  define_method(old_type) do |*args, &block|
    puts ''
    warn Color.on_red(Color.white("!!! `#{old_type}` type is deprecated. use `#{new_type}` !!!"))
    send(new_type, *args, &block)
  end
end

Instance Method Details

#accountObject



49
50
51
# File 'lib/awspec/helper/type.rb', line 49

def 
  Awspec::Type::Account.new
end

#account_attribute(key) ⇒ Object



53
54
55
# File 'lib/awspec/helper/type.rb', line 53

def (key)
  Awspec::Type::AccountAttribute.new(key)
end