def describe_vpc_attribute(vpc_id, attribute)
response = Excon::Response.new
if vpc = self.data[:vpcs].find{ |v| v['vpcId'] == vpc_id }
response.status = 200
response.body = {
'requestId' => Fog::AWS::Mock.request_id,
'vpcId' => vpc_id
}
case attribute
when 'enableDnsSupport', 'enableDnsHostnames'
response.body[attribute] = vpc[attribute]
else
raise Fog::Compute::AWS::Error.new("Illegal attribute '#{attribute}' specified")
end
response
else
raise Fog::Compute::AWS::NotFound.new("The VPC '#{vpc_id}' does not exist")
end
end