modify_vpc_peering_connection_options
¶
modify_vpc_peering_connection_options(
*,
config_overrides: Optional[EC2ClientConfig] = None,
accepter_peering_connection_options: Optional[
PeeringConnectionOptionsRequest
] = None,
dry_run: Optional[Boolean] = None,
requester_peering_connection_options: Optional[
PeeringConnectionOptionsRequest
] = None,
vpc_peering_connection_id: Optional[VpcPeeringConnectionId] = None,
) -> ModifyVpcPeeringConnectionOptionsResult
Modifies the VPC peering connection options on one side of a VPC peering connection.
If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.
Parameters:
-
accepter_peering_connection_options(Optional[PeeringConnectionOptionsRequest], default:None) –The VPC peering connection options for the accepter VPC.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
requester_peering_connection_options(Optional[PeeringConnectionOptionsRequest], default:None) –The VPC peering connection options for the requester VPC.
-
vpc_peering_connection_id(Optional[VpcPeeringConnectionId], default:None) –The ID of the VPC peering connection.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
54683 54684 54685 54686 54687 54688 54689 54690 54691 54692 54693 54694 54695 54696 54697 54698 54699 54700 54701 54702 54703 54704 54705 54706 54707 54708 54709 54710 54711 54712 54713 54714 54715 54716 54717 54718 54719 54720 54721 54722 54723 54724 54725 54726 54727 54728 54729 54730 54731 54732 54733 54734 54735 54736 54737 54738 54739 54740 54741 54742 54743 54744 54745 54746 54747 | |