Module: Awspec::Helper::Finder

Includes:
AutoScaling, Ebs, Ec2, Elb, Rds, Route53, S3, SecurityGroup, Vpc
Included in:
Generator::Spec::Ec2, Generator::Spec::Elb, 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/rds.rb,
lib/awspec/helper/finder/vpc.rb,
lib/awspec/helper/finder/route53.rb,
lib/awspec/helper/finder/auto_scaling.rb,
lib/awspec/helper/finder/security_group.rb

Defined Under Namespace

Modules: AutoScaling, Ebs, Ec2, Elb, Rds, Route53, S3, SecurityGroup, Vpc

Instance Attribute Summary collapse

Instance Method Summary collapse

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_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.



14
15
16
# File 'lib/awspec/helper/finder.rb', line 14

def ec2_client
  @ec2_client
end

Instance Method Details

#initialize(id = nil) ⇒ Object

rubocop:disable all



26
27
28
29
30
31
32
33
# File 'lib/awspec/helper/finder.rb', line 26

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
end