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

Description

Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

Synopsis

Creating a Request

data RejectVpcPeeringConnection Source #

See: newRejectVpcPeeringConnection smart constructor.

Constructors

RejectVpcPeeringConnection' 

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 :: Text

    The ID of the VPC peering connection.

Instances

Instances details
ToHeaders RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

ToPath RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

ToQuery RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

AWSRequest RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Generic RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Associated Types

type Rep RejectVpcPeeringConnection :: Type -> Type #

Read RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Show RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

NFData RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Eq RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Hashable RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

type AWSResponse RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

type Rep RejectVpcPeeringConnection Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

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

newRejectVpcPeeringConnection Source #

Create a value of RejectVpcPeeringConnection 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:RejectVpcPeeringConnection', rejectVpcPeeringConnection_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.

RejectVpcPeeringConnection, rejectVpcPeeringConnection_vpcPeeringConnectionId - The ID of the VPC peering connection.

Request Lenses

rejectVpcPeeringConnection_dryRun :: Lens' RejectVpcPeeringConnection (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 RejectVpcPeeringConnectionResponse Source #

Constructors

RejectVpcPeeringConnectionResponse' 

Fields

Instances

Instances details
Generic RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Associated Types

type Rep RejectVpcPeeringConnectionResponse :: Type -> Type #

Read RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Show RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

NFData RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

Eq RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

type Rep RejectVpcPeeringConnectionResponse Source # 
Instance details

Defined in Amazonka.EC2.RejectVpcPeeringConnection

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

newRejectVpcPeeringConnectionResponse Source #

Create a value of RejectVpcPeeringConnectionResponse 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:return':RejectVpcPeeringConnectionResponse', rejectVpcPeeringConnectionResponse_return - Returns true if the request succeeds; otherwise, it returns an error.

$sel:httpStatus:RejectVpcPeeringConnectionResponse', rejectVpcPeeringConnectionResponse_httpStatus - The response's http status code.

Response Lenses

rejectVpcPeeringConnectionResponse_return :: Lens' RejectVpcPeeringConnectionResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.