amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Description

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

Creating a Request

data ModifyVpcPeeringConnectionOptions Source #

See: newModifyVpcPeeringConnectionOptions smart constructor.

Constructors

ModifyVpcPeeringConnectionOptions' 

Fields

Instances

Instances details
ToHeaders ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

ToPath ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

ToQuery ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

AWSRequest ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Generic ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Associated Types

type Rep ModifyVpcPeeringConnectionOptions :: Type -> Type #

Read ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Show ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

NFData ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Eq ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Hashable ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

type AWSResponse ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

type Rep ModifyVpcPeeringConnectionOptions Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

type Rep ModifyVpcPeeringConnectionOptions = D1 ('MetaData "ModifyVpcPeeringConnectionOptions" "Amazonka.EC2.ModifyVpcPeeringConnectionOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVpcPeeringConnectionOptions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accepterPeeringConnectionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PeeringConnectionOptionsRequest)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "requesterPeeringConnectionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PeeringConnectionOptionsRequest)) :*: S1 ('MetaSel ('Just "vpcPeeringConnectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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_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.

Destructuring the Response

data ModifyVpcPeeringConnectionOptionsResponse Source #

Constructors

ModifyVpcPeeringConnectionOptionsResponse' 

Fields

Instances

Instances details
Generic ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Read ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Show ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

NFData ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

Eq ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

type Rep ModifyVpcPeeringConnectionOptionsResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcPeeringConnectionOptions

type Rep ModifyVpcPeeringConnectionOptionsResponse = D1 ('MetaData "ModifyVpcPeeringConnectionOptionsResponse" "Amazonka.EC2.ModifyVpcPeeringConnectionOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyVpcPeeringConnectionOptionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accepterPeeringConnectionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PeeringConnectionOptions)) :*: (S1 ('MetaSel ('Just "requesterPeeringConnectionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PeeringConnectionOptions)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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