o ckF[/@sDdZddlmZGdddeZGdddeZGdddeZd S) z& Represents a VPC Peering Connection. )TaggedEC2Objectc@s,eZdZddZddZddZddZd 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_idowner_id cidr_blockselfr 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__cCdSNr rnameattrs connectionr r r startElement-zVpcInfo.startElementcCsF|dkr ||_dS|dkr||_dS|dkr||_dSt|||dS)NvpcIdownerId cidrBlock)rrrsetattrrrvaluerr r r endElement0s   zVpcInfo.endElementN)__name__ __module__ __qualname__r r rrr r r r rs   rc@s2eZdZdZd ddZddZdd 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||_||_dSrcodemessage)rr#r$r r r r Js z#VpcPeeringConnectionStatus.__init__cCsd|j|jfS)Nz%s(%d)r"rr r r r Nsz#VpcPeeringConnectionStatus.__repr__cCrrr rr r r rQrz'VpcPeeringConnectionStatus.startElementcC4|dkr ||_dS|dkr||_dSt|||dS)Nr#r$)r#r$rrr r r rT   z%VpcPeeringConnectionStatus.endElement)rN)rrr __doc__r r rrr r r r r!:s   r!csleZdZdfdd ZeddZeddZdd Zfd d Zd d Z ddZ ddZ dddZ 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 idraccepter_vpc_inforequester_vpc_infoexpiration_timer!_status)rr __class__r r r `s   zVpcPeeringConnection.__init__cC|jjSr)r.r#rr r r status_coderz 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)NrequesterVpcInfoaccepterVpcInfostatus)r)r(rr,r+r.)rrrrretvalr/r r r}sz!VpcPeeringConnection.startElementcCr%)NvpcPeeringConnectionIdexpirationTime)r*r-rrr r r rr&zVpcPeeringConnection.endElementcCs|j|jSr)rdelete_vpc_peering_connectionr*rr r r deleteszVpcPeeringConnection.deletecCs|j|jdSr)__dict__update)rupdatedr r r _updateszVpcPeeringConnection._updateFcCsN|jj|jg|d}t|r|d}|||jS|r$td|jf|jS)N)dry_runrz)%s is not a valid VpcPeeringConnection ID)rget_all_vpc_peering_connectionsr*lenr@ ValueErrorr2)rvalidaterAvpc_peering_connection_listupdated_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.ec2objectrobjectrr!r(r r r r s  $