class_docstr: AWS Driver
class_docstr_tok: ["AWS","Driver"]
code: def creds(self):
      creds = {
          "region_name": self.aws_region or None,
      }
  
      if not self.use_credentials_chain:
          creds.update(
              {
                  "aws_secret_access_key": self.aws_secret_access_key
                  or None,
                  "aws_access_key_id": self.aws_access_key_id or None,
                  "aws_session_token": self.aws_session_token or None,
              }
          )
      return creds
  
file_path: clearml/clearml/automation/aws_driver.py
imports: import base64
  import attr
  from attr.validators import instance_of
  from ..None import Task
  from ..utilities.pyhocon import ConfigFactory, ConfigTree
  from .auto_scaler import CloudDriver
  from .cloud_driver import parse_tags
label_desc: Use image node_id 5 for calling the AWSDriver obj's underlying member method code with example usage: obj.creds() and returns: creds