confidant_client/__init__.py
def _get_mfa_creds(self, mfa_pin):
        """Get an AWS session token credentials, assumed with MFA."""
        user = self.iam_client.get_user()
        base_arn = user['User']['Arn'].rsplit(':', 1)[0]
        mfa_arn = '{0}:mfa/{1}'.format(base_arn, user['User']['UserName'])
        return self.sts_client.get_session_token(
            SerialNumber=mfa_arn,
            TokenCode=mfa_pin
        )['Credentials']
Get an AWS session token credentials, assumed with MFA.
Get an AWS session token credentials, assumed with MFA.
Get an AWS session token credentials assumed with MFA .
def _get_mfa_creds(self, mfa_pin):
        user = self.iam_client.get_user()
        base_arn = user['User']['Arn'].rsplit(':', 1)[0]
        mfa_arn = '{0}:mfa/{1}'.format(base_arn, user['User']['UserName'])
        return self.sts_client.get_session_token(
            SerialNumber=mfa_arn,
            TokenCode=mfa_pin
        )['Credentials']
def _get_mfa_creds ( self , mfa_pin ) : user = self . iam_client . get_user ( ) base_arn = user [ 'User' ] [ 'Arn' ] . rsplit ( ':' , 1 ) [ 0 ] mfa_arn = '{0}:mfa/{1}' . format ( base_arn , user [ 'User' ] [ 'UserName' ] ) return self . sts_client . get_session_token ( SerialNumber = mfa_arn , TokenCode = mfa_pin ) [ 'Credentials' ]
Get an AWS session token credentials, assumed with MFA.
Get an AWS session token credentials assumed with MFA .
"""Get an AWS session token credentials, assumed with MFA."""
self
mfa_pin