amazonka-efs-1.4.1: 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 (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 life cycle 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 Source #

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

See: modifyMountTargetSecurityGroups smart constructor.

Instances

Eq ModifyMountTargetSecurityGroups Source # 
Data ModifyMountTargetSecurityGroups Source # 

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 Source # 
Show ModifyMountTargetSecurityGroups Source # 
Generic ModifyMountTargetSecurityGroups Source # 
Hashable ModifyMountTargetSecurityGroups Source # 
ToJSON ModifyMountTargetSecurityGroups Source # 
NFData ModifyMountTargetSecurityGroups Source # 
AWSRequest ModifyMountTargetSecurityGroups Source # 
ToQuery ModifyMountTargetSecurityGroups Source # 
ToPath ModifyMountTargetSecurityGroups Source # 
ToHeaders ModifyMountTargetSecurityGroups Source # 
type Rep ModifyMountTargetSecurityGroups Source # 
type Rep ModifyMountTargetSecurityGroups = D1 (MetaData "ModifyMountTargetSecurityGroups" "Network.AWS.EFS.ModifyMountTargetSecurityGroups" "amazonka-efs-1.4.1-CoDHaViJ5LPLGMXNZvbKJH" 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 Source # 

Request Lenses

mmtsgSecurityGroups :: Lens' ModifyMountTargetSecurityGroups [Text] Source #

An array of up to five VPC security group IDs.

mmtsgMountTargetId :: Lens' ModifyMountTargetSecurityGroups Text Source #

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

Destructuring the Response

data ModifyMountTargetSecurityGroupsResponse Source #

Instances

Eq ModifyMountTargetSecurityGroupsResponse Source # 
Data ModifyMountTargetSecurityGroupsResponse Source # 

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 Source # 
Show ModifyMountTargetSecurityGroupsResponse Source # 
Generic ModifyMountTargetSecurityGroupsResponse Source # 
NFData ModifyMountTargetSecurityGroupsResponse Source # 
type Rep ModifyMountTargetSecurityGroupsResponse Source # 
type Rep ModifyMountTargetSecurityGroupsResponse = D1 (MetaData "ModifyMountTargetSecurityGroupsResponse" "Network.AWS.EFS.ModifyMountTargetSecurityGroups" "amazonka-efs-1.4.1-CoDHaViJ5LPLGMXNZvbKJH" False) (C1 (MetaCons "ModifyMountTargetSecurityGroupsResponse'" PrefixI False) U1)