Module: Awspec::Helper::Finder

Includes:
Autoscaling, Cloudwatch, Directconnect, Ebs, Ec2, Elasticache, Elb, Iam, Lambda, Rds, Route53, S3, SecurityGroup, Ses, Vpc
Included in:
Generator::Spec::CloudwatchAlarm, Generator::Spec::Directconnect, Generator::Spec::Ebs, Generator::Spec::Ec2, Generator::Spec::Elb, Generator::Spec::IamPolicy, Generator::Spec::NetworkAcl, Generator::Spec::Rds, Generator::Spec::Route53HostedZone, Generator::Spec::RouteTable, Generator::Spec::S3Bucket, Generator::Spec::SecurityGroup, Generator::Spec::Subnet, 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/ses.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/autoscaling.rb,
lib/awspec/helper/finder/elasticache.rb,
lib/awspec/helper/finder/directconnect.rb,
lib/awspec/helper/finder/security_group.rb

Defined Under Namespace

Modules: Autoscaling, Cloudwatch, Directconnect, Ebs, Ec2, Elasticache, Elb, Iam, Lambda, Rds, Route53, S3, SecurityGroup, Ses, Vpc

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Directconnect

#find_virtual_interface, #select_virtual_interfaces

Methods included from Ses

#find_ses_identity

Methods included from Cloudwatch

#find_cloudwatch_alarm, #select_all_cloudwatch_alarms

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_all_attached_ebs, #select_ebs_by_instance_id

Methods included from Autoscaling

#find_autoscaling_group

Methods included from S3

#find_bucket, #find_bucket_acl, #find_bucket_cors, #find_bucket_policy, #select_all_buckets

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_security_group, #select_ec2_by_vpc_id, #select_eip_by_instance_id

Methods included from Vpc

#find_network_acl, #find_route_table, #find_subnet, #find_vpc, #find_vpc_peering_connection, #select_network_acl_by_vpc_id, #select_route_table_by_vpc_id, #select_subnet_by_vpc_id

Instance Attribute Details

#ec2_clientObject (readonly)

Returns the value of attribute ec2_client.



20
21
22
# File 'lib/awspec/helper/finder.rb', line 20

def ec2_client
  @ec2_client
end

Instance Method Details

#initialize(id = nil) ⇒ Object

rubocop:disable all



38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/awspec/helper/finder.rb', line 38

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
  @autoscaling_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
  @ses_client = Aws::SES::Client.new
  @directconnect_client = Aws::DirectConnect::Client.new
end