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

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

See: AWS API Reference for ModifyMountTargetSecurityGroups.

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:

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