getFileSystemPolicy method

Future<GetFileSystemPolicyResponse> getFileSystemPolicy({
  1. required String fileSystemId,
})

Returns the IAM resource policy of an S3 File System.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter fileSystemId : The ID or Amazon Resource Name (ARN) of the S3 File System whose resource policy to retrieve.

Implementation

Future<GetFileSystemPolicyResponse> getFileSystemPolicy({
  required String fileSystemId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/file-systems/${Uri.encodeComponent(fileSystemId)}/policy',
    exceptionFnMap: _exceptionFns,
  );
  return GetFileSystemPolicyResponse.fromJson(response);
}