modify_vpc_peering_connection_options¶
Operation¶
modify_vpc_peering_connection_options
async
¶
modify_vpc_peering_connection_options(request: ModifyVpcPeeringConnectionOptionsInput | ModifyVpcPeeringConnectionOptionsInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyVpcPeeringConnectionOptionsOutput
modify_vpc_peering_connection_options(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyVpcPeeringConnectionOptionsInputDict]) -> ModifyVpcPeeringConnectionOptionsOutput
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:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
ModifyVpcPeeringConnectionOptionsOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
ModifyVpcPeeringConnectionOptionsInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcPeeringConnectionOptionsInput structure.
Attributes¶
accepter_peering_connection_options
class-attribute
instance-attribute
¶
accepter_peering_connection_options: PeeringConnectionOptionsRequest | None = ...
The VPC peering connection options for the accepter VPC.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
requester_peering_connection_options
class-attribute
instance-attribute
¶
requester_peering_connection_options: PeeringConnectionOptionsRequest | None = ...
The VPC peering connection options for the requester VPC.
Dictionaries¶
ModifyVpcPeeringConnectionOptionsInputDict
¶
Bases: TypedDict
Dictionary form of ModifyVpcPeeringConnectionOptionsInput.
Attributes¶
accepter_peering_connection_options
instance-attribute
¶
accepter_peering_connection_options: PeeringConnectionOptionsRequest | PeeringConnectionOptionsRequestDict | None
The VPC peering connection options for the accepter VPC.
dry_run
instance-attribute
¶
dry_run: bool | 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 is UnauthorizedOperation.
requester_peering_connection_options
instance-attribute
¶
requester_peering_connection_options: PeeringConnectionOptionsRequest | PeeringConnectionOptionsRequestDict | None
The VPC peering connection options for the requester VPC.
Output¶
ModifyVpcPeeringConnectionOptionsOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcPeeringConnectionOptionsOutput structure.
Attributes¶
accepter_peering_connection_options
class-attribute
instance-attribute
¶
accepter_peering_connection_options: PeeringConnectionOptions | None = ...
Information about the VPC peering connection options for the accepter VPC.
requester_peering_connection_options
class-attribute
instance-attribute
¶
requester_peering_connection_options: PeeringConnectionOptions | None = ...
Information about the VPC peering connection options for the requester VPC.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.