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

Method _build_architecture_metadata

awscli/botocore/useragent.py:498–511  ·  view source on GitHub ↗

Build architecture component of the User-Agent header string. Returns the machine type with prefix "md" and name "arch", if one is available. Common values include "x86_64", "arm64", "i386".

(self)

Source from the content-addressed store, hash-verified

496 ]
497
498 def _build_architecture_metadata(self):
499 """
500 Build architecture component of the User-Agent header string.
501
502 Returns the machine type with prefix "md" and name "arch", if one is
503 available. Common values include "x86_64", "arm64", "i386".
504 """
505 if self._platform_machine:
506 return [
507 UserAgentComponent(
508 'md', 'arch', self._platform_machine.lower()
509 )
510 ]
511 return []
512
513 def _build_language_metadata(self):
514 """

Callers 1

to_stringMethod · 0.95

Calls 1

UserAgentComponentClass · 0.85

Tested by

no test coverage detected