describe_file_system_policy

describe_file_system_policy(**kwargs)

Returns the FileSystemPolicy for the specified EFS file system.

This operation requires permissions for the elasticfilesystem:DescribeFileSystemPolicy action.

See also: AWS API Documentation

Request Syntax

response = client.describe_file_system_policy(
    FileSystemId='string'
)
Parameters
FileSystemId (string) --

[REQUIRED]

Specifies which EFS file system to retrieve the FileSystemPolicy for.

Return type
dict
Returns
Response Syntax
{
    'FileSystemId': 'string',
    'Policy': 'string'
}

Response Structure

  • (dict) --
    • FileSystemId (string) --

      Specifies the EFS file system to which the FileSystemPolicy applies.

    • Policy (string) --

      The JSON formatted FileSystemPolicy for the EFS file system.

Exceptions

  • EFS.Client.exceptions.BadRequest
  • EFS.Client.exceptions.InternalServerError
  • EFS.Client.exceptions.FileSystemNotFound
  • EFS.Client.exceptions.PolicyNotFound