amazonka-efs-1.4.5: Amazon Elastic File System SDK.

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

Network.AWS.EFS.ModifyMountTargetSecurityGroups

Contents

Description

Modifies the set of security groups in effect for a mount target.

When you create a mount target, Amazon EFS also creates a new network interface. For more information, see CreateMountTarget . This operation replaces the security groups in effect for the network interface associated with a mount target, with the SecurityGroups provided in the request. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted .

The operation requires permissions for the following actions:

  • elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount target's file system.
  • ec2:ModifyNetworkInterfaceAttribute action on the mount target's network interface.

Synopsis

Creating a Request

modifyMountTargetSecurityGroups #

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

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

data ModifyMountTargetSecurityGroups #

See: modifyMountTargetSecurityGroups smart constructor.

Instances

Eq ModifyMountTargetSecurityGroups # 
Data ModifyMountTargetSecurityGroups # 

Methods

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

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

toConstr :: ModifyMountTargetSecurityGroups -> Constr #

dataTypeOf :: ModifyMountTargetSecurityGroups -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyMountTargetSecurityGroups # 
Show ModifyMountTargetSecurityGroups # 
Generic ModifyMountTargetSecurityGroups # 
Hashable ModifyMountTargetSecurityGroups # 
ToJSON ModifyMountTargetSecurityGroups # 
NFData ModifyMountTargetSecurityGroups # 
AWSRequest ModifyMountTargetSecurityGroups # 
ToQuery ModifyMountTargetSecurityGroups # 
ToPath ModifyMountTargetSecurityGroups # 
ToHeaders ModifyMountTargetSecurityGroups # 
type Rep ModifyMountTargetSecurityGroups # 
type Rep ModifyMountTargetSecurityGroups = D1 (MetaData "ModifyMountTargetSecurityGroups" "Network.AWS.EFS.ModifyMountTargetSecurityGroups" "amazonka-efs-1.4.5-CIZ9ZRSiO7R8wPXU6nBzmB" False) (C1 (MetaCons "ModifyMountTargetSecurityGroups'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mmtsgSecurityGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_mmtsgMountTargetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ModifyMountTargetSecurityGroups # 

Request Lenses

mmtsgSecurityGroups :: Lens' ModifyMountTargetSecurityGroups [Text] #

Array of up to five VPC security group IDs.

mmtsgMountTargetId :: Lens' ModifyMountTargetSecurityGroups Text #

ID of the mount target whose security groups you want to modify.

Destructuring the Response

data ModifyMountTargetSecurityGroupsResponse #

Instances

Eq ModifyMountTargetSecurityGroupsResponse # 
Data ModifyMountTargetSecurityGroupsResponse # 

Methods

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

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

toConstr :: ModifyMountTargetSecurityGroupsResponse -> Constr #

dataTypeOf :: ModifyMountTargetSecurityGroupsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyMountTargetSecurityGroupsResponse # 
Show ModifyMountTargetSecurityGroupsResponse # 
Generic ModifyMountTargetSecurityGroupsResponse # 
NFData ModifyMountTargetSecurityGroupsResponse # 
type Rep ModifyMountTargetSecurityGroupsResponse # 
type Rep ModifyMountTargetSecurityGroupsResponse = D1 (MetaData "ModifyMountTargetSecurityGroupsResponse" "Network.AWS.EFS.ModifyMountTargetSecurityGroups" "amazonka-efs-1.4.5-CIZ9ZRSiO7R8wPXU6nBzmB" False) (C1 (MetaCons "ModifyMountTargetSecurityGroupsResponse'" PrefixI False) U1)