class_docstr: Configures access to secured resources stored in AWS S3.
      
class_docstr_tok: ["Configures","access","to","secured","resources","stored","in","AWS","S3","."]
docstr: The session credentials as a dict
docstr_tok: ["The","session","credentials","as","a","dict"]
code: def credentials(self):
      """The session credentials as a dict"""
      res = {}
      if self._creds:  # pragma: no branch
          frozen_creds = self._creds.get_frozen_credentials()
          if frozen_creds.access_key:  # pragma: no branch
              res["aws_access_key_id"] = frozen_creds.access_key
          if frozen_creds.secret_key:  # pragma: no branch
              res["aws_secret_access_key"] = frozen_creds.secret_key
          if frozen_creds.token:
              res["aws_session_token"] = frozen_creds.token
      if self._session.region_name:
          res["aws_region"] = self._session.region_name
      if self.requester_pays:
          res["aws_request_payer"] = "requester"
      if self.endpoint_url:
          res["aws_s3_endpoint"] = self.endpoint_url
      return res
  
imports: import logging
  import os
  from types import SimpleNamespace
  from rasterio._path import _parse_path, _UnparsedPath
label_desc: Use image node_id 3 for calling the AWSSession obj's underlying member method code with example usage: obj.credentials() and returns: res