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

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Data DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Show DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Generic DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Associated Types

type Rep DeleteNetworkInterfacePermission :: Type -> Type #

Hashable DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

AWSRequest DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Associated Types

type Rs DeleteNetworkInterfacePermission :: Type #

ToHeaders DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

ToPath DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

ToQuery DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

NFData DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermission = D1 (MetaData "DeleteNetworkInterfacePermission" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DeleteNetworkInterfacePermission'" PrefixI True) (S1 (MetaSel (Just "_dnipForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_dnipDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dnipNetworkInterfacePermissionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Data DeleteNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Show DeleteNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

Generic DeleteNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

NFData DeleteNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermissionResponse = D1 (MetaData "DeleteNetworkInterfacePermissionResponse" "Network.AWS.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DeleteNetworkInterfacePermissionResponse'" PrefixI True) (S1 (MetaSel (Just "_dniprsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dniprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dniprsReturn :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool) #

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