v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1431160173.1 KB

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.

put/2015-02-01/mount-targets/{MountTargetId}/security-groups

Path parameters

MountTargetIdstring required

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

Request body

SecurityGroupsSecurityGroup[]

An array of VPC security group IDs.

Response

Success