MCPcopy Index your code
hub / github.com/aws/aws-cli / load_data

Method load_data

awscli/botocore/loaders.py:438–455  ·  view source on GitHub ↗

Load data given a data path. This is a low level method that will search through the various search paths until it's able to load a value. This is typically only needed to load *non* model files (such as _endpoints and _retry). If you need to load model files, you

(self, name)

Source from the content-addressed store, hash-verified

436 raise DataNotFoundError(data_path=name)
437
438 def load_data(self, name):
439 """Load data given a data path.
440
441 This is a low level method that will search through the various
442 search paths until it's able to load a value. This is typically
443 only needed to load *non* model files (such as _endpoints and
444 _retry). If you need to load model files, you should prefer
445 ``load_service_model``. Use ``load_data_with_path`` to get the
446 data path of the data file as second return value.
447
448 :type name: str
449 :param name: The data path, i.e ``ec2/2015-03-01/service-2``.
450
451 :return: The loaded data. If no data could be found then
452 a DataNotFoundError is raised.
453 """
454 data, _ = self.load_data_with_path(name)
455 return data
456
457 def _potential_locations(self, name=None, must_exist=False, is_dir=False):
458 # Will give an iterator over the full path of potential locations

Callers 13

load_service_modelMethod · 0.95
_find_extrasMethod · 0.95
_load_all_regionsMethod · 0.95
test_can_load_dataMethod · 0.80
partitionsFunction · 0.80
test_partitions_existsFunction · 0.80
partitionsFunction · 0.80
create_clientMethod · 0.80

Calls 1

load_data_with_pathMethod · 0.95

Tested by 8

test_can_load_dataMethod · 0.64
partitionsFunction · 0.64
test_partitions_existsFunction · 0.64
partitionsFunction · 0.64