Method: Fog::Compute::AWS::Real#delete_internet_gateway

Defined in:
lib/fog/aws/requests/compute/delete_internet_gateway.rb

#delete_internet_gateway(internet_gateway_id) ⇒ Object

Deletes an Internet gateway from your AWS account. The gateway must not be attached to a VPC

Parameters

  • internet_gateway_id<~String> - The ID of the InternetGateway you want to delete.

Returns

  • response<~Excon::Response>:

  • body<~Hash>:

  • ‘requestId’<~String> - Id of request

  • ‘return’<~Boolean> - Returns true if the request succeeds.

Amazon API Reference

[View source]

19
20
21
22
23
24
25
# File 'lib/fog/aws/requests/compute/delete_internet_gateway.rb', line 19

def delete_internet_gateway(internet_gateway_id)
  request(
    'Action' => 'DeleteInternetGateway',
    'InternetGatewayId' => internet_gateway_id,
    :parser => Fog::Parsers::Compute::AWS::DeleteInternetGateway.new
  )
end