describeMountTargetSecurityGroups

Returns the security groups currently in effect for a mount target. 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.

This operation requires permissions for the following actions:

  • elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount target's file system.

  • ec2:DescribeNetworkInterfaceAttribute action on the mount target's network interface.

Samples


fun main() { 
   //sampleStart 
   // This operation describes all of the security groups for a file system s mount target.
val resp = efsClient.describeMountTargetSecurityGroups {
    mountTargetId = "fsmt-12340abc"
} 
   //sampleEnd
}