Modifies the set of security groups in effect for a mount target¶
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. For more information, see create_mount_target. 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:ModifyMountTargetSecurityGroupsaction on the mount target's file system.ec2:ModifyNetworkInterfaceAttributeaction on the mount target's network interface.
Usage¶
Arguments¶
-
MountTargetId[required] The ID of the mount target whose security groups you want to modify.
-
SecurityGroupsAn array of VPC security group IDs.
Value¶
An empty list.
Request syntax¶
svc$modify_mount_target_security_groups(
MountTargetId = "string",
SecurityGroups = list(
"string"
)
)