Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:
- Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.
- Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.
- Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.
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 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.
Synopsis
- data ModifyVpcPeeringConnectionOptions = ModifyVpcPeeringConnectionOptions' {}
- newModifyVpcPeeringConnectionOptions :: Text -> ModifyVpcPeeringConnectionOptions
- modifyVpcPeeringConnectionOptions_accepterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptions (Maybe PeeringConnectionOptionsRequest)
- modifyVpcPeeringConnectionOptions_dryRun :: Lens' ModifyVpcPeeringConnectionOptions (Maybe Bool)
- modifyVpcPeeringConnectionOptions_requesterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptions (Maybe PeeringConnectionOptionsRequest)
- modifyVpcPeeringConnectionOptions_vpcPeeringConnectionId :: Lens' ModifyVpcPeeringConnectionOptions Text
- data ModifyVpcPeeringConnectionOptionsResponse = ModifyVpcPeeringConnectionOptionsResponse' {}
- newModifyVpcPeeringConnectionOptionsResponse :: Int -> ModifyVpcPeeringConnectionOptionsResponse
- modifyVpcPeeringConnectionOptionsResponse_accepterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions)
- modifyVpcPeeringConnectionOptionsResponse_requesterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions)
- modifyVpcPeeringConnectionOptionsResponse_httpStatus :: Lens' ModifyVpcPeeringConnectionOptionsResponse Int
Creating a Request
data ModifyVpcPeeringConnectionOptions Source #
See: newModifyVpcPeeringConnectionOptions
smart constructor.
ModifyVpcPeeringConnectionOptions' | |
|
Instances
newModifyVpcPeeringConnectionOptions Source #
Create a value of ModifyVpcPeeringConnectionOptions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyVpcPeeringConnectionOptions
, modifyVpcPeeringConnectionOptions_accepterPeeringConnectionOptions
- The VPC peering connection options for the accepter VPC.
$sel:dryRun:ModifyVpcPeeringConnectionOptions'
, modifyVpcPeeringConnectionOptions_dryRun
- 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
.
ModifyVpcPeeringConnectionOptions
, modifyVpcPeeringConnectionOptions_requesterPeeringConnectionOptions
- The VPC peering connection options for the requester VPC.
ModifyVpcPeeringConnectionOptions
, modifyVpcPeeringConnectionOptions_vpcPeeringConnectionId
- The ID of the VPC peering connection.
Request Lenses
modifyVpcPeeringConnectionOptions_accepterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptions (Maybe PeeringConnectionOptionsRequest) Source #
The VPC peering connection options for the accepter VPC.
modifyVpcPeeringConnectionOptions_dryRun :: Lens' ModifyVpcPeeringConnectionOptions (Maybe Bool) Source #
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
.
modifyVpcPeeringConnectionOptions_requesterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptions (Maybe PeeringConnectionOptionsRequest) Source #
The VPC peering connection options for the requester VPC.
modifyVpcPeeringConnectionOptions_vpcPeeringConnectionId :: Lens' ModifyVpcPeeringConnectionOptions Text Source #
The ID of the VPC peering connection.
Destructuring the Response
data ModifyVpcPeeringConnectionOptionsResponse Source #
See: newModifyVpcPeeringConnectionOptionsResponse
smart constructor.
ModifyVpcPeeringConnectionOptionsResponse' | |
|
Instances
newModifyVpcPeeringConnectionOptionsResponse Source #
Create a value of ModifyVpcPeeringConnectionOptionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyVpcPeeringConnectionOptions
, modifyVpcPeeringConnectionOptionsResponse_accepterPeeringConnectionOptions
- Information about the VPC peering connection options for the accepter
VPC.
ModifyVpcPeeringConnectionOptions
, modifyVpcPeeringConnectionOptionsResponse_requesterPeeringConnectionOptions
- Information about the VPC peering connection options for the requester
VPC.
$sel:httpStatus:ModifyVpcPeeringConnectionOptionsResponse'
, modifyVpcPeeringConnectionOptionsResponse_httpStatus
- The response's http status code.
Response Lenses
modifyVpcPeeringConnectionOptionsResponse_accepterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions) Source #
Information about the VPC peering connection options for the accepter VPC.
modifyVpcPeeringConnectionOptionsResponse_requesterPeeringConnectionOptions :: Lens' ModifyVpcPeeringConnectionOptionsResponse (Maybe PeeringConnectionOptions) Source #
Information about the VPC peering connection options for the requester VPC.
modifyVpcPeeringConnectionOptionsResponse_httpStatus :: Lens' ModifyVpcPeeringConnectionOptionsResponse Int Source #
The response's http status code.