code: def get_config_info(
      self, model: BackendModel, include_creds: bool
  ) -> AnyAWSConfigInfo:
      config = self._get_backend_config(model)
      if include_creds:
          return AWSConfigInfoWithCreds.parse_obj(config)
      return AWSConfigInfo.parse_obj(config)
  
file_path: dstack/src/dstack/_internal/server/services/backends/configurators/aws.py
imports: import json
  from typing import List, Optional
  from dstack._internal.core.backends.aws import AWSBackend, auth
  from dstack._internal.core.backends.aws.config import AWSConfig
  from dstack._internal.core.errors import BackendAuthError
  from dstack._internal.core.models.backends.aws import AnyAWSConfigInfo, AWSAccessKeyCreds, AWSConfigInfo, AWSConfigInfoWithCreds, AWSConfigInfoWithCredsPartial, AWSConfigValues, AWSCreds, AWSDefaultCreds, AWSStoredConfig
  from dstack._internal.core.models.backends.base import BackendType, ConfigElementValue, ConfigMultiElement
  from dstack._internal.server import settings
  from dstack._internal.server.models import BackendModel, ProjectModel
  from dstack._internal.server.services.backends.configurators.base import Configurator, raise_invalid_credentials_error
label_desc: Use image node_id 4 for calling the AWSConfigurator obj's underlying member method code with example usage: obj.get_config_info(model, include_creds) and returns: AWSConfigInfo, AWSConfigInfoWithCreds