amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteVPCPeeringConnection

Contents

Description

Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that's in the failed state.

Synopsis

Creating a Request

deleteVPCPeeringConnection Source #

Creates a value of DeleteVPCPeeringConnection with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dvpcDryRun - 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 .
  • dvpcVPCPeeringConnectionId - The ID of the VPC peering connection.

data DeleteVPCPeeringConnection Source #

Contains the parameters for DeleteVpcPeeringConnection.

See: deleteVPCPeeringConnection smart constructor.

Instances
Eq DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Data DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteVPCPeeringConnection -> c DeleteVPCPeeringConnection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteVPCPeeringConnection #

toConstr :: DeleteVPCPeeringConnection -> Constr #

dataTypeOf :: DeleteVPCPeeringConnection -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeleteVPCPeeringConnection) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteVPCPeeringConnection) #

gmapT :: (forall b. Data b => b -> b) -> DeleteVPCPeeringConnection -> DeleteVPCPeeringConnection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCPeeringConnection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCPeeringConnection -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteVPCPeeringConnection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteVPCPeeringConnection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnection -> m DeleteVPCPeeringConnection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnection -> m DeleteVPCPeeringConnection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnection -> m DeleteVPCPeeringConnection #

Read DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Show DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Generic DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Associated Types

type Rep DeleteVPCPeeringConnection :: Type -> Type #

Hashable DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

AWSRequest DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Associated Types

type Rs DeleteVPCPeeringConnection :: Type #

ToHeaders DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

ToPath DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

ToQuery DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

NFData DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

type Rep DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

type Rep DeleteVPCPeeringConnection = D1 (MetaData "DeleteVPCPeeringConnection" "Network.AWS.EC2.DeleteVPCPeeringConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteVPCPeeringConnection'" PrefixI True) (S1 (MetaSel (Just "_dvpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dvpcVPCPeeringConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteVPCPeeringConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Request Lenses

dvpcDryRun :: Lens' DeleteVPCPeeringConnection (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

deleteVPCPeeringConnectionResponse Source #

Creates a value of DeleteVPCPeeringConnectionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DeleteVPCPeeringConnectionResponse Source #

Contains the output of DeleteVpcPeeringConnection.

See: deleteVPCPeeringConnectionResponse smart constructor.

Instances
Eq DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Data DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteVPCPeeringConnectionResponse -> c DeleteVPCPeeringConnectionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteVPCPeeringConnectionResponse #

toConstr :: DeleteVPCPeeringConnectionResponse -> Constr #

dataTypeOf :: DeleteVPCPeeringConnectionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeleteVPCPeeringConnectionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteVPCPeeringConnectionResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteVPCPeeringConnectionResponse -> DeleteVPCPeeringConnectionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCPeeringConnectionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCPeeringConnectionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteVPCPeeringConnectionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteVPCPeeringConnectionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnectionResponse -> m DeleteVPCPeeringConnectionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnectionResponse -> m DeleteVPCPeeringConnectionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCPeeringConnectionResponse -> m DeleteVPCPeeringConnectionResponse #

Read DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Show DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Generic DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

Associated Types

type Rep DeleteVPCPeeringConnectionResponse :: Type -> Type #

NFData DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

type Rep DeleteVPCPeeringConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPCPeeringConnection

type Rep DeleteVPCPeeringConnectionResponse = D1 (MetaData "DeleteVPCPeeringConnectionResponse" "Network.AWS.EC2.DeleteVPCPeeringConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteVPCPeeringConnectionResponse'" PrefixI True) (S1 (MetaSel (Just "_dvpcrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool) Source #

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