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

Method _build_execution_env_metadata

awscli/botocore/useragent.py:533–543  ·  view source on GitHub ↗

Build the execution environment component of the User-Agent header. Returns a single component prefixed with "exec-env", usually sourced from the environment variable AWS_EXECUTION_ENV.

(self)

Source from the content-addressed store, hash-verified

531 return lang_md
532
533 def _build_execution_env_metadata(self):
534 """
535 Build the execution environment component of the User-Agent header.
536
537 Returns a single component prefixed with "exec-env", usually sourced
538 from the environment variable AWS_EXECUTION_ENV.
539 """
540 if self._execution_env:
541 return [UserAgentComponent('exec-env', self._execution_env)]
542 else:
543 return []
544
545 def _build_feature_metadata(self):
546 """

Callers 1

to_stringMethod · 0.95

Calls 1

UserAgentComponentClass · 0.85

Tested by

no test coverage detected