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