code: func (manager *credentialsManager) GetTaskCredentials(id string) (TaskIAMRoleCredentials, bool) {
  	manager.taskCredentialsLock.RLock()
  	defer manager.taskCredentialsLock.RUnlock()
  
  	taskCredentials, ok := manager.idToTaskCredentials[id]
  
  	if !ok {
  		return TaskIAMRoleCredentials{}, ok
  	}
  	return TaskIAMRoleCredentials{
  		ARN:                taskCredentials.ARN,
  		IAMRoleCredentials: taskCredentials.GetIAMRoleCredentials(),
  	}, ok
  }
docs: // GetTaskCredentials retrieves credentials for a given credentials id