parameters: (self)
return_statement: return self._make_file_safe(argument_hash)
docstring: Create a predictable cache key for the current configuration.
  
          The cache key is intended to be compatible with file names.
docstring_summary: Create a predictable cache key for the current configuration.
docstring_tokens: Create a predictable cache key for the current configuration .
function: def _create_cache_key(self):
          """Create a predictable cache key for the current configuration.
  
          The cache key is intended to be compatible with file names.
          """
          args = deepcopy(self._assume_kwargs)
  
          # The role session name gets randomly generated, so we don't want it
          # in the hash.
          if self._using_default_session_name:
              del args['RoleSessionName']
  
          if 'Policy' in args:
              # To have a predictable hash, the keys of the policy must be
              # sorted, so we have to load it here to make sure it gets sorted
              # later on.
              args['Policy'] = json.loads(args['Policy'])
  
          args = json.dumps(args, sort_keys=True)
          argument_hash = sha1(args.encode('utf-8')).hexdigest()
          return self._make_file_safe(argument_hash)
function_tokens: def _create_cache_key ( self ) : args = deepcopy ( self . _assume_kwargs ) # The role session name gets randomly generated, so we don't want it # in the hash. if self . _using_default_session_name : del args [ 'RoleSessionName' ] if 'Policy' in args : # To have a predictable hash, the keys of the policy must be # sorted, so we have to load it here to make sure it gets sorted # later on. args [ 'Policy' ] = json . loads ( args [ 'Policy' ] ) args = json . dumps ( args , sort_keys = True ) argument_hash = sha1 ( args . encode ( 'utf-8' ) ) . hexdigest ( ) return self . _make_file_safe ( argument_hash )