import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { FileSystemPolicyDescription, PutFileSystemPolicyRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutFileSystemPolicyCommand}. */ export interface PutFileSystemPolicyCommandInput extends PutFileSystemPolicyRequest { } /** * @public * * The output of {@link PutFileSystemPolicyCommand}. */ export interface PutFileSystemPolicyCommandOutput extends FileSystemPolicyDescription, __MetadataBearer { } declare const PutFileSystemPolicyCommand_base: { new (input: PutFileSystemPolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutFileSystemPolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Applies an Amazon EFS * FileSystemPolicy to an Amazon EFS file system. A file system policy is an * IAM resource-based policy and can contain multiple policy statements. A file system always has * exactly one file system policy, which can be the default policy or an explicit policy set or * updated using this API operation. EFS file system policies have a 20,000 character * limit. When an explicit policy is set, it overrides the default policy. For more information * about the default file system policy, see * Default EFS file system policy.

* *

EFS file system policies have a 20,000 character limit.

*
*

This operation requires permissions for the elasticfilesystem:PutFileSystemPolicy action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EFSClient, PutFileSystemPolicyCommand } from "@aws-sdk/client-efs"; // ES Modules import * // const { EFSClient, PutFileSystemPolicyCommand } = 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 = { // PutFileSystemPolicyRequest * FileSystemId: "STRING_VALUE", // required * Policy: "STRING_VALUE", // required * BypassPolicyLockoutSafetyCheck: true || false, * }; * const command = new PutFileSystemPolicyCommand(input); * const response = await client.send(command); * // { // FileSystemPolicyDescription * // FileSystemId: "STRING_VALUE", * // Policy: "STRING_VALUE", * // }; * * ``` * * @param PutFileSystemPolicyCommandInput - {@link PutFileSystemPolicyCommandInput} * @returns {@link PutFileSystemPolicyCommandOutput} * @see {@link PutFileSystemPolicyCommandInput} for command's `input` shape. * @see {@link PutFileSystemPolicyCommandOutput} 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 FileSystemNotFound} (client fault) *

Returned if the specified FileSystemId value doesn't exist in the * requester's Amazon Web Services account.

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

Returned if the file system's lifecycle state is not "available".

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

Returned if an error occurred on the server side.

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

Returned if the FileSystemPolicy is malformed or contains an error such * as a parameter value that is not valid or a missing required parameter. Returned in the * case of a policy lockout safety check error.

* * @throws {@link EFSServiceException} *

Base exception class for all service exceptions from EFS service.

* * * @public */ export declare class PutFileSystemPolicyCommand extends PutFileSystemPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutFileSystemPolicyRequest; output: FileSystemPolicyDescription; }; sdk: { input: PutFileSystemPolicyCommandInput; output: PutFileSystemPolicyCommandOutput; }; }; }