lib/ec2/right_ec2_vpc2.rb
# Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC.
# The VPC must not contain any running instances with Elastic IP addresses. 
#
#  ec2.detach_internet_gateway("igw-6585c10c", "vpc-df80a6b6") #=> true
#
# P.S. http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DetachInternetGateway.html
#
Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC.
The VPC must not contain any running instances with Elastic IP addresses.




Detaches an Internet gateway from a VPC disabling connectivity between the Internet and the VPC . The VPC must not contain any running instances with Elastic IP addresses .
def detach_internet_gateway(internet_gateway_id, vpc_id)
      request_hash = { 'InternetGatewayId' => internet_gateway_id,
                       'VpcId'             => vpc_id }
      link = generate_request("DetachInternetGateway", request_hash)
      request_info(link, RightHttp2xxParser::new(:logger => @logger))
    rescue Exception
      on_exception
    end
def detach_internet_gateway ( internet_gateway_id , vpc_id ) request_hash = { 'InternetGatewayId' => internet_gateway_id , 'VpcId' => vpc_id } link = generate_request ( "DetachInternetGateway" , request_hash ) request_info ( link , RightHttp2xxParser :: new ( :logger => @logger ) ) rescue Exception on_exception end
Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC.
Detaches an Internet gateway from a VPC disabling connectivity between the Internet and the VPC .
internet_gateway_id
<not_specific>
vpc_id
<not_specific>