modify_vpc_peering_connection_options
async
¶
modify_vpc_peering_connection_options(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 | |