Python botocore.exceptions.RefreshWithMFAUnsupportedError() Examples
The following are 8
code examples of botocore.exceptions.RefreshWithMFAUnsupportedError().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
botocore.exceptions
, or try the search function
.
Example #1
Source File: credentials.py From deepWordBug with Apache License 2.0 | 6 votes |
def create_mfa_serial_refresher(actual_refresh): class _Refresher(object): def __init__(self, refresh): self._refresh = refresh self._has_been_called = False def __call__(self): if self._has_been_called: # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() self._has_been_called = True return self._refresh() return _Refresher(actual_refresh)
Example #2
Source File: credentials.py From bash-lambda-layer with MIT License | 6 votes |
def create_mfa_serial_refresher(actual_refresh): class _Refresher(object): def __init__(self, refresh): self._refresh = refresh self._has_been_called = False def __call__(self): if self._has_been_called: # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() self._has_been_called = True return self._refresh() return _Refresher(actual_refresh)
Example #3
Source File: credentials.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 6 votes |
def create_mfa_serial_refresher(actual_refresh): class _Refresher(object): def __init__(self, refresh): self._refresh = refresh self._has_been_called = False def __call__(self): if self._has_been_called: # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() self._has_been_called = True return self._refresh() return _Refresher(actual_refresh)
Example #4
Source File: credentials.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 6 votes |
def create_mfa_serial_refresher(actual_refresh): class _Refresher(object): def __init__(self, refresh): self._refresh = refresh self._has_been_called = False def __call__(self): if self._has_been_called: # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() self._has_been_called = True return self._refresh() return _Refresher(actual_refresh)
Example #5
Source File: credentials.py From aws-builders-fair-projects with Apache License 2.0 | 6 votes |
def create_mfa_serial_refresher(actual_refresh): class _Refresher(object): def __init__(self, refresh): self._refresh = refresh self._has_been_called = False def __call__(self): if self._has_been_called: # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() self._has_been_called = True return self._refresh() return _Refresher(actual_refresh)
Example #6
Source File: credentials.py From faces with GNU General Public License v2.0 | 5 votes |
def create_mfa_serial_refresher(): def _refresher(): # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() return _refresher
Example #7
Source File: credentials.py From faces with GNU General Public License v2.0 | 5 votes |
def create_mfa_serial_refresher(): def _refresher(): # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() return _refresher
Example #8
Source File: credentials.py From aws-extender with MIT License | 5 votes |
def create_mfa_serial_refresher(): def _refresher(): # We can explore an option in the future to support # reprompting for MFA, but for now we just error out # when the temp creds expire. raise RefreshWithMFAUnsupportedError() return _refresher