class_docstr: Configures access to secured resources stored in AWS S3.
      
class_docstr_tok: ["Configures","access","to","secured","resources","stored","in","AWS","S3","."]
docstr: Get credentials as GDAL configuration options
  
  Returns
  -------
  dict
docstr_tok: ["Get","credentials","as","GDAL","configuration","options","Returns","--","--","--","-","dict"]
code: def get_credential_options(self):
      """Get credentials as GDAL configuration options
  
      Returns
      -------
      dict
  
      """
      if self.unsigned:
          opts = {"AWS_NO_SIGN_REQUEST": "YES"}
          opts.update(
              {
                  k.upper(): v
                  for k, v in self.credentials.items()
                  if k in ("aws_region", "aws_s3_endpoint")
              }
          )
          return opts
      else:
          return {k.upper(): v for k, v in self.credentials.items()}
  
imports: import logging
  import os
  from types import SimpleNamespace
  from rasterio._path import _parse_path, _UnparsedPath
label_desc: Use image node_id 4 for calling the AWSSession obj's underlying member method code with example usage: obj.get_credential_options() and returns: opts, unknown