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

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 #

Contains the parameters for DeleteNetworkInterfacePermission.

See: deleteNetworkInterfacePermission smart constructor.

Instances

Eq DeleteNetworkInterfacePermission # 
Data DeleteNetworkInterfacePermission # 

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 # 
Show DeleteNetworkInterfacePermission # 
Generic DeleteNetworkInterfacePermission # 
Hashable DeleteNetworkInterfacePermission # 
NFData DeleteNetworkInterfacePermission # 
AWSRequest DeleteNetworkInterfacePermission # 
ToHeaders DeleteNetworkInterfacePermission # 
ToPath DeleteNetworkInterfacePermission # 
ToQuery DeleteNetworkInterfacePermission # 
type Rep DeleteNetworkInterfacePermission # 
type Rep DeleteNetworkInterfacePermission = D1 * (MetaData "DeleteNetworkInterfacePermission" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

dnipForce :: Lens' DeleteNetworkInterfacePermission (Maybe Bool) #

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

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

dnipNetworkInterfacePermissionId :: Lens' DeleteNetworkInterfacePermission Text #

The ID of the network interface permission.

Destructuring the Response

deleteNetworkInterfacePermissionResponse #

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 #

Contains the output for DeleteNetworkInterfacePermission.

See: deleteNetworkInterfacePermissionResponse smart constructor.

Instances

Eq DeleteNetworkInterfacePermissionResponse # 
Data DeleteNetworkInterfacePermissionResponse # 

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 # 
Show DeleteNetworkInterfacePermissionResponse # 
Generic DeleteNetworkInterfacePermissionResponse # 
NFData DeleteNetworkInterfacePermissionResponse # 
type Rep DeleteNetworkInterfacePermissionResponse # 
type Rep DeleteNetworkInterfacePermissionResponse = D1 * (MetaData "DeleteNetworkInterfacePermissionResponse" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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) #

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