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

Copyright(c) 2013-2017 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.DeleteNetworkInterfacePermission

Contents

Description

Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.

Synopsis

Creating a Request

deleteNetworkInterfacePermission Source #

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

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

  • dnipForce - Specify true to remove the permission even if the network interface is attached to an instance.
  • dnipDryRun - 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 .
  • dnipNetworkInterfacePermissionId - The ID of the network interface permission.

data DeleteNetworkInterfacePermission Source #

Contains the parameters for DeleteNetworkInterfacePermission.

See: deleteNetworkInterfacePermission smart constructor.

Instances

Eq DeleteNetworkInterfacePermission Source # 
Data DeleteNetworkInterfacePermission Source # 

Methods

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

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

toConstr :: DeleteNetworkInterfacePermission -> Constr #

dataTypeOf :: DeleteNetworkInterfacePermission -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteNetworkInterfacePermission Source # 
Show DeleteNetworkInterfacePermission Source # 
Generic DeleteNetworkInterfacePermission Source # 
Hashable DeleteNetworkInterfacePermission Source # 
NFData DeleteNetworkInterfacePermission Source # 
AWSRequest DeleteNetworkInterfacePermission Source # 
ToQuery DeleteNetworkInterfacePermission Source # 
ToPath DeleteNetworkInterfacePermission Source # 
ToHeaders DeleteNetworkInterfacePermission Source # 
type Rep DeleteNetworkInterfacePermission Source # 
type Rep DeleteNetworkInterfacePermission = D1 (MetaData "DeleteNetworkInterfacePermission" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DeleteNetworkInterfacePermission'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dnipForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dnipDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dnipNetworkInterfacePermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteNetworkInterfacePermission Source # 

Request Lenses

dnipForce :: Lens' DeleteNetworkInterfacePermission (Maybe Bool) Source #

Specify true to remove the permission even if the network interface is attached to an instance.

dnipDryRun :: Lens' DeleteNetworkInterfacePermission (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

deleteNetworkInterfacePermissionResponse Source #

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

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

data DeleteNetworkInterfacePermissionResponse Source #

Contains the output for DeleteNetworkInterfacePermission.

See: deleteNetworkInterfacePermissionResponse smart constructor.

Instances

Eq DeleteNetworkInterfacePermissionResponse Source # 
Data DeleteNetworkInterfacePermissionResponse Source # 

Methods

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

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

toConstr :: DeleteNetworkInterfacePermissionResponse -> Constr #

dataTypeOf :: DeleteNetworkInterfacePermissionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteNetworkInterfacePermissionResponse Source # 
Show DeleteNetworkInterfacePermissionResponse Source # 
Generic DeleteNetworkInterfacePermissionResponse Source # 
NFData DeleteNetworkInterfacePermissionResponse Source # 
type Rep DeleteNetworkInterfacePermissionResponse Source # 
type Rep DeleteNetworkInterfacePermissionResponse = D1 (MetaData "DeleteNetworkInterfacePermissionResponse" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DeleteNetworkInterfacePermissionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dniprsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dniprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dniprsReturn :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool) Source #

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