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

Method _build_config_metadata

awscli/botocore/useragent.py:565–579  ·  view source on GitHub ↗

Build the configuration components of the User-Agent header string. Returns a list of components with prefix "cfg" followed by the config setting name and its value. Tracked configuration settings may be added or removed in future versions.

(self)

Source from the content-addressed store, hash-verified

563 ]
564
565 def _build_config_metadata(self):
566 """
567 Build the configuration components of the User-Agent header string.
568
569 Returns a list of components with prefix "cfg" followed by the config
570 setting name and its value. Tracked configuration settings may be
571 added or removed in future versions.
572 """
573 if not self._client_config or not self._client_config.retries:
574 return []
575 retry_mode = self._client_config.retries.get('mode')
576 cfg_md = [UserAgentComponent('cfg', 'retry-mode', retry_mode)]
577 if self._client_config.endpoint_discovery_enabled:
578 cfg_md.append(UserAgentComponent('cfg', 'endpoint-discovery'))
579 return cfg_md
580
581 def _build_app_id(self):
582 """

Callers 1

to_stringMethod · 0.95

Calls 1

UserAgentComponentClass · 0.85

Tested by

no test coverage detected