Module: Awspec::Helper::Finder::VpcEndpoints
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/vpc_endpoints.rb
Instance Method Summary collapse
Instance Method Details
#find_vpc_endpoint(id) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/awspec/helper/finder/vpc_endpoints.rb', line 4 def find_vpc_endpoint(id) res = ec2_client.describe_vpc_endpoints({ vpc_endpoint_ids: [id] }) ret = res.vpc_endpoints.select do |vpce| vpce.vpc_endpoint_id == id end ret.single_resource(id) end |