NAME
VM::EC2::VPC::PeeringConnection - Virtual Private Cloud Peering Connection
SYNOPSIS
use VM::EC2;my $ec2 = VM::EC2->new(...);my $pcx = $ec2->describe_vpc_peering_connections(-vpc_peering_connection_id=>'pcx-12345678');my $status = $pcx->status;
DESCRIPTION
This object represents an Amazon EC2 VPC peering connection, and is returned by VM::EC2->describe_vpc_peering_connections(), create_vpc_peering_connection(), and accept_vpc_peering_connection().
METHODS
These object methods are supported:
vpcPeeringConnectionId -- The ID of the VPC peering connectionrequesterVpcInfo -- Information about the requester VPCaccepterVpcInfo -- Information about the accepter VPCstatus -- The status of the VPC peering connectionexpirationTime -- The time that an unaccepted VPC peeringconnection will expiretagSet -- Tags assigned to the resource.
The following convenience methods are provided:
accept -- Accepts the peering connection request.NOTE: must be in the 'pending-acceptance'state to be successfulreject -- Rejects the peering connection request.NOTE: must be in the 'pending-acceptance'state to be successfulrefresh -- Refreshes the objectcurrent_status -- Refreshes the object and returns thestatus. Useful for checking statusafter calling reject() or accept()
The object also supports the tags() method described in VM::EC2::Generic:
STRING OVERLOADING
When used in a string context, this object will interpolate the vpcPeeringConnectionId
SEE ALSO
VM::EC2 VM::EC2::Generic VM::EC2::Tag VM::EC2::VPC
AUTHOR
Lance Kinley <[email protected]>.
Copyright (c) 2014 Loyalty Methods, Inc.
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.