import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ModifyMountTargetSecurityGroupsRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ModifyMountTargetSecurityGroupsCommand}. */ export interface ModifyMountTargetSecurityGroupsCommandInput extends ModifyMountTargetSecurityGroupsRequest { } /** * @public * * The output of {@link ModifyMountTargetSecurityGroupsCommand}. */ export interface ModifyMountTargetSecurityGroupsCommandOutput extends __MetadataBearer { } declare const ModifyMountTargetSecurityGroupsCommand_base: { new (input: ModifyMountTargetSecurityGroupsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ModifyMountTargetSecurityGroupsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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 CreateMountTarget. 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:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EFSClient, ModifyMountTargetSecurityGroupsCommand } from "@aws-sdk/client-efs"; // ES Modules import * // const { EFSClient, ModifyMountTargetSecurityGroupsCommand } = require("@aws-sdk/client-efs"); // CommonJS import * // import type { EFSClientConfig } from "@aws-sdk/client-efs"; * const config = {}; // type is EFSClientConfig * const client = new EFSClient(config); * const input = { // ModifyMountTargetSecurityGroupsRequest * MountTargetId: "STRING_VALUE", // required * SecurityGroups: [ // SecurityGroups * "STRING_VALUE", * ], * }; * const command = new ModifyMountTargetSecurityGroupsCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ModifyMountTargetSecurityGroupsCommandInput - {@link ModifyMountTargetSecurityGroupsCommandInput} * @returns {@link ModifyMountTargetSecurityGroupsCommandOutput} * @see {@link ModifyMountTargetSecurityGroupsCommandInput} for command's `input` shape. * @see {@link ModifyMountTargetSecurityGroupsCommandOutput} for command's `response` shape. * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape. * * @throws {@link BadRequest} (client fault) *

Returned if the request is malformed or contains an error such as an invalid * parameter value or a missing required parameter.

* * @throws {@link IncorrectMountTargetState} (client fault) *

Returned if the mount target is not in the correct state for the * operation.

* * @throws {@link InternalServerError} (server fault) *

Returned if an error occurred on the server side.

* * @throws {@link MountTargetNotFound} (client fault) *

Returned if there is no mount target with the specified ID found in the * caller's Amazon Web Services account.

* * @throws {@link SecurityGroupLimitExceeded} (client fault) *

Returned if the number of SecurityGroups specified in the request is * greater than the limit, which is based on account quota. Either delete some security groups * or request that the account quota be raised. For more information, see Amazon VPC Quotas * in the Amazon VPC User Guide (see the Security Groups * table). *

* * @throws {@link SecurityGroupNotFound} (client fault) *

Returned if one of the specified security groups doesn't exist in the subnet's * virtual private cloud (VPC).

* * @throws {@link EFSServiceException} *

Base exception class for all service exceptions from EFS service.

* * * @example To modify the security groups associated with a mount target for a file system * ```javascript * // This operation modifies the security groups associated with a mount target for a file system. * const input = { * MountTargetId: "fsmt-12340abc", * SecurityGroups: [ * "sg-abcd1234" * ] * }; * const command = new ModifyMountTargetSecurityGroupsCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class ModifyMountTargetSecurityGroupsCommand extends ModifyMountTargetSecurityGroupsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyMountTargetSecurityGroupsRequest; output: {}; }; sdk: { input: ModifyMountTargetSecurityGroupsCommandInput; output: ModifyMountTargetSecurityGroupsCommandOutput; }; }; }