class AWS::EC2::VPC

def vpn_gateway

Returns:
  • (VPNGateway, nil) - Returns the vpn gateway attached to
def vpn_gateway
  gateways = VPNGatewayCollection.new(:config => config)
  gateways.filter('attachment.vpc-id', vpc_id).first
end