ModifyMountTargetSecurityGroups
In this article:
ModifyMountTargetSecurityGroups#
Description#
Request to change security groups assigned to the EFS mount target.
Request Parameters#
MountTargetId — The ID of the mount target.
Type: String
Required: Yes
SecurityGroups — The IDs of the security groups.
Type: Array of strings
Required: Yes
Response Elements#
Response body is empty.
Examples#
PUT /2015-02-01/mount-targets/fsmt-D6155620/security-groups HTTP/1.1
Content-Type: application/json
{
"SecurityGroups": [ "sg-A685B024", "sg-197CB380" ]
}
aws efs modify-mount-target-security-groups --mount-target-id fsmt-D6155620 --security-groups sg-A685B024 sg-197CB380
c2-efs ModifyMountTargetSecurityGroups MountTargetId fsmt-D6155620 SecurityGroups.1 sg-A685B024 SecurityGroups.2 sg-197CB380