Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeMountTargetSecurityGroupsCommand

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.

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);
see

DescribeMountTargetSecurityGroupsCommandInput for command's input shape.

see

DescribeMountTargetSecurityGroupsCommandOutput for command's response shape.

see

config for EFSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DescribeMountTargetSecurityGroupsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions