Ë
    ?—Öj�!  ã                   ó>   — d dl mZ d dlmZ ddlmZ  G d„ de«      Zy)é    )ÚActionResult)Úadd_tag_specificationé   )ÚEC2BaseResponsec                   ó´   — e Zd Zdefd„Zdefd„Zdefd„Zdefd„Zdefd„Zdefd„Z	defd„Z
defd	„Zdefd
„Zdefd„Zdefd„Zdefd„Zdefd„Zdefd„Zy)ÚTransitGatewayAttachmentÚreturnc                 ó(  — | j                  di «      }| j                  dg «      }| j                  d«      }| j                  d«      }| j                  «       j                  di «      }| j                  j	                  |||||¬«      }t        d|i«      S )NÚOptionsÚ	SubnetIdsÚTransitGatewayIdÚVpcIdztransit-gateway-route-table)Útransit_gateway_idÚtagsÚvpc_idÚ
subnet_idsÚoptionsÚTransitGatewayVpcAttachment)Ú
_get_paramÚ_parse_tag_specificationÚgetÚec2_backendÚ%create_transit_gateway_vpc_attachmentr   )Úselfr   r   r   r   r   Útransit_gateway_attachments          úk/var/www/photos/backend/venv/lib/python3.12/site-packages/moto/ec2/responses/transit_gateway_attachments.pyr   z>TransitGatewayAttachment.create_transit_gateway_vpc_attachment   s¡   € Ø—/‘/ )¨RÓ0ˆØ—_‘_ [°"Ó5ˆ
Ø!Ÿ_™_Ð-?Ó@ÐØ—‘ Ó)ˆà×,Ñ,Ó.×2Ñ2Ð3PÐRTÓUˆð ×Ñ×BÑBØ#5ØØØ%Øð Có ð 	#ô Ð:Ð<VÐWÓXÐXó    c                 óš   — | j                  dg «      }| j                  «       }| j                  j                  ||¬«      }t	        d|i«      S )NÚTransitGatewayAttachmentIds©Útransit_gateways_attachment_idsÚfiltersÚTransitGatewayVpcAttachments)r   Ú_filters_from_querystringr   Ú(describe_transit_gateway_vpc_attachmentsr   )r   r!   r"   Útransit_gateway_vpc_attachmentss       r   r%   zATransitGatewayAttachment.describe_transit_gateway_vpc_attachments   sc   € Ø*.¯/©/Ø)¨2ó+
Ð'ð ×0Ñ0Ó2ˆà×Ñ×EÑEØ0OØð Fó ð 	(ô Ø+Ð-LÐMó
ð 	
r   c                 óè   — | j                  dg «      }| j                  di «      }| j                  dg «      }| j                  d«      }| j                  j                  ||||¬«      }t        d|i«      S )NÚAddSubnetIdsr   ÚRemoveSubnetIdsÚTransitGatewayAttachmentId)Úadd_subnet_idsr   Úremove_subnet_idsÚtransit_gateway_attachment_idr   )r   r   Ú%modify_transit_gateway_vpc_attachmentr   )r   r+   r   r,   r-   r   s         r   r.   z>TransitGatewayAttachment.modify_transit_gateway_vpc_attachment*   s…   € ØŸ™¨¸Ó<ˆØ—/‘/ )¨RÓ0ˆØ ŸO™OÐ,=¸rÓBÐØ(,¯©Ð8TÓ(UÐ%ð ×Ñ×BÑBØ-ØØ"3Ø.Kð	 Có ð 	#ô Ð:Ð<VÐWÓXÐXr   c                 óš   — | j                  dg «      }| j                  «       }| j                  j                  ||¬«      }t	        d|i«      S )Nr   r    ÚTransitGatewayAttachments)r   r$   r   Ú$describe_transit_gateway_attachmentsr   )r   r!   r"   Útransit_gateway_attachmentss       r   r1   z=TransitGatewayAttachment.describe_transit_gateway_attachments:   s_   € Ø*.¯/©/Ø)¨2ó+
Ð'ð ×0Ñ0Ó2ˆà×Ñ×AÑAØ0OØð Bó ð 	$ô Ð8Ð:UÐVÓWÐWr   c                 óv   — | j                  d«      }| j                  j                  |¬«      }t        d|i«      S )Nr*   ©r-   r   )r   r   Ú%delete_transit_gateway_vpc_attachmentr   )r   r-   r   s      r   r5   z>TransitGatewayAttachment.delete_transit_gateway_vpc_attachmentG   sH   € Ø(,¯©Ð8TÓ(UÐ%à×Ñ×BÑBØ.Kð Có ð 	#ô
 Ð:Ð<VÐWÓXÐXr   c                 óš   — | j                  d«      }| j                  d«      }| j                  j                  ||¬«      }t        d|i«      S )Nr*   ÚTransitGatewayRouteTableId©r-   Útransit_gateway_route_table_idÚAssociation)r   r   Ú%associate_transit_gateway_route_tabler   )r   r-   r9   Útransit_gateway_associations       r   r;   z>TransitGatewayAttachment.associate_transit_gateway_route_tableP   sZ   € Ø(,¯©Ð8TÓ(UÐ%Ø)-¯©Ð9UÓ)VÐ&à×Ñ×BÑBØ.KØ/Mð Có ð 	$ô ˜]Ð,GÐHÓIÐIr   c                 ó˜   — | j                  d«      }| j                  d«      }| j                  j                  ||«      }t        d|i«      S )Nr*   r7   r:   )r   r   Ú(disassociate_transit_gateway_route_tabler   )r   Útgw_attach_idÚ	tgw_rt_idÚtgw_associations       r   r>   zATransitGatewayAttachment.disassociate_transit_gateway_route_table[   sM   € ØŸ™Ð(DÓEˆØ—O‘OÐ$@ÓAˆ	à×*Ñ*×SÑSØ˜9ó
ˆô ˜]¨OÐ<Ó=Ð=r   c                 óš   — | j                  d«      }| j                  d«      }| j                  j                  ||¬«      }t        d|i«      S ©Nr*   r7   r8   ÚPropagation)r   r   Ú.enable_transit_gateway_route_table_propagationr   ©r   r-   r9   Útransit_gateway_propagations       r   rE   zGTransitGatewayAttachment.enable_transit_gateway_route_table_propagationd   sZ   € Ø(,¯©Ð8TÓ(UÐ%Ø)-¯©Ð9UÓ)VÐ&à×Ñ×KÑKØ.KØ/Mð Ló ð 	$ô ˜]Ð,GÐHÓIÐIr   c                 óš   — | j                  d«      }| j                  d«      }| j                  j                  ||¬«      }t        d|i«      S rC   )r   r   Ú/disable_transit_gateway_route_table_propagationr   rF   s       r   rI   zHTransitGatewayAttachment.disable_transit_gateway_route_table_propagationo   sZ   € Ø(,¯©Ð8TÓ(UÐ%Ø)-¯©Ð9UÓ)VÐ&à×Ñ×LÑLØ.KØ/Mð Mó ð 	$ô ˜]Ð,GÐHÓIÐIr   c                 ó  — | j                  d«      }| j                  d«      }| j                  d«      }| j                  d«      }t        | j                  dg «      «      }| j                  j                  |||||«      }t	        d|i«      S )NÚPeerAccountIdÚ
PeerRegionÚPeerTransitGatewayIdr   ÚTagSpecificationsÚTransitGatewayPeeringAttachment)r   r   r   Ú)create_transit_gateway_peering_attachmentr   )r   Úpeer_account_idÚpeer_regionÚpeer_transit_gateway_idr   r   Ú"transit_gateway_peering_attachments          r   rP   zBTransitGatewayAttachment.create_transit_gateway_peering_attachmentz   s”   € ØŸ/™/¨/Ó:ˆØ—o‘o lÓ3ˆØ"&§/¡/Ð2HÓ"IÐØ!Ÿ_™_Ð-?Ó@ÐÜ$ T§_¡_Ð5HÈ"Ó%MÓNˆà×Ñ×FÑFØ"Ø'ØØØóð 	+ô Ø.Ð0RÐSó
ð 	
r   c                 óš   — | j                  dg «      }| j                  «       }| j                  j                  ||¬«      }t	        d|i«      S )Nr   r    Ú TransitGatewayPeeringAttachments)r   r$   r   Ú,describe_transit_gateway_peering_attachmentsr   )r   r!   r"   Ú#transit_gateway_peering_attachmentss       r   rW   zETransitGatewayAttachment.describe_transit_gateway_peering_attachments�   sc   € Ø*.¯/©/Ø)¨2ó+
Ð'ð ×0Ñ0Ó2ˆà×Ñ×IÑIØ0OØð Jó ð 	,ô Ø/Ð1TÐUó
ð 	
r   c                 óv   — | j                  d«      }| j                  j                  |¬«      }t        d|i«      S ©Nr*   r4   rO   )r   r   Ú)accept_transit_gateway_peering_attachmentr   ©r   r-   rT   s      r   r[   zBTransitGatewayAttachment.accept_transit_gateway_peering_attachmentœ   óL   € Ø(,¯©Ð8TÓ(UÐ%à×Ñ×FÑFØ.Kð Gó ð 	+ô
 Ø.Ð0RÐSó
ð 	
r   c                 óv   — | j                  d«      }| j                  j                  |¬«      }t        d|i«      S rZ   )r   r   Ú)delete_transit_gateway_peering_attachmentr   r\   s      r   r_   zBTransitGatewayAttachment.delete_transit_gateway_peering_attachment§   r]   r   c                 óv   — | j                  d«      }| j                  j                  |¬«      }t        d|i«      S rZ   )r   r   Ú)reject_transit_gateway_peering_attachmentr   r\   s      r   ra   zBTransitGatewayAttachment.reject_transit_gateway_peering_attachment²   r]   r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r%   r.   r1   r5   r;   r>   rE   rI   rP   rW   r[   r_   ra   © r   r   r   r      s¸   „ ðY°|ó Yð&
¸,ó 
ðY°|ó Yð X°ló XðY°|ó Yð	J°|ó 	Jð>¸,ó >ð	JÀó 	Jð	JÀó 	Jð
¸<ó 
ð&
¸ló 
ð	
¸<ó 	
ð	
¸<ó 	
ð	
¸<ô 	
r   r   N)Úmoto.core.responsesr   Úmoto.ec2.utilsr   Ú_base_responser   r   re   r   r   ú<module>ri      s   ðÝ ,Ý 0å +ôt
˜õ t
r   