code: @Override
      public ModifyMountTargetSecurityGroupsResult modifyMountTargetSecurityGroups(ModifyMountTargetSecurityGroupsRequest request) {
          request = beforeClientExecution(request);
          return executeModifyMountTargetSecurityGroups(request);
      }
docs: <p>
  Modifies the set of security groups in effect for a mount target.
  </p>
  <p>
  When you create a mount target, Amazon EFS also creates a new network interface. For more information, see
  <a>CreateMountTarget</a>. This operation replaces the security groups in effect for the network interface
  associated with a mount target, with the <code>SecurityGroups</code> 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 <code>deleted</code>.
  </p>
  <p>
  The operation requires permissions for the following actions:
  </p>
  <ul>
  <li>
  <p>
  <code>elasticfilesystem:ModifyMountTargetSecurityGroups</code> action on the mount target's file system.
  </p>
  </li>
  <li>
  <p>
  <code>ec2:ModifyNetworkInterfaceAttribute</code> action on the mount target's network interface.
  </p>
  </li>
  </ul>
  
  @param modifyMountTargetSecurityGroupsRequest
  @return Result of the ModifyMountTargetSecurityGroups operation returned by the service.
  @throws BadRequestException
  Returned if the request is malformed or contains an error such as an invalid parameter value or a missing
  required parameter.
  @throws InternalServerErrorException
  Returned if an error occurred on the server side.
  @throws MountTargetNotFoundException
  Returned if there is no mount target with the specified ID found in the caller's account.
  @throws IncorrectMountTargetStateException
  Returned if the mount target is not in the correct state for the operation.
  @throws SecurityGroupLimitExceededException
  Returned if the size of <code>SecurityGroups</code> specified in the request is greater than five.
  @throws SecurityGroupNotFoundException
  Returned if one of the specified security groups doesn't exist in the subnet's VPC.
  @sample AmazonElasticFileSystem.ModifyMountTargetSecurityGroups
  @see <a
  href="http://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/ModifyMountTargetSecurityGroups"
  target="_top">AWS API Documentation</a>