amazonka-ec2-1.6.0: 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 #

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 #

Contains the parameters for DeleteVpcPeeringConnection.

See: deleteVPCPeeringConnection smart constructor.

Instances

Eq DeleteVPCPeeringConnection # 
Data 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 # 
Show DeleteVPCPeeringConnection # 
Generic DeleteVPCPeeringConnection # 
Hashable DeleteVPCPeeringConnection # 
NFData DeleteVPCPeeringConnection # 
AWSRequest DeleteVPCPeeringConnection # 
ToHeaders DeleteVPCPeeringConnection # 
ToPath DeleteVPCPeeringConnection # 
ToQuery DeleteVPCPeeringConnection # 
type Rep DeleteVPCPeeringConnection # 
type Rep DeleteVPCPeeringConnection = D1 * (MetaData "DeleteVPCPeeringConnection" "Network.AWS.EC2.DeleteVPCPeeringConnection" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteVPCPeeringConnection'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dvpcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_dvpcVPCPeeringConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteVPCPeeringConnection # 

Request Lenses

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

dvpcVPCPeeringConnectionId :: Lens' DeleteVPCPeeringConnection Text #

The ID of the VPC peering connection.

Destructuring the Response

deleteVPCPeeringConnectionResponse #

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 #

Contains the output of DeleteVpcPeeringConnection.

See: deleteVPCPeeringConnectionResponse smart constructor.

Instances

Eq DeleteVPCPeeringConnectionResponse # 
Data DeleteVPCPeeringConnectionResponse # 

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 # 
Show DeleteVPCPeeringConnectionResponse # 
Generic DeleteVPCPeeringConnectionResponse # 
NFData DeleteVPCPeeringConnectionResponse # 
type Rep DeleteVPCPeeringConnectionResponse # 
type Rep DeleteVPCPeeringConnectionResponse = D1 * (MetaData "DeleteVPCPeeringConnectionResponse" "Network.AWS.EC2.DeleteVPCPeeringConnection" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteVPCPeeringConnectionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dvpcrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_dvpcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool) #

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