MCPcopy Create free account
hub / github.com/aws/aws-cli / _assert_v1_enabled

Method _assert_v1_enabled

awscli/botocore/utils.py:496–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

494 raise self._RETRIES_EXCEEDED_ERROR_CLS()
495
496 def _assert_v1_enabled(self):
497 if self._imds_v1_disabled:
498 raise MetadataRetrievalError(
499 error_msg="Unable to retrieve token for use in IMDSv2 call and IMDSv1 has been disabled"
500 )
501
502 def _default_retry(self, response):
503 return self._is_non_ok_response(response) or self._is_empty(response)

Callers 1

_get_requestMethod · 0.95

Calls 1

Tested by

no test coverage detected