Return the :class:`botocore.credential.Credential` object associated with this session. If the credentials have not yet been loaded, this will attempt to load them. If they have already been loaded, this will return the cached credentials.
(self)
| 463 | ) |
| 464 | |
| 465 | def get_credentials(self): |
| 466 | """ |
| 467 | Return the :class:`botocore.credential.Credential` object |
| 468 | associated with this session. If the credentials have not |
| 469 | yet been loaded, this will attempt to load them. If they |
| 470 | have already been loaded, this will return the cached |
| 471 | credentials. |
| 472 | |
| 473 | """ |
| 474 | if self._credentials is None: |
| 475 | self._credentials = self._components.get_component( |
| 476 | 'credential_provider' |
| 477 | ).load_credentials() |
| 478 | return self._credentials |
| 479 | |
| 480 | def get_auth_token(self, **kwargs): |
| 481 | """ |