VM::EC...gateway(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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:

  • CreateCustomerGateway
  • DeleteCustomerGateway
  • DescribeCustomerGateways

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