Sha256: d5f40171f4f0501ed127f1c852a759b316d5c15794a66347a603ca01ce03266a

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Awspec::Helper
  module Finder
    module VpcEndpoints
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awspec-1.25.2 lib/awspec/helper/finder/vpc_endpoints.rb