def describe_vpc_classic_link(options={})
response = Excon::Response.new
vpcs = self.data[:vpcs]
if vpc_ids = options[:vpc_ids]
vpcs = vpc_ids.collect do |vpc_id|
vpc = vpcs.find{ |v| v['vpcId'] == vpc_id }
raise Fog::Compute::AWS::NotFound.new("The VPC '#{vpc_id}' does not exist") unless vpc
vpc
end
end
vpcs = apply_tag_filters(vpcs, options[:filters], 'vpcId') if options[:filters]
response.status = 200
vpc_data = vpcs.collect do |vpc|
{
'vpcId' => vpc['vpcId'],
'classicLinkEnabled' => vpc['classicLinkEnabled'],
'tagSet' => self.data[:tag_sets][vpc['vpcId']] || {}
}
end
response.body = {
'requestId' => Fog::AWS::Mock.request_id,
'vpcSet' => vpc_data
}
response
end