def _TransformCluster(resource):
  """Get Cluster ID from backup name."""
  # backup name is in the format of:
  # projects/{}/instances/{}/clusters/{}/backups/{}
  backup_name = resource.get('name')
  results = backup_name.split('/')
  cluster_name = results[-3]
  return cluster_name