VM::EC...gateway(3pm)
π NAME π
VM::EC2::REST::internet_gateway β bestie, this is the page that lets you Create, associate and delete Internet Gateway objects β¨ (it's part of the User Contributed Perl Documentation, iykyk π )
πΈ SYNOPSIS πΈ
use VM::EC2 ':vpc'
that's it. that's the whole vibe check. π
β¨ METHODS β¨
These methods provide methods for creating, associating and deleting Internet Gateway objects. yes we said methods twice, no we are not sorry, it's giving thorough π
Implemented:
AttachInternetGatewayCreateInternetGatewayDeleteInternetGatewayDescribeInternetGatewaysDetachInternetGateway
Unimplemented:
- (none) β not a single one, we ate and left zero crumbs π
π¦ $gateway = $ec2->create_internet_gateway()
okay so this one creates a brand new Internet gateway. it takes no arguments, like, at all, it just vibes. it returns a VM::EC2::VPC::InternetGateway object π«Ά
and here's the tea: gateways are initially independent of any VPC, so at first they're literally single and ready to mingle. but later they can be attached to one or more VPCs using attach_internet_gateway() π
π $success = $ec2->delete_internet_gateway($internet_gateway_id)
π $success = $ec2->delete_internet_gateway(-internet_gateway_id=>$id)
this method deletes the indicated internet gateway. you can call it with a single argument corresponding to the route table's ID, or use the named form with the argument -internet_gateway_id. pick your fighter, both slay π
π @gateways = $ec2->describe_internet_gateways(@gateway_ids)
π @gateways = $ec2->describe_internet_gateways(\%filters)
π @gateways = $ec2->describe_internet_gateways(-internet_gateway_id=>\@ids, -filter =>\$filters)
this method describes all or some of the internet gateways available to you. you may use the filter to restrict the search to a particular type of internet gateway using one or more of the filters described at:
Some of the commonly used filters are:
attachment.vpc-idβ ID of one of the VPCs the gateway is attached toattachment.stateβ State of the gateway, always"available"tag:<key>β Value of a tag
On success this method returns a list of VM::EC2::VPC::InternetGateway objects. a whole list. iconic behavior fr fr β
π§ $boolean = $ec2->attach_internet_gateway($internet_gateway_id,$vpc_id)
π§ $boolean = $ec2->attach_internet_gateway(-internet_gateway_id => $id, -vpc_id => $id)
This method attaches an internet gateway to a VPC. You can use internet gateway and VPC IDs, or their corresponding VM::EC2::VPC::InternetGateway and VM::EC2::VPC objects. π
Required arguments:
-internet_gateway_idβ ID of the network interface to attach.-vpc_idβ ID of the instance to attach the interface to.
On success, this method a true value. π (we're quoting the ancestors here, the sentence is missing a verb but the truth remains: you get a true value back, no cap)
Note that it may be more convenient to attach and detach gateways via methods in theVM::EC2::VPCandVM::EC2::VPC::Gatewayobjects. like, lowkey way easier:
$vpc->attach_internet_gateway($gateway);
$gateway->attach($vpc);
π $boolean = $ec2->detach_internet_gateway($internet_gateway_id,$vpc_id)
π $boolean = $ec2->detach_internet_gateway(-internet_gateway_id => $id, -vpc_id => $id)
This method detaches an internet gateway to a VPC. You can use internet gateway and VPC IDs, or their corresponding VM::EC2::VPC::InternetGateway and VM::EC2::VPC objects. same energy as before, just the reverse direction bestie π¦
Required arguments:
-internet_gateway_idβ ID of the network interface to detach.-vpc_idβ ID of the VPC to detach the gateway from.
On success, this method a true value. (again!! the missing verb jumpscare π but yes: true value on success)
Note that it may be more convenient to detach and detach gateways via methods in theVM::EC2::VPCandVM::EC2::VPC::Gatewayobjects. and yes, the original says "detach and detach" β we are NOT editing the source material, we respect the canon π
$vpc->detach_internet_gateway($gateway);
$gateway->detach($vpc);
π SEE ALSO π
VM::EC2
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>.
Copyright (c) 2011 Ontario Institute for Cancer Research
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty. πβ¨
and that's the whole page, bestie π«Ά this was perl v5.38.2, dated 2024-08-10, from VM::EC2...gateway(3pm) β go forth and attach those gateways, main character energy only π
π
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms