Module: Awspec::Helper::Finder

Includes:
AutoScaling, Cloudwatch, Ebs, Ec2, Elasticache, Elb, Iam, Lambda, Rds, Route53, S3, SecurityGroup, Vpc
Included in:
Generator::Spec::Ec2, Generator::Spec::Elb, Generator::Spec::IamPolicy, Generator::Spec::Rds, Generator::Spec::Route53HostedZone, Generator::Spec::SecurityGroup, Generator::Spec::Vpc, Type::Base
Defined in:
lib/awspec/helper/finder.rb,
lib/awspec/helper/finder/s3.rb,
lib/awspec/helper/finder/ebs.rb,
lib/awspec/helper/finder/ec2.rb,
lib/awspec/helper/finder/elb.rb,
lib/awspec/helper/finder/iam.rb,
lib/awspec/helper/finder/rds.rb,
lib/awspec/helper/finder/vpc.rb,
lib/awspec/helper/finder/lambda.rb,
lib/awspec/helper/finder/route53.rb,
lib/awspec/helper/finder/cloudwatch.rb,
lib/awspec/helper/finder/elasticache.rb,
lib/awspec/helper/finder/auto_scaling.rb,
lib/awspec/helper/finder/security_group.rb

Defined Under Namespace

Modules: AutoScaling, Cloudwatch, Ebs, Ec2, Elasticache, Elb, Iam, Lambda, Rds, Route53, S3, SecurityGroup, Vpc

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cloudwatch

#find_cloudwatch_alarm

Methods included from Elasticache

#find_cache_cluster, #find_cache_subnet_group

Methods included from Iam

#select_all_attached_policies, #select_attached_entities, #select_attached_groups, #select_attached_roles, #select_attached_users, #select_iam_group_by_user_name, #select_iam_policy_by_group_name, #select_iam_policy_by_role_name, #select_iam_policy_by_user_name, #select_policy_evaluation_results

Methods included from Lambda

#find_lambda, #select_event_source_by_function_arn

Methods included from Elb

#find_elb, #select_elb_by_vpc_id

Methods included from Ebs

#find_ebs, #select_ebs_by_instance_id

Methods included from AutoScaling

#find_auto_scaling_group

Methods included from S3

#find_bucket

Methods included from Route53

#find_hosted_zone

Methods included from Rds

#find_rds, #select_rds_by_vpc_id

Methods included from SecurityGroup

#find_security_group, #select_security_group_by_vpc_id

Methods included from Ec2

#find_ec2, #find_ec2_attribute, #find_internet_gateway, #find_security_group, #find_subnet, #select_ec2_by_vpc_id, #select_eip_by_instance_id

Methods included from Vpc

#find_network_acl, #find_route_table, #find_vpc, #select_network_acl_by_vpc_id, #select_route_table_by_vpc_id

Instance Attribute Details

#ec2_clientObject (readonly)

Returns the value of attribute ec2_client.



18
19
20
# File 'lib/awspec/helper/finder.rb', line 18

def ec2_client
  @ec2_client
end

Instance Method Details

#initialize(id = nil) ⇒ Object

rubocop:disable all



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/awspec/helper/finder.rb', line 34

def initialize(id = nil)
  @ec2_client = Aws::EC2::Client.new
  @rds_client = Aws::RDS::Client.new
  @route53_client = Aws::Route53::Client.new
  @s3_client = Aws::S3::Client.new
  @auto_scaling_client = Aws::AutoScaling::Client.new
  @elb_client = Aws::ElasticLoadBalancing::Client.new
  @lambda_client = Aws::Lambda::Client.new
  @iam_client = Aws::IAM::Client.new
  @elasticache_client = Aws::ElastiCache::Client.new
  @cloudwatch_client = Aws::CloudWatch::Client.new
end