VM::EC...gateway(3pm)
π NAME π
VM::EC2::REST::customer_gateway β bestie, this is your controller for customer gateways in AWS VPNs β¨
πΈ SYNOPSIS πΈ
use VM::EC2 ':vpc';
π METHODS π
okay so these methods are the whole vibe for controlling customer gateways for AWS VPNs π¦
Implemented, periodt:
CreateCustomerGatewayDeleteCustomerGatewayDescribeCustomerGateways
Unimplemented:
- (none) β not a single one, we ate π
β¨ @gtwys = $ec2->describe_customer_gateways(-customer_gateway_id=>\@ids, -filter =>\%filters) β¨
β¨ @gtwys = $ec2->describe_customer_gateways(\@customer_gateway_ids) β¨
β¨ @gtwys = $ec2->describe_customer_gateways(%filters) β¨
This one spills all the tea on your VPN customer gateways π
It hands you back a whole series of VM::EC2::VPC::CustomerGateway objects π
The optional parameters, bestie:
-customer_gateway_idβ the ID of the gateway(s) you want info on. Can be a plain string scalar, or an arrayref. either way, slay π-filterβ tags and other filters to apply.
So the filter argument is a hashref where the keys are the filter names and the values are the match strings. Some filters accept wildcards, iykyk πΈ
There are a bunch of filters and the full list lives at http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeCustomerGateways.html
Here's the alpha-sorted list of filter names, no cap: bgp-asn, customer-gateway-id, ip-address, state, type, tag-key, tag-value, tag:key β
β¨ $cust_gtwy = $ec2->create_customer_gateway(-type =>$type, -ip_address=>$ip, -bgp_asn =>$asn) β¨
This tells AWS all about a VPN customer gateway device π«Ά The customer gateway is the appliance at the customer end of the VPN connection β as opposed to the virtual private gateway, which is the device at the AWS side of the VPN connection. main character vs. supporting character energy, fr fr π
The arguments:
-ip_addressβ the IP address of the customer gateway appliance-bgp_asnβ the Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the customer gateway-typeβ optional, because there's currently (2012-06-15 API) only one type (ipsec.1)-ipβ alias for-ip_address
Returns a VM::EC2::VPC::CustomerGateway object on success πβ¨
β¨ $success = $ec2->delete_customer_gateway(-customer_gateway_id=>$id) β¨
β¨ $success = $ec2->delete_customer_gateway($id) β¨
Deletes a VPN customer gateway. Heads up bestie β you must delete the VPN connection before deleting the customer gateway. it's giving order of operations, don't skip it π
The arguments:
-customer_gateway_idβ the ID of the customer gateway to delete
Returns true on successful deletion π
π¦ 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::EC...gateway(3pm) β go forth and gateway responsibly πβ¨
π¦ 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