describeBackupPolicy method

Future<BackupPolicyDescription> describeBackupPolicy({
  1. required String fileSystemId,
})

Returns the backup policy for the specified EFS file system.

May throw BadRequest. May throw FileSystemNotFound. May throw InternalServerError. May throw PolicyNotFound. May throw ValidationException.

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

Implementation

Future<BackupPolicyDescription> describeBackupPolicy({
  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)}/backup-policy',
    exceptionFnMap: _exceptionFns,
  );
  return BackupPolicyDescription.fromJson(response);
}