describeFileSystemPolicy method

Future<FileSystemPolicyDescription> describeFileSystemPolicy({
  1. required String fileSystemId,
})

Returns the FileSystemPolicy for the specified EFS file system.

This operation requires permissions for the elasticfilesystem:DescribeFileSystemPolicy action.

May throw InternalServerError. May throw FileSystemNotFound. May throw PolicyNotFound.

Parameter fileSystemId : Specifies which EFS file system to retrieve the FileSystemPolicy for.

Implementation

Future<FileSystemPolicyDescription> describeFileSystemPolicy({
  required String fileSystemId,
}) async {
  ArgumentError.checkNotNull(fileSystemId, 'fileSystemId');
  _s.validateStringLength(
    'fileSystemId',
    fileSystemId,
    0,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2015-02-01/file-systems/${Uri.encodeComponent(fileSystemId)}/policy',
    exceptionFnMap: _exceptionFns,
  );
  return FileSystemPolicyDescription.fromJson(response);
}