HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/boto/vpc/__pycache__/vpc_peering_connection.cpython-310.pyc
o

ckF[/�@sDdZddlmZGdd�de�ZGdd�de�ZGdd�de�Zd	S)
z&
Represents a VPC Peering Connection.
�)�TaggedEC2Objectc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�VpcInfocCsd|_d|_d|_dS)z�
        Information on peer Vpc.
        
        :ivar id: The unique ID of peer Vpc.
        :ivar owner_id: Owner of peer Vpc.
        :ivar cidr_block: CIDR Block of peer Vpc.
        N)�vpc_id�owner_id�
cidr_block��self�r	�A/usr/lib/python3/dist-packages/boto/vpc/vpc_peering_connection.py�__init__s	
zVpcInfo.__init__cC�
d|jS)Nz
VpcInfo:%s)rrr	r	r
�__repr__*�
zVpcInfo.__repr__cC�dS�Nr	�r�name�attrs�
connectionr	r	r
�startElement-�zVpcInfo.startElementcCsF|dkr	||_dS|dkr||_dS|dkr||_dSt|||�dS)N�vpcId�ownerId�	cidrBlock)rrr�setattr�rr�valuerr	r	r
�
endElement0s


zVpcInfo.endElementN)�__name__�
__module__�__qualname__rr
rrr	r	r	r
rs

rc@s2eZdZdZddd�Zdd�Zdd	�Zd
d�ZdS)
�VpcPeeringConnectionStatusa�
    The status of VPC peering connection.

    :ivar code: The status of the VPC peering connection. Valid values are:

        * pending-acceptance
        * failed
        * expired
        * provisioning
        * active
        * deleted
        * rejected

    :ivar message: A message that provides more information about the status of the VPC peering connection, if applicable.
    rNcCs||_||_dSr��code�message)rr#r$r	r	r
rJs
z#VpcPeeringConnectionStatus.__init__cCsd|j|jfS)Nz%s(%d)r"rr	r	r
r
Nsz#VpcPeeringConnectionStatus.__repr__cCrrr	rr	r	r
rQrz'VpcPeeringConnectionStatus.startElementcC�4|dkr	||_dS|dkr||_dSt|||�dS)Nr#r$)r#r$rrr	r	r
rT�


z%VpcPeeringConnectionStatus.endElement)rN)rrr �__doc__rr
rrr	r	r	r
r!:s
r!csleZdZd�fdd�	Zedd��Zedd��Zdd	�Z�fd
d�Zdd
�Z	dd�Z
dd�Zddd�Z�Z
S)�VpcPeeringConnectionNcs8tt|��|�d|_t�|_t�|_d|_t�|_	dS)a
        Represents a VPC peering connection.

        :ivar id: The unique ID of the VPC peering connection.
        :ivar accepter_vpc_info: Information on peer Vpc.
        :ivar requester_vpc_info: Information on requester Vpc.
        :ivar expiration_time: The expiration date and time for the VPC peering connection.
        :ivar status_code: The status of the VPC peering connection.
        :ivar status_message: A message that provides more information about the status of the VPC peering connection, if applicable.
        N)
�superr(r�idr�accepter_vpc_info�requester_vpc_info�expiration_timer!�_status)rr��	__class__r	r
r`szVpcPeeringConnection.__init__cC�|jjSr)r.r#rr	r	r
�status_coder�z VpcPeeringConnection.status_codecCr1r)r.r$rr	r	r
�status_messagevr3z#VpcPeeringConnection.status_messagecCr)NzVpcPeeringConnection:%s)r*rr	r	r
r
zrzVpcPeeringConnection.__repr__csNtt|��|||�}|dur|S|dkr|jS|dkr|jS|dkr%|jSdS)N�requesterVpcInfo�accepterVpcInfo�status)r)r(rr,r+r.)rrrr�retvalr/r	r
r}sz!VpcPeeringConnection.startElementcCr%)N�vpcPeeringConnectionId�expirationTime)r*r-rrr	r	r
r�r&zVpcPeeringConnection.endElementcCs|j�|j�Sr)r�delete_vpc_peering_connectionr*rr	r	r
�delete�szVpcPeeringConnection.deletecCs|j�|j�dSr)�__dict__�update)r�updatedr	r	r
�_update�szVpcPeeringConnection._updateFcCsN|jj|jg|d�}t|�r|d}|�|�|jS|r$td|jf��|jS)N)�dry_runrz)%s is not a valid VpcPeeringConnection ID)r�get_all_vpc_peering_connectionsr*�lenr@�
ValueErrorr2)r�validaterA�vpc_peering_connection_list�updated_vpc_peering_connectionr	r	r
r>�s�
�zVpcPeeringConnection.updater)FF)rrr r�propertyr2r4r
rrr<r@r>�
__classcell__r	r	r/r
r(^s

r(N)r'�boto.ec2.ec2objectr�objectrr!r(r	r	r	r
�<module>s
$