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.
example
Use a bare-bones client and the command you need to make an API call.
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.Use a bare-bones client and the command you need to make an API call.
import { EFSClient, DescribeMountTargetSecurityGroupsCommand } from "@aws-sdk/client-efs"; // ES Modules import // const { EFSClient, DescribeMountTargetSecurityGroupsCommand } = require("@aws-sdk/client-efs"); // CommonJS import const client = new EFSClient(config); const command = new DescribeMountTargetSecurityGroupsCommand(input); const response = await client.send(command);
DescribeMountTargetSecurityGroupsCommandInput for command's
input
shape.DescribeMountTargetSecurityGroupsCommandOutput for command's
response
shape.config for EFSClient's
config
shape.