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

Description

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.

Synopsis

Creating a Request

data AcceptVpcPeeringConnection Source #

See: newAcceptVpcPeeringConnection smart constructor.

Constructors

AcceptVpcPeeringConnection' 

Fields

  • dryRun :: Maybe Bool

    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.

  • vpcPeeringConnectionId :: Maybe Text

    The ID of the VPC peering connection. You must specify this parameter in the request.

Instances

Instances details
ToHeaders AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

ToPath AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

ToQuery AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

AWSRequest AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Generic AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Associated Types

type Rep AcceptVpcPeeringConnection :: Type -> Type #

Read AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Show AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

NFData AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Eq AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Hashable AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

type AWSResponse AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

type Rep AcceptVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

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

newAcceptVpcPeeringConnection :: AcceptVpcPeeringConnection Source #

Create a value of AcceptVpcPeeringConnection 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:

$sel:dryRun:AcceptVpcPeeringConnection', acceptVpcPeeringConnection_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.

AcceptVpcPeeringConnection, acceptVpcPeeringConnection_vpcPeeringConnectionId - The ID of the VPC peering connection. You must specify this parameter in the request.

Request Lenses

acceptVpcPeeringConnection_dryRun :: Lens' AcceptVpcPeeringConnection (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.

acceptVpcPeeringConnection_vpcPeeringConnectionId :: Lens' AcceptVpcPeeringConnection (Maybe Text) Source #

The ID of the VPC peering connection. You must specify this parameter in the request.

Destructuring the Response

data AcceptVpcPeeringConnectionResponse Source #

Constructors

AcceptVpcPeeringConnectionResponse' 

Fields

Instances

Instances details
Generic AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Associated Types

type Rep AcceptVpcPeeringConnectionResponse :: Type -> Type #

Read AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Show AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

NFData AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

Eq AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

type Rep AcceptVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.AcceptVpcPeeringConnection

type Rep AcceptVpcPeeringConnectionResponse = D1 ('MetaData "AcceptVpcPeeringConnectionResponse" "Amazonka.EC2.AcceptVpcPeeringConnection" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AcceptVpcPeeringConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vpcPeeringConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcPeeringConnection)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAcceptVpcPeeringConnectionResponse Source #

Create a value of AcceptVpcPeeringConnectionResponse 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:

AcceptVpcPeeringConnectionResponse, acceptVpcPeeringConnectionResponse_vpcPeeringConnection - Information about the VPC peering connection.

$sel:httpStatus:AcceptVpcPeeringConnectionResponse', acceptVpcPeeringConnectionResponse_httpStatus - The response's http status code.

Response Lenses