(cls)
| 334 | |
| 335 | @classmethod |
| 336 | def from_environment(cls): |
| 337 | crt_version = _get_crt_version() or 'Unknown' |
| 338 | return cls( |
| 339 | platform_name=platform.system(), |
| 340 | platform_version=platform.release(), |
| 341 | platform_machine=platform.machine(), |
| 342 | python_version=platform.python_version(), |
| 343 | python_implementation=platform.python_implementation(), |
| 344 | execution_env=os.environ.get('AWS_EXECUTION_ENV'), |
| 345 | crt_version=crt_version, |
| 346 | ) |
| 347 | |
| 348 | def set_session_config( |
| 349 | self, |